/* ===========================
   CSS VARIABLES & CUSTOM PROPERTIES
   Define global design tokens for consistent styling
   =========================== */
:root {
    /* Colors - Matching original Kreisson palette */
    --color-primary: #C9AA44;      /* Kreisson gold - exact match */
    --color-primary-dark: #B8941F; /* Darker gold for hover states */
    --color-secondary: #323232;    /* Dark gray - exact match */
    --color-text: #323232;         /* Main text color - exact match */
    --color-text-light: #5A5A5A;   /* Lighter text for descriptions */
    --color-background: #ffffff;   /* White background */
    --color-background-light: #F7F7F7; /* Very light gray background */
    --color-background-dark: #2A2A2A; /* Dark background sections */
    --color-border: #E5E5E5;       /* Border color */
    
    /* Typography - Matching original fonts and sizes */
    --font-family-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-family-heading: 'Playfair Display', Georgia, serif;
    --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-medium: 18px;
    --font-size-large: 20px;
    --font-size-h1: 3.5rem;        /* Larger hero title */
    --font-size-h2: 2.75rem;
    --font-size-h3: 1.75rem;
    --line-height-base: 1.7;       /* More spacious line height */
    --line-height-heading: 1.1;
    
    /* Spacing - Matching original generous spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
    --spacing-xxxl: 8rem;
    
    /* Layout */
    --container-max-width: 1400px;  /* Wider container like original */
    --border-radius: 0px;           /* No border radius - clean lines */
    --border-radius-large: 0px;
    
    /* Shadows - Subtle like original */
    --shadow-light: 0 2px 20px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 16px 60px rgba(0, 0, 0, 0.15);
    
    /* Transitions - Slower, more elegant */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 1s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ===========================
   RESET & BASE STYLES
   Normalize browser defaults and set foundation styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
}

/* ===========================
   TYPOGRAPHY
   Heading and text styling matching original Kreisson design
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    line-height: var(--line-height-heading);
    margin-bottom: var(--spacing-md);
    font-weight: 400;               /* Lighter weight like original */
    letter-spacing: -0.02em;        /* Tighter letter spacing */
}

h1 {
    font-size: var(--font-size-h1);
    color: var(--color-secondary);
    font-weight: 300;               /* Very light weight for hero */
    line-height: 0.9;               /* Tighter line height for impact */
}

h2 {
    font-size: var(--font-size-h2);
    color: var(--color-secondary);
    font-weight: 300;
}

h3 {
    font-size: var(--font-size-h3);
    color: var(--color-secondary);
    font-weight: 400;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
    font-family: var(--font-family-body);
    font-size: var(--font-size-medium);  /* Larger body text */
    line-height: var(--line-height-base);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* ===========================
   ACCESSIBILITY
   Screen reader and keyboard navigation support
   =========================== */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: var(--spacing-sm);
    background-color: var(--color-secondary);
    color: var(--color-background);
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===========================
   UTILITY CLASSES
   Reusable helper classes for common styling patterns
   =========================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section__title {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.section__description {
    text-align: center;
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   BUTTON COMPONENTS
   Matching original Kreisson button styling
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border: 1px solid var(--color-secondary);
    background: transparent;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    color: var(--color-secondary);
}

.btn--primary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
}

.btn--primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-background);
    transform: none;
    box-shadow: none;
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.btn--secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-background);
    transform: none;
}

.btn--outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary) !important;
}

.btn--outline:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
    transform: none;
}

/* Button with icon animation */
.btn--icon svg {
    transition: transform var(--transition-fast);
    width: 12px;
    height: 12px;
}

.btn--icon:hover svg {
    transform: translateX(2px);
}

/* Hero section button styling - glass morphism effect */
.hero .btn--primary {
    padding: 0.75rem 2rem; /* Reduced vertical padding for slender look */
    font-size: 0.9rem; /* Slightly smaller font */
    font-weight: 400; /* Slightly heavier for better legibility */
    letter-spacing: 2px; /* Increased letter spacing for elegance */
    border-radius: 25px; /* More rounded for sleek look */
    min-height: auto; /* Remove any minimum height constraints */
    height: 50px; /* Fixed height for consistency */
    text-transform: none; /* Remove uppercase transform for cleaner look */
    
    /* Glass morphism effect with charcoal */
    background: linear-gradient(135deg, 
        rgba(80, 80, 80, 0.6) 0%, 
        rgba(65, 65, 65, 0.5) 50%, 
        rgba(55, 55, 55, 0.4) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 100, 100, 0.3);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero .btn--primary:hover {
    transform: translateY(-2px); /* Subtle lift effect for sleek interaction */
    background: linear-gradient(135deg, 
        rgba(90, 90, 90, 0.65) 0%, 
        rgba(75, 75, 75, 0.55) 50%, 
        rgba(65, 65, 65, 0.45) 100%);
    border: 1px solid rgba(120, 120, 120, 0.4);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* ===========================
   HEADER & NAVIGATION
   Site header matching original Kreisson design
   =========================== */
.header {
    background-color: var(--color-background);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: none;
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    padding: var(--spacing-sm) 0;
    transform: translate3d(0, 0, 0);
    /* iOS Safari fixes */
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    /* Safe area support for iOS notch */
    padding-top: max(var(--spacing-sm), env(safe-area-inset-top));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    /* Ensure proper rendering on iOS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Force hardware acceleration on iOS */
    -webkit-perspective: 1000;
    perspective: 1000;
}

.header--scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid rgba(229, 229, 229, 0.5);
}

.header--hidden {
    transform: translate3d(0, -100%, 0);
    -webkit-transform: translate3d(0, -100%, 0);
}



.nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-lg);
    max-width: var(--container-max-width);
    margin: 0 auto;
    /* iOS Safari fixes */
    min-height: 60px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav__logo-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.nav__logo-link:hover {
    transform: translateY(-1px);
}

.nav__logo-link:hover .nav__logo-text {
    color: var(--color-primary);
}

.nav__logo-img {
    height: 32px;
    width: 32px;
    object-fit: cover;
    border-radius: 20px;
}

.nav__logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--color-accent);
    color: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    font-family: var(--font-family-heading);
    border-radius: 4px;
    text-transform: uppercase;
}

.nav__logo-text {
    color: var(--color-secondary);
    font-weight: 400;
    font-size: var(--font-size-large);
    letter-spacing: 3px;
    font-family: var(--font-family-heading);
    /* iOS Safari fixes */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure text visibility on iOS */
    display: block;
    white-space: nowrap;
    text-rendering: optimizeLegibility;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav__link {
    color: var(--color-text);
    font-weight: 400;
    padding: var(--spacing-sm) 0;
    font-size: var(--font-size-base);
    text-transform: none;
    letter-spacing: 1px;
    transition: all var(--transition-fast);
    position: relative;
    display: inline-block;
}

.nav__link:hover {
    color: var(--color-primary);
    transform: translateY(-1px);
}

.nav__link--cta {
    background: linear-gradient(135deg, 
        var(--color-primary) 0%, 
        rgba(201, 170, 68, 0.9) 100%);
    color: var(--color-background);
    padding: 10px 24px;
    text-transform: none;
    letter-spacing: 1px;
    font-weight: 500;
    border-radius: 25px;
    box-shadow: 0 3px 12px rgba(201, 170, 68, 0.3);
    border: 1px solid rgba(201, 170, 68, 0.4);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav__link--cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.nav__link--cta::after {
    display: none;
}

/* Enhanced CTA hover animation */
.nav__link--cta:hover {
    background: linear-gradient(135deg, 
        rgba(201, 170, 68, 1) 0%, 
        rgba(201, 170, 68, 0.95) 100%);
    color: var(--color-background);
    border-color: rgba(201, 170, 68, 0.8);
}

.nav__link--cta:hover::before {
    left: 100%;
}

/* Mobile navigation toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 170, 68, 0.3);
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1001;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* iOS Safari fixes */
    -webkit-appearance: none;
    appearance: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    /* Ensure proper touch target on iOS */
    min-width: 44px;
    min-height: 44px;
    /* Better font rendering on iOS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav__toggle:hover {
    background: rgba(201, 170, 68, 0.15);
    border-color: var(--color-primary);
    box-shadow: 0 6px 25px rgba(201, 170, 68, 0.3);
    transform: translateY(-2px);
}

.nav__toggle:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(201, 170, 68, 0.2);
}

.nav__toggle-bar {
    width: 22px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), rgba(201, 170, 68, 0.8));
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    margin: 3px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    /* iOS Safari fixes */
    -webkit-transform-origin: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Ensure bars are visible on iOS */
    min-height: 2px;
    display: block;
}

/* Animated hamburger to X transformation */
.nav__toggle.active {
    background: rgba(201, 170, 68, 0.2);
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(201, 170, 68, 0.4);
}

.nav__toggle.active .nav__toggle-bar {
    background: var(--color-primary);
}

.nav__toggle.active .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav__toggle.active .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   HERO SECTION
   Main landing section matching original Kreisson design
   =========================== */
.hero {
    background: url('assets/27669-365224683_small.mp4');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: calc(120px + var(--spacing-xxxl)) var(--spacing-lg) var(--spacing-xxxl);
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    background-color: var(--color-background-light);
}

/* Hero Background Video */
.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: var(--color-background-dark);
}

