@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
:root {
    /* ==========================================
       COLOR SYSTEM
       ========================================== */

    /* Primary Colors */
    --color-white: #FFFFFF;
    --color-black: #000000;

    /* Semantic Colors */
    --color-primary: #FFF5E2;
    --color-secondary: #332820;
    --color-accent: #FCD248;


    /* Background Colors */
    --color-bg-primary: var(--color-primary);
    --color-bg-secondary: #1a1a1a;

    /* Border Colors */
    --color-border: 1px solid rgba(188, 188, 188, 0.39);
    --colorborder: 2px solid rgba(188, 188, 188, 0.20);
    --color-border-line: var(--color-secondary); /* Change this to any color you want */


    /* ==========================================
       TYPOGRAPHY SYSTEM
       ========================================== */

    /* Font Families */
    --font-primary: "Figtree", sans-serif;
    --font-secondary: "Playfair Display", serif;
    --font-fallback: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    
    /* Fluid Type Scale */
    --font-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);        /* 12-14px */
    --font-sm: clamp(0.875rem, 0.83rem + 0.25vw, 1rem);          /* 14-16px */
    --font-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);        /* 16-18px */
    --font-md: clamp(1.125rem, 1.05rem + 0.375vw, 1.5rem);       /* 18-24px */
    --font-lg: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);             /* 24-36px */
    --font-xl: clamp(2rem, 1.6rem + 2vw, 3rem);                  /* 32-48px */
    --font-2xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);               /* 40-64px */
    --font-3xl: clamp(3rem, 2.25rem + 3.75vw, 5rem);             /* 48-80px */
    --font-4xl: clamp(3.5rem, 2.5rem + 5vw, 6rem);               /* 56-96px */
    
    /* Font Weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;
    --weight-black: 900;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    --leading-loose: 2;
    
    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    
    
    /* ==========================================
       SPACING SYSTEM
       ========================================== */
    
    /* Fixed Spacing Scale */
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    --space-24: 6rem;      /* 96px */
    --space-32: 8rem;      /* 128px */
    
    /* Fluid Spacing (for sections) */
    --space-section-xs: clamp(1.5rem, 3vw, 3rem);      /* 24-48px */
    --space-section-sm: clamp(2rem, 5vw, 4rem);        /* 32-64px */
    --space-section-md: clamp(3rem, 8vw, 6rem);        /* 48-96px */
    --space-section-lg: clamp(4rem, 10vw, 8rem);       /* 64-128px */
    --space-section-xl: clamp(6rem, 15vw, 12rem);      /* 96-192px */
    
    
    /* ==========================================
       LAYOUT SYSTEM
       ========================================== */
    
    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    --container-max: 1920px;
    
    /* Grid Gaps */
    --gap-sm: var(--space-4);
    --gap-md: var(--space-6);
    --gap-lg: var(--space-8);
    --gap-xl: var(--space-12);
    
    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 0.125rem;    /* 2px */
    --radius-base: 0.25rem;   /* 4px */
    --radius-md: 0.375rem;    /* 6px */
    --radius-lg: 0.5rem;      /* 8px */
    --radius-xl: 0.75rem;     /* 12px */
    --radius-2xl: 1rem;       /* 16px */
    --radius-3xl: 1.5rem;     /* 24px */
    --radius-full: 9999px;
    
    
    /* ==========================================
       EFFECTS & ANIMATIONS
       ========================================== */
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 700ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Easing Functions */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-smooth: cubic-bezier(0.45, 0, 0.15, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 16px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    
    /* Glow Effects */
    --glow-subtle: 0 0 10px rgba(201, 169, 97, 0.2);
    --glow-medium: 0 0 20px rgba(201, 169, 97, 0.3);
    --glow-strong: 0 0 30px rgba(201, 169, 97, 0.5);
    
    /* Backdrop Blur */
    --blur-sm: blur(4px);
    --blur-base: blur(8px);
    --blur-md: blur(12px);
    --blur-lg: blur(16px);
    --blur-xl: blur(24px);
    
    
    /* ==========================================
       Z-INDEX SYSTEM
       ========================================== */
    
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    
    
    /* ==========================================
       RESPONSIVE BREAKPOINTS (for reference)
       ========================================== */
    
    /*
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    */
}


/* ==========================================
   UTILITY CLASSES
   ========================================== */

/* Container */
.container {
    width: 100%;
    max-width: var(--container-2xl);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

@media (min-width: 768px) {
    .container {
        padding-inline: var(--space-8);
    }
}

@media (min-width: 1024px) {
    .container {
        padding-inline: var(--space-12);
    }
}

/* Typography Utilities */
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }

.font-light { font-weight: var(--weight-light); }
.font-regular { font-weight: var(--weight-regular); }
.font-medium { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold { font-weight: var(--weight-bold); }

.highlight {
    font-family: var(--font-secondary);
    color: var(--color-secondary);
    font-style: italic;
}

.highlight-accent {
    font-family: var(--font-secondary);
    color: var(--color-accent);
    font-style: italic;
}

.highlight-dark {
    color: #8B8B89;
}

/* Transition Utilities */
.transition-fast { transition: all var(--transition-fast); }
.transition-base { transition: all var(--transition-base); }
.transition-slow { transition: all var(--transition-slow); }


/* ==========================================
   SEMANTIC ELEMENTS
   ========================================== */

h1, .h1 {
    font-size: var(--font-3xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
}

h2, .h2 {
    font-size: var(--font-2xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-white);
    font-family: var(--font-primary);
}

h3, .h3 {
    font-size: var(--font-xl);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
}

h4, .h4 {
    font-size: var(--font-lg);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
    color: var(--color-text-primary);
}

h5, .h5 {
    font-size: var(--font-md);
    font-weight: var(--weight-medium);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
}

p, .body {
    font-size: var(--font-base);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    color: #D4D4D4;
    font-family: var(--font-primary);
}

span {
    font-family: var(--font-primary);
    color: var(--color-white);
}

.body-large {
    font-size: var(--font-md);
    font-weight: var(--weight-regular);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

.body-small {
    font-size: var(--font-sm);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    color: var(--color-text-muted);
}

.caption {
    font-size: var(--font-xs);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

html {
    scroll-behavior: smooth;
}

body, html {
    background: var(--color-bg-primary);
    color: var(--color-white);
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

.page-wrapper {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* Buttons */
button, 
input[type="button"], 
input[type="reset"], 
input[type="submit"] {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

a {
    font: var(--links);
    color: var(--coloraccent);
    text-decoration: none;
    transition: color var(--transition);
}

/* ==========================================
   COMPONENTS
   ========================================== */

/* Portfolio Button */
.fill-button {
    font-family: var(--font-secondary);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    text-decoration: none;
    border: var(--color-border);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.fill-button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.fill-button:active {
    transform: scale(0.98);
}

.fill-button::before,
.fill-button::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    transition: width 800ms var(--ease-smooth);
    z-index: -1;
    will-change: width;
}

.fill-button::before {
    background-color: #353535;
}

.fill-button::after {
    background-color: var(--color-bg-secondary);
    transition-delay: 0.15s;
}

.fill-button:hover::before,
.fill-button:focus-visible::before {
    width: 100%;
}

.fill-button:hover::after,
.fill-button:focus-visible::after {
    width: 100%;
}

.fill-button__text {
    padding: var(--space-2) var(--space-8) var(--space-2) var(--space-4);
}

.fill-button__text span {
    margin: 0;
    color: #FFFFFF;
    font-size: var(--font-xs);
    display: block;
}

.fill-button__svg {
    color: white;
    background-color: var(--color-bg-secondary);
    padding: var(--space-2);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.fill-button__svg svg {
    height: 20px;
    width: 20px;
    transition: transform 300ms var(--ease-smooth);
    will-change: transform;
}

.fill-button:hover .fill-button__svg svg,
.fill-button:focus-visible .fill-button__svg svg {
    transform: translateX(150%);
}

.fill-button__svg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(-150%);
    height: 20px;
    width: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M1.99974 13.0001L1.9996 11.0002L18.1715 11.0002L14.2218 7.05044L15.636 5.63623L22 12.0002L15.636 18.3642L14.2218 16.9499L18.1716 13.0002L1.99974 13.0001Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 200ms var(--ease-smooth);
    will-change: transform;
}

.fill-button:hover .fill-button__svg::before,
.fill-button:focus-visible .fill-button__svg::before {
    transform: translate(-50%, -50%) translateX(0);
}

/* Animation Variables */
:root {
    --animation-duration: 1200ms;
    --animation-duration-fast: 800ms;
    --animation-duration-slow: 1600ms;
    --animation-easing: cubic-bezier(0.22, 0.61, 0.36, 1);
    --animation-easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --animation-distance: 60px;
    --animation-distance-small: 30px;
}



















































/* Base Animation Classes - Using :is() to eliminate duplication */
:is(.animate, .animate-repeat) {
    /* Use minimal opacity instead of 0 for LCP measurement */
    /* Content is painted immediately but visually hidden */
    opacity: 0.01;
    animation-duration: var(--animation-duration);
    animation-timing-function: var(--animation-easing);
    animation-fill-mode: both;
}

:is(.animate, .animate-repeat).in-view {
    opacity: 1;
}

/* Critical: Ensure LCP candidates are always visible for performance measurement */
img[fetchpriority="high"],
img[loading="eager"] {
    opacity: 1 !important;
}

/* Ensure hero title is visible immediately for LCP, even before animations run */
/* Keep opacity at 1 so performance tools can measure it, but allow transform animations */
.hero-header__title-line-word {
    opacity: 1 !important;
}

/* Ensure first portfolio card is visible for LCP measurement */
.hero-portfolio__swiper-card:first-child img,
.hero-portfolio__swiper-card:first-child video {
    opacity: 1 !important;
}

/* Fallback: If JavaScript doesn't load, ensure critical content is still visible */
.no-js .animate,
.no-js .animate-repeat {
    opacity: 1 !important;
    transform: none !important;
}

/* Animation Speed Modifiers */
:is(.animate, .animate-repeat).animate-fast {
    animation-duration: var(--animation-duration-fast);
}

:is(.animate, .animate-repeat).animate-slow {
    animation-duration: var(--animation-duration-slow);
}

/* Animation Delays - Using CSS Custom Properties */
/* Usage: <div class="animate slide-up" style="--delay: 300ms">  */
[style*="--delay"] {
    animation-delay: var(--delay);
}

/* Fallback: Keep common delay classes for backward compatibility */
.animate-delay-100 { animation-delay: 100ms; }
.animate-delay-200 { animation-delay: 200ms; }
.animate-delay-300 { animation-delay: 300ms; }
.animate-delay-400 { animation-delay: 400ms; }
.animate-delay-500 { animation-delay: 500ms; }
.animate-delay-600 { animation-delay: 600ms; }
.animate-delay-700 { animation-delay: 700ms; }
.animate-delay-800 { animation-delay: 800ms; }
.animate-delay-900 { animation-delay: 900ms; }
.animate-delay-1000 { animation-delay: 1000ms; }
.animate-delay-1100 { animation-delay: 1100ms; }
.animate-delay-1200 { animation-delay: 1200ms; }
.animate-delay-1300 { animation-delay: 1300ms; }

/* ==========================================
   RESPONSIVE ANIMATION CONTROLS
   ========================================== */

/* Disable animations at specific breakpoints */
/* Mobile: 320px - 767px */
@media (max-width: 767px) {
    :is(.animate, .animate-repeat).animate-disable-mobile {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }

    :is(.line-animate, .line-animate-repeat, .line-horizontal, .line-vertical).animate-disable-mobile:is(::before, ::after) {
        transition: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* Tablet: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    :is(.animate, .animate-repeat).animate-disable-tablet {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }

    :is(.line-animate, .line-animate-repeat, .line-horizontal, .line-vertical).animate-disable-tablet:is(::before, ::after) {
        transition: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
    :is(.animate, .animate-repeat).animate-disable-desktop {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }

    :is(.line-animate, .line-animate-repeat, .line-horizontal, .line-vertical).animate-disable-desktop:is(::before, ::after) {
        transition: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* Enable animations only at specific breakpoints */
/* Animation only on mobile */
:is(.animate, .animate-repeat).animate-mobile-only {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

:is(.line-animate, .line-animate-repeat, .line-horizontal, .line-vertical).animate-mobile-only:is(::before, ::after) {
    width: 0 !important;
    height: 0 !important;
}

@media (max-width: 767px) {
    :is(.animate, .animate-repeat).animate-mobile-only {
        animation: revert !important;
        opacity: 0 !important;
        transform: revert !important;
    }

    :is(.animate, .animate-repeat).animate-mobile-only.in-view {
        opacity: 1 !important;
    }

    :is(.line-animate, .line-animate-repeat).animate-mobile-only::before {
        transition: all var(--animation-duration) var(--animation-easing-smooth) !important;
    }

    :is(.line-animate, .line-animate-repeat).animate-mobile-only:is(.line-top, .line-bottom).in-view::before {
        width: 100% !important;
        height: 1px !important;
    }

    :is(.line-animate, .line-animate-repeat).animate-mobile-only:is(.line-left, .line-right).in-view::before {
        height: 100% !important;
        width: 1px !important;
    }

    :is(.line-horizontal, .line-vertical).animate-mobile-only:is(::before, ::after) {
        transition: all var(--animation-duration) var(--animation-easing-smooth) !important;
    }

    .line-horizontal.animate-mobile-only.in-view:is(::before, ::after) {
        width: 40px !important;
        height: 1px !important;
    }

    .line-vertical.animate-mobile-only.in-view:is(::before, ::after) {
        height: 40px !important;
        width: 1px !important;
    }
}

/* Animation only on tablet */
:is(.animate, .animate-repeat).animate-tablet-only {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

:is(.line-animate, .line-animate-repeat, .line-horizontal, .line-vertical).animate-tablet-only:is(::before, ::after) {
    width: 0 !important;
    height: 0 !important;
}

@media (min-width: 768px) and (max-width: 1023px) {
    :is(.animate, .animate-repeat).animate-tablet-only {
        animation: revert !important;
        opacity: 0 !important;
        transform: revert !important;
    }

    :is(.animate, .animate-repeat).animate-tablet-only.in-view {
        opacity: 1 !important;
    }

    :is(.line-animate, .line-animate-repeat).animate-tablet-only::before {
        transition: all var(--animation-duration) var(--animation-easing-smooth) !important;
    }

    :is(.line-animate, .line-animate-repeat).animate-tablet-only:is(.line-top, .line-bottom).in-view::before {
        width: 100% !important;
        height: 1px !important;
    }

    :is(.line-animate, .line-animate-repeat).animate-tablet-only:is(.line-left, .line-right).in-view::before {
        height: 100% !important;
        width: 1px !important;
    }

    :is(.line-horizontal, .line-vertical).animate-tablet-only:is(::before, ::after) {
        transition: all var(--animation-duration) var(--animation-easing-smooth) !important;
    }

    .line-horizontal.animate-tablet-only.in-view:is(::before, ::after) {
        width: 40px !important;
        height: 1px !important;
    }

    .line-vertical.animate-tablet-only.in-view:is(::before, ::after) {
        height: 40px !important;
        width: 1px !important;
    }
}

/* Animation only on desktop */
:is(.animate, .animate-repeat).animate-desktop-only {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

:is(.line-animate, .line-animate-repeat, .line-horizontal, .line-vertical).animate-desktop-only:is(::before, ::after) {
    width: 0 !important;
    height: 0 !important;
}

@media (min-width: 1024px) {
    :is(.animate, .animate-repeat).animate-desktop-only {
        animation: revert !important;
        opacity: 0 !important;
        transform: revert !important;
    }

    :is(.animate, .animate-repeat).animate-desktop-only.in-view {
        opacity: 1 !important;
    }

    :is(.line-animate, .line-animate-repeat).animate-desktop-only::before {
        transition: all var(--animation-duration) var(--animation-easing-smooth) !important;
    }

    :is(.line-animate, .line-animate-repeat).animate-desktop-only:is(.line-top, .line-bottom).in-view::before {
        width: 100% !important;
        height: 1px !important;
    }

    :is(.line-animate, .line-animate-repeat).animate-desktop-only:is(.line-left, .line-right).in-view::before {
        height: 100% !important;
        width: 1px !important;
    }

    :is(.line-horizontal, .line-vertical).animate-desktop-only:is(::before, ::after) {
        transition: all var(--animation-duration) var(--animation-easing-smooth) !important;
    }

    .line-horizontal.animate-desktop-only.in-view:is(::before, ::after) {
        width: 40px !important;
        height: 1px !important;
    }

    .line-vertical.animate-desktop-only.in-view:is(::before, ::after) {
        height: 40px !important;
        width: 1px !important;
    }
}


/* ==========================================
   FILL ANIMATIONS (Slide element into parent container)
   ========================================== */

/* Fill from all directions (center outward - scale based) */
@keyframes fillIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}
:is(.animate, .animate-repeat).fill.in-view { animation-name: fillIn; }

/* Fill Left (slides in from left) */
@keyframes fillLeft {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}
:is(.animate, .animate-repeat).fill-left.in-view { animation-name: fillLeft; }

/* Fill Right (slides in from right) */
@keyframes fillRight {
    0% { transform: translateX(100%); }
    100% { transform: translateX(0); }
}
:is(.animate, .animate-repeat).fill-right.in-view { animation-name: fillRight; }

/* Fill Up (slides in from bottom) */
@keyframes fillUp {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}
:is(.animate, .animate-repeat).fill-up.in-view { animation-name: fillUp; }

/* Fill Down (slides in from top) */
@keyframes fillDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}
:is(.animate, .animate-repeat).fill-down.in-view { animation-name: fillDown; }


/* ==========================================
   WIPE ANIMATIONS (Image Reveals)
   ========================================== */

@keyframes wipeRight {
    0% { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}
:is(.animate, .animate-repeat).wipe-right.in-view { animation-name: wipeRight; }

@keyframes wipeLeft {
    0% { clip-path: inset(0 0 0 100%); }
    100% { clip-path: inset(0 0 0 0); }
}
:is(.animate, .animate-repeat).wipe-left.in-view { animation-name: wipeLeft; }

@keyframes wipeDown {
    0% { clip-path: inset(0 0 100% 0); }
    100% { clip-path: inset(0 0 0 0); }
}
:is(.animate, .animate-repeat).wipe-down.in-view { animation-name: wipeDown; }

@keyframes wipeUp {
    0% { clip-path: inset(100% 0 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}
:is(.animate, .animate-repeat).wipe-up.in-view { animation-name: wipeUp; }


/* ==========================================
   SCALE & ZOOM ANIMATIONS
   ========================================== */

@keyframes scaleUp {
    0% { transform: scale(0.8); }
    100% { transform: scale(1); }
}
:is(.animate, .animate-repeat).scale-up.in-view { animation-name: scaleUp; }

@keyframes zoomIn {
    0% { transform: scale(0.5); }
    100% { transform: scale(1); }
}
:is(.animate, .animate-repeat).zoom-in.in-view { animation-name: zoomIn; }

@keyframes zoomOut {
    0% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
:is(.animate, .animate-repeat).zoom-out.in-view { animation-name: zoomOut; }


/* ==========================================
   FLIP ANIMATIONS
   ========================================== */

@keyframes flipX {
    0% { transform: rotateX(90deg); opacity: 0; }
    100% { transform: rotateX(0deg); opacity: 1; }
}
:is(.animate, .animate-repeat).flip-x.in-view {
    animation-name: flipX;
    backface-visibility: hidden;
}

@keyframes flipY {
    0% { transform: rotateY(90deg); opacity: 0; }
    100% { transform: rotateY(0deg); opacity: 1; }
}
:is(.animate, .animate-repeat).flip-y.in-view {
    animation-name: flipY;
    backface-visibility: hidden;
}


/* ==========================================
   COMBINED SLIDE + SCALE ANIMATIONS
   ========================================== */

@keyframes slideUpScale {
    0% { transform: translateY(100px) scale(0.8); }
    100% { transform: translateY(0) scale(1); }
}
:is(.animate, .animate-repeat).slide-up-scale.in-view { animation-name: slideUpScale; }

@keyframes slideDownScale {
    0% { transform: translateY(-30px) scale(0.8); }
    100% { transform: translateY(0) scale(1); }
}
:is(.animate, .animate-repeat).slide-down-scale.in-view { animation-name: slideDownScale; }

@keyframes slideLeftScale {
    0% { transform: translateX(-30px) scale(0.8); }
    100% { transform: translateX(0) scale(1); }
}
:is(.animate, .animate-repeat).slide-left-scale.in-view { animation-name: slideLeftScale; }

@keyframes slideRightScale {
    0% { transform: translateX(30px) scale(0.8); }
    100% { transform: translateX(0) scale(1); }
}
:is(.animate, .animate-repeat).slide-right-scale.in-view { animation-name: slideRightScale; }


/* ==========================================
   FADE ANIMATIONS (Smooth opacity transitions)
   ========================================== */

/* Simple fade in */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
:is(.animate, .animate-repeat).fade-in.in-view { animation-name: fadeIn; }

/* Fade up from below */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(200%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
:is(.animate, .animate-repeat).fade-up.in-view { animation-name: fadeUp; }

/* Fade down from above */
@keyframes fadeDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
:is(.animate, .animate-repeat).fade-down.in-view { animation-name: fadeDown; }

/* Fade left from right */
@keyframes fadeLeft {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
:is(.animate, .animate-repeat).fade-left.in-view { animation-name: fadeLeft; }

/* Fade right from left */
@keyframes fadeRight {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
:is(.animate, .animate-repeat).fade-right.in-view { animation-name: fadeRight; }

/* Fade in from all directions (zoom + fade) */
@keyframes fadeAll {
    0% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}
:is(.animate, .animate-repeat).fade-all.in-view { animation-name: fadeAll; }


/* ==========================================
   SIMPLE SLIDE ANIMATIONS (Full viewport)
   ========================================== */

@keyframes slideUp {
    0% { transform: translateY(200%); }
    100% { transform: translateY(0); }
}
:is(.animate, .animate-repeat).slide-up.in-view { animation-name: slideUp; }

/* Special slide-up animation for centered images */
@keyframes slideUpCentered {
    0% { transform: translate(-50%, calc(-50% + 200%)); }
    100% { transform: translate(-50%, -50%); }
}
.hero-card-img.slide-up.in-view { animation-name: slideUpCentered; }

/* Special slide-up for rotated elements (like the divider square) */
@keyframes slideUpRotated {
    0% { transform: translateY(200%) rotate(45deg); }
    100% { transform: translateY(0) rotate(45deg); }
}
.hero-content__divider-square.slide-up.in-view { animation-name: slideUpRotated; }

@keyframes slideDown {
    0% { transform: translateY(-150%); }
    100% { transform: translateY(0); }
}
:is(.animate, .animate-repeat).slide-down.in-view { animation-name: slideDown; }

@keyframes slideLeft {
    0% { transform: translateX(-150%); }
    100% { transform: translateX(0); }
}
:is(.animate, .animate-repeat).slide-left.in-view { animation-name: slideLeft; }

@keyframes slideRight {
    0% { transform: translateX(150%); }
    100% { transform: translateX(0); }
}
:is(.animate, .animate-repeat).slide-right.in-view { animation-name: slideRight; }


/* ==========================================
   LINE ANIMATIONS (BORDERS)
   ========================================== */

/* Base line animation setup */
:is(.line-animate, .line-animate-repeat) {
    position: relative;
    contain: layout style;
}

:is(.line-animate, .line-animate-repeat)::before {
    content: '';
    position: absolute;
    background-color: var(--color-border-line);
    transition: width var(--animation-duration) var(--animation-easing-smooth),
                height var(--animation-duration) var(--animation-easing-smooth);
    pointer-events: none;
}

:is(.line-animate, .line-animate-repeat)::after {
    content: '';
    position: absolute;
    background-color: var(--color-border-line);
    transition: width var(--animation-duration) var(--animation-easing-smooth),
                height var(--animation-duration) var(--animation-easing-smooth);
    pointer-events: none;
}

/* Only apply will-change during animation to reduce memory usage */
:is(.line-animate, .line-animate-repeat).in-view::before {
    will-change: width, height;
}

:is(.line-animate, .line-animate-repeat).in-view::after {
    will-change: width, height;
}

/* Line-animate color modifiers */
:is(.line-animate, .line-animate-repeat).line-color-accent:is(::before, ::after) { background-color: var(--color-accent); }
:is(.line-animate, .line-animate-repeat).line-color-primary:is(::before, ::after) { background-color: var(--color-primary); }
:is(.line-animate, .line-animate-repeat).line-color-secondary:is(::before, ::after) { background-color: var(--color-secondary); }
:is(.line-animate, .line-animate-repeat).line-color-border:is(::before, ::after) { background-color: rgba(188, 188, 188, 0.39); }
:is(.line-animate, .line-animate-repeat).line-color-white:is(::before, ::after) { background-color: #ffffff; }
:is(.line-animate, .line-animate-repeat).line-color-black:is(::before, ::after) { background-color: #000000; }


/* ==========================================
   LINE DIRECTIONS - Priority System
   With 2 pseudo-elements, any 2 lines can be shown
   Priority: top > left > bottom > right
   ========================================== */

/* ::before - Priority 1: line-top */
:is(.line-animate, .line-animate-repeat).line-top::before {
    top: 0;
    left: 0;
    height: 1px;
    width: 0;
    transition-delay: var(--line-top-delay, 0s);
}
:is(.line-animate, .line-animate-repeat).line-top.in-view::before { width: 100%; }

/* ::before - Priority 2: line-left (only if no line-top) */
:is(.line-animate, .line-animate-repeat).line-left:not(.line-top)::before {
    top: 0;
    left: 0;
    width: 1px;
    height: 0;
    transition-delay: var(--line-left-delay, 0s);
}
:is(.line-animate, .line-animate-repeat).line-left:not(.line-top).in-view::before { height: 100%; }

/* ::before - Priority 3: line-bottom (only if no line-top and no line-left) */
:is(.line-animate, .line-animate-repeat).line-bottom:not(.line-top):not(.line-left)::before {
    bottom: 0;
    left: 0;
    height: 1px;
    width: 0;
    transition-delay: var(--line-bottom-delay, 0s);
}
:is(.line-animate, .line-animate-repeat).line-bottom:not(.line-top):not(.line-left).in-view::before { width: 100%; }

/* ::before - Priority 4: line-right (only if no other directions) */
:is(.line-animate, .line-animate-repeat).line-right:not(.line-top):not(.line-left):not(.line-bottom)::before {
    top: 0;
    right: 0;
    width: 1px;
    height: 0;
    transition-delay: var(--line-right-delay, 0s);
}
:is(.line-animate, .line-animate-repeat).line-right:not(.line-top):not(.line-left):not(.line-bottom).in-view::before { height: 100%; }


/* ::after - Priority 1: line-left (when line-top is present) */
:is(.line-animate, .line-animate-repeat).line-top.line-left::after {
    top: 0;
    left: 0;
    width: 1px;
    height: 0;
    transition-delay: var(--line-left-delay, 0s);
}
:is(.line-animate, .line-animate-repeat).line-top.line-left.in-view::after { height: 100%; }

/* ::after - Priority 2: line-bottom (when ::before is not drawing bottom) */
:is(.line-animate, .line-animate-repeat).line-bottom:is(.line-top, .line-left)::after {
    bottom: 0;
    left: 0;
    height: 1px;
    width: 0;
    transition-delay: var(--line-bottom-delay, 0s);
}
:is(.line-animate, .line-animate-repeat).line-bottom:is(.line-top, .line-left).in-view::after { width: 100%; }

/* ::after - Priority 3: line-right (when ::before is not drawing right and line-left hasn't claimed ::after) */
:is(.line-animate, .line-animate-repeat).line-right:is(.line-top, .line-bottom):not(.line-left)::after {
    top: 0;
    right: 0;
    width: 1px;
    height: 0;
    transition-delay: var(--line-right-delay, 0s);
}
:is(.line-animate, .line-animate-repeat).line-right:is(.line-top, .line-bottom):not(.line-left).in-view::after { height: 100%; }

/* ::after - Priority 4: line-right (when line-left is using ::before) */
:is(.line-animate, .line-animate-repeat).line-left.line-right:not(.line-top):not(.line-bottom)::after {
    top: 0;
    right: 0;
    width: 1px;
    height: 0;
    transition-delay: var(--line-right-delay, 0s);
}
:is(.line-animate, .line-animate-repeat).line-left.line-right:not(.line-top):not(.line-bottom).in-view::after { height: 100%; }

/* ==========================================
   USAGE & EXAMPLES
   ==========================================

   Single Line:
   <div class="line-animate line-top"></div>

   Two Lines with Independent Delays:
   <div class="line-animate line-top line-bottom"
        data-mobile-line-top-delay="0.2s"
        data-desktop-line-top-delay="0.4s"
        data-mobile-line-bottom-delay="0.5s"
        data-desktop-line-bottom-delay="0.8s">
   </div>

   Left + Right with Different Delays:
   <div class="line-animate line-left line-right"
        data-mobile-line-left-delay="0s"
        data-desktop-line-left-delay="1s"
        data-mobile-line-right-delay="0.3s"
        data-desktop-line-right-delay="1.5s">
   </div>

   ==========================================
   DIRECTION CLASSES:
   ==========================================

   • line-top     - Horizontal line along top edge
   • line-bottom  - Horizontal line along bottom edge
   • line-left    - Vertical line along left edge
   • line-right   - Vertical line along right edge

   Combine any two:
   • line-top + line-bottom
   • line-left + line-right

   ==========================================
   CSS CUSTOM PROPERTIES (Delays):
   ==========================================

   • --line-top-delay     (default: 0s)
   • --line-bottom-delay  (default: 0s)
   • --line-left-delay    (default: 0s)
   • --line-right-delay   (default: 0s)

   ==========================================
   DATA ATTRIBUTES (Responsive Delays):
   ==========================================

   Top Line:
   • data-mobile-line-top-delay
   • data-tablet-line-top-delay
   • data-desktop-line-top-delay

   Bottom Line:
   • data-mobile-line-bottom-delay
   • data-tablet-line-bottom-delay
   • data-desktop-line-bottom-delay

   Left Line:
   • data-mobile-line-left-delay
   • data-tablet-line-left-delay
   • data-desktop-line-left-delay

   Right Line:
   • data-mobile-line-right-delay
   • data-tablet-line-right-delay
   • data-desktop-line-right-delay

   Performance:
   ✓ Optimized transitions (width/height only)
   ✓ will-change only when .in-view
   ✓ Layout isolation with contain property
   ✓ Independent delay control per direction
   ✓ Handles <50 concurrent animations smoothly

   ========================================== */


/* ==========================================
   LINE ANIMATIONS (PSEUDO-ELEMENT LINES)
   ========================================== */

/* Horizontal line using ::before and ::after */
.line-horizontal {
    position: relative;
    display: inline-block;
}

.line-horizontal:is(::before, ::after) {
    content: '';
    position: absolute;
    height: 1px;
    background-color: var(--color-accent);
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    transition: width var(--animation-duration) var(--animation-easing-smooth);
}

.line-horizontal::before { left: 0; }
.line-horizontal::after { right: 0; }
.line-horizontal.in-view:is(::before, ::after) { width: 40px; }

/* Horizontal line delays */
.line-horizontal[style*="--line-delay"]:is(::before, ::after) { transition-delay: var(--line-delay); }
.line-horizontal.line-delay-100:is(::before, ::after) { transition-delay: 100ms; }
.line-horizontal.line-delay-200:is(::before, ::after) { transition-delay: 200ms; }
.line-horizontal.line-delay-300:is(::before, ::after) { transition-delay: 300ms; }
.line-horizontal.line-delay-400:is(::before, ::after) { transition-delay: 400ms; }
.line-horizontal.line-delay-500:is(::before, ::after) { transition-delay: 500ms; }
.line-horizontal.line-delay-600:is(::before, ::after) { transition-delay: 600ms; }
.line-horizontal.line-delay-700:is(::before, ::after) { transition-delay: 700ms; }
.line-horizontal.line-delay-800:is(::before, ::after) { transition-delay: 800ms; }
.line-horizontal.line-delay-1000:is(::before, ::after) { transition-delay: 1000ms; }
.line-horizontal.line-delay-1200:is(::before, ::after) { transition-delay: 1200ms; }
.line-horizontal.line-delay-1500:is(::before, ::after) { transition-delay: 1500ms; }

/* Horizontal line color variations */
.line-horizontal.line-color-accent:is(::before, ::after) { background-color: var(--coloraccent); }
.line-horizontal.line-color-primary:is(::before, ::after) { background-color: var(--colorprimary); }
.line-horizontal.line-color-secondary:is(::before, ::after) { background-color: var(--colorsecondary); }
.line-horizontal.line-color-border:is(::before, ::after) { background-color: var(--color-border); }
.line-horizontal.line-color-white:is(::before, ::after) { background-color: #ffffff; }
.line-horizontal.line-color-black:is(::before, ::after) { background-color: #000000; }

/* Grow from left only */
.line-horizontal.line-left-only::after { display: none; }
.line-horizontal.line-left-only.in-view::before { width: 80px; }

/* Grow from right only */
.line-horizontal.line-right-only::before { display: none; }
.line-horizontal.line-right-only.in-view::after { width: 80px; }

/* Vertical line using ::before and ::after */
.line-vertical {
    position: relative;
    display: inline-block;
}

.line-vertical:is(::before, ::after) {
    content: '';
    position: absolute;
    width: 1px;
    background-color: var(--color-accent);
    left: 50%;
    transform: translateX(-50%);
    height: 0;
    transition: height var(--animation-duration) var(--animation-easing-smooth);
}

.line-vertical::before { top: 0; }
.line-vertical::after { bottom: 0; }
.line-vertical.in-view:is(::before, ::after) { height: 40px; }

/* Vertical line delays */
.line-vertical[style*="--line-delay"]:is(::before, ::after) { transition-delay: var(--line-delay); }
.line-vertical.line-delay-100:is(::before, ::after) { transition-delay: 100ms; }
.line-vertical.line-delay-200:is(::before, ::after) { transition-delay: 200ms; }
.line-vertical.line-delay-300:is(::before, ::after) { transition-delay: 300ms; }
.line-vertical.line-delay-400:is(::before, ::after) { transition-delay: 400ms; }
.line-vertical.line-delay-500:is(::before, ::after) { transition-delay: 500ms; }
.line-vertical.line-delay-600:is(::before, ::after) { transition-delay: 600ms; }
.line-vertical.line-delay-700:is(::before, ::after) { transition-delay: 700ms; }
.line-vertical.line-delay-800:is(::before, ::after) { transition-delay: 800ms; }
.line-vertical.line-delay-1000:is(::before, ::after) { transition-delay: 1000ms; }
.line-vertical.line-delay-1200:is(::before, ::after) { transition-delay: 1200ms; }
.line-vertical.line-delay-1500:is(::before, ::after) { transition-delay: 1500ms; }

/* Vertical line color variations */
.line-vertical.line-color-accent:is(::before, ::after) { background-color: var(--coloraccent); }
.line-vertical.line-color-primary:is(::before, ::after) { background-color: var(--colorprimary); }
.line-vertical.line-color-secondary:is(::before, ::after) { background-color: var(--colorsecondary); }
.line-vertical.line-color-border:is(::before, ::after) { background-color: var(--color-border); }
.line-vertical.line-color-white:is(::before, ::after) { background-color: #ffffff; }
.line-vertical.line-color-black:is(::before, ::after) { background-color: #000000; }

/* Grow from top only */
.line-vertical.line-top-only::after { display: none; }
.line-vertical.line-top-only.in-view::before { height: 80px; }

/* Grow from bottom only */
.line-vertical.line-bottom-only::before { display: none; }
.line-vertical.line-bottom-only.in-view::after { height: 80px; }

/* Adjustable line length */
.line-horizontal.line-short.in-view:is(::before, ::after) { width: 20px; }
.line-horizontal.line-long.in-view:is(::before, ::after) { width: 100px; }
.line-vertical.line-short.in-view:is(::before, ::after) { height: 20px; }
.line-vertical.line-long.in-view:is(::before, ::after) { height: 100px; }

/* ==========================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .portfolio-item__image img,
    .fill-button::before,
    .fill-button::after,
    .fill-button__svg svg,
    .fill-button__svg::before,
    .fill-button,
    .fade-in-observer,
    :is(.animate, .animate-repeat),
    :is(.line-animate, .line-animate-repeat),
    :is(.line-horizontal, .line-vertical) {
        transition: none !important;
        animation: none !important;
    }

    .fade-in-observer,
    :is(.animate, .animate-repeat) {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }

    :is(.line-animate, .line-animate-repeat, .line-horizontal, .line-vertical):is(::before, ::after) {
        transition: none !important;
    }
}

/* Focus visible improvements */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent);
    color: var(--color-black);
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    z-index: var(--z-tooltip);
}

.skip-link:focus {
    top: 0;
}

/* Additional keyframe animations */
@keyframes slide-down-infinite {
    0% { transform: translateY(-5px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

#demo {
    background-color: var(--color-secondary);
    height: 100vh;
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
        -webkit-transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px);
        -webkit-transform: translate(-50%, -50%) translateY(-10px);
    }
}

/* ==========================================
   NAVBAR
   ========================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

nav.scrolled {
    background: linear-gradient(to bottom, rgb(36, 27, 23) 35%, rgba(51, 40, 32, 1) 100%);
}

nav.hidden {
    transform: translateY(-100%);
}

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

@media screen and (min-width: 768px) {
    .navbar {
        padding: 1rem 2rem;
    }
}

@media screen and (min-width: 1024px) {
    .navbar {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 2rem;
    }
}

.navbar-logo {
    height: 50px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

@media screen and (min-width: 1024px) {
    .navbar-logo {
        grid-column: 2;
        justify-self: center;
        height: 70px;
    }
}

.navbar-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Desktop Navigation Links */
.navbar-links {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
    align-items: center;
    overflow: hidden;
}

.navbar-links li {
    overflow: hidden;
}

.navbar-links a {
    color: white;
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 1rem;
    letter-spacing: 0.05em;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.navbar-links a:hover {
    color: var(--color-accent);
}

.navbar-links a:hover::after {
    width: 100%;
}

/* Show desktop nav on larger screens */
@media screen and (min-width: 1024px) {
    .navbar-links {
        display: flex;
        grid-column: 1;
        justify-self: start;
    }

    .navbar-links--right {
        grid-column: 3;
        justify-self: end;
    }

    .hamburger {
        display: none;
    }

    .menu-nav {
        padding-top: 8rem !important;
    }
}

/* Hamburger Button */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 50px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger .hamburger-line:nth-child(2) {
    width: 60%;
}

.hamburger .hamburger-line:nth-child(3) {
    width: 30%;
}

.hamburger:hover .hamburger-line:nth-child(2),
.hamburger:hover .hamburger-line:nth-child(3) {
    width: 100%;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    width: 100%;
    transform: translateX(-20px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    width: 100%;
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-secondary);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-overlay__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
}

.menu-nav {
    padding-top: 5rem;
}

.menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.menu-nav li {
    margin: 1.5rem 0;
    overflow: hidden;
}

.menu-nav a {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
    transform: translateY(100%);
    opacity: 0;
}

.menu-overlay.active .menu-nav a {
    animation: slideUpFadeIn 0.6s ease forwards;
}

.menu-overlay.active .menu-nav li:nth-child(1) a { animation-delay: 0.1s; }
.menu-overlay.active .menu-nav li:nth-child(2) a { animation-delay: 0.2s; }
.menu-overlay.active .menu-nav li:nth-child(3) a { animation-delay: 0.3s; }
.menu-overlay.active .menu-nav li:nth-child(4) a { animation-delay: 0.4s; }
.menu-overlay.active .menu-nav li:nth-child(5) a { animation-delay: 0.5s; }

@keyframes slideUpFadeIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.menu-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.4s ease;
}

.menu-nav a:hover::after {
    width: 100%;
}

.menu-nav a:hover {
    color: var(--color-accent);
}

.menu-overlay__footer {
    position: absolute;
    bottom: 3rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

.menu-overlay.active .menu-overlay__footer {
    opacity: 1;
    transform: translateY(0);
}

.menu-overlay__footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-sm);
    margin: 0;
}

/* ==========================================
   LANDING HERO
   ========================================== */

#landingHero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.landingHero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.landingHero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landingHero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
}

.hero-content__tag {
    margin-right: auto;
    padding-bottom: .25rem;
    overflow: hidden;
}

.hero-content__tag span {
    color: #BCBCBC;
    display: inline-block;
}

.hero-content__heading {
    margin-right: auto;
    overflow: hidden;
}

.hero-content__heading h1 {
    text-transform: uppercase;
    margin: 0;
    font-weight: 400;
    font-size: clamp(4rem, 2rem + 8.3vw, 6rem);
}

.hero-content__divider {
    height: 90px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    gap: 20px;
    overflow: hidden;
}

.hero-content__divider::before,
.hero-content__divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: rgba(217, 217, 217, 0.5);
    animation: expandLine 1.5s ease-out forwards;
}

.hero-content__divider::before {
    transform-origin: right;
}

.hero-content__divider::after {
    transform-origin: left;
}

@keyframes expandLine {
    from {
        transform: scaleX(0);
        opacity: 1;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.hero-content__divider-square {
    width: 60px;
    height: 60px;
    transform: rotate(45deg);
    overflow: hidden;
    border: 2px solid rgba(217, 217, 217, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-content__divider-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: rotate(-45deg) scale(1.5);
    transform-origin: center;
}

.hero-content__subheading {
    margin-left: auto;
    overflow: hidden;
}

.hero-content__subheading h1 {
    text-transform: uppercase;
    margin: 0;
    font-weight: 400;
    font-size: clamp(4rem, 2rem + 8.3vw, 6rem);
}

.hero-content__button {
    margin-left: auto;
    border: 1px solid white;
    margin-top: 2rem;
}

.hero-content__button a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(217, 217, 217, 0.32);
    padding: .5rem 1rem;
    margin: 5px;
    gap: .75rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-content__button a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(217, 217, 217, 0.32);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: -1;
    border-radius: 0;
}

.hero-content__button a:hover::before {
    width: 100%;
    height: 100%;
}

/* Button without anchor tag (for form submit buttons) */
.hero-content__button[type="submit"] {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(217, 217, 217, 0.32);
    padding: .5rem 1rem;
    margin: 5px;
    gap: .75rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.hero-content__button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(217, 217, 217, 0.32);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: -1;
    border-radius: 0;
}

.hero-content__button[type="submit"]:hover::before {
    width: 100%;
    height: 100%;
}

.hero-content__button svg {
    height: 10px;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.hero-content__button:hover svg {
    transform: rotate(45deg);
}

.hero-sub-content {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3;
    padding: 0;
}

.hero-sub-content__scroll {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, -31%);
    width: 265px;
    height: 265px;
    border-radius: 100%;
    background: linear-gradient(180deg, rgba(217, 217, 217, 0.32), rgba(217, 217, 217, 0.15));
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding-top: 2rem;
    mask-image: linear-gradient(black 0%, transparent 50%);
    -webkit-mask-image: linear-gradient(black 0%, transparent 50%);
}

.hero-sub-content__scroll span {
    text-align: center;
    font-size: 1rem;
    text-transform: uppercase;
}

.hero-sub-content__scroll svg {
    height: 20px;
    animation: scrollIndicatorSlide 1.5s ease-in-out infinite;
}

@keyframes scrollIndicatorSlide {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(10px);
        opacity: 0;
    }
}

.hero-sub-content__subtext {
    display: none;
}

@media screen and (min-width: 768px) {
    #landingHero {
        padding: 0 2rem;
    }

    .hero-content__heading {
        margin-bottom: -5rem;
    }

    .hero-content__subheading {
        margin-top: -5rem;
    }

    .hero-content__heading h1 {
        font-size: clamp(5rem, -1rem + 12.5vw, 7rem);
    }

    .hero-content__subheading h1 {
        font-size: clamp(5rem, -1rem + 12.5vw, 7rem);
    }

    .hero-sub-content__subtext {
        display: flex;
        flex-direction: column;
        padding-bottom: 2rem;
        padding-left: 2rem;
    }

    .hero-sub-content__subtext-line {
        overflow: hidden;
    }

    .hero-sub-content__subtext p {
        margin: 0;
        line-height: 20px;
    }
}

@media screen and (min-width: 1024px) {
    #landingHero {
        padding: 0 3rem;
    }

    .hero-content__tag span {
        font-size: 1.25rem;
    }

    .hero-content__heading h1 {
        font-size: clamp(7rem, 2.43rem + 7.14vw, 8rem);
    }

    .hero-content__subheading h1 {
        font-size: clamp(7rem, 2.43rem + 7.14vw, 8rem);
    }

    .hero-sub-content__subtext {
        padding-bottom: 3rem;
        padding-left: 3rem;
    }

    .hamburger {
        margin-left: auto;
    }
}

@media screen and (min-width: 1248px) {
    .hero-content__divider-square {
        height: 100px;
        width: 100px;
    }

    .hero-content__divider {
        height: 140px;
    }

    .hero-content__heading {
        margin-bottom: -7rem;
    }

    .hero-content__subheading {
        margin-top: -7rem;
    }
}

@media screen and (min-width: 1248px) and (max-width: 1440px) {
    #landingHero {
        padding: 0 4rem;
    }

    .hero-content__heading h1 {
        font-size: clamp(8rem, 1.5rem + 0.52vw, 9rem);
    }

    .hero-content__subheading h1 {
        font-size: clamp(8rem, 1.5rem + 0.52vw, 9rem);
    }

    .hero-sub-content__subtext {
        padding-bottom: 4rem;
        padding-left: 4rem;
    }
}

@media screen and (min-width: 1441px) {
    .hero-content__heading h1 {
        font-size: 9rem;
    }

    .hero-content__subheading h1 {
        font-size: 9rem;
    }
}

/* ==========================================
   DEMO SECTION
   ========================================== */

#demo {
    height: 100vh;
}






















#about {
    background: linear-gradient(to top, rgb(36, 27, 23) 35%, rgba(51, 40, 32, 1) 100%);
    padding: 4rem 1rem;
}

.about-header {
    width: 100%;
}

.about-header__tagline {
    padding-bottom: 2rem;
    overflow: hidden;
}

.about-header__tagline span {
    display: inline-block;
    overflow: hidden;
}

.about-header__tagline span p {
    color: var(--color-primary);
    margin: 0;
}

/* Force line color for about section */
.about-header__tagline.line-color-primary::before,
.about-header__tagline.line-color-primary::after {
    background-color: var(--color-primary) !important;
}









.about-intro {
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-intro__line {
    overflow: hidden;
}

.about-intro__line h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    line-height: normal;
}

.about-intro__line p {
    margin: 0;
}

.about-intro__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


.about-intro__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.about-intro__buttons .hero-content__button {
    margin: 0;
}


@media screen and (min-width: 768px) {
    .about-intro__line h2 {
        font-size: 32px;
    }

    .about-intro__line p {
        font-size: 20px;
    }

    .about-intro__content {
        margin-left: auto;
    }
}

@media screen and (min-width: 1024px) {
    #about {
        padding: 6.25rem 2rem;
    }
    
    .about-intro__line h2 {
        font-size: 2.5rem;
    }
}

@media screen and (min-width: 1248px) {
    .about-intro__line h2 {
        font-size: 2.75rem;
    }
}




/* ==========================================
   SERVICES SECTION
   ========================================== */

#services {
    display: flex;
    flex-direction: column;
    padding: 4rem 0;
}

/* Services Header */
.services-header {
    width: 100%;
    padding: 2rem 1rem;
}

.services-header__tag {
    padding-bottom: 2rem;
    overflow: hidden;
}

.services-header__tag span {
    display: inline-block;
    overflow: hidden;
}

.services-header__tag span p {
    color: var(--color-secondary);
    margin: 0;
}

.services-header__title {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.services-header__title-line {
    overflow: hidden;
}

.services-header__title-line h2 {
    margin: 0;
    color: var(--color-secondary);
    font-weight: 500;
    font-size: 2rem;
}

/* Services Header - Tablet & Desktop */
@media screen and (min-width: 1024px) {
    .services-header {
        padding: 2.5rem 2rem;
    }

    .services-header__title-line h2 {
        font-size: 2.5rem;
    }
}

@media screen and (min-width: 1248px) {
    .services-header__title-line h2 {
        font-size: 3rem;
    }
}

/* ==========================================
   SERVICES CARDS
   ========================================== */

.services-card {
    width: 100%;
    position: sticky;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    overflow: hidden;
    background-color: var(--color-bg-primary);
}

/* Overlay for cards WITHOUT line-animate - uses ::before */
.services-card:not(.line-animate):not(.line-animate-repeat)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, var(--overlay-opacity, 0));
    transition: background-color 0.1s ease;
    pointer-events: none;
    z-index: 10;
}

/* Overlay for cards WITH line-animate - uses ::after to avoid conflict */
.services-card.line-animate::after,
.services-card.line-animate-repeat::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, var(--overlay-opacity, 0));
    transition: background-color 0.1s ease;
    pointer-events: none;
    z-index: 10;
}

.services-card__visual {
    width: 100%;
    overflow: hidden;
    height: 285px;
}

.services-card__visual img {
    width: 100%;
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-card.in-viewport .services-card__visual img {
    transform: scale(1.05);
}

/* Extra zoom when fully visible in viewport (100% threshold) */
.services-card.fully-visible .services-card__visual img {
    transform: scale(1.2);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 2rem 1rem;
    padding-bottom: 4rem;
}


.services-card__title {
    display: flex;
    gap: .25rem;
    width: 100%;
    padding-bottom: 2rem;
}

.services-card__title span {
    overflow: hidden;
}

.services-card__title h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    color: var(--color-secondary);
}

.services-card__info {
    overflow: hidden;
}

.services-card__subtitle {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    padding-bottom: 2rem;
}

.services-card__subtitle span {
    font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem);
    margin: 0;
    color: var(--color-secondary);
    line-height: normal;
    font-weight: 500;
}

.services-card__button {
    background-color: var(--color-accent);
    border-radius: 30px;
    margin-right: auto;
}

.services-card__button a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1rem;
}

.services-card__button span {
    font-size: .75rem;
    color: var(--color-secondary);
    font-weight: bold;
    text-transform: uppercase;
}

.services-card__button svg {
    height: 15px;
    color: var(--color-secondary);
}

.services-card__button--desktop {
    display: none;
}

.services-card__visual--desktop {
    display: none;
}

/* Services Cards - Desktop Layout */
@media screen and (min-width: 1024px) {
    .services-card {
        flex-direction: row;
        padding-bottom: 4rem;
        padding-top: 2rem;
    }

    .services-card__visual {
        width: 40%;
        height: clamp(250px, 25vw, 350px);
        align-self: stretch;
    }

    .services-card__visual img {
        height: 100%;
        object-fit: cover;
    }

    .services-card__content {
        width: 60%;
        height: clamp(250px, 25vw, 350px);
        flex-direction: row;
        gap: 0rem;
        padding-top: 0;
        padding-bottom: 0;
        overflow: hidden;
        padding: 0 2rem;
        padding-left: 3rem;
    }

    .services-card__title {
        flex-direction: column;
        gap: 0;
    }

    .services-card__title h3 {
        font-weight: bold;
        line-height: 32px;
        font-size: 2rem;
    }

    .services-card__subtitle span {
        font-size: 1rem;
    }

    .services-card__button--mobile {
        display: none;
    }

    .services-card__button--desktop {
        display: block;
    }

    .services-card__visual--desktop {
        height: clamp(75px, 15vw, 100px);
        width: 100%;
        margin-top: auto;
        display: block;
        background-color: var(--color-accent);
    }

    .services-card__visual--desktop img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .services-card__info {
        display: flex;
        flex-direction: column;
        max-width: 300px;
        margin-left: auto;
    }
}

@media screen and (min-width: 1248px) {
    .services-card__content {
        padding-left: 4rem;
    }

    .services-card {
        padding-top: 3rem;
    }
}

/* Service Cards - Z-index Stacking */
#services .services-card:nth-child(1) {
    top: 0;
    z-index: 1;
}

#services .services-card:nth-child(2) {
    top: 0rem;
    z-index: 2;
}

#services .services-card:nth-child(3) {
    top: 0rem;
    z-index: 3;
}

#services .services-card:nth-child(4) {
    top: 0rem;
    z-index: 4;
}

#services .services-card:nth-child(5) {
    z-index: 5;
    top: 0;
}
















/* ==========================================
   CALL TO ACTION SECTION
   ========================================== */

/* Base Styles */
#callToAction {
    position: relative;
    background: linear-gradient(to top, rgb(36, 27, 23) 35%, rgba(51, 40, 32, 1) 100%);
    padding: 4rem 1rem;
}

/* Header */
.cta-header {
    width: 100%;
}

.cta-header__tag {
    padding-bottom: 2rem;
    overflow: hidden;
}

.cta-header__tag span {
    display: inline-block;
    overflow: hidden;
}

.cta-header__tag span p {
    color: var(--color-primary);
    margin: 0;
}

.cta-header__tag.line-color-primary::before,
.cta-header__tag.line-color-primary::after {
    background-color: var(--color-primary) !important;
}

/* Mobile Content */
.cta-content--mobile {
    margin-top: 2rem;
}

.cta-content--desktop {
    display: none;
}

/* Tagline */
.cta-tagline {
    margin-top: 3rem;
}

.cta-tagline__text {
    display: flex;
    gap: 0.25rem;
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    overflow: hidden;
}

.cta-tagline__text span {
    display: inline-block;
}

/* Title */
.cta-title {
    width: 100%;
    margin-top: 1rem;
}

.cta-title__line {
    width: fit-content;
    overflow: hidden;
}

.cta-title__line h2 {
    font-size: var(--font-3xl);
    color: var(--color-primary);
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 500;
}

.cta-title .cta-title__line:nth-child(2) {
    margin-left: auto;
}

/* Visual (Image) */
.cta-visual {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.cta-visual img {
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Description */
.cta-description {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    overflow: hidden;
}

.cta-description__text {
    overflow: hidden;
}

.cta-description__text p {
    margin: 0;
    line-height: 1.6;
    color: var(--color-primary);
}

/* Button */
.cta-button {
    margin-top: 2rem;
}

.cta-button .hero-content__button {
    margin: 0;
}

/* Responsive Styles */
@media screen and (min-width: 768px) {
    #callToAction {
        padding: 6.25rem 2rem;
        padding-top: 0;
    }

    .cta-content {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        margin-top: 2rem;
        height: 500px;
    }

    .cta-header {
        padding-top: 6.25rem;
    }

    .cta-content--mobile {
        display: none;
    }

    .cta-content--desktop {
        display: flex;
    }

    .cta-content__left {
        width: 50%;
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
    }

    .cta-content__left .cta-title__line h2 {
        font-size: clamp(3rem, 6.25vw, 4rem);
    }

    .cta-content__left .cta-title {
        margin: 0;
    }
    
    .cta-description {
        margin: 0;
    }

    .cta-content__right {
        margin-left: auto;
        width: 30%;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2;
    }

    .cta-tagline {
        margin: 0;
    }


    .cta-content__right .cta-description__text p {
        font-size: 14px;
    }

    .cta-media {
        margin-top: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .cta-media__video {
        width: 150px;
        height: 75px;
        overflow: hidden;
    }

    .cta-media__video video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
        filter: brightness(0.7);
    }

    .cta-media__description {
        width: 275px;
    }

    .cta-media__description span {
        font-size: 14px;
    }

    .cta-content--desktop .cta-visual {
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 300px;
        overflow: hidden;
        z-index: 1;
        margin-top: 0;
    }

    .cta-content--desktop .hero-content__button {
        position: absolute;
        top: 80%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
    }

}

@media screen and (min-width: 1024px) {
    #callToAction {
        padding: 6.25rem 3rem;
        padding-top: 0;
    }
    
    .cta-content {
        height: 700px;
        margin: 0;
    }
    .cta-content--desktop .cta-visual {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 400px;
        overflow: hidden;
        z-index: 1;
        margin-top: 0;
    }

    .cta-content--desktop .hero-content__button {
        top: 90%;
    }

    .cta-tagline__text {
        margin-top: 6rem;
    }

    .cta-content__left .cta-title__line h2 {
        font-size: clamp(5rem, calc(7.14vw + 6.86px), 6rem);
    }

    .cta-content__left {
        width: 60%;
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
    }

    .cta-media__video {
        width: 250px;
        height: 125px;
        overflow: hidden;
    }
}

@media screen and (min-width: 1248px) {
    .cta-tagline__text {
        margin-top: 8rem;
    }

    .cta-content__right .cta-description__text p {
        font-size: 1.25rem;
    }

    .cta-media__video {
        width: 300px;
        height: 150px;
        overflow: hidden;
    }
}

@media screen and (min-width: 1440px) {
    .cta-content__left {
        width: 50%;
    }
}

































/* Contact Section Container */
#contact {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: linear-gradient(to bottom, rgb(36, 27, 23) 35%, rgba(51, 40, 32, 1) 100%);
    padding: 4rem 1rem;
}

/* Contact Header */
.contact-header {
    width: 100%;
    margin-bottom: 5rem;
}

.contact-header__tag {
    padding-bottom: 2rem;
    overflow: hidden;
}

.contact-header__tag span {
    display: inline-block;
    overflow: hidden;
}

.contact-header__tag span p {
    color: var(--color-primary);
    margin: 0;
}

.contact-header__tag.line-color-primary::before,
.contact-header__tag.line-color-primary::after {
    background-color: var(--color-primary) !important;
}


















/* Contact Form Container */
.contact-container {
    border-radius: 20px;
    position: relative;
    width: 100%;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 0rem;
    color: var(--colorprimary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition);
    background-color: unset;
    border: none;
    border-bottom: 1px solid white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

.form-select option {
    color: var(--color-accent);
    background-color: var(--color-secondary);
}

/* Checkbox Styles */
.checkbox-group {
    margin-bottom: 2rem;
}

.checkbox-group .form-label {
    margin-bottom: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0.5rem;
    border-radius: 8px;
}

.checkbox-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.checkbox-input {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-accent);
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    cursor: pointer;
    transition: all var(--transition);
}

.checkbox-input:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.checkbox-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-secondary);
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label {
    font-size: 1rem;
    color: var(--colorprimary);
    cursor: pointer;
    line-height: 1.4;
    font-family: var(--font-primary);
}

#contactButton {
    width: 200px;
}


