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

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    line-height: 1.4;
    color: #1a2332;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.25;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables */
:root {
    --wave-blue: #09a7c4;
    --dark-navy: #1a2332;
    --light-aqua: #e6f7ff;
    --seafoam: #09a7c4;
    --white: #ffffff;
    --yellow: #FFD301;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(9, 167, 196, 0.1);
}

.navbar.scrolled {
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(15px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    /* reduced header height */
    transition: height 0.25s ease;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--dark-navy);
    opacity: 0.6;
    margin-top: -12px;
    margin-right: 8px;
    font-weight: 400;
    line-height: 1;
}

.navbar.scrolled .logo-tagline {
    color: var(--white);
}

.logo {
    height: 56px;
    /* slightly smaller logo */
    width: auto;
    transition: height 0.25s ease;
}

/* Navbar highlight when Work button is active */
.navbar.work-highlight {
    background: var(--yellow);
    transition: background 0.18s ease;
}

.navbar.work-highlight .nav-menu a {
    color: var(--dark-navy);
}

.navbar.work-highlight .logo {
    filter: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* Nav Toggle Base */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--dark-navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-toggle span {
    background-color: var(--white);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}


.nav-menu a {
    text-decoration: none;
    color: var(--dark-navy);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-menu a {
    color: var(--white);
}

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

/* Hero Section */
.hero {
    position: relative;
    /* Restored to 100vh for a more impactful hero presence */
    min-height: 100vh;
    background: var(--yellow);
    display: flex;
    align-items: center;
    overflow: visible;
    padding-left: calc((100% - 1200px) / 2 + 20px);
    padding-right: 20px;
}



.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0;
    padding: 0;
    margin-top: 50px;
}

.hero-content {
    text-align: left;
    max-width: 550px;
    z-index: 10;
    position: relative;
}

.hero-title {
    font-family: 'Coiny', 'Potta One', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--dark-navy);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--dark-navy);
    opacity: 0.8;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Hide title/subtitle only when buttons are hovered/focused */
.hero--buttons-active .hero-title,
.hero--buttons-active .hero-subtitle {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    pointer-events: none;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    /* Added to move 'Book your ride' button down 10px */
    margin-top: 10px;
}

.btn-primary {
    background: var(--wave-blue);
    color: var(--white);
    /* default white outline, turns black on hover */
    border: 2px solid var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    background: #089eb5;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(9, 167, 196, 0.3);
    border-color: rgba(0, 0, 0, 0.95);
    /* solid black outline on hover */
}

.btn-primary:focus-visible {
    outline: none;
    border-color: rgba(0, 0, 0, 0.95);
    /* also show black outline on keyboard focus */
    box-shadow: 0 0 0 6px rgba(9, 167, 196, 0.12), 0 10px 25px rgba(9, 167, 196, 0.18);
}

.btn-outline {
    background: transparent;
    color: var(--dark-navy);
    border: 2px solid var(--dark-navy);
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-outline:hover {
    /* Invert to black background with white text on hover */
    background: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border-color: #000;
}


/* Hidden proposal hero image used on Request a Proposal hover/focus */
.hero-proposal-img {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    /* Shift focus point up to pull the text vertically away from the button */
    object-position: center top;
    opacity: 0;
    transition: opacity 0.32s ease, transform 0.32s ease;
    z-index: 2;
    pointer-events: none;
}

/* Active state when hovering/focusing the primary button */
.hero--proposal-active .hero-proposal-img {
    opacity: 1;
    transform: scale(1);
}

/* Work hero image and active state */
.hero-work-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.32s ease, transform 0.32s ease;
    z-index: 2;
    pointer-events: none;
}

.hero--work-active .hero-work-img {
    opacity: 1;
    transform: scale(1);
}

/* When Work view is active, style the Request a Proposal button: yellow background, black text and outline */
.hero--work-active .btn-primary {
    background: var(--yellow);
    color: var(--dark-navy);
    border-color: #000;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.hero--work-active .btn-primary:hover {
    background: var(--yellow);
    color: var(--dark-navy);
    border-color: #000;
    transform: translateY(-2px);
}

/* Hide title, subtitle and the surf-scene while keeping outline visible (proposal active) */
.hero--proposal-active .hero-title,
.hero--proposal-active .hero-subtitle,
.hero--proposal-active .surf-scene {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    pointer-events: none;
}

/* Ensure the primary button remains visible and above the image - and switch to yellow while active */
.hero--proposal-active .btn-primary {
    position: relative;
    z-index: 11;
    transform: none;
    background: var(--yellow);
    color: var(--dark-navy);
    box-shadow: 0 10px 25px rgba(255, 211, 1, 0.18);
}

/* Prevent the blue hover transform from conflicting when active */
.hero--proposal-active .btn-primary:hover {
    background: var(--yellow);
    transform: none;
    box-shadow: 0 14px 30px rgba(255, 211, 1, 0.22);
}