.hero__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-xl);
    align-items: start;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero__content {
    text-align: left;
    z-index: 2;
    margin-top: 25vh;
}

.hero__title {
    margin-bottom: var(--spacing-xl);
    color: var(--color-secondary);
    font-size: clamp(3rem, 6vw, 5.5rem);
    text-transform: none; /* Allow mixed case styling */
    letter-spacing: -0.02em;
    font-weight: 300;
    line-height: 0.9;
}

.hero__title .yellow-text {
    color: var(--color-primary);
    display: block;
    margin-top: var(--spacing-sm);
}

.hero__title .gold-text {
    color: var(--color-primary);
}

.hero__title .black-text {
    color: var(--color-secondary);
}

/* Text reveal animation - left to right flow */
.text-reveal .word {
    display: inline-block;
    margin-right: 0.3em;
    overflow: hidden;
    vertical-align: top;
}

.text-reveal .word-inner {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.text-reveal .word.revealed .word-inner {
    transform: translateY(0);
}

.hero__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-lg);
    position: relative;
    margin-top: 40vh;
    height: 100%;
}

.hero__subtitle {
    font-size: var(--font-size-large);
    color: var(--color-secondary);
    margin: 0;
    font-weight: 300;
    font-family: var(--font-family-body);
    text-align: right;
    font-style: italic;
    letter-spacing: 1px;
}

.hero__actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
    margin-top: var(--spacing-lg);
}

.hero__badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__badge-img {
    width: 200px;
    height: 200px;
    animation: rotate 30s linear infinite;
    filter: drop-shadow(0 10px 30px rgba(201, 170, 68, 0.2));
}

/* Arrow down animation - glass morphism effect */
.arrow-down {
    margin-left: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    
    /* Glass morphism effect with charcoal */
    background: linear-gradient(135deg, 
        rgba(80, 80, 80, 0.6) 0%, 
        rgba(65, 65, 65, 0.5) 50%, 
        rgba(55, 55, 55, 0.4) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 100, 100, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.arrow-down:hover {
    background: linear-gradient(135deg, 
        rgba(90, 90, 90, 0.65) 0%, 
        rgba(75, 75, 75, 0.55) 50%, 
        rgba(65, 65, 65, 0.45) 100%);
    border: 1px solid rgba(120, 120, 120, 0.4);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.arrow-down svg path {
    stroke: #ffffff;
}

.arrow-down:hover svg path {
    stroke: #ffffff;
}

.arrow-down svg {
    width: 12px;
    height: 20px;
    transform: rotate(90deg);
    transition: all var(--transition-fast);
}

/* ===========================
   SECTION LAYOUTS
   Common section styling matching original spacing
   =========================== */
section {
    padding: var(--spacing-xxxl) 0;
}

.section__title {
    margin-bottom: var(--spacing-xl);
    text-align: center;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: var(--font-size-h2);
}

/* Override uppercase for non-hero sections */
.contract-completion .section__title,
.expertise .section__title,
.showcase .section__title,
.protect-projects .section__title,
.contact .section__title {
    text-transform: none;
}

.section__description {
    text-align: center;
    font-size: var(--font-size-medium);
    margin-bottom: var(--spacing-xxxl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ===========================
   SECTION SEPARATOR
   Elegant visual separator between sections
   =========================== */
.section-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) 0;
    background-color: var(--color-secondary);
    gap: var(--spacing-md);
    max-width: 100%;
    margin: 0;
}

.separator-line {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-primary) 20%, 
        var(--color-primary) 80%, 
        transparent 100%);
    flex: 1;
    opacity: 0.8;
}

.separator-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.separator-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.9;
    animation: dotPulse 2s ease-in-out infinite;
}

.separator-dots .dot:nth-child(2) {
    animation-delay: 0.3s;
}

.separator-dots .dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.contract-completion {
    background-color: var(--color-background-dark);
    color: var(--color-background);
    position: relative;
    background-image: url('assets/358466.webp');
    background-size: 110%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: var(--spacing-xxxl) 0 calc(var(--spacing-xxxl) * 2);
    min-height: 40vh;
    overflow: hidden;
    animation: backgroundZoom 20s ease-in-out infinite alternate;
}

@keyframes backgroundZoom {
    0% {
        background-size: 110%;
        background-position: center top;
    }
    50% {
        background-size: 120%;
        background-position: center center;
    }
    100% {
        background-size: 110%;
        background-position: center bottom;
    }
}

.contract-completion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(42, 42, 42, 0.9) 0%, 
        rgba(42, 42, 42, 0.7) 20%, 
        rgba(42, 42, 42, 0.5) 40%, 
        rgba(42, 42, 42, 0.3) 60%, 
        rgba(42, 42, 42, 0.5) 80%, 
        rgba(42, 42, 42, 0.7) 100%);
    z-index: 1;
    animation: overlayPulse 8s ease-in-out infinite alternate;
}

@keyframes overlayPulse {
    0% {
        opacity: 0.8;
        background: linear-gradient(45deg, 
            rgba(42, 42, 42, 0.9) 0%, 
            rgba(42, 42, 42, 0.7) 20%, 
            rgba(42, 42, 42, 0.5) 40%, 
            rgba(42, 42, 42, 0.3) 60%, 
            rgba(42, 42, 42, 0.5) 80%, 
            rgba(42, 42, 42, 0.7) 100%);
    }
    100% {
        opacity: 1;
        background: linear-gradient(135deg, 
            rgba(42, 42, 42, 0.8) 0%, 
            rgba(42, 42, 42, 0.6) 25%, 
            rgba(42, 42, 42, 0.4) 50%, 
            rgba(42, 42, 42, 0.6) 75%, 
            rgba(42, 42, 42, 0.8) 100%);
    }
}

.contract-completion::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        transparent 0%, 
        rgba(201, 170, 68, 0.05) 40%, 
        transparent 70%);
    animation: goldShimmer 12s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes goldShimmer {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0;
    }
    25% {
        opacity: 0.3;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 0.1;
    }
    75% {
        opacity: 0.3;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0;
    }
}

.contract-completion .container {
    position: relative;
    z-index: 2;
    padding-top: 20vh;
    animation: contentFloat 6s ease-in-out infinite alternate;
}

@keyframes contentFloat {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-10px);
    }
}

