/* ====== CSS VARIABLES ====== */
:root {
    --bg-darker: #050608;
    --bg-dark: #0a0c10;
    --bg-card: rgba(15, 18, 25, 0.6);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ====== RESET & GENERAL ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--bg-dark);
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== EFFECTS & AMBIENT ====== */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation: drift 20s infinite alternate ease-in-out;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #3b00ff 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation: drift 25s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.1); }
}

.glass-effect {
    background: rgba(10, 12, 16, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    box-shadow: 0 8px 32px var(--accent-glow);
    border-color: rgba(0, 240, 255, 0.2);
}

.glass-border {
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
}

.highlight {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

.title-glow {
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    font-weight: 800;
}

.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--accent);
}

.hover-underline:hover::after {
    width: 100%;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

strong {
    color: #fff;
    font-weight: 600;
}

/* ====== LAYOUT UTILITIES ====== */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow { max-width: 940px; }
.container-medium { max-width: 1140px; }
.container-wide { max-width: 1400px; }

.section { padding: 100px 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.relative-z { position: relative; z-index: 2; }

/* Colors & Backgrounds */
.section-dark { background-color: var(--bg-dark); }
.section-darker { background-color: var(--bg-darker); }

/* ====== HEADER & NAVIGATION ====== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
}

/* Desktop Navigation */
.main-nav { display: flex; }
.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-list li > a {
    font-size: 1.05rem;
    color: var(--text-main);
    padding: 5px 0;
    display: inline-block;
}

.nav-list li > a:hover {
    color: var(--accent);
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 12, 16, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    min-width: 240px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    padding: 10px 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-menu li a {
    padding: 12px 25px;
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.dropdown-menu li a:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent);
    padding-left: 30px;
}

.submenu-icon { font-size: 0.75rem; margin-left: 6px; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-menu-toggle:hover { color: var(--accent); }

/* ====== HERO SECTION ====== */
.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(5,6,8,0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    font-weight: 300;
}

.carousel-inner {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.carousel-item {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 5s linear;
    transform: scale(1.05);
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-control:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

.carousel-control.prev { left: 30px; }
.carousel-control.next { right: 30px; }

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: var(--accent);
    width: 50px;
    box-shadow: 0 0 10px var(--accent);
}

/* ====== VIDEO & IFRAMES ====== */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin-top: 40px;
}

.video-responsive iframe, .iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.iframe-container {
    width: 100%;
    height: 640px;
    margin-top: 40px;
    position: relative;
}

.local-video {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: contain;
    background: #000;
    border-radius: 8px;
    display: block;
}

/* ====== SERVICES SECTION ====== */
.services-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1541123437800-1bb1317bc20f?w=1600&h=900&fit=crop');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    padding: 100px 0;
}

.services-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5,6,8,0.95) 0%, rgba(10,12,16,0.7) 100%);
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 25px;
    text-shadow: 0 0 15px var(--accent-glow);
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.15) translateY(-5px);
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-content {
    text-align: left;
    width: 100%;
    margin-top: 10px;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 600;
    display: inline-block;
}

.service-list {
    padding-left: 0;
    list-style-position: inside;
    color: var(--text-muted);
    font-size: 0.95rem;
    list-style: none;
}

.service-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-list li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* ====== RECENT PROJECTS ====== */
.gallery-wrap {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

.gallery-col {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-item {
    position: relative;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s;
    filter: brightness(0.8) contrast(1.1);
}

.zoom-animation:hover {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.1);
}

/* ====== ABOUT SECTION ====== */
.about-text-content {
    line-height: 1.9;
    font-size: 1.05rem;
}

.img-wrapper {
    float: left;
    margin: 0 40px 20px 0;
    position: relative;
    max-width: 100%;
}

.inline-img {
    border-radius: 8px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.1);
}

.img-glow {
    position: absolute;
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
    background: var(--accent);
    border-radius: 8px;
    z-index: 1;
    filter: blur(20px);
    opacity: 0.3;
}

/* ====== CONTACT SECTION ====== */
.contact-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600&h=900&fit=crop');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    padding: 120px 0;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,6,8,0.9) 0%, rgba(5,6,8,0.4) 100%);
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: #fff;
}

.contact-details p, .contact-details a {
    color: var(--text-muted);
    font-size: 1rem;
}

.glow-hover:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.btn-outline {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--accent);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #00aaff 100%);
    color: #050608;
    border: none;
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* ====== FOOTER ====== */
.border-top {
    border-top: 1px solid var(--glass-border);
}

.footer {
    padding: 40px 0;
    text-align: center;
}

.footer-text {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

/* ====== SCROLL & ANIMATIONS ====== */
.reveal, .reveal-stagger {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.visible, .reveal-stagger.visible {
    opacity: 1;
    transform: translateY(0);
}

.blur-reveal {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.95);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.blur-reveal.visible {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

/* ====== BACK TO TOP ====== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-5px);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .img-wrapper {
        float: none;
        display: table;
        margin: 0 auto 30px;
    }
    
    .hero-title { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(10, 12, 16, 0.95);
        backdrop-filter: blur(20px);
        padding-top: 100px;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 998;
        border-left: 1px solid var(--glass-border);
    }

    .main-nav.active { right: 0; }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 30px;
        gap: 25px;
    }

    .nav-list li > a { font-size: 1.2rem; }

    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        display: none;
        transform: translateY(0);
        padding-left: 15px;
    }
    
    .dropdown.active .dropdown-menu { display: block; }
    .dropdown-menu li a { font-size: 1.1rem; }

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.8);
        backdrop-filter: blur(5px);
        z-index: 997;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .hero-carousel { height: 75vh; min-height: 500px; }
    .hero-title { font-size: 2.8rem; }
    .contact-title { font-size: 2.5rem; }
    .hero-content { padding: 0 70px; }
}

@media (max-width: 480px) {
    .section { padding: 60px 0; }
    .carousel-control { width: 45px; height: 45px; font-size: 1rem; }
    .carousel-control.prev { left: 10px; }
    .carousel-control.next { right: 10px; }
    .hero-content { padding: 0 60px; }
    .glass-card { padding: 25px 15px; }
    .hero-title { font-size: 2.2rem; }
}