/* When Request a Proposal is active, make the outline button visibly white with a dark outline */
.hero--proposal-active .btn-outline {
    background: var(--white);
    color: var(--dark-navy);
    border-color: var(--dark-navy);
    transform: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Keep outline hover consistent during proposal active: inverted black on hover */
.hero--proposal-active .btn-outline:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
    border-color: #000;
}


.surf-scene {
    position: absolute;
    bottom: -100px;
    right: -200px;
    width: 800px;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

/* Hide the surfer image when the hero proposal state is active */
.hero.hero--proposal-active+.surfer {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}

.hero.hero--proposal-active+.surfer {
    /* ensure layout stability */
    visibility: visible;
}

/* Hide the surfer image when the Dive into Work state is active */
.hero.hero--work-active+.surfer {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}

.hero.hero--work-active+.surfer {
    visibility: visible;
}

.wave-bg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: auto;
    opacity: 1;
    z-index: 2;
}







/* Micro CTAs */
.micro-ctas {
    padding: 60px 0;
    background: #09a7c4;
    position: relative;
    isolation: isolate;
}

/* About Section */
.about {
    margin-top: -30px;
    /* Moves the section up slightly */
    padding: 100px 0 200px;
    /* Ample buffer for bottom cropping */
    background: #09a7c4;
    position: relative;
    overflow: visible;
    /* Required to see the top wave */
    overflow-x: clip;
    /* Clips beach objects at screen edges */
    z-index: 4;
    isolation: isolate;
}

.about::before {
    content: '';
    position: absolute;
    top: -79px;
    left: -300%;
    width: 700%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,100 350,0 600,60 C850,120 1050,20 1200,60 L1200,120 L0,120 Z' fill='%2309a7c4'/%3E%3C/svg%3E") repeat-x;
    background-size: 1200px 100%;
    animation: waveMove 10s linear infinite;
    z-index: 5;
}

/* About New Layout */
.about-new-layout {
    width: 100%;
    max-width: 1200px;
    /* Use full container width */
    margin: -30px auto 0;
    /* Moderate shift up to avoid wave overlap */
}

.about-centered-title {
    font-family: 'Coiny', 'Potta One', cursive;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 40px;
    color: var(--white);
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 10;
    /* Above the wave */
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Perfectly moved 30px up from original 50px combined gap */
    align-items: flex-start;
}

.about-paragraphs p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 24px;
    color: var(--white);
    text-align: left;
}

.about-paragraphs strong {
    font-weight: 700;
}

.about-bottom-paras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    margin-top: 0;
    /* Moving closer to content */
}

.about-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px 30px;
    /* Reduced from 30px 40px so it's less bulky */
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.18);
}

.about-card-title {
    font-size: 0.95rem;
    /* Reduced from 1.25rem to be strictly subtext */
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    /* Tighter spacing */
}

.about-card-text {
    font-size: 0.85rem;
    /* Reduced from 1rem to visually differentiate it from 1.1rem main text */
    line-height: 1.6;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.about-card-text strong {
    font-weight: 700;
    color: var(--white);
}

/* Responsive adjustment for About section */
@media (max-width: 991px) {
    .about-bottom-paras {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Micro CTAs */
.micro-ctas {
    padding: 60px 0;
    background: #09a7c4;
    position: relative;
    isolation: isolate;
}

.micro-ctas::before {
    content: '';
    position: absolute;
    top: -79px;
    left: -300%;
    width: 700%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,100 350,0 600,60 C850,120 1050,20 1200,60 L1200,120 L0,120 Z' fill='%2309a7c4'/%3E%3C/svg%3E") repeat-x;
    background-size: 1200px 100%;
    animation: waveMove 10s linear infinite;
    z-index: 10;
}

@keyframes waveMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(1200px);
    }
}

@keyframes surfer-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Tilt animation used when the surfer crosses a card */
@keyframes tilt-3d {
    0% {
        transform: perspective(900px) translateZ(0) rotateY(0);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }

    40% {
        transform: perspective(900px) translateZ(6px) rotateY(8deg);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    }

    70% {
        transform: perspective(900px) translateZ(3px) rotateY(-4deg);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    }

    100% {
        transform: perspective(900px) translateZ(0) rotateY(0);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }
}

.tilt-3d {
    animation: tilt-3d 680ms cubic-bezier(.2, .9, .2, 1);
    transform-origin: center;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

.micro-ctas .cta-card {
    background: rgba(255, 255, 255, 0.95);
}

.micro-ctas .cta-card:hover {
    background: var(--white);
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    gap: 30px;
    justify-content: center;
}

.cta-card {
    text-align: center;
    padding: 20px;
    background: var(--light-aqua);
    border-radius: 20px;
    transition: transform 0.3s ease;
    cursor: pointer;
    overflow: visible;
    position: relative;
    z-index: 10001;
}

.cta-card:hover {
    transform: translateY(-5px);
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-icon-img {
    width: 400px;
    height: 400px;
    object-fit: contain;
    margin-top: -100px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.cta-card-1 {
    background: white !important;
}

.cta-card-2 {
    background: white !important;
}

.cta-card-3 {
    background: white !important;
}

.cta-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-navy);
}

.cta-card p {
    color: var(--dark-navy);
    opacity: 0.7;
}

/* Awards Section */
.awards {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--wave-blue) 0%, var(--seafoam) 100%);
    position: relative;
    overflow-x: clip;
}