/* Form Row Layout */
@media (min-width: 768px) {
    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* Form Validation Styles */
.form-input:invalid:not(:focus):not(:placeholder-shown),
.form-textarea:invalid:not(:focus):not(:placeholder-shown),
.form-select:invalid:not(:focus) {
    border-color: #ff4444;
}

.form-input:valid:not(:focus):not(:placeholder-shown),
.form-textarea:valid:not(:focus):not(:placeholder-shown),
.form-select:valid:not(:focus) {
    border-color: #44ff44;
}

::placeholder {
    color: var(--colorprimary);
    opacity: 0.7;
}

@media screen and (min-width: 768px) {
    #contact {
        padding: 6.25rem 2rem;
    }
    .contact-header h2 {
        font-size: var(--fontheader768);
    }
}

@media screen and (min-width:1024px) {
    #contact {
        padding: 6.25rem 3rem;
    }

    .contact-container {
        width: 800px;
    }
    
    .contact-intro > h2 {
        font-size: 4rem !important;
        line-height: 4.25rem !important;
    }
}

@media screen and (min-width: 1248px) {
    .contact-header h2 {
        font-size: var(--fontheader1248);
        margin-bottom: 1rem;
    }
}

@media screen and (min-width:1440px) {
    .contact-container {
        width: 1200px;
    }
}













