.contract-completion .section__title {
    color: var(--color-primary);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(201, 170, 68, 0.3);
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.7),
            0 0 20px rgba(201, 170, 68, 0.3),
            0 0 30px rgba(201, 170, 68, 0.1);
    }
    100% {
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.7),
            0 0 30px rgba(201, 170, 68, 0.5),
            0 0 40px rgba(201, 170, 68, 0.2);
    }
}

.contract-completion .section__description {
    color: var(--color-background);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.contract-completion__image {
    display: none;
}

.image-credit {
    display: block;
    font-size: var(--font-size-small);
    color: var(--color-text-light);
    margin-top: var(--spacing-md);
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contract-completion .image-credit {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments for contract-completion animations */
@media (max-width: 768px) {
    .contract-completion {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        animation: none; /* Disable zoom animation on tablet */
        min-height: 50vh;
    }
    
    .contract-completion::before {
        background: linear-gradient(45deg, 
            rgba(42, 42, 42, 0.7) 0%, 
            rgba(42, 42, 42, 0.5) 20%, 
            rgba(42, 42, 42, 0.3) 40%, 
            rgba(42, 42, 42, 0.5) 60%, 
            rgba(42, 42, 42, 0.7) 100%);
    }
    
    .contract-completion::after {
        animation-duration: 8s;
    }
    
    .contract-completion .container {
        animation: none; /* Disable floating on tablet for better performance */
    }
}

@media (max-width: 480px) {
    .contract-completion {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        animation: mobileBackgroundZoom 8s ease-in-out infinite alternate; /* Faster, more visible animation */
        min-height: 60vh;
        padding: var(--spacing-xl) 0;
    }
    
    .contract-completion::before {
        background: linear-gradient(135deg, 
            rgba(42, 42, 42, 0.6) 0%, 
            rgba(42, 42, 42, 0.4) 30%, 
            rgba(42, 42, 42, 0.2) 50%, 
            rgba(42, 42, 42, 0.4) 70%, 
            rgba(42, 42, 42, 0.6) 100%);
        animation: overlayPulse 8s ease-in-out infinite alternate; /* Add overlay animation too */
    }
    
    .contract-completion::after {
        display: none; /* Remove additional overlay on mobile */
    }
    
    .contract-completion .container {
        animation: none;
        position: relative;
        z-index: 3;
    }
    
    .contract-completion .section__title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: var(--spacing-lg);
    }
    
    .contract-completion .section__description {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 100%;
    }
    
    .contract-completion__image {
        margin-top: var(--spacing-lg);
        max-width: 100%;
    }
}

/* Mobile-specific animation - more dramatic and visible */
@keyframes mobileBackgroundZoom {
    0% {
        background-size: cover;
        background-position: center 20%;
        filter: brightness(0.9) saturate(0.8);
    }
    50% {
        background-size: cover;
        background-position: center 80%;
        filter: brightness(1.2) saturate(1.3);
    }
    100% {
        background-size: cover;
        background-position: center 20%;
        filter: brightness(0.9) saturate(0.8);
    }
}

/* Overlay animation for mobile */
@keyframes overlayPulse {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 0.8;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contract-completion,
    .contract-completion::before,
    .contract-completion::after,
    .contract-completion .container,
    .contract-completion .section__title {
        animation: none;
    }
    
    .contract-completion {
        background-size: cover;
    }
}

/* ===========================
   EXPERTISE SECTION
   Kreisson-style expertise cards with numbering and dividers
   =========================== */
.expertise {
    background-color: #F5F3F0;
    position: relative;
}

.expertise__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xxl);
    margin-top: var(--spacing-xl);
    align-items: stretch;
}

.expertise__card-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    height: 100%;
}

.expertise__card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.expertise__number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expertise__bullet {
    width: 0;
    height: 0;
    border-left: 8px solid var(--color-primary);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-radius: 0;
    position: relative;
    transform: none;
}

.expertise__bullet::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 4px;
    width: 0;
    height: 0;
    border-right: 8px solid var(--color-primary);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.expertise__number-text {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-secondary);
    margin: 0;
    font-family: var(--font-family-heading);
    letter-spacing: 1px;
}

.expertise__divider {
    flex: 1;
    height: 1px;
    background-color: var(--color-border);
    position: relative;
    overflow: hidden;
}

.expertise__divider-line {
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise__divider.slideFromLeft.reveal.active .expertise__divider-line {
    transform: translateX(0);
}

.expertise__card {
    background-color: var(--color-background);
    padding: var(--spacing-xl);
    border-radius: 0;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.expertise__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary);
}