.awards::before {
    content: '';
    position: absolute;
    top: -79px;
    left: -300%;
    width: 700%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,100 350,0 600,60 C850,120 1050,20 1200,60 L1200,120 L0,120 Z' fill='%2309a7c4'/%3E%3C/svg%3E") repeat-x;
    background-size: 1200px 100%;
    animation: waveMove 10s linear infinite;
    z-index: 10;
}

.awards h2 {
    font-family: 'Coiny', 'Potta One', cursive;
    text-align: center;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 60px;
}

.awards-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.award-card {
    background: #ffffff;
    /* pure white background for animated GIF cards */
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    /* slight shadow to keep separation */
}

.award-card:hover {
    transform: translateY(-10px);
}

.award-badge {
    font-size: 3rem;
    margin-bottom: 20px;
}

.award-badge-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: inline-block;
    margin-bottom: 20px;
}

/* Smaller icons on small screens */
@media (max-width: 480px) {
    .award-badge-img {
        width: 80px;
        height: 80px;
    }
}


.award-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-navy);
}

.award-card p {
    color: var(--dark-navy);
    opacity: 0.7;
}

/* Services Section */
.services {
    margin-top: -150px;
    /* Overlap with Portfolio */
    padding: 180px 0 80px;
    background: var(--white);
    position: relative;
    overflow: visible;
    z-index: 4;
}

.services::before {
    content: '';
    position: absolute;
    top: -79px;
    left: -300%;
    width: 700%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,100 350,0 600,60 C850,120 1050,20 1200,60 L1200,120 L0,120 Z' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x;
    background-size: 1200px 100%;
    animation: waveMove 10s linear infinite;
    z-index: 10;
}

.services h2 {
    font-family: 'Coiny', 'Potta One', cursive;
    text-align: center;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--dark-navy);
    margin-bottom: 60px;
}

.services-list {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px 40px;
}

.service-row {
    padding: 0;
    border-bottom: none;
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    gap: 0 16px;
    align-items: start;
}

.service-icon-gif {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 0;
    display: block;
    border-radius: 12px;
    grid-column: 1;
    grid-row: 1 / span 2;
}

.service-row h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--dark-navy);
    grid-column: 2;
    grid-row: 1;
    align-self: center;
}

.service-row ul {
    list-style: none;
    padding: 0;
    margin: 0;
    grid-column: 2;
    grid-row: 2;
}

.service-row ul li {
    color: var(--dark-navy);
    opacity: 0.7;
    line-height: 1.4;
    font-size: 0.95rem;
    margin: 0;
}

.service-row p {
    color: var(--dark-navy);
    opacity: 0.7;
    line-height: 1.5;
    font-size: 1rem;
    grid-column: 2;
    grid-row: 2;
}

/* Gifting Service Hover Animation */
.gifting-service {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 15px;
    margin: -15px;
    border-radius: 16px;
    position: relative;
    cursor: pointer;
}

.gifting-service:hover {
    background: var(--light-aqua);
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(9, 167, 196, 0.15);
}

.gifting-service .service-icon-gif {
    transition: transform 0.4s ease;
}

.gifting-service:hover .service-icon-gif {
    transform: scale(1.15) rotate(5deg);
}

.gifting-service h3 {
    transition: color 0.3s ease;
}

.gifting-service:hover h3 {
    color: var(--wave-blue);
}

.external-link-icon {
    font-size: 0.8rem;
    margin-left: 4px;
    opacity: 0.4;
    transition: all 0.3s ease;
    display: inline-block;
}

.gifting-service:hover .external-link-icon {
    opacity: 1;
    transform: translate(3px, -3px);
    color: var(--wave-blue);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: var(--wave-blue);
    box-shadow: 0 15px 40px rgba(9, 167, 196, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-navy);
}

.service-item p {
    color: var(--dark-navy);
    opacity: 0.7;
    line-height: 1.6;
}

.service-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-item ul li {
    color: var(--dark-navy);
    opacity: 0.7;
    line-height: 1.5;
    padding: 5px 0;
}

