/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #173633;
    position: relative;
}

/* Animated Background Gradient - Optimized for performance */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #173633 0%, #1a3f3a 25%, #173633 50%, #1a3f3a 75%, #173633 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
    opacity: 0.8;
    will-change: background-position;
    transform: translateZ(0);
}

/* Particle System Background - Optimized for performance */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(2px 2px at 90% 40%, rgba(255, 255, 255, 0.06), transparent),
        radial-gradient(1px 1px at 33% 60%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(255, 255, 255, 0.08), transparent);
    background-size: 200% 200%;
    animation: particleFloat 20s ease-in-out infinite;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

/* Reduce animations on slower devices */
@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none;
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

:root {
    --header-height: clamp(50px, calc(40px + 0.5rem), 55px);
}

@media (min-width: 769px) {
    :root {
        --header-height: clamp(80px, calc(70px + 0.5rem), 90px);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(23, 54, 51, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: clamp(0.5rem, 1vw, 1rem) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(2rem, 5vw, 4rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(2rem, 4vw, 3rem);
    min-height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    transition: opacity 0.3s ease;
    padding: clamp(1rem, 2vw, 1.5rem) clamp(0.5rem, 1vw, 1rem);
    margin: clamp(0.5rem, 1vw, 1rem) 0;
    margin-right: auto;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: auto;
    max-height: clamp(25px, 3vw, 35px);
    width: auto;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-toggle:focus-visible {
    outline: 3px solid white;
    outline-offset: 4px;
    border-radius: 4px;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    position: relative;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-link:focus-visible {
    outline: 3px solid white;
    outline-offset: 4px;
    border-radius: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

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

.nav-link.active {
    opacity: 1;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .services-content {
        gap: clamp(2rem, 4vw, 3rem);
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: auto;
        aspect-ratio: 16 / 9;
        margin-top: 0;
    }
    
    .hero-video-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .hero-content {
        margin-top: 0;
        padding: clamp(0.5rem, 2vw, 2rem);
        padding-top: calc(var(--header-height) + clamp(1rem, 3vw, 2rem));
        max-width: 100%;
        min-width: 0;
        overflow: visible;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-tagline {
        font-size: clamp(0.7rem, 5vw, 1.4rem) !important;
        letter-spacing: clamp(0.5px, 0.15vw, 1.5px) !important;
        line-height: 1.3 !important;
        padding: 0 clamp(0.5rem, 2vw, 1.5rem) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
    }
    
    .hero-buttons {
        bottom: clamp(6rem, 10vw, 10rem);
        left: 0 !important;
        right: 0 !important;
        padding: 0 clamp(1rem, 3vw, 2rem);
        justify-content: center !important;
        align-items: center;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .header-container {
        padding: 0 clamp(1.25rem, 3.5vw, 2rem);
        position: relative;
        gap: clamp(1.5rem, 3vw, 2.5rem);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(80vw, 300px);
        height: 100vh;
        background: rgba(23, 54, 51, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover {
        opacity: 1;
        padding-left: 0.5rem;
        transition: padding-left 0.3s ease;
    }
    
    /* Hide shop link from navigation on mobile */
    .nav-link[href="shop.html"] {
        display: none !important;
    }
    
    .logo {
        padding: clamp(0.75rem, 1.5vw, 1.25rem) clamp(0.5rem, 1vw, 1rem);
        margin: clamp(0.25rem, 0.75vw, 0.75rem) 0;
        margin-right: auto;
    }
    
    .logo-img {
        height: auto;
        max-height: clamp(20px, 2.5vw, 28px);
        width: auto;
        object-fit: contain;
        object-position: left center;
    }
    
    /* Overlay backdrop */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    .testimonial-slide {
        height: auto;
        min-height: 50vh;
        max-height: none;
        padding: clamp(2rem, 4vw, 3rem) 0;
    }
    
    .testimonial-content {
        padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
        min-height: 50vh;
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        min-width: 0;
        overflow: visible;
        box-sizing: border-box;
    }
    
    .testimonial-text {
        font-size: clamp(1rem, 3vw, 1.8rem);
        line-height: 1.5;
        margin-bottom: clamp(1.5rem, 3vw, 2rem);
        padding: 0 clamp(1rem, 3vw, 2rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        letter-spacing: 0.8px;
        text-align: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: visible;
        white-space: normal;
    }
    
    .testimonial-author {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
    }
    
    .services-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .section-title {
        font-size: clamp(1.6rem, 4vw, 2rem);
    }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: hidden;
    background: #173633;
    z-index: 1;
    isolation: isolate;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    will-change: transform;
    transform: translateZ(0);
    /* Optimize for LCP */
    contain: layout style paint;
    overflow: hidden;
}

/* Parallax effect for hero video */
.hero.parallax-active .hero-video-container {
    transform: translateY(calc(var(--scroll-offset, 0) * 0.5px));
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #173633 url('../images/logo.png') center/cover no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
    /* Video loads after initial render to improve LCP */
    display: block;
}

/* Video background shows while video loads */

/* Show video when it's ready to play */
.hero-video-container video.ready {
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: calc(var(--header-height) + clamp(8rem, 12vw, 12rem));
    left: 0;
    right: 0;
    transform: none;
    z-index: 2;
    text-align: center;
    color: white;
    padding: clamp(1rem, 2vw, 2rem) clamp(1rem, 3vw, 4rem);
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-tagline {
    font-size: clamp(0.75rem, 3.5vw, 1.8rem);
    font-weight: bold;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: clamp(0.5px, 0.2vw, 1.5px);
    margin-top: 0;
    text-shadow: 
        0 -1px 2px rgba(0, 0, 0, 0.4),
        0 -2px 4px rgba(0, 0, 0, 0.3),
        0 1px 1px rgba(0, 0, 0, 0.2);
    opacity: 1 !important;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-text-fill-color: white;
    -webkit-text-stroke: 0;
    /* Ensure hero tagline is the LCP element */
    content-visibility: visible;
    contain: none;
}

/* Make hero tagline visible immediately on mobile for better LCP */
@media (max-width: 768px) {
    .hero-tagline {
        opacity: 1 !important;
    }
}

/* Typewriter effect */
.hero-tagline.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typewriter 2s steps(40, end);
}

/* Typewriter cursor - using a pseudo-element for better control */
.hero-tagline.typewriter::after {
    content: '|';
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 4px;
    vertical-align: baseline;
    font-weight: normal;
    animation: blinkCursor 0.75s step-end infinite;
}

/* Hide cursor when typewriter is not active */
.hero-tagline:not(.typewriter)::after {
    display: none;
}

@media (max-width: 768px) {
    .hero-tagline::after {
        display: none !important;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpButtons {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCursor {
    from, to { 
        opacity: 1;
    }
    50% { 
        opacity: 0;
    }
}

.hero-buttons {
    position: absolute;
    bottom: clamp(8rem, 12vw, 12rem);
    left: 0 !important;
    right: 0 !important;
    z-index: 3;
    display: flex !important;
    gap: clamp(1rem, 2vw, 2rem);
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: center;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    box-sizing: border-box;
    opacity: 0;
    animation: fadeInUpButtons 1s ease-out 1.5s forwards;
    margin: 0 auto !important;
    pointer-events: none;
    text-align: center;
}

.hero-buttons > * {
    pointer-events: auto;
    margin-left: 0;
    margin-right: 0;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: white;
    border: 2px solid white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 0;
    text-align: center;
    box-sizing: border-box;
}

.btn-primary:hover {
    background: white;
    color: #000;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
    border-radius: 2px;
}

.btn-primary-filled {
    background: white;
    color: #000;
    border: 2px solid white;
}

.btn-primary-filled:hover {
    background: transparent;
    color: white;
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: clamp(3rem, 5vw, 4rem);
}

.btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Marquee */
.marquee-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem 0;
}

.marquee {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.marquee span {
    display: inline-block;
    font-size: 4rem;
    font-weight: bold;
    color: white;
    margin-right: 2rem;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Testimonials Section */
.testimonials {
    padding: clamp(6rem, 10vw, 10rem) 0 0 0;
    background: #173633;
    color: white;
    position: relative;
    z-index: 10;
}

.testimonials-slider {
    width: 100%;
    margin: 0;
    position: relative;
}

.testimonial-slide {
    display: none;
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 500px;
    max-height: 700px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    align-items: center;
    justify-content: center;
}

.testimonial-slide.active {
    display: flex;
}

.testimonial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.testimonial-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(90vw, 6000px);
    min-width: 0;
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: visible;
}

.testimonial-text {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.4;
    margin: 0;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    max-width: 100%;
    min-width: 0;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    box-sizing: border-box;
    overflow: visible;
    white-space: normal;
}

.testimonial-author {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: clamp(2rem, 4vw, 3rem);
    position: relative;
    z-index: 3;
    background: #173633;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: white;
}

.indicator:focus-visible {
    outline: 3px solid white;
    outline-offset: 2px;
    border-radius: 50%;
}

/* Trust Indicators Section */
.trust-indicators {
    padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem);
    background: #173633;
    color: white;
}

.trust-container {
    max-width: min(90vw, 6000px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(2rem, 4vw, 4rem);
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Trust items with scroll-reveal class should animate */
.trust-item.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.trust-item.scroll-reveal.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.trust-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    line-height: 1;
    transition: transform 0.3s ease;
}

.trust-item:hover .trust-number {
    transform: scale(1.1);
}

.trust-label {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Portfolio Preview Section */
.portfolio-preview {
    padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem);
    background: #0f2c29;
    color: white;
}

.portfolio-preview-container {
    max-width: min(90vw, 6000px);
    margin: 0 auto;
    text-align: center;
}

.portfolio-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: clamp(3rem, 6vw, 4rem);
    margin-top: 1rem;
}

/* Portfolio subtitle with scroll-reveal should animate */
.portfolio-subtitle.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-subtitle.scroll-reveal.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: clamp(3rem, 5vw, 4rem);
}

.portfolio-preview-item {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.portfolio-preview-item video,
.portfolio-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    will-change: transform;
}

.portfolio-preview-item:hover video,
.portfolio-preview-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-preview-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-label {
    color: white;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    color: #173633;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-cta:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.floating-cta:focus-visible {
    outline: 3px solid #173633;
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        justify-content: center !important;
    }
    
    .hero-buttons .btn-primary {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    
    .trust-container {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(1.5rem, 3vw, 2rem);
    }
    
    .portfolio-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1920px) {
    .services-container,
    .footer-container {
        max-width: 6000px;
    }
    
    .testimonial-content {
        max-width: 6000px;
    }
}

/* Medium screens - improve hero text wrapping */
@media (min-width: 1200px) and (max-width: 1600px) {
    .hero-tagline {
        font-size: clamp(1.2rem, 3vw, 1.6rem) !important;
        letter-spacing: clamp(0.8px, 0.15vw, 1.2px) !important;
    }
    .hero-content {
        padding-left: clamp(2rem, 4vw, 6rem);
        padding-right: clamp(2rem, 4vw, 6rem);
    }
}

/* Services Section */
.services {
    padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 3rem);
    background: #173633;
    min-height: 80vh;
    color: white;
}

.services-container {
    max-width: 6000px;
    margin: 0 auto;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.services-left,
.services-right {
    display: flex;
    flex-direction: column;
}

.services-left {
    margin-bottom: 0;
}

.services-right {
    margin-bottom: 0;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    color: white;
}

/* Only apply animation styles if element has scroll-reveal class */
.section-title:not(.scroll-reveal):not(.scroll-reveal-left):not(.scroll-reveal-right) {
    opacity: 1;
    transform: none;
}

.section-title.scroll-reveal,
.section-title.scroll-reveal-left,
.section-title.scroll-reveal-right {
    opacity: 0;
}

/* Fallback: Show elements after 3 seconds if JavaScript hasn't loaded (graceful degradation) */
@media (prefers-reduced-motion: no-preference) {
    /* Only apply fallback if motion is not reduced */
    .scroll-reveal:not(.animate-in),
    .scroll-reveal-left:not(.animate-in),
    .scroll-reveal-right:not(.animate-in),
    .scroll-reveal-scale:not(.animate-in),
    .section-title.scroll-reveal:not(.animate-in),
    .section-title.scroll-reveal-left:not(.animate-in),
    .section-title.scroll-reveal-right:not(.animate-in) {
        animation: fadeInFallback 0.5s ease forwards 3s;
    }
}

@keyframes fadeInFallback {
    to {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(1);
    }
}

.section-title.scroll-reveal {
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-title.scroll-reveal-left {
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.scroll-reveal-right {
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.animate-in {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-scale.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation delay */
.scroll-reveal:nth-child(1) { transition-delay: 0s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.5s; }

.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
}

.contact-form-container iframe {
    border-radius: 4px;
}

.accordion {
    list-style: none;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(1.2rem, 2.5vw, 1.8rem) 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    transition: color 0.3s ease;
    color: white;
}

.accordion-header:hover {
    color: rgba(255, 255, 255, 0.7);
}

.accordion-header:focus-visible {
    outline: 3px solid white;
    outline-offset: 4px;
    border-radius: 4px;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 0 0 1.5rem 0;
}

.accordion-content p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 100%;
}


/* Footer */
.footer {
    background: #0f2523;
    color: white;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
}

.footer-container {
    max-width: 6000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.footer-section {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Allows flex items to shrink below their minimum content size */
    gap: 0.5rem;
}

.footer-section h4 {
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.2vw, 2px);
    margin-bottom: clamp(0.8rem, 1.5vw, 1.2rem);
    color: white;
}

.footer-location {
    align-items: flex-start;
    text-align: left;
}

.footer-location h4 {
    text-align: left;
}

.footer-hours {
    align-items: center;
    text-align: center;
}

.footer-hours h4 {
    text-align: center;
}

.footer-contact {
    align-items: flex-end;
    text-align: right;
}

.footer-contact h4 {
    text-align: right;
}

.footer-section p {
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    line-height: 1.5;
    margin: 0;
    margin-bottom: clamp(0.5rem, 1vw, 0.8rem);
    color: rgba(255, 255, 255, 0.9);
}

.footer-section p:last-child {
    margin-bottom: 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    word-break: break-word;
}

.footer-section a:hover {
    color: white;
    opacity: 1;
    text-decoration: underline;
}

.footer-section a:focus-visible,
.social-links a:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
    border-radius: 4px;
}

.map-container {
    margin-bottom: clamp(0.8rem, 1.5vw, 1.2rem);
    border-radius: clamp(6px, 1vw, 10px);
    overflow: hidden;
    width: 100%;
    aspect-ratio: 42 / 9;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background-color: #f5f5f5;
    isolation: isolate; /* Create stacking context for filters */
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(245, 245, 245, 0) 0%, rgba(245, 245, 245, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.map-container iframe,
.map-container .map-canvas {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

/* Black and white filter for map iframe */
.map-container iframe {
    filter: grayscale(100%) contrast(115%) brightness(92%);
    -webkit-filter: grayscale(100%) contrast(115%) brightness(92%);
    transition: filter 0.3s ease;
    mix-blend-mode: normal;
}

/* Subtle hover effect */
.map-container:hover iframe {
    filter: grayscale(95%) contrast(110%) brightness(95%);
    -webkit-filter: grayscale(95%) contrast(110%) brightness(95%);
}

/* Map canvas for JavaScript API (if used) */
.map-container .map-canvas {
    filter: none; /* Styling handled by Google Maps API */
    border-radius: inherit;
}

.social-links {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: clamp(0.8rem, 1.5vw, 1.2rem);
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.footer-contact .social-links {
    justify-content: flex-end;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.social-links a:hover {
    background: transparent;
    transform: scale(1.1);
    text-decoration: none;
    opacity: 0.8;
}

.social-links svg {
    fill: white;
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.social-links a:hover svg {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 3vw, 2.5rem);
        padding: 0 clamp(1.5rem, 4vw, 2rem);
    }
    
    .footer-section {
        width: 100%;
    }
    
.footer-location,
.footer-hours,
.footer-contact {
    align-items: flex-start;
    text-align: left;
}

.footer-location h4,
.footer-hours h4,
.footer-contact h4 {
    text-align: left;
}
    
    .footer-section h4 {
        margin-bottom: clamp(0.8rem, 1.5vw, 1.2rem);
    }
    
    .map-container {
        aspect-ratio: 21 / 9;
        margin-bottom: clamp(0.8rem, 1.5vw, 1.2rem);
    }
    
    .footer-contact .social-links {
        justify-content: flex-start;
    }
    
    .footer-section p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-tagline {
        font-size: clamp(0.6rem, 4.5vw, 1rem) !important;
        letter-spacing: clamp(0.3px, 0.1vw, 0.8px) !important;
        line-height: 1.3 !important;
        padding: 0 clamp(0.5rem, 2vw, 1rem) !important;
        min-width: 0 !important;
        word-break: break-word !important;
    }
    
    .testimonial-text {
        font-size: clamp(0.9rem, 3.5vw, 1.4rem) !important;
        padding: 0 clamp(0.75rem, 2.5vw, 1.5rem) !important;
    }
    
    .marquee span {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    
    .testimonial-text {
        font-size: clamp(1rem, 3.5vw, 1.6rem);
        line-height: 1.5;
        letter-spacing: 0.8px;
        padding: 0 clamp(1rem, 3vw, 2rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
        min-width: 0;
        overflow: visible;
        white-space: normal;
    }
    
    .testimonial-author {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    }
    
    .footer {
        padding: clamp(3rem, 6vw, 4rem) clamp(1.2rem, 3vw, 1.5rem) clamp(2rem, 4vw, 2.5rem);
    }
    
    .footer-container {
        gap: clamp(2rem, 4vw, 3rem);
        padding: 0 clamp(1rem, 3vw, 1.5rem);
    }
    
    .footer-section h4 {
        margin-bottom: clamp(0.8rem, 1.5vw, 1.2rem);
    }
    
    .footer-section p {
        margin-bottom: clamp(0.6rem, 1.2vw, 1rem);
    }
}

@media (min-width: 1200px) {
    .footer-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Our Work Page Styles */
.our-work-page {
    margin-top: var(--header-height);
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
    background: #173633;
    color: white;
    min-height: calc(100vh - var(--header-height));
}

.our-work-container {
    max-width: min(90vw, 6000px);
    margin: 0 auto;
}

.our-work-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.5vw, 4px);
    margin-bottom: clamp(3rem, 6vw, 5rem);
    text-align: center;
    color: white;
    font-weight: 700;
}

/* Video Gallery Section */
.video-gallery {
    margin-bottom: clamp(4rem, 8vw, 6rem);
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 3vw, 3.5rem);
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
}

.video-gallery-item {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: clamp(8px, 1.5vw, 12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: #000;
    margin: 0 auto;
}

.video-gallery-item video,
.video-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-gallery-item video {
    background: #000;
}

/* Posters Section */
.posters-section {
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.posters-section-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    text-align: center;
    color: white;
}

.posters-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.posters-carousel {
    display: flex;
    overflow: visible;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: 0 clamp(3rem, 6vw, 5rem);
    align-items: center;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    min-height: 1px; /* Ensure carousel has height for layout */
    width: auto;
    flex-wrap: nowrap;
}

/* Infinite scroll animation - using CPU-based transforms to avoid GPU conflicts with videos */
.posters-carousel.infinite-scroll {
    animation: infiniteScroll 30s linear infinite !important;
    will-change: transform;
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.posters-carousel-wrapper:hover .posters-carousel.infinite-scroll {
    animation-play-state: paused;
}

.posters-section {
    margin-bottom: clamp(3rem, 6vw, 5rem);
    overflow: hidden;
}

.posters-carousel::-webkit-scrollbar {
    display: none;
}

.poster-slide {
    flex: 0 0 auto;
    width: auto;
    max-width: min(400px, 75vw);
    opacity: 0.9;
    transition: opacity 0.3s ease;
    padding: clamp(1rem, 2vw, 1.5rem) clamp(0.5rem, 1vw, 1rem);
    pointer-events: auto;
    position: relative;
    overflow: visible;
    box-sizing: content-box;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: visible;
}

.poster-slide:hover {
    opacity: 1;
}

.poster-image-wrapper {
    display: inline-block;
    max-width: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.poster-slide:hover .poster-image-wrapper {
    transform: scale(1.05); /* Hover state with slight scale */
}

.poster-slide img {
    width: auto;
    height: auto;
    max-width: min(400px, 75vw);
    max-height: 80vh;
    display: block;
    border-radius: clamp(4px, 0.8vw, 8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.3s ease;
    object-fit: contain;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    visibility: visible;
    opacity: 1;
}

.poster-slide:hover img {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

/* Carousel buttons and indicators removed - using infinite auto-scroll instead */
.carousel-btn,
.poster-indicators,
.poster-indicator {
    display: none !important;
}

/* Desktop - larger videos with 2-3 columns */
@media (min-width: 769px) {
    .video-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(2rem, 4vw, 3.5rem);
        max-width: min(90vw, 6000px);
    }
    
    .video-gallery-item {
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .video-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(2.5rem, 4vw, 4rem);
    }
}

@media (max-width: 768px) {
    .video-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(0.75rem, 2vw, 1.5rem);
    }
    
    .posters-carousel {
        padding: 0 clamp(2.5rem, 8vw, 4rem);
        gap: clamp(1rem, 2vw, 1.5rem);
    }
    
    .poster-slide {
        width: auto;
        max-width: min(280px, 80vw);
        padding: clamp(1rem, 2.5vw, 2rem) clamp(0.5rem, 2vw, 1rem);
        overflow: visible;
    }
    
    .poster-slide img {
        max-width: min(280px, 80vw);
        max-height: 70vh;
    }
    
}

/* Contact Page Styles */
.contact-page {
    margin-top: var(--header-height);
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
    background: #173633;
    color: white;
    min-height: calc(100vh - var(--header-height));
}

.contact-container {
    max-width: min(90vw, 6000px);
    margin: 0 auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
    min-height: 60vh;
}

.contact-form-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.contact-form-wrapper {
    width: 100%;
    max-width: 100%;
}

.contact-form-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    color: white;
}

.contact-form-container {
    width: 100%;
    border: none;
    background: transparent;
}

.contact-form-container iframe {
    border: none;
    background: transparent;
}

/* Circular Images Section */
.contact-images-section {
    position: relative;
    width: 100%;
    height: clamp(500px, 60vw, 800px);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-circle-image {
    position: absolute;
    width: clamp(280px, 35vw, 450px);
    height: clamp(280px, 35vw, 450px);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: none;
    transition: transform 0.3s ease, z-index 0.3s ease;
}

.contact-circle-image:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.contact-circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Position the circles in an overlapping composition */
.contact-circle-1 {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.contact-circle-2 {
    bottom: 10%;
    left: 5%;
    z-index: 2;
    transform: translateX(0);
}

.contact-circle-3 {
    bottom: 10%;
    right: 5%;
    z-index: 1;
    transform: translateX(0);
}

.contact-circle-1:hover {
    transform: translateX(-50%) scale(1.05);
}

.contact-circle-2:hover {
    transform: scale(1.05);
}

.contact-circle-3:hover {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: clamp(3rem, 6vw, 5rem);
    }
    
    .contact-images-section {
        height: clamp(450px, 55vw, 700px);
        min-height: 450px;
    }
    
    .contact-circle-image {
        width: clamp(240px, 30vw, 380px);
        height: clamp(240px, 30vw, 380px);
    }
    
    .contact-circle-1 {
        top: 3%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-circle-2 {
        bottom: 8%;
        left: 3%;
        transform: translateX(0);
    }
    
    .contact-circle-3 {
        bottom: 8%;
        right: 3%;
        transform: translateX(0);
    }
    
    .contact-circle-1:hover {
        transform: translateX(-50%) scale(1.05);
    }
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 4vw, 3rem);
    }
    
    .contact-form-section {
        justify-content: center;
    }
    
    .contact-images-section {
        height: clamp(400px, 50vw, 600px);
        min-height: 400px;
    }
    
    .contact-circle-image {
        width: clamp(200px, 35vw, 300px);
        height: clamp(200px, 35vw, 300px);
    }
    
    .contact-circle-1 {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-circle-2 {
        bottom: 5%;
        left: 0;
        transform: translateX(0);
    }
    
    .contact-circle-3 {
        bottom: 5%;
        right: 0;
        transform: translateX(0);
    }
    
    .contact-circle-1:hover {
        transform: translateX(-50%) scale(1.05);
    }
    
    .contact-form-wrapper {
        max-width: 100%;
    }
}

/* Team Page Styles */
.team-page {
    margin-top: var(--header-height);
    padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 4vw, 4rem);
    background: #173633;
    color: white;
    min-height: calc(100vh - var(--header-height));
}

.team-container {
    max-width: min(90vw, 6000px);
    margin: 0 auto;
    width: 100%;
}

.team-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.3vw, 4px);
    margin-bottom: clamp(3rem, 6vw, 5rem);
    text-align: center;
    color: white;
    font-weight: 600;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    max-width: 6000px;
    margin: 0 auto;
    justify-items: center;
    align-items: start;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 280px;
}

.team-member-image {
    width: clamp(200px, 22vw, 280px);
    height: clamp(200px, 22vw, 280px);
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bias Hans Potter's image down in the frame */
.team-member:last-child .team-member-image img {
    object-position: center 60%;
}

.team-member-name {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 600;
    color: white;
    margin-bottom: clamp(0.5rem, 1vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-member-title {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(2rem, 4vw, 3rem);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(2rem, 5vw, 3rem);
    }
    
    .team-member {
        max-width: 100%;
    }
    
    .team-member-image {
        width: clamp(160px, 35vw, 220px);
        height: clamp(160px, 35vw, 220px);
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: clamp(2.5rem, 6vw, 3.5rem);
    }
    
    .team-title {
        margin-bottom: clamp(2rem, 5vw, 3rem);
    }
}

