:root {
    --bg-color: #f8fafc;
    --text-color: #000000;
    --accent-color: #1e4a2d;
    --accent-dark: #0d2114;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .wave,
    .wave2,
    .wave3 {
        animation: none;
    }

    .video-bg-wrapper video {
        display: none;
    }

    * {
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 2px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('assets/london-cityscape.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo-link {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

header nav {
    display: flex;
    gap: 32px;
}

header nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 0;
    background: linear-gradient(var(--accent-color), var(--accent-color)) no-repeat left bottom / 0% 2px;
    transition: color 0.3s ease, background-size 0.3s ease;
}

header nav a:hover,
header nav a.active {
    color: var(--accent-color);
    background-size: 100% 2px;
}

header nav a.active {
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 14px rgba(30, 74, 45, 0.25);
}

.btn-primary:hover {
    background-color: #2a613d;
    border-color: #2a613d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.hero {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: #0d2114;
    padding: 0;
    color: #ffffff;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13, 33, 20, 0.5), rgba(13, 33, 20, 0.35));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 10;
}

.video-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: url('assets/hero-poster.webp') center / cover no-repeat;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-waves {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 2;
    pointer-events: none;
}

.wave,
.wave2,
.wave3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-size: 50% 100%;
}

.wave {
    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 C300,120 300,0 600,60 C900,120 900,0 1200,60 L1200,120 L0,120 Z' fill='%23ffffff' opacity='0.3'/%3E%3C/svg%3E");
    animation: wave1 18s linear infinite;
}

.wave2 {
    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,80 C200,120 300,20 600,60 C900,100 1000,20 1200,80 L1200,120 L0,120 Z' fill='%23ffffff' opacity='0.5'/%3E%3C/svg%3E");
    animation: wave2 12s linear infinite reverse;
}

.wave3 {
    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,70 C300,10 400,110 600,70 C800,30 900,110 1200,70 L1200,120 L0,120 Z' fill='%23ffffff' opacity='1'/%3E%3C/svg%3E");
    animation: wave3 20s linear infinite;
}

@keyframes wave1 {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes wave2 {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes wave3 {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}



.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #f1f5f9;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero .btn-secondary {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

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

.hero-page {
    padding: 75px 0 125px 0;
    min-height: auto;
}

#services,
#case-studies,
#team,
#contact {
    scroll-margin-top: 90px;
}

.services,
.team,
.contact {
    position: relative;
    background-color: transparent;
}

.services {
    padding: 70px 0 50px;
}

.case-studies {
    padding: 70px 0 80px;
    background: rgba(255, 255, 255, 0.62);
}

.case-study-carousel {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 42px;
}

.section-heading h2 {
    font-size: 2.5rem;
    color: #000000;
    position: relative;
    margin-bottom: 12px;
}

.section-heading h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    margin: 14px auto 0;
}

.section-heading p {
    color: #475569;
}

.case-study-viewport {
    overflow: hidden;
    border-radius: 10px;
}

.case-study-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.case-study-card {
    position: relative;
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 410px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateZ(0);
}

.case-study-img {
    width: 100%;
    height: 100%;
    min-height: 410px;
    object-fit: cover;
}

.case-study-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px;
}

.case-study-kicker {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.case-study-card h3 {
    font-size: 1.7rem;
    margin-bottom: 16px;
}

.case-study-card p {
    color: #475569;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 24px;
}

.carousel-button,
.carousel-dot {
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--accent-color);
    cursor: pointer;
}

.carousel-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.2rem;
}

.carousel-button:hover,
.carousel-button:focus-visible {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #fff;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
}

.carousel-dot.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.services h2,
.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 60px;
    position: relative;
}

.services h2::after,
.team h2::after,
.contact h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    margin: 14px auto 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 28px 24px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-dark);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-img {
    width: calc(100% + 48px);
    margin: -28px -24px 20px;
    height: 160px;
    object-fit: cover;
    display: block;
}

.service-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
}

.service-link:hover {
    text-decoration: underline;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-top-color: var(--accent-color);
}

.service-card h3 {
    color: #000000;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.team {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}


.team h2 {
    position: relative;
    z-index: 10;
    text-align: center;
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.team-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-dark);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-top-color: var(--accent-color);
}

.team-card h3 {
    color: #000000;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

#why-us .team-card {
    overflow: hidden;
}

#why-us .team-card .why-img {
    width: calc(100% + 80px);
    margin: -40px -40px 24px;
    height: 160px;
    object-fit: cover;
    display: block;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 20px;
    background-color: #ffffff;
    border: 3px solid var(--border-color);
}

.team-grid-people {
    max-width: 860px;
}

.team-card .role {
    color: var(--accent-dark);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.contact {
    padding: 70px 0 90px;
    text-align: center;
}

.contact p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555555;
}

.contact-email {
    margin-top: 20px;
}

.contact-email a {
    color: var(--accent-color);
    font-weight: 500;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-form iframe {
    display: block;
    border: 0;
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
}

.page-content {
    padding: 80px 20px;
    max-width: 900px;
}

.page-content h1 {
    color: var(--accent-color);
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
}

.info-section {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-dark);
}

.info-section h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.info-section h3 {
    color: var(--accent-color);
    margin: 30px 0 15px;
    font-size: 1.4rem;
}

.info-section p {
    margin-bottom: 20px;
}

.info-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

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

.cta-box {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, var(--card-bg) 0%, #ffffff 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 60px;
}

.cta-box h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.cta-box p {
    margin-bottom: 30px;
    color: #555555;
}

.breadcrumbs {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 0;
    color: #555555;
    font-size: 0.95rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: #888888;
}

.breadcrumbs a {
    color: var(--accent-color);
}

.breadcrumbs [aria-current="page"] {
    color: var(--text-color);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 98;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

body.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        height: 80px;
        padding: 0 20px;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    header nav {
        display: flex;
        gap: 0;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 30px 30px 30px;
        max-height: none;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.4s;
        visibility: hidden;
        box-shadow: none;
        margin-top: 0;
        border-bottom: none;
        z-index: 99;
    }

    header nav.active {
        right: 0;
        visibility: visible;
        transition-delay: 0s;
        box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
        padding: 90px 30px 30px 30px;
    }

    header nav a {
        margin: 0;
        padding: 15px 0;
        font-size: 1.2rem;
        margin-left: 0;
        width: 100%;
        display: block;
        border-bottom: 1px solid var(--border-color);
    }
    
    header nav a:last-child {
        border-bottom: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .case-study-card {
        grid-template-columns: 1fr;
    }

    .case-study-img {
        height: 270px;
        min-height: 0;
    }

    .case-study-body {
        padding: 30px;
    }

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

    .page-content h1 {
        font-size: 2.2rem;
    }

    .info-section h2 {
        font-size: 1.6rem;
    }

    .case-study-card h3 {
        font-size: 1.4rem;
    }

    .hero {
        padding: 100px 0 120px 0;
    }

    .services {
        padding-top: 60px;
    }
}
@media (max-width: 768px) {
    .video-bg-wrapper video {
        display: none;
    }
}

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