.expertise__icon {
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.expertise__icon svg {
    width: 80px;
    height: 80px;
    stroke: var(--color-secondary);
    transition: stroke var(--transition-fast);
}

.expertise__card:hover .expertise__icon svg {
    stroke: var(--color-primary);
}

.expertise__content {
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.expertise__title {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 400;
    font-family: var(--font-family-heading);
    letter-spacing: 1px;
    text-transform: none; /* Changed from uppercase to allow title case */
}

.expertise__description {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-medium);
}

.expertise__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise__list li {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: var(--spacing-md);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

.expertise__list li::before {
    content: '•';
    color: var(--color-primary);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.expertise__list li:last-child {
    margin-bottom: 0;
}

/* Enhanced hover effects for expertise cards */
.expertise-box {
    position: relative;
    overflow: hidden;
}

.expertise-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(201, 170, 68, 0.05),
        transparent
    );
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-box:hover::before {
    left: 100%;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .expertise__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .expertise__card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .expertise__divider {
        width: 100%;
        max-width: 200px;
    }
    
    .expertise__card {
        padding: var(--spacing-lg);
    }
    
    .expertise__icon svg {
        width: 60px;
        height: 60px;
    }
    
    .expertise__title {
        font-size: 1.25rem;
    }
}

/* ===========================
   VISUAL SHOWCASE SECTION
   Full-screen slideshow with overlay content
   =========================== */
.showcase {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.showcase__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.showcase__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #000; /* Fallback background while video loads */
    border: none; /* Remove iframe border */
}

.showcase__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.showcase__card-container {
    max-width: 600px;
    width: 100%;
    background: linear-gradient(135deg, 
        rgba(80, 80, 80, 0.6) 0%, 
        rgba(65, 65, 65, 0.5) 50%, 
        rgba(55, 55, 55, 0.4) 100%);
    backdrop-filter: blur(25px) brightness(0.9) saturate(120%);
    -webkit-backdrop-filter: blur(25px) brightness(0.9) saturate(120%);
    border-radius: 24px;
    border: 2px solid rgba(100, 100, 100, 0.3);
    overflow: visible;
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(140, 140, 140, 0.2),
        inset 0 -1px 0 rgba(140, 140, 140, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    margin: 0 auto 2rem auto;
    transform: translateX(-550px) translateY(-150px);
}

.showcase__card-container:hover {
    background: linear-gradient(135deg, 
        rgba(90, 90, 90, 0.65) 0%, 
        rgba(75, 75, 75, 0.55) 50%, 
        rgba(65, 65, 65, 0.45) 100%);
    border-color: rgba(120, 120, 120, 0.4);
    transform: translateX(-550px) translateY(-150px) scale(1.02);
    box-shadow: 
        0 12px 50px rgba(0, 0, 0, 0.45),
        0 6px 25px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(160, 160, 160, 0.3),
        inset 0 -1px 0 rgba(160, 160, 160, 0.15);
}

.showcase__card-header {
    display: flex;
    align-items: center;
    padding: 0;
    margin-bottom: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Showcase bullet styles removed — markup deleted. */

.showcase__divider {
    flex: 1;
    height: 1px;
    margin-right: 1.5rem;
    position: relative;
    overflow: hidden;
}

.showcase__divider-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(180, 180, 180, 0.8) 50%, 
        transparent 100%);
    animation: slideIn 2s ease-out forwards;
    animation-delay: 0.5s;
}

.showcase__card {
    background: transparent;
    padding: var(--spacing-xl);
    border-radius: 0;
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
}

.showcase__icon {
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.showcase__icon svg {
    width: 80px;
    height: 80px;
    stroke: rgba(200, 200, 200, 0.8);
    transition: stroke var(--transition-fast);
}

.showcase__card-container:hover .showcase__icon svg {
    stroke: rgba(220, 220, 220, 1);
}

.showcase__content {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.showcase__title {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-light);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-family-heading);
}

.showcase__description {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-body);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.showcase .section__title {
    position: relative;
    z-index: 4;
    color: var(--color-primary); /* Kreisson gold - same as "From Concept to Creation" */
    margin-bottom: 2rem;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(201, 170, 68, 0.3); /* Gold glow effect */
    font-weight: 700;
}

.showcase .section__description {
    position: relative;
    z-index: 4;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    font-size: 1.2rem;
    line-height: 1.6;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 255, 255, 0.1);
}

.showcase__actions {
    position: relative;
    z-index: 4;
    margin-top: 2rem;
}

/* Enhanced button styling - slender and sleek design */
.showcase .btn--primary {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    transition: all 0.3s ease;
    padding: 0.75rem 2rem; /* Reduced vertical padding for slender look */
    font-size: 0.9rem; /* Slightly smaller font */
    font-weight: 300; /* Lighter font weight for sleek appearance */
    letter-spacing: 2px; /* Increased letter spacing for elegance */
    border-radius: 25px; /* More rounded for sleek look */
    min-height: auto; /* Remove any minimum height constraints */
    height: 50px; /* Fixed height for consistency */
}

.showcase .btn--primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-background);
    transform: translateY(-2px); /* Subtle lift effect for sleek interaction */
    box-shadow: 0 4px 15px rgba(201, 170, 68, 0.3); /* Elegant gold shadow */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .showcase {
        min-height: 80vh;
    }
    
    .showcase__overlay {
        height: 80%;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }
    
    .showcase__card-container {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .showcase__card {
        padding: var(--spacing-lg);
    }
    
    /* Removed .showcase__number style (no longer used) */
    
    .showcase__icon svg {
        width: 60px;
        height: 60px;
    }
    
    .showcase__title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .showcase__description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .showcase {
        min-height: 100vh; /* Ensure full viewport height */
    }
    
    .showcase__overlay {
        height: 100%;
        align-items: center;
        justify-content: center;
        padding: 2rem 1rem;
        bottom: 0;
        top: 0;
    }
    
    .showcase__card-container {
        max-width: 90%;
        width: 100%;
        margin: 0 auto;
        transform: none !important;
        border-radius: 16px;
        padding: 1.5rem 1.25rem;
        position: relative;
        box-sizing: border-box;
        /* Simplified but effective glass morphism */
        background: rgba(75, 75, 75, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(150, 150, 150, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
    
    .showcase__card-header {
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    /* Removed small-screen showcase number/bullet styles (no longer used) */
    
    .showcase__divider {
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, 
            rgba(201, 170, 68, 0.6) 0%, 
            rgba(201, 170, 68, 0.2) 100%);
    }
    
    .showcase__card {
        padding: 0;
        text-align: center;
        margin: 0;
    }
    
    .showcase__icon {
        margin: 0 auto 1rem;
        display: block;
    }
    
    .showcase__icon svg {
        width: 40px;
        height: 40px;
        color: var(--color-primary);
    }
    
    .showcase__content {
        margin-bottom: 1.25rem;
        padding: 0;
    }
    
    .showcase .section__title {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
        color: var(--color-primary);
        line-height: 1.2;
    }
    
    .showcase .section__description {
        font-size: 0.85rem;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 0;
    }
    
    .showcase__actions {
        margin: 0;
        text-align: center;
        padding: 0;
    }
    
    .showcase__actions .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        border-radius: 18px;
        background: rgba(201, 170, 68, 0.9);
        border: 1px solid rgba(201, 170, 68, 0.7);
        color: var(--color-secondary);
        box-shadow: 0 2px 8px rgba(201, 170, 68, 0.3);
        transition: all 0.2s ease;
        white-space: nowrap;
        text-decoration: none;
    }
    
    .showcase__actions .btn svg {
        width: 8px;
        height: 8px;
        flex-shrink: 0;
    }
    
    .showcase__actions .btn:active {
        transform: translateY(1px);
        box-shadow: 
            0 2px 8px rgba(201, 170, 68, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .showcase__actions .btn svg {
        width: 10px;
        height: 10px;
        flex-shrink: 0;
        stroke-width: 2;
    }
}

/* ===========================
   INSIGHTS SECTION
   News and insights grid layout
   =========================== */
.insights {
    background-color: var(--color-background-light);
}

.insights__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.insights__card {
    background-color: var(--color-background);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform var(--transition-normal);
}

.insights__card:hover {
    transform: translateY(-2px);
}

.insights__card-icon {
    margin-bottom: var(--spacing-md);
}

.insights__card-icon img {
    width: 60px;
    height: 60px;
}

.insights__card-title {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.insights__card-description {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
}

.insights__card-link {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: var(--font-size-small);
}

/* ===========================
   TWENTY YEARS SECTION
   Special anniversary section with side-by-side layout
   =========================== */
.twenty-years {
    background-color: var(--color-background);
}

.twenty-years__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.twenty-years__description {
    font-size: var(--font-size-large);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
}

.twenty-years__visual {
    position: relative;
    text-align: center;
}

.twenty-years__badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(212, 175, 55, 0.9);
    color: var(--color-background);
    padding: var(--spacing-lg);
    border-radius: 50%;
    min-width: 150px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.twenty-years__badge-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
}

/* ===========================
   PROTECT PROJECTS SECTION
   Call-to-action section
   =========================== */
.protect-projects {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-background);
    text-align: center;
}

.protect-projects .section__title,
.protect-projects .section__description {
    color: var(--color-background);
}

/* ===========================
   CONTACT SECTION
   Contact card matching expertise section styling
   =========================== */
.contact {
    background-color: #F5F3F0;
    position: relative;
}

.contact__card-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 800px; /* Increased from 600px */
    margin: 0 auto;
    margin-top: var(--spacing-xl);
}

.contact__card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact__number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact__bullet {
    width: 0;
    height: 0;
    border-left: 8px solid var(--color-primary);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-radius: 0;
    position: relative;
    transform: none;
}

.contact__bullet::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 4px;
    width: 0;
    height: 0;
    border-right: 8px solid var(--color-primary);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.contact__number-text {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-secondary);
    margin: 0;
    font-family: var(--font-family-heading);
    letter-spacing: 1px;
}

.contact__divider {
    flex: 1;
    height: 1px;
    background-color: var(--color-border);
    position: relative;
    overflow: hidden;
}

.contact__divider-line {
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact__divider.slideFromLeft.reveal.active .contact__divider-line {
    transform: translateX(0);
}

.contact__card {
    background-color: var(--color-background);
    padding: var(--spacing-xl); /* Reduced from spacing-xxl */
    border-radius: 0;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.contact__card:hover {
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary);
}

.contact__icon {
    margin-bottom: var(--spacing-md); /* Reduced from spacing-lg */
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact__icon svg {
    width: 80px;
    height: 80px;
    stroke: var(--color-secondary);
    transition: stroke var(--transition-fast);
}

.contact__card:hover .contact__icon svg {
    stroke: var(--color-primary);
}

.contact__content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact__title {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm); /* Reduced from spacing-md */
    font-size: 1.5rem;
    font-weight: 400;
    font-family: var(--font-family-heading);
    letter-spacing: 1px;
    text-transform: none; /* Changed from uppercase to allow title case */
}

.contact__description {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-md); /* Reduced from spacing-lg */
    font-size: var(--font-size-medium);
    max-width: 400px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
    margin-top: var(--spacing-md); /* Reduced from spacing-lg */
    padding-top: var(--spacing-md); /* Reduced from spacing-lg */
    border-top: 1px solid var(--color-border);
}

/* Contact Form Styling */
.contact__form {
    width: 100%;
    max-width: 500px;
    margin: var(--spacing-md) auto; /* Reduced from spacing-lg */
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md); /* Reduced from spacing-lg */
}