/* ==========================================================================
   13. FOOTER
========================================================================== */
.footer-section {
          background: #131313;
          position: relative;
        }

        .footer-container {
            padding: 2rem 1rem;
        }

        .footer-cta {
          border-bottom: 1px solid #373636;
          padding-bottom: 1rem;
        }

        .row {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 1rem;
        }

        .single-cta svg {
          color: var(--coloraccent);
          height: 25px;
          float: left;
          margin-top: 5px;
        }
        .cta-text {
          padding-left: 15px;
          display: inline-block;
        }
        .cta-text h4 {
          color: #fff;
          font-size: 20px;
          font-weight: 600;
          margin-bottom: 2px;
          margin-top: 0;
          font-family: var(--font-primary);
        }
        .cta-text span {
          color: #757575;
          font-size: 15px;
        }
        .footer-content {
          position: relative;
          z-index: 2;
        }
        .footer-pattern img {
          position: absolute;
          top: 0;
          left: 0;
          height: 330px;
          background-size: cover;
          background-position: 100% 100%;
        }
        .footer-logo {
          margin-bottom: 30px;
        }
        .footer-logo img {
            max-width: 200px;
            border-radius: 5px;
        }
        .footer-text p {
          margin-bottom: 14px;
          font-size: 14px;
          color: #7e7e7e;
          line-height: 28px;
        }
        .footer-social-icon-wrapper {
          display: flex;
          padding-bottom: 1rem;
        }
        .footer-social-icon span {
          color: #fff;
          display: block;
          font-size: 20px;
          font-weight: 700;
          font-family: 'Poppins', sans-serif;
          margin-bottom: 20px;
        }
        .footer-social-icon a {
          color: #fff;
          font-size: 16px;
          margin-right: 15px;
        }
        .footer-social-icon svg {
          height: 40px;
          width: 40px;
          text-align: center;
          line-height: 38px;
          border-radius: 50%;
        }
        .facebook-bg{
          background: #3B5998;
        }
        .twitter-bg{
          background: #55ACEE;
        }
        .google-bg{
          background: #DD4B39;
        }
        .footer-widget {
          padding-top: 1rem;
          font-family: var(--font-primary);
        }
        .footer-widget-heading h3 {
          color: #fff;
          font-size: 20px;
          font-weight: 600;
          margin-bottom: 40px;
          position: relative;
        }
        .footer-widget-heading h3::before {
          content: "";
          position: absolute;
          left: 0;
          bottom: -15px;
          height: 2px;
          width: 50px;
          background: var(--coloraccent);
        }
        .footer-widget ul li {
          display: inline-block;
          float: left;
          width: 50%;
          margin-bottom: 12px;
        }
        .footer-widget ul li a:hover{
          color: var(--coloraccent);
        }
        .footer-widget ul li a {
          color: #878787;
          text-transform: capitalize;
          text-decoration: none;
        }
        .subscribe-form {
          position: relative;
          overflow: hidden;
        }
        .subscribe-form input {
          width: 100%;
          padding: 14px 28px;
          background: #2E2E2E;
          border: 1px solid #2E2E2E;
          color: #fff;
        }
        .subscribe-form button {
            position: absolute;
            right: 0;
            background: var(--coloraccent);
            padding: 13px 20px;
            border: 1px solid var(--coloraccent);
            top: 0;
            cursor: pointer;
        }
        .subscribe-form button svg {
          color: #fff;
          height: 25px;
          transform: rotate(-6deg);
        }
        .copyright-area{
          background: #202020;
          padding-top: 1rem;
          margin-top: 2rem;
        }
        .copyright-text p {
          margin: 0;
          font-size: 14px;
          color: #878787;
          text-align: center;
        }
        .copyright-text p a{
          color: var(--coloraccent);
          text-decoration: none;
        }
        .footer-menu {
            padding-bottom: 2rem;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .footer-menu li {
          display: inline-block;
        }
        .footer-menu li:hover a{
          color: var(--coloraccent);
        }
        .footer-menu li a {
          font-size: 14px;
          color: #878787;
          text-decoration: none;
          font-family: var(--font-primary);
        }
        .footer-menu ul {
            list-style: none;
            margin-bottom: 0;
            padding-left: 0;
            display: flex;
            gap: 2rem;
        }


@media screen and (min-width: 768px) {
    .footer-container {
        padding: 3rem 2rem;
    }
}
/* Updated media query to ensure footer widgets stay on same line and proper CTA positioning */
@media screen and (min-width: 992px) {
  .footer-container {
    margin: 0 auto; /* Center the container */
    display: flex;
    flex-direction: column;
    padding: 3rem;
  }
  
  /* Footer CTA section - ensure it stays on top and centered */
  .footer-cta {
    width: 100%;
    order: 1;
  }
  
  .footer-cta .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
  }
  
  /* Footer content section - comes after CTA and centered */
  .footer-content {
    width: 100%;
    order: 2;
  }
  
  .footer-content .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    margin: 0 auto;
  }
  
  .footer-content .row > [class*="col-"] {
    flex: 1;
    max-width: none;
    margin-bottom: 0;
  }
  
  .footer-widget {
    height: 100%;
  }
}