/* Work Section */
.work {
    margin-top: -150px;
    padding: 180px 0 150px;
    /* Restored the gradient merge to match adjacent sections (About and Services) */
    background: linear-gradient(to bottom, #09a7c4 0%, #f4e4bc 150px, #f4e4bc calc(100% - 150px), var(--white) 100%);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    z-index: 5;
}

/* Background image carrier with smooth mask merge */
.work::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("https://res.cloudinary.com/dtywi1q5a/image/upload/palm-leaves-shadow-beige-background_dobsr6") center/cover no-repeat;
    z-index: -1;
    pointer-events: none;
    /* Smoothly fade the image into the background gradient at the edges */
    mask-image: linear-gradient(to bottom, transparent 0%, black 150px, black calc(100% - 150px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 150px, black calc(100% - 150px), transparent 100%);
}

.work-background {
    display: none;
}

.work .container {
    position: relative;
    z-index: 2;
    /* Ensures content is above the background images */
}

.work h2 {
    font-family: 'Coiny', 'Potta One', cursive;
    text-align: center;
    font-size: 3.5rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* Portfolio / Work Section Categories */
.portfolio-category {
    margin-bottom: 60px;
}

.portfolio-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
    border-left: 5px solid var(--wave-blue);
    padding-left: 15px;
}

/* Portfolio Card Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.portfolio-card {
    background-color: var(--white);
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.card-media {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.card-media img,
.card-media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border: none;
    pointer-events: none;
}

.card-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    text-align: center;
    gap: 8px;
    z-index: 2;
    box-sizing: border-box;
}

/* Solid white background layer */
.card-info::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: -2;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

/* Fluid SVG wave top edges for realistic sloshing */
.card-info::before {
    content: '';
    position: absolute;
    top: -19px;
    /* Overlap by 1px to prevent gaps */
    left: 0;
    width: 100%;
    height: 20px;
    /* Layer 1 (Solid White, Front), Layer 2 (Translucent White, Back) */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 Q300,0 600,60 T1200,60 L1200,121 L0,121 Z' fill='%23ffffff' /%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 Q300,0 600,60 T1200,60 L1200,121 L0,121 Z' fill='%23ffffff' fill-opacity='0.6' /%3E%3C/svg%3E");
    background-position: 0 bottom, 0 bottom;
    background-size: 70px 14px, 110px 20px;
    background-repeat: repeat-x, repeat-x;
    z-index: -2;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.card-info>* {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.portfolio-card:hover .card-info::after {
    transform: translateY(145px);
    /* Drops to create a 95px pocket */
}

.portfolio-card:hover .card-info::before {
    /* Translate down smoothly while launching continuous horizontal background simulation */
    transform: translateY(145px);
    animation: card-water-slosh 2s linear infinite;
}

@keyframes card-water-slosh {
    0% {
        background-position: 0 bottom, 0 bottom;
    }

    100% {
        background-position: -70px bottom, -110px bottom;
    }
}

.portfolio-card:hover .card-info>* {
    transform: translateY(72px);
}

.card-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2px;
    height: 60px;
    /* Stabilizes layout during child resize so text doesn't jerk */
}

.logo-divider {
    font-size: 1.1rem;
    color: var(--dark-navy);
    font-weight: bold;
    opacity: 0.6;
}

.card-logo {
    height: 48px;
    /* Balanced visual size for cover */
    max-width: 140px;
    /* prevent wide logos from becoming too bulky */
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Give Exhibition logos a size boost on cover since they are intrinsically smaller */
.portfolio-category:nth-of-type(2) .card-logo {
    height: 60px;
    max-width: 170px;
}

.portfolio-card:hover .card-logo {
    height: 32px;
    max-width: 100px;
    /* Shrink to fit neatly in pocket */
}

/* Visually balance the Wipro logo which has less vertical white space than Microsoft */
img.card-logo.wipro-logo {
    height: 22px;
}

.portfolio-card:hover img.card-logo.wipro-logo {
    height: 18px;
}

.card-info h4 {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.35;
    color: #000;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), font-size 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .card-info h4 {
    transform: translateY(55px);
    /* Move less than the logos (72px) to tighten the gap */
}

/* Responsive adjustment for Portfolio Grid */
@media (max-width: 991px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}



/* Clients Section */
.clients {
    padding: 130px 0;
    background: var(--light-aqua);
    color: var(--dark-navy);
    position: relative;
    overflow-x: clip;
    z-index: 5;
}

.clients::before {
    content: '';
    position: absolute;
    top: -79px;
    left: -300%;
    width: 700%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,100 350,0 600,60 C850,120 1050,20 1200,60 L1200,120 L0,120 Z' fill='%23e6f7ff'/%3E%3C/svg%3E") repeat-x;
    background-size: 1200px 100%;
    animation: waveMove 10s linear infinite;
    z-index: 10;
}

.clients h2 {
    font-family: 'Coiny', 'Potta One', cursive;
    text-align: center;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--dark-navy);
    margin-bottom: 60px;
    overflow-wrap: normal;
    word-wrap: normal;
}

.clients-logos-wrapper {
    overflow: hidden;
    width: 100%;
}

.mobile-clone {
    display: none;
}

.clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto;
}

.client-logo-img {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: grayscale(100%);
}

.client-logo-img:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(0%);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
    align-items: center;
}

.client-logo {
    background: rgba(255, 255, 255, 0.08);
    height: 95px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--white);
    transition: transform 0.35s cubic-bezier(.2, .9, .2, 1), background 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.client-logo:hover {
    transform: translateY(-6px) scale(1.03);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    color: var(--dark-navy);
}

.testimonial {
    background: rgba(255, 255, 255, 0.95);
    padding: 48px;
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 10;
    border-radius: 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--dark-navy);
    margin-bottom: 20px;
    line-height: 1.4;
}

.testimonial cite {
    color: var(--wave-blue);
    font-weight: 600;
}