.contact__form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: left;
}

.contact__form-label {
    color: var(--color-secondary);
    font-family: var(--font-family-heading);
    font-size: var(--font-size-small);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    margin-bottom: 0; /* Removed bottom margin */
}

.contact__form-input,
.contact__form-textarea {
    padding: var(--spacing-sm); /* Reduced from spacing-md */
    border: 1px solid var(--color-border);
    border-radius: 0;
    font-size: var(--font-size-base);
    font-family: var(--font-family-body);
    color: var(--color-text);
    background-color: var(--color-background);
    transition: all var(--transition-fast);
    width: 100%;
}

.contact__form-input:focus,
.contact__form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(201, 170, 68, 0.1);
}

.contact__form-textarea {
    resize: vertical;
    min-height: 100px; /* Reduced from 120px */
    line-height: 1.6;
}

.contact__form-input::placeholder,
.contact__form-textarea::placeholder {
    color: var(--color-text-light);
    font-style: italic;
}

.contact__form-button {
    align-self: center;
    margin: var(--spacing-sm) 0; /* Reduced from spacing-md */
    min-width: 200px;
    justify-content: center;
    /* Enhanced button styling to match "View Our Work" button */
    background-color: transparent;
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    padding: 0.75rem 2rem; /* Reduced vertical padding for slender look */
    font-size: 0.9rem; /* Slightly smaller font */
    font-weight: 300; /* Lighter font weight for sleek appearance */
    letter-spacing: 2px; /* Increased letter spacing for elegance */
    border-radius: 25px; /* More rounded for sleek look */
    height: 50px; /* Fixed height for consistency */
    transition: all 0.3s ease;
}

.contact__form-button:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-background);
    transform: translateY(-2px); /* Subtle lift effect for sleek interaction */
    box-shadow: 0 4px 15px rgba(201, 170, 68, 0.3); /* Elegant gold shadow */
}

/* Form validation styles */
.form-field-error {
    color: #c33;
    font-size: var(--font-size-small);
    margin-top: var(--spacing-xs);
    font-style: italic;
}

/* Form message styles */
.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: 4px;
    font-size: var(--font-size-base);
    font-weight: 500;
    text-align: center;
}

.form-message--error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.form-message--success {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #363;
}

.contact__detail-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-xs);
    text-align: center;
}

.contact__detail-item strong {
    color: var(--color-secondary);
    font-family: var(--font-family-heading);
    font-size: var(--font-size-small);
    text-transform: capitalize;
    letter-spacing: 1px;
    font-weight: 400;
}

.contact__link {
    color: var(--color-primary);
    font-weight: 500;
    transition: color var(--transition-fast);
    font-size: var(--font-size-medium);
    text-decoration: none;
}

.contact__link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Enhanced hover effects for contact card */
.contact__card {
    position: relative;
    overflow: hidden;
}

.contact__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(201, 170, 68, 0.05),
        transparent
    );
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact__card:hover::before {
    left: 100%;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .contact__card-container {
        max-width: 100%;
    }
    
    .contact__card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .contact__divider {
        width: 100%;
        max-width: 200px;
        align-self: center;
    }
    
    .contact__card {
        padding: var(--spacing-xl); /* Adjusted for mobile */
    }
    
    .contact__icon svg {
        width: 60px;
        height: 60px;
    }
    
    .contact__title {
        font-size: 1.25rem;
    }
    
    .contact__details {
        gap: var(--spacing-md);
    }
    
    .contact__form {
        max-width: 100%;
        gap: var(--spacing-md);
    }
    
    .contact__form-input,
    .contact__form-textarea {
        padding: var(--spacing-sm);
    }
    
    .contact__form-button {
        width: 100%;
        min-width: auto;
    }
}

/* ===========================
   FOOTER
   Clean, minimal footer design
   =========================== */
.footer {
    background-color: var(--color-secondary);
    color: var(--color-background);
    padding: var(--spacing-lg) 0 var(--spacing-xs);
}

.footer__content {
    margin-bottom: var(--spacing-sm);
}

.footer__main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) 0;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer__logo-img {
    height: 32px;
    width: 32px;
    object-fit: cover;
    border-radius: 16px;
}

.footer__logo-text {
    color: var(--color-background);
    font-weight: 700;
    font-size: var(--font-size-large);
    letter-spacing: 1px;
}

.footer__tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-small);
    margin: 0;
}

.footer__nav {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: color var(--transition-fast);
    font-weight: 500;
}

.footer__link:hover {
    color: var(--color-primary);
}

.footer__social {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 16px;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    transform: translateY(-2px);
}

.footer__bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer__copyright {
    font-size: var(--font-size-small);
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer__main {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer__nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-md);
    }
    
    .footer__social {
        justify-content: center;
    }
}

/* ===========================
   RESPONSIVE DESIGN
   Mobile-first responsive layout with progressive enhancement
   =========================== */

/* Mobile Styles (Base - 320px and up) */
:root {
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
    --spacing-xxl: 3rem;
    --spacing-xxxl: 4rem;
}

.container {
    padding: 0 var(--spacing-md);
}

.nav__container {
    padding: 0 var(--spacing-md);
}

.hero {
    padding: calc(100px + var(--spacing-lg)) var(--spacing-md) var(--spacing-lg);
    min-height: 70vh;
}

.hero__title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: var(--spacing-md);
}

.hero__actions {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

.hero__badge-img {
    width: 120px;
    height: 120px;
    animation: none; /* Disable rotation on mobile for performance */
}

.arrow-down {
    margin-left: 0;
    margin-top: var(--spacing-md);
    width: 40px;
    height: 40px;
}

.expertise__grid,
.insights__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.newsletter-form {
    flex-direction: column;
    gap: var(--spacing-md);
}

.newsletter-form__input,
.newsletter-form__button {
    width: 100%;
}

.footer__links {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
}

.footer__column {
    text-align: center;
}

/* Reduce animation intensity on mobile */
.revealFromTop,
.revealFromBottom {
    transform: translateY(40px);
}

.revealFromLeft,
.revealFromRight {
    transform: translateX(40px);
}

.reveal {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Disable parallax on mobile for performance */
.hero__badge {
    transform: none !important;
}

/* Mobile navigation - hamburger menu visible by default */
.nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg,
        rgba(50, 50, 50, 0.95) 0%,
        rgba(40, 40, 40, 0.98) 50%,
        rgba(30, 30, 30, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(201, 170, 68, 0.3);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    padding: 80px 24px 32px;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    overflow-y: auto;
    /* iOS Safari fixes */
    -webkit-overflow-scrolling: touch;
    /* Safe area support for iOS */
    padding-top: max(80px, calc(80px + env(safe-area-inset-top)));
    padding-right: max(24px, env(safe-area-inset-right));
    /* iOS font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* iOS touch improvements */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.nav__menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(201, 170, 68, 0.08) 0%,
        transparent 50%,
        rgba(201, 170, 68, 0.04) 100%);
    z-index: -1;
}

.nav__menu.active {
    right: 0;
}

.nav__item {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 4px;
}

.nav__menu.active .nav__item {
    opacity: 1;
    transform: translateX(0);
}

.nav__menu.active .nav__item:nth-child(1) { transition-delay: 0.1s; }
.nav__menu.active .nav__item:nth-child(2) { transition-delay: 0.15s; }
.nav__menu.active .nav__item:nth-child(3) { transition-delay: 0.2s; }
.nav__menu.active .nav__item:nth-child(4) { transition-delay: 0.25s; }
.nav__menu.active .nav__item:nth-child(5) { transition-delay: 0.3s; }

.nav__link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-size: 14px;
    padding: 14px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    background: transparent;
    border: 1px solid transparent;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    min-height: 44px;
    /* iOS Safari fixes */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-appearance: none;
    appearance: none;
    /* Better font rendering on iOS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure proper touch targets on iOS */
    min-width: 200px;
    cursor: pointer;
}

