/* ==========================================================================
   CSS Variables & Reset (Apple Premium Style)
   ========================================================================== */
:root {
    --bg-color: #242424;
    --text-main: #ffffff;
    --text-muted: #d1d5db; /* brighter muted for readability on dark gray */
    --accent-gradient: linear-gradient(135deg, #2f49ae, #4e6ceb);
    --accent-solid: #2f49ae;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(47, 73, 174, 0.2);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --section-padding: 150px 0;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto; 
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loading {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.highlight {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    border: none;
}

.btn-primary:hover {
    transform: scale(1.05); /* Apple standard subtle scale */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* Custom Cursor (Minimalist & Eye-Catching) */
.cursor {
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--accent-solid);
    box-shadow: 0 0 10px var(--accent-solid);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}

.cursor.hovered {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    mix-blend-mode: normal;
}

.cursor-dot.hovered {
    width: 0;
    height: 0;
    opacity: 0;
}

@media (max-width: 768px) {
    .cursor, .cursor-dot { display: none; }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(36, 36, 36, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'AG Stencil', 'Allerta Stencil', stencil, sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    display: inline-block;
    text-transform: lowercase;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
    display: inline-block;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-cta {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    color: #fff;
    border: 1px solid var(--glass-border);
}

.nav-cta:hover {
    background: #fff;
    color: #000;
}

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 20px;
    cursor: pointer;
    z-index: 1001; 
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-toggle span:nth-child(1) { transform-origin: center; }
.menu-toggle span:nth-child(2) { transform-origin: center; }

/* Hamburger active 'X' animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Navigation Responsive Breakpoints */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: right 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 2.2rem;
        font-weight: 600;
    }
    
    .nav-cta {
        margin-top: 2rem;
        font-size: 1.5rem;
        padding: 1.2rem 2.5rem;
    }
}

/* ==========================================================================
   Hero Section V2 (Full Image BG)
   ========================================================================== */
.v2-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.1); /* for parallax zoom out effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(3,3,3,0.3) 0%, rgba(3,3,3,1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    text-align: center;
}

.hero-title {
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-muted);
    font-weight: 400;
}

.hero-cta .btn {
    padding: 1rem 2.8rem;
    font-size: 1.15rem;
    border-radius: 100px;
    font-weight: 500;
    letter-spacing: 0;
}

/* ==========================================================================
   About / Intro Text Reveal
   ========================================================================== */
.about {
    position: relative;
    z-index: 5;
    background: var(--bg-color);
}

.about-text-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.large-text {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    line-height: 1.4;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.15); /* very dim initially */
}

/* Scrub specific style - chars will be animated via GSAP */
.scrub-text .char {
    display: inline-block;
}

.text-glow {
    color: transparent; /* will be overridden by GSAP or static */
}

/* ==========================================================================
   Bento Box Section (V4 Stable)
   ========================================================================== */
.bento-section {
    position: relative;
    background: #242424;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

.bento-box {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    height: 480px;
    transition: transform 0.4s ease;
}

.bento-box.span-2 {
    grid-column: span 2;
}

.bento-box.span-1 {
    grid-column: span 1;
}

.bento-box img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 0.8s ease, opacity 0.8s ease;
    z-index: 0;
}

.bento-box:hover img {
    transform: scale(1.05);
    opacity: 0.2;
}

.bento-content {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(0deg, rgba(36,36,36,0.95) 0%, rgba(36,36,36,0) 70%);
}

.bento-content h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.bento-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Creative 3D Marquee Section
   ========================================================================== */
.creative-marquee-section {
    position: relative;
    height: 65vh;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.marquee-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250vw;
    transform: translate(-50%, -50%) rotate(-5deg);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 0;
    opacity: 0.95; /* Pure bold typography styling */
    pointer-events: none;
}

.marquee-row span {
    display: block;
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--accent-solid);
    line-height: 1;
}

.marquee-row span.outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-solid);
}

/* ==========================================================================
   Services Grid (Standard)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    background: rgba(47, 73, 174, 0.1);
    border-color: rgba(47, 73, 174, 0.4);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* ==========================================================================
   Contact Section (Futuristic Glass & Glow)
   ========================================================================== */
.contact-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 5rem;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    overflow: hidden;
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    top: -30%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(47, 73, 174, 0.25) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

.contact-info, .contact-form {
    position: relative;
    z-index: 1;
}

.contact-email {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 2rem;
    display: inline-block;
    color: #fff;
    position: relative;
    z-index: 2;
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.15rem;
    outline: none;
    transition: all 0.4s ease;
}

input:focus, textarea:focus {
    border-color: var(--accent-solid);
    box-shadow: 0 10px 20px -10px rgba(47, 73, 174, 0.6);
    transform: translateY(-2px);
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: rgba(255,255,255,0.4);
    font-size: 1.1rem;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

input:focus ~ .form-label,
input:not(:placeholder-shown) ~ .form-label,
textarea:focus ~ .form-label,
textarea:not(:placeholder-shown) ~ .form-label {
    top: -1.5rem;
    font-size: 0.85rem;
    color: var(--accent-solid);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: linear-gradient(90deg, var(--accent-solid) 0%, #1e3385 100%);
    color: #fff;
    border: none;
    padding: 1.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px -10px rgba(47, 73, 174, 0.5);
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(47, 73, 174, 0.8);
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   Mega Footer (Optical Illusion Split)
   ========================================================================== */
.mega-wrapper {
    margin-top: 6rem;
}

.mega-footer-container {
    background: linear-gradient(to bottom, var(--accent-solid) 50%, var(--bg-color) 50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0; /* restores some padding for heavy sizes */
}

.mega-footer-text {
    font-size: clamp(4rem, 14vw, 16rem); /* Increased size to match reference */
    font-weight: 700;
    color: var(--bg-color); /* Dark grey text seamlessly vanishing into bottom half */
    line-height: 0.7; /* Squeezes the box height to match lowercase alphabet height perfectly */
    letter-spacing: -0.06em;
    margin: 0;
    padding: 0;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    white-space: nowrap; 
    transform: translateY(-12%); /* Physically pulls the text upwards so it's evenly cut by the horizontal line */
}

.footer-info-section {
    width: 100%;
    background: var(--bg-color);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-col a, .footer-col p {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-solid);
}

.brand-col p {
    line-height: 1.6;
}

.footer-bottom-bar {
    width: 100%;
    background: var(--bg-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ==========================================================================
   Responsiveness
   ========================================================================== */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-box.span-2, .bento-box.span-1 {
        grid-column: span 1;
        height: 350px;
    }
    .bento-content {
        padding: 2rem;
    }
    .bento-content h3 {
        font-size: 1.8rem;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}