/* Team Section */
.team {
    padding: 80px 0 20px;
    background: #09a7c4;
    position: relative;
    isolation: isolate;
    overflow-x: clip;
    z-index: 6;
}

.team::before {
    content: '';
    position: absolute;
    top: -79px;
    left: -300%;
    width: 700%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,100 350,0 600,60 C850,120 1050,20 1200,60 L1200,120 L0,120 Z' fill='%2309a7c4'/%3E%3C/svg%3E") repeat-x;
    background-size: 1200px 100%;
    animation: waveMove 10s linear infinite;
    z-index: 10;
}

.team h2 {
    font-family: 'Coiny', 'Potta One', cursive;
    text-align: center;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    overflow-wrap: normal;
    word-wrap: normal;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.team-member {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 20px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-avatar {
    width: 180px;
    height: 180px;
    background: none;
    margin: 0 auto -15px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.team-member.visible .member-avatar {
    opacity: 1;
}


.team-member h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-navy);
}

.member-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--wave-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.member-bio {
    font-size: 0.95rem;
    color: var(--dark-navy);
    opacity: 0.8;
    line-height: 1.4;
    margin-top: 10px;
}



/* Careers Highlight */
.careers-highlight {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--wave-blue) 100%);
    text-align: center;
}

.careers-highlight h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    padding: 330px 0 60px;
    background: #09a7c4 url('icons/sand-bottom.webp') no-repeat;
    background-position: center -230px;
    background-size: cover;
    position: relative;
    z-index: 100;
    /* Increased to stay above the preceding section */
    isolation: isolate;
    /* Create new stacking context to handle high z-index objects */
    color: var(--dark-navy);
    /* Removed overflow: hidden to prevent cropping of the wood plank bridge at the top boundary */
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    /* Height of the fade zone */
    background: linear-gradient(to bottom, #09a7c4 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.footer-waves {
    display: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, auto);
    /* Sized based on content */
    justify-content: space-between;
    /* Equal visual space between content blocks */
    margin-bottom: 40px;
    align-items: start;
}

.footer-logo {
    height: 56px;
    /* match header logo size */
    width: auto;
    margin-bottom: 0;
}

.footer-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
}

.footer-tagline {
    font-size: 0.65rem;
    color: var(--dark-navy);
    opacity: 0.6;
    margin-top: -12px;
    margin-right: 8px;
    font-weight: 400;
    line-height: 1;
}

/* Make footer logo slightly smaller on very small screens */
@media (max-width: 480px) {
    .footer-logo {
        height: 48px;
    }

    .footer-tagline {
        font-size: 0.55rem;
        margin-top: -10px;
        margin-right: 6px;
    }
}

.footer-section h4 {
    color: var(--dark-navy);
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-section p {
    color: var(--dark-navy);
    opacity: 0.8;
    line-height: 1.4;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--dark-navy);
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--seafoam);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--dark-navy);
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--seafoam);
}

.mobile-break {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero {
        padding-left: 20px;
        padding-right: 20px;
        align-items: flex-start;
        padding-top: 120px;
    }

    .hero-container {
        margin-top: 0;
    }

    .hero-content {
        text-align: left;
        max-width: 100%;
    }

    .hero-title {
        font-size: 4.5rem !important;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 30px;
        /* Reduced from 40px */
    }

    .hero-buttons {
        justify-content: flex-start;
        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        padding: 18px 30px;
        font-size: 1.1rem;
    }

    .surf-scene {
        right: -30%;
        width: 140%;
        bottom: -110px;
        height: auto;
        overflow: visible;
        z-index: 1;
    }

    .wave-bg {
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: right center;
    }

    /* .surfer display: none removed to allow mobile movement */


    .mobile-break {
        display: inline;
    }

    .cta-grid,
    .awards-carousel,
    .services-grid,
    .work-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-title-wrapper {
        position: static;
    }

    .about h2 {
        text-align: center;
        font-size: 3.3rem;
        font-weight: 800;
    }

    .about-intro {
        font-size: 1.2rem;
    }

    .services-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 30px;
    }

    .clients-logos-wrapper {
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }

    .clients-logos {
        flex-wrap: nowrap;
        gap: 40px;
        width: max-content;
        justify-content: flex-start;
        animation: scrollLogosMedium 15s linear infinite;
    }

    .mobile-clone {
        display: block;
    }

    @keyframes scrollLogosMedium {

        /* Scroll half the width of the container minus half the gap */
        100% {
            transform: translateX(calc(-50% - 20px));
        }
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        /* Reduced from 40px */
        margin-bottom: 24px;
    }

    .footer-section h4 {
        margin-bottom: 12px;
        /* Reduced from 20px */
    }

    .footer-section ul li {
        margin-bottom: 6px;
        /* Reduced from 10px */
    }

    .footer-logo-wrapper {
        align-items: flex-end;
    }

    .footer-tagline {
        margin-left: 0;
        margin-right: 8px;
    }

    .footer {
        padding-top: 80px;
        background-size: auto 125%;
        background-position: center bottom;
    }

    .footer::after {
        height: 80px;
        background: linear-gradient(to bottom, #09a7c4 0%, transparent 100%);
    }

    .careers-highlight h2 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 3.3rem !important;
        font-weight: 800 !important;
    }

    /* Services h2 uses Coiny font which renders visually larger — reduce to balance */
    .services h2 {
        font-size: 2.6rem !important;
    }

    .clients h2,
    .team h2 {
        word-break: keep-all;
    }

    .team {
        padding: 60px 0 0px;
        /* Minimal bottom padding for mobile */
    }

    .mobile-break {
        display: block !important;
    }

    /* Portfolio Mobile Background and Intersection Fix */
    .work {
        margin-top: -150px;
        padding: 180px 0 150px;
        background: linear-gradient(to bottom, #09a7c4 0%, #f4e4bc 180px, #f4e4bc calc(100% - 150px), var(--white) 100%);
    }

    .work::before {
        background: url("https://res.cloudinary.com/dtywi1q5a/image/upload/palm-leaves-shadow-beige-background_dobsr6") center/cover no-repeat;
        mask-image: linear-gradient(to bottom, transparent 0%, black 150px, black calc(100% - 150px), transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 150px, black calc(100% - 150px), transparent 100%);
    }

    .work-background {
        display: none;
    }

    /* Keep portfolio grid cohesive on tablets */
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .flip-card {
        max-width: 260px;
        margin: 0 auto;
        height: 210px;
    }


}