.nav__link span {
    position: relative;
    transition: all var(--transition-fast);
}

.nav__link:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(201, 170, 68, 0.1);
    border-color: rgba(201, 170, 68, 0.3);
    transform: translateY(-1px);
}

.nav__link--cta {
    background: linear-gradient(135deg,
        rgba(201, 170, 68, 0.9) 0%,
        rgba(201, 170, 68, 0.8) 100%);
    color: var(--color-secondary);
    font-weight: 500;
    border: 1px solid rgba(201, 170, 68, 0.5);
    border-radius: 20px;
    box-shadow: 0 3px 12px rgba(201, 170, 68, 0.25);
    margin-top: 12px;
    font-size: 14px;
    letter-spacing: 0.8px;
    padding: 8px 20px;
}

.nav__link--cta::before {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(201, 170, 68, 0.1) 50%,
        rgba(255, 255, 255, 0.15) 100%);
}

.nav__link--cta::after {
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
}

.nav__link--cta:hover {
    background: linear-gradient(135deg,
        rgba(201, 170, 68, 1) 0%,
        rgba(201, 170, 68, 0.9) 100%);
    border-color: rgba(201, 170, 68, 0.8);
}

.nav__toggle {
    display: flex;
}

/* Menu overlay */
.nav__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(50, 50, 50, 0.4) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
}

.nav__overlay.active {
    opacity: 1;
    visibility: visible;
}

.hero {
    min-height: 80vh;
    padding: calc(120px + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
}

.hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-xl);
}

.hero__content {
    text-align: center;
    order: 1;
}

.hero__right {
    order: 2;
    align-items: center;
    text-align: center;
    margin-top: 0;
}

.hero__subtitle {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.hero__actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.hero__badge {
    align-self: center;
}

.twenty-years__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.contact__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.footer__top {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
}

.footer__links {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.footer__social {
    justify-content: center;
}

.footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
}

.footer__legal {
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
    :root {
        --font-size-h1: 3rem;
        --font-size-h2: 2.25rem;
        --spacing-xxxl: 4rem;
        --spacing-xxl: 3rem;
    }

    .nav__menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-left: none;
        box-shadow: none;
        display: flex;
        flex-direction: row;
        padding: 0;
        gap: var(--spacing-lg);
        align-items: center;
        transform: none;
        overflow-y: visible;
        /* Reset mobile-specific properties */
        -webkit-overflow-scrolling: auto;
        padding-top: 0;
        padding-right: 0;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: auto;
    }

    .nav__menu::before {
        display: none;
    }

    .nav__menu.active {
        right: auto;
    }

    .nav__item {
        opacity: 1;
        transform: none;
        transition: none;
        margin-bottom: 0;
    }

    .nav__link {
        display: flex;
        align-items: center;
        color: var(--color-text);
        font-weight: 400;
        padding: var(--spacing-sm) 0;
        font-size: var(--font-size-base);
        text-transform: none;
        letter-spacing: 1px;
        transition: all var(--transition-fast);
        position: relative;
        background: transparent;
        border: none;
        margin-bottom: 0;
        letter-spacing: 1px;
        min-height: auto;
        /* Reset mobile-specific properties */
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-appearance: none;
        appearance: none;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        min-width: auto;
        cursor: pointer;
    }

    .nav__link span {
        position: relative;
        transition: all var(--transition-fast);
    }

    .nav__link:hover {
        color: var(--color-primary);
        background: transparent;
        border: none;
        transform: translateY(-1px);
    }

    .nav__link--cta {
        background: linear-gradient(135deg,
            var(--color-primary) 0%,
            rgba(201, 170, 68, 0.9) 100%);
        color: var(--color-background);
        padding: 10px 24px;
        text-transform: none;
        letter-spacing: 1px;
        font-weight: 500;
        border-radius: 25px;
        box-shadow: 0 3px 12px rgba(201, 170, 68, 0.3);
        border: 1px solid rgba(201, 170, 68, 0.4);
        margin-top: 0;
        font-size: var(--font-size-base);
        letter-spacing: 1px;
    }

    .nav__link--cta::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
        transition: left 0.6s ease;
        z-index: 1;
    }

    .nav__link--cta::after {
        display: none;
    }

    .nav__link--cta:hover {
        background: linear-gradient(135deg,
            rgba(201, 170, 68, 1) 0%,
            rgba(201, 170, 68, 0.95) 100%);
        color: var(--color-background);
        border-color: rgba(201, 170, 68, 0.8);
    }

    .nav__link--cta:hover::before {
        left: 100%;
    }

    .nav__toggle {
        display: none;
    }

    .nav__overlay {
        display: none;
    }

    .hero {
        min-height: 80vh;
        padding: calc(120px + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .hero__content {
        text-align: center;
        order: 1;
    }

    .hero__right {
        order: 2;
        align-items: center;
        text-align: center;
        margin-top: 0;
    }

    .hero__subtitle {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }

    .hero__actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero__badge {
        align-self: center;
    }

    .twenty-years__content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .contact__content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .footer__links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .footer__social {
        justify-content: center;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }

    .footer__legal {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .expertise__grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: var(--spacing-xxl);
    }

    .expertise__card-header {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-md);
    }

    .expertise__divider {
        width: auto;
        max-width: none;
    }

    .expertise__card {
        padding: var(--spacing-xl);
    }

    .expertise__icon svg {
        width: 80px;
        height: 80px;
    }

    .expertise__title {
        font-size: 1.5rem;
    }

    .contact__card-container {
        max-width: 800px;
    }

    .contact__card-header {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-md);
    }

    .contact__divider {
        width: auto;
        max-width: none;
        align-self: auto;
    }

    .contact__card {
        padding: var(--spacing-xl);
    }

    .contact__icon svg {
        width: 80px;
        height: 80px;
    }

    .contact__title {
        font-size: 1.5rem;
    }

    .contact__details {
        gap: var(--spacing-sm);
    }

    .contact__form {
        max-width: 500px;
        gap: var(--spacing-md);
    }

    .contact__form-input,
    .contact__form-textarea {
        padding: var(--spacing-sm);
    }

    .contact__form-button {
        width: auto;
        min-width: 200px;
    }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
    .hero {
        padding: calc(120px + var(--spacing-xxxl)) var(--spacing-lg) var(--spacing-xxxl);
        min-height: 100vh;
    }

    .hero__container {
        grid-template-columns: 1fr 400px;
        text-align: left;
        gap: var(--spacing-xl);
    }

    .hero__content {
        text-align: left;
        order: 1;
    }

    .hero__right {
        order: 2;
        align-items: flex-end;
        text-align: right;
        margin-top: 40vh;
    }

    .hero__subtitle {
        text-align: right;
        margin-bottom: 0;
    }

    .hero__actions {
        justify-content: flex-start;
        flex-direction: row;
        align-items: center;
    }

    .hero__badge {
        align-self: auto;
    }

    .twenty-years__content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xxl);
    }

    .contact__content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xxl);
    }

    .footer__top {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
        text-align: left;
    }

    .footer__links {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }

    .footer__social {
        justify-content: flex-start;
    }

    .footer__bottom {
        flex-direction: row;
        text-align: left;
        gap: var(--spacing-lg);
    }

    .footer__legal {
        flex-direction: row;
        gap: var(--spacing-lg);
    }

    .insights__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-lg);
    }

    .newsletter-form {
        flex-direction: row;
        gap: var(--spacing-md);
    }

    .newsletter-form__input,
    .newsletter-form__button {
        width: auto;
    }
}