@media (max-width: 480px) {
    .hero-title {
        font-size: 4rem !important;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    .btn-primary,
    .btn-outline {
        padding: 18px 30px;
        font-size: 1.1rem;
        width: 100%;
    }

    .surf-scene {
        right: -60%;
        width: 160%;
    }

    /* .surfer display: none removed to allow mobile movement */

    .mobile-break {
        display: inline;
    }

    .services-list {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about h2 {
        font-size: 2.75rem;
        font-weight: 800;
    }

    .about-intro {
        font-size: 1.1rem;
    }

    .mission-green {
        padding: 24px;
    }

    .clients-logos {
        gap: 30px;
        animation: scrollLogosSmall 12s linear infinite;
    }

    @keyframes scrollLogosSmall {

        /* Scroll half the width of the container minus half the gap */
        100% {
            transform: translateX(calc(-50% - 15px));
        }
    }

    /* Stack to single column on small mobiles with restrained maximum card width */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .flip-card {
        max-width: 280px;
        margin: 0 auto;
        height: 230px;
    }

    .client-logo-img {
        height: 30px;
        max-width: 120px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        /* Vertical gap between stacked sections */
    }

    .footer {
        padding-top: 60px;
        background-size: auto 180%;
        background-position: center bottom;
    }

    .footer-logo-wrapper {
        align-items: flex-end;
    }

    .footer-tagline {
        margin-left: 0;
        margin-right: 8px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: flex !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: right 0.3s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        margin: 0;
        padding: 0;
    }

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

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        font-size: 1.25rem;
        display: block;
        padding: 15px;
    }

    .navbar.scrolled .nav-menu {
        background: var(--dark-navy);
    }
}

/* Surfer Animation and Positioning - Base */
.surfer {
    position: fixed;
    width: 200px;
    height: auto;
    /* Grounded on wave, slightly higher for cards clearance */
    top: calc(100vh - 260px);
    left: 80%;
    z-index: 10000;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.3));
    transition: left 0.4s ease-out, right 0.4s ease-out, top 0.4s ease-out, width 0.3s ease-out, opacity 0.3s ease;
    animation: surfer-float 3s ease-in-out infinite;
    pointer-events: none;
}

@media (max-width: 768px) {
    .surfer {
        width: 150px;
        /* Increased size for better mobile visibility */
        /* Lowered vertically to be properly grounded on the wave */
        top: calc(100vh - 200px);
        left: 65%;
        transition: left 0.4s ease-out, right 0.4s ease-out, top 0.4s ease-out, width 0.3s ease-out, opacity 0.3s ease;
    }
}

.surfer.flipped {
    animation: surfer-float-flipped 3s ease-in-out infinite;
}

.surfer.standing {
    animation: none !important;
    transform: translateY(0) !important;
}

@keyframes surfer-float-flipped {

    0%,
    100% {
        transform: translateY(0) scaleX(-1);
    }

    50% {
        transform: translateY(-20px) scaleX(-1);
    }
}



@keyframes wave-letter {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}



/* Lightbox Popup Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.95);
    /* Deep dark navy theme background */
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

/* Animated Lightbox Waves */
.lightbox-waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease 0.2s;
}

.lightbox-overlay.active .lightbox-waves-container {
    opacity: 1;
}

.lightbox-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    background-repeat: repeat-x;
}

.lightbox-wave.wave1 {
    opacity: 0.15;
    height: 15vh;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C300,40 600,-40 1200,0 L1200,120 L0,120 Z' fill='%2358cBf0' /%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation: lightbox-wave-anim 12s linear infinite;
    z-index: 3;
}

.lightbox-wave.wave2 {
    opacity: 0.08;
    height: 20vh;
    bottom: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C300,40 600,-40 1200,0 L1200,120 L0,120 Z' fill='%2315beee' /%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation: lightbox-wave-anim 18s linear infinite reverse;
    z-index: 2;
}

.lightbox-wave.wave3 {
    opacity: 0.04;
    height: 30vh;
    bottom: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C300,40 600,-40 1200,0 L1200,120 L0,120 Z' fill='%230196e3' /%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation: lightbox-wave-anim 25s linear infinite;
    z-index: 1;
}

@keyframes lightbox-wave-anim {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    padding: 20px;
    z-index: 2;
}

.lightbox-content img,
.lightbox-content iframe {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: block;
    margin: 0 auto;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Ensure iframe has a decent default aspect ratio / size if no dimensions are forced */
.lightbox-content iframe {
    width: 80vw;
    height: 45vw;
    /* 16:9 ratio */
    max-width: 1200px;
    max-height: 85vh;
}

.lightbox-overlay.active .lightbox-content img,
.lightbox-overlay.active .lightbox-content iframe {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 44px;
    font-weight: 300;
    cursor: pointer;
    z-index: 100001;
    transition: all 0.3s ease;
    text-shadow: none;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--yellow);
    transform: scale(1.15);
}

/* Modifier class for images that trigger lightbox */
.lightbox-trigger {
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-trigger:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Gallery Lightbox Grid */
.lightbox-gallery {
    width: 85vw;
    max-width: 1200px;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--wave-blue) rgba(255, 255, 255, 0.1);
}

.lightbox-gallery::-webkit-scrollbar {
    width: 6px;
}

.lightbox-gallery::-webkit-scrollbar-thumb {
    background: var(--wave-blue);
    border-radius: 3px;
}

.lightbox-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 10px;
}

.lightbox-gallery-grid.small-gallery {
    display: flex;
    flex-wrap: wrap;
    /* Standard wrapping */
    justify-content: center;
    /* CENTER ALIGNED */
    gap: 8px;
    /* Reduced from 16px */
    width: 100%;
    padding: 10px;
}

.lightbox-gallery-grid.small-gallery img {
    width: 200px;
    /* Same width as other cards */
    height: 180px;
    /* Same height as other cards */
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 12px;
}

.lightbox-gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.lightbox-gallery-grid img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 25px rgba(9, 167, 196, 0.25);
    border-color: var(--wave-blue);
}

.lightbox-gallery-grid .gallery-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--white);
    font-size: 1.1rem;
    padding: 60px 20px;
    font-weight: 500;
}

.lightbox-gallery-grid .gallery-loading .spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--yellow);
    /* Theme match the spinner */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Full-size Viewer */
.lightbox-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90vw;
    max-width: 1400px;
    height: 85vh;
    position: relative;
}

.lightbox-viewer img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    user-select: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--dark-navy);
    border: none;
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    padding: 0;
    outline: none;
}

.lightbox-nav:hover {
    background: var(--yellow);
    color: var(--dark-navy);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 211, 1, 0.3);
}

.lightbox-nav::before {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

.lightbox-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 18px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lightbox-back-btn {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--wave-blue);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lightbox-back-btn:hover {
    background: var(--yellow);
    color: var(--dark-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 211, 1, 0.4);
}

.lightbox-back-btn svg {
    transition: stroke 0.3s ease;
}

@media (max-width: 768px) {
    .lightbox-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .lightbox-gallery-grid img {
        height: 140px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 18px;
        padding: 0;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-content {
        padding: 5px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .lightbox-viewer {
        width: 100vw;
        padding: 0 10px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 38px;
    }
}

/* Contact Modal Styles */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100005;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.contact-modal-content {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 24px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.case-study-modal-content {
    max-width: 950px;
    /* Increased from 750px */
    width: 95%;
    /* Make it take up more screen on wider devices */
    padding: 25px 40px;
    /* Reduced vertical padding from base 40px to fit better */
    max-height: 85vh;
    overflow-y: auto;
}

.case-study-modal-content::-webkit-scrollbar {
    width: 8px;
}

.case-study-modal-content::-webkit-scrollbar-thumb {
    background-color: var(--light-aqua);
    border-radius: 4px;
}

#caseStudyContent p {
    color: var(--dark-navy);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: left;
}

#caseStudyContent ul {
    text-align: left;
    margin-left: 20px;
    margin-bottom: 12px;
}

#caseStudyContent li {
    margin-bottom: 8px;
}

.contact-modal-overlay.active .contact-modal-content {
    transform: translateY(0) scale(1);
}

.contact-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 24px;
    color: var(--dark-navy);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.contact-modal-close:hover {
    opacity: 1;
}

.contact-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-modal-header h2 {
    font-size: 2.5rem;
    font-family: 'Coiny', system-ui;
    color: var(--wave-blue);
    margin-bottom: 8px;
}

.contact-modal-header p {
    color: var(--dark-navy);
    opacity: 0.6;
    font-size: 0.9rem;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--light-aqua);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--wave-blue);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.contact-info h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-navy);
    opacity: 0.5;
    margin-bottom: 4px;
}