/* Large Desktop Styles (1200px and up) */
@media (min-width: 1200px) {
    .container {
        padding: 0 var(--spacing-lg);
    }

    .nav__container {
        padding: 0 var(--spacing-lg);
    }

    .hero {
        padding: calc(120px + var(--spacing-xxxl)) var(--spacing-lg) var(--spacing-xxxl);
    }

    .hero__container {
        grid-template-columns: 1fr 400px;
        gap: var(--spacing-xl);
    }

    .hero__right {
        margin-top: 40vh;
    }

    .expertise__grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: var(--spacing-xxl);
    }

    .insights__grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-lg);
    }

    .twenty-years__content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xxl);
    }

    .contact__content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xxl);
    }

    .footer__top {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }

    .footer__links {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
}

/* ===========================
   ANIMATIONS & KEYFRAMES
   Scroll reveal animations matching original Kreisson effects
   =========================== */

/* Reveal from top animation - more dramatic */
@keyframes revealFromTop {
    from {
        opacity: 0;
        transform: translateY(-80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in animation - slower */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide in from left - more distance */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right - more distance */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Rotate animation for badges - slower rotation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Shine effect for badges - more subtle */
@keyframes shine {
    0% {
        background-position: -200% 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        background-position: 200% 0;
        opacity: 0;
    }
}

/* Pulse animation - gentler */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Parallax float animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideInMenu {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===========================
   SCROLL REVEAL CLASSES
   Classes for scroll-triggered animations with original timing
   =========================== */

/* Base reveal styles - hidden by default */
.reveal {
    opacity: 0;
    transition: all var(--transition-slow);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
}

/* Reveal from top - more dramatic movement */
.revealFromTop {
    transform: translateY(-80px);
}

.revealFromTop.active {
    transform: translateY(0);
}

/* Reveal from bottom - more dramatic movement */
.revealFromBottom {
    transform: translateY(80px);
}

.revealFromBottom.active {
    transform: translateY(0);
}

/* Reveal from left - more dramatic movement */
.revealFromLeft {
    transform: translateX(-100px);
}

.revealFromLeft.active {
    transform: translateX(0);
}

/* Reveal from right - more dramatic movement */
.revealFromRight {
    transform: translateX(100px);
}

.revealFromRight.active {
    transform: translateX(0);
}

/* Fade reveal */
.revealFade {
    opacity: 0;
}

.revealFade.active {
    opacity: 1;
}

/* Scale reveal - more subtle */
.revealScale {
    transform: scale(0.95);
    opacity: 0;
}

.revealScale.active {
    transform: scale(1);
    opacity: 1;
}

/* Stagger animation delays for multiple elements - longer delays */
.reveal:nth-child(1) { transition-delay: 0.2s; }
.reveal:nth-child(2) { transition-delay: 0.4s; }
.reveal:nth-child(3) { transition-delay: 0.6s; }
.reveal:nth-child(4) { transition-delay: 0.8s; }
.reveal:nth-child(5) { transition-delay: 1.0s; }

/* ===========================
   BADGE SHINE EFFECT
   Enhanced shine effect matching original
   =========================== */
.badge-shine {
    position: relative;
    overflow: hidden;
}

.badge-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    background-size: 200% 200%;
    animation: shine 4s infinite;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0.7;
}

/* ===========================
   ENHANCED BUTTON ANIMATIONS
   Additional button effects and animations
   =========================== */
/* Button with icon animation */
.btn--icon {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.btn--icon svg {
    transition: transform var(--transition-fast);
}

.btn--icon:hover svg {
    transform: translateX(4px);
}

/* ===========================
   PRINT STYLES
   Optimized styles for printing
   =========================== */
@media print {
    .nav,
    .footer,
    .btn,
    .newsletter-form {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .hero {
        background: none;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ===================================
   CUSTOM CURSOR & MAGNETIC EFFECTS
   Sophisticated cursor interactions matching Kreisson
   =================================== */

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cursor-dot {
    width: 4px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.custom-cursor.cursor--hover {
    transform: scale(1.5);
}

.custom-cursor.cursor--hover .cursor-outline {
    width: 40px;
    height: 40px;
}

/* ===================================
   SCROLL INDICATOR
   Progress bar at top of page
   =================================== */

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), #f4d03f);
    z-index: 1001;
    transition: width 0.1s ease-out;
}

/* ===================================
   ENHANCED NAVBAR EFFECTS
   Advanced navbar scroll behaviors
   =================================== */

.nav {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav--scrolled {
    background-color: rgba(var(--color-background-rgb), 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-medium);
}

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

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

.scrolling-up .nav {
    transform: translateY(0);
}

/* ===================================
   FORM MESSAGE STYLES
   Success and error states for forms
   =================================== */

.form-message {
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message--success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message--error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ===================================
   ENHANCED MAGNETIC EFFECTS
   Hover effects for interactive elements
   =================================== */

.btn,
.arrow-down,
.hero__badge {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.btn:hover,
.arrow-down:hover {
    transform: none;
    box-shadow: var(--shadow-large);
}

.hero__badge:hover {
    transform: translate(-50%, -50%) scale(1.08) rotate(5deg);
}

/* ===================================
   TEXT ANIMATION EFFECTS
   Advanced text reveals and typewriter
   =================================== */

.text-reveal .word {
    display: inline-block;
    overflow: hidden;
    margin-right: 0.3em;
}

.text-reveal .word-inner {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-reveal .word.revealed .word-inner {
    transform: translateY(0);
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--color-accent);
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--color-accent) }
}

/* ===================================
   ACCESSIBILITY ENHANCEMENTS
   Focus states and keyboard navigation
   =================================== */

.keyboard-navigation *:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 3px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-accent);
    color: var(--color-background);
    padding: 8px 12px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
    transition: top 0.3s;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
}

/* ===================================
   LOADING STATES
   Skeleton loaders and loading animations
   =================================== */

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===================================
   PERFORMANCE OPTIMIZATIONS
   Reduce motion for accessibility
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .custom-cursor,
    .scroll-indicator,
    .hero__badge-img,
    .reveal,
    .btn,
    .arrow-down {
        animation: none !important;
        transition: none !important;
    }
    
    .hero__badge {
        animation: none !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .parallax-element {
        transform: none !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   ENHANCED MOBILE INTERACTIONS
   Touch-friendly interactions
   =================================== */

@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }
    
    .btn,
    .arrow-down {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn:active,
    .arrow-down:active {
        transform: none !important;
        opacity: 0.8;
    }
    
    /* Enhanced touch targets */
    .nav__link,
    .btn,
    .arrow-down {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===================================
   HIGH CONTRAST MODE SUPPORT
   Enhanced accessibility for high contrast
   =================================== */

@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
        font-weight: 700;
    }
    
    .hero__badge {
        border: 3px solid var(--color-accent);
    }
    
    .nav__link:hover,
    .nav__link:focus {
        background-color: var(--color-accent);
        color: var(--color-background);
    }
}

/* ===================================
   ADVANCED SCROLL BEHAVIORS
   Enhanced parallax and scroll effects
   =================================== */

.parallax-element {
    will-change: transform;
    transform: translateZ(0);
}

.section {
    will-change: transform;
    transform: translateZ(0);
}

/* Hide scrollbars for cleaner look */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(var(--color-text-rgb), 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-light);
}

/* ===================================
   BUTTON MOVEMENT PREVENTION OVERRIDE
   Ensures all buttons stay completely static
   =================================== */

/* Comprehensive button movement prevention */
.btn, .btn--primary, .btn--secondary, .btn--outline, .btn--icon,
button, a[class*="btn"], .hero__actions a {
    transform: none !important;
    animation: none !important;
    will-change: auto !important;
}

.btn:hover, .btn--primary:hover, .btn--secondary:hover, .btn--outline:hover, .btn--icon:hover,
button:hover, a[class*="btn"]:hover, .hero__actions a:hover {
    transform: none !important;
    animation: none !important;
    will-change: auto !important;
}

.btn:active, .btn--primary:active, .btn--secondary:active, .btn--outline:active, .btn--icon:active,
button:active, a[class*="btn"]:active, .hero__actions a:active {
    transform: none !important;
    animation: none !important;
    will-change: auto !important;
}

/* Allow only safe visual changes */
.btn:hover, button:hover, a[class*="btn"]:hover {
    opacity: 0.9;
    transition: opacity var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* ===================================
   MOBILE FOOTER OPTIMIZATION
   Compact footer design for mobile devices
   =================================== */

@media (max-width: 768px) {
    .footer {
        padding: var(--spacing-md) 0 var(--spacing-sm);
    }
    
    .footer__top {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    .footer__company {
        text-align: center;
        order: 1;
    }
    
    .footer__logo {
        justify-content: center;
        margin-bottom: var(--spacing-xs);
    }
    
    .footer__logo-img {
        height: 32px;
        width: 32px;
    }
    
    .footer__logo-text {
        font-size: var(--font-size-base);
        letter-spacing: 1px;
        font-weight: 700;
    }
    
    .footer__description {
        display: none;
    }
    
    /* Hide all navigation sections */
    .footer__links .footer__column:not(:nth-child(3)):not(:last-child) {
        display: none;
    }
    
    .footer__links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
        order: 3;
    }
    
    /* Show only contact info column */
    .footer__column:nth-child(3) {
        text-align: center;
        order: 2;
        margin-top: var(--spacing-sm); /* Increase gap from social icons */
    }
    
    .footer__column:last-child {
        transform: none;
        order: 1;
        margin: 0;
    }
    
    .footer__title {
        font-size: var(--font-size-small);
        margin-bottom: var(--spacing-xs);
        font-weight: 600;
    }
    
    .footer__contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: calc(var(--spacing-xs) * 0.5); /* Decrease gap between phone and email */
    }
    
    .footer__contact-link {
        font-size: var(--font-size-small);
        gap: var(--spacing-xs);
        color: rgba(255, 255, 255, 0.8);
        justify-content: center;
        min-height: 36px;
        display: flex;
        align-items: center;
    }
    
    .footer__contact-link:hover {
        color: var(--color-primary);
    }
    
    .footer__contact-link i {
        width: 16px;
        font-size: 14px;
        color: var(--color-primary);
    }
    
    .footer__social {
        justify-content: center;
        margin: 0;
        gap: var(--spacing-sm);
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 16px;
        background-color: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .social-link:hover {
        background-color: var(--color-primary);
        color: var(--color-secondary);
        transform: none;
        border-color: var(--color-primary);
    }
    
    .social-link i {
        font-size: 14px;
    }
    
    .footer__bottom {
        padding-top: var(--spacing-sm);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .footer__legal {
        display: none;
    }
    
    .footer__copyright {
        font-size: calc(var(--font-size-small) * 0.85);
        color: rgba(255, 255, 255, 0.6);
        text-align: center;
        margin: 0;
    }
    
    .contact-item {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: var(--spacing-sm) 0 var(--spacing-xs);
    }
    
    .footer__top {
        gap: var(--spacing-xs);
    }
    
    .footer__column:nth-child(3) {
        margin-top: var(--spacing-md); /* Increase gap from social icons on small mobile */
    }
    
    .footer__contact {
        gap: calc(var(--spacing-xs) * 0.4); /* Further decrease gap on small mobile */
    }
    
    .footer__logo-img {
        height: 28px;
        width: 28px;
    }
    
    .footer__logo-text {
        font-size: var(--font-size-small);
        letter-spacing: 0.8px;
    }
    
    .footer__title {
        font-size: calc(var(--font-size-small) * 0.9);
        margin-bottom: calc(var(--spacing-xs) * 0.75);
    }
    
    .footer__contact-link {
        font-size: calc(var(--font-size-small) * 0.9);
        min-height: 32px;
        gap: calc(var(--spacing-xs) * 0.75);
    }
    
    .footer__contact-link i {
        width: 14px;
        font-size: 12px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .social-link i {
        font-size: 12px;
    }
    
    .footer__social {
        gap: var(--spacing-xs);
    }
    
    .footer__bottom {
        padding-top: var(--spacing-xs);
    }
    
    .footer__copyright {
        font-size: calc(var(--font-size-small) * 0.8);
    }
}

/* ===========================
   iOS SAFARI SPECIFIC FIXES
   Additional fixes for iOS Safari issues
   =========================== */

/* Prevent double-tap zoom on iOS for navigation elements */
.nav__logo-link,
.nav__link,
.nav__toggle {
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

/* iOS mobile specific header fixes */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 1) {
    .header {
        /* Force header to top on iOS mobile */
        top: 0 !important;
        position: fixed !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        /* Ensure minimum height for iOS */
        min-height: 70px;
        /* Prevent iOS Safari from hiding header */
        -webkit-overflow-scrolling: auto;
        /* Force proper positioning */
        margin-top: 0;
        padding-top: max(16px, env(safe-area-inset-top, 16px));
        /* Force visibility */
        opacity: 1 !important;
        visibility: visible !important;
        /* Prevent iOS Safari viewport issues */
        height: auto;
        max-height: none;
    }
    
    .header--hidden {
        /* Override hidden state for iOS debugging */
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
    }
    
    .nav__container {
        /* Ensure container takes full available space */
        min-height: 60px;
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        /* Force proper display */
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .nav__logo {
        /* Ensure logo is visible */
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0;
    }
    
    .nav__logo-text {
        /* Force text visibility on iOS */
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        font-size: 18px;
        font-weight: 500;
    }
    
    .nav__toggle {
        /* Ensure hamburger is visible and clickable */
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1001 !important;
    }
}

@media screen and (-webkit-min-device-pixel-ratio: 2) {
    /* iOS Safari specific fixes */
    .header {
        /* Ensure header renders correctly on high-DPI iOS displays */
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        will-change: transform;
    }
    
    .nav__container {
        /* Prevent iOS Safari from collapsing header */
        min-height: 64px;
    }
    
    .nav__logo-text {
        /* Ensure logo text renders with proper weight on iOS */
        font-weight: 500;
        -webkit-font-feature-settings: "kern" 1;
        font-feature-settings: "kern" 1;
    }
    
    .nav__toggle {
        /* Ensure hamburger button is properly sized on iOS */
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        will-change: transform;
    }
    
    .nav__toggle-bar {
        /* Ensure hamburger bars render correctly on iOS */
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        will-change: transform;
    }
    
    .nav__menu {
        /* Ensure mobile menu renders correctly on iOS */
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        will-change: transform;
    }
}

/* iOS device orientation fix */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .header {
        padding-top: 8px;
        padding-bottom: 8px;
    }
    
    .nav__container {
        min-height: 48px;
    }
    
    .nav__menu {
        padding-top: 60px;
    }
}

/* Additional iOS specific fixes for Safari */
@supports (-webkit-touch-callout: none) {
    /* This targets iOS Safari specifically */
    .header {
        /* Force header to render correctly on iOS Safari */
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 9999 !important;
        transform: none !important;
        -webkit-transform: none !important;
        /* Override any hiding */
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .header--hidden {
        /* Prevent header from being hidden on iOS */
        transform: none !important;
        -webkit-transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    @media screen and (max-width: 768px) {
        .header {
            /* Ensure header is always visible on iOS mobile */
            display: block !important;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            width: 100% !important;
            height: auto !important;
            min-height: 70px !important;
        }
        
        .nav__container {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            padding: 0 16px !important;
            min-height: 60px !important;
        }
        
        .nav__logo,
        .nav__logo-text,
        .nav__toggle {
            display: block !important;
            opacity: 1 !important;
            visibility: visible !important;
        }
    }
}