.contact-info a,
.contact-info p {
    font-size: 1.05rem;
    color: var(--dark-navy);
    text-decoration: none;
    font-weight: 500;
    display: block;
}

.contact-info a:hover {
    color: var(--wave-blue);
}

.map-link {
    display: inline-block !important;
    margin-top: 8px !important;
    font-size: 0.85rem !important;
    color: var(--wave-blue) !important;
    text-decoration: underline !important;
}

/* Update Nav trigger cursor */
.contact-trigger {
    cursor: pointer;
}

.footer-contact-minimal {
    margin-top: 20px;
}

.footer-contact-minimal a {
    color: var(--dark-navy);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

/* Book Ride Form Styles */
.book-ride-form {
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: inherit;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 1.05rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: var(--dark-navy);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aab5;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--wave-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 185, 252, 0.15);
}

.footer-contact-minimal a:hover {
    color: var(--wave-blue);
    opacity: 1;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (MAX-WIDTH: 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* Global Typography */
    h1,
    .hero-title {
        font-size: 3.2rem !important;
        line-height: 1.1;
    }

    h2,
    .about-centered-title,
    .clients h2,
    .team h2,
    .work h2 {
        font-size: 2rem !important;
        margin-bottom: 30px !important;
    }

    /* Navigation Overlay */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #09a7c4;
        /* Primary brand blue for mobile menu */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        gap: 30px;
    }

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

    .nav-menu a {
        color: var(--white) !important;
        font-size: 1.5rem;
        font-weight: 700;
        font-family: 'Coiny', cursive;
    }

    /* Hero Section - Restored and un-clipped */
    .hero {
        padding: 140px 20px 100px;
        /* Increased top padding to clear navbar and bottom for scene */
        text-align: left;
        min-height: 85vh;
        display: block;
        padding-left: 20px;
        overflow: visible;
        /* Prevent clipping of wave assets */
        position: relative;
    }

    .hero-container {
        padding: 0;
        margin-top: 0;
    }

    .hero-content {
        align-items: flex-start;
        text-align: left;
        max-width: 100%;
        width: 100%;
        z-index: 20;
        position: relative;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        margin-top: 100px;
        /* Moved 100px down as requested */
    }

    /* Decorative Right Wave for Hero (Big and Curly) */
    .surf-scene {
        position: absolute;
        bottom: 0;
        right: -80px;
        width: 500px;
        height: auto;
        z-index: 1;
        opacity: 1;
        display: block !important;
    }

    /* Wave Image - Restore aspect ratio and prevent stretch */
    .wave-bg {
        position: absolute;
        bottom: 0;
        left: -10%;
        /* Slightly wider to frame the right side better */
        width: 120%;
        height: auto;
        z-index: 2;
        display: block;
    }

    /* About Section - Reduced overlap to reveal more of the Hero wave */
    .about {
        margin-top: -60px;
        /* Reveal more of the curling wave */
        z-index: 5;
        padding-top: 80px;
    }

    /* Ensure the About transition wave clips the hero wave correctly */
    .about::before {
        top: -79px;
        /* Matches height of wave SVG */
        z-index: 20;
        /* Higher than any hero assets */
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }



    /* Layout Sections */
    .about-new-layout {
        margin-top: -20px;
        padding: 0 15px;
    }

    .about-content {
        align-items: center;
    }

    .about-paragraphs p {
        text-align: center;
        font-size: 1rem;
    }

    .about-bottom-paras {
        grid-template-columns: 1fr !important;
        gap: 15px;
        width: 100%;
    }

    .about-card {
        padding: 25px 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 15px;
    }

    .portfolio-card {
        height: 240px;
    }

    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
        padding: 0 15px;
    }

    .team-member {
        padding: 30px 15px;
    }

    /* Clients & Footer Adjustments */
    .clients-logos {
        gap: 40px;
    }

    .client-logo-img {
        height: 30px;
    }

    .footer {
        padding-top: 100px;
        background: #09a7c4 url('icons/sand-bottom.webp') no-repeat;
        background-position: center bottom !important;
        background-size: auto 125% !important;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 40px;
        text-align: center;
    }

    .footer-section {
        padding: 0;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-section h4 {
        margin-bottom: 15px;
    }

    .footer-section ul {
        padding: 0;
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-logo-wrapper {
        align-items: flex-end;
    }

    .social-links {
        justify-content: center;
    }
}

/* Golden Shine Hover Effect for Corporate Gifting Solutions */
.corporate-gifting-shine {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.corporate-gifting-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 215, 0, 0) 0%,
        rgba(255, 215, 0, 0.3) 45%,
        rgba(255, 215, 0, 0.6) 50%,
        rgba(255, 215, 0, 0.3) 55%,
        rgba(255, 215, 0, 0) 100%
    );
    transform: rotate(25deg);
    transition: all 0.6s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.corporate-gifting-shine:hover::after {
    left: 150%;
    opacity: 1;
    animation: goldenShine 1.2s infinite;
}

.corporate-gifting-shine:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

@keyframes goldenShine {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}
