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

:root {
    --midnight: #060d1f;
    --midnight-light: #0c1a3a;
    --midnight-mid: #0f2247;
    --mint: #5eead4;
    --mint-dark: #3dd9c1;
    --mint-light: #a7f3d0;
    --white: #ffffff;
    --off-white: #f8fafc;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --font-display: 'Bodoni Moda', Georgia, serif;
    --font-body: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --nav-height: 72px;
    --section-padding: clamp(80px, 12vw, 140px);
    --container-max: 1200px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

/* ── NAV ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
    background: rgba(6, 13, 31, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(94, 234, 212, 0.08);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.nav__logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.02em;
}

.nav__logo-sub {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--mint);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav__link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--mint);
    transition: width 0.3s ease;
}

.nav__link:hover {
    color: var(--white);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--midnight);
    background: var(--mint);
    padding: 10px 24px;
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav__cta:hover {
    background: var(--mint-dark);
    transform: translateY(-1px);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav__toggle-bar {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* ── HERO ── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/35844834/pexels-photo-35844834.png?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    transform: scale(1.02);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 13, 31, 0.88) 0%,
        rgba(12, 26, 58, 0.82) 50%,
        rgba(6, 13, 31, 0.75) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-top: var(--nav-height);
}

.hero__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 24px;
    padding-left: 40px;
    position: relative;
}

.hero__tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 1px;
    background: var(--mint);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero__title em {
    font-style: italic;
    color: var(--mint);
}

.hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
    font-weight: 400;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.hero__scroll span {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--mint), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 16px 36px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn--primary {
    background: var(--mint);
    color: var(--midnight);
}

.btn--primary:hover {
    background: var(--mint-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(94, 234, 212, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
    border-color: var(--mint);
    color: var(--mint);
}

.btn--mint {
    background: var(--mint);
    color: var(--midnight);
}

.btn--mint:hover {
    background: var(--mint-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(94, 234, 212, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
    border-color: var(--white);
}

.btn--full {
    width: 100%;
}

/* ── SECTION COMMON ── */
.section-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mint-dark);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--midnight);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 520px;
}

.section-header {
    margin-bottom: clamp(48px, 6vw, 72px);
}

/* ── SERVICES ── */
.services {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
}

.service-card {
    background: var(--white);
    padding: clamp(28px, 3vw, 44px);
    transition: background 0.4s ease;
}

.service-card:hover {
    background: var(--gray-50);
}

.service-card:hover .service-card__icon {
    color: var(--mint-dark);
    transform: scale(1.1);
}

.service-card__icon {
    color: var(--midnight);
    margin-bottom: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.service-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--midnight);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-card__desc {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.65;
}

/* ── ABOUT ── */
.about {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.about__image {
    position: relative;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.about__image::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 60%;
    height: 60%;
    border: 1px solid var(--mint);
    border-radius: 2px;
    z-index: -1;
}

.about__content {
    padding: clamp(20px, 3vw, 40px) 0;
}

.about__text {
    font-size: 1.0625rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about__stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat__number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--midnight);
    letter-spacing: -0.01em;
}

.stat__label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

/* ── GALLERY ── */
.gallery {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 16px;
}

.gallery__item {
    overflow: hidden;
    border-radius: 2px;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery__item:hover img {
    transform: scale(1.05);
}

.gallery__item--large {
    grid-column: span 7;
}

.gallery__item:not(.gallery__item--large) {
    grid-column: span 5;
}

/* ── CTA SECTION ── */
.cta-section {
    position: relative;
    padding: clamp(80px, 12vw, 140px) 0;
    overflow: hidden;
}

.cta-section__bg {
    position: absolute;
    inset: 0;
    background: var(--midnight);
}

.cta-section__bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(94, 234, 212, 0.06) 0%, transparent 70%);
}

.cta-section__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-section__title {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-section__text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-section__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── CONTACT ── */
.contact {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.contact__desc {
    font-size: 1.0625rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail {
    display: flex;
    gap: 16px;
}

.contact-detail__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    color: var(--midnight);
}

.contact-detail__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.contact-detail__value {
    display: block;
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-detail__value:hover {
    color: var(--mint-dark);
}

/* ── FORM ── */
.contact__form-wrap {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: clamp(28px, 3vw, 44px);
}

.contact__form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--midnight);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

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

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 2px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
    -webkit-appearance: none;
}

.form-input:focus {
    border-color: var(--mint-dark);
    background: var(--white);
}

.form-input::placeholder {
    color: var(--gray-400);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(94, 234, 212, 0.1);
    border: 1px solid rgba(94, 234, 212, 0.3);
    border-radius: 2px;
    color: var(--midnight);
    font-size: 0.9375rem;
    font-weight: 500;
}

.form-success svg {
    color: var(--mint-dark);
    flex-shrink: 0;
}

/* ── FOOTER ── */
.footer {
    background: var(--midnight);
    padding: 64px 0 32px;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer__brand {
    max-width: 320px;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.footer__logo span {
    color: var(--mint);
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    vertical-align: super;
}

.footer__tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
    margin-top: 12px;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer__links a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: var(--mint);
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.7;
}

/* ── MOBILE NAV ── */
@media (max-width: 868px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        background: var(--midnight);
        padding: 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    }

    .nav__menu.open {
        transform: translateX(0);
    }

    .nav__link {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.8);
    }

    .nav__cta {
        margin-top: 8px;
        text-align: center;
        width: 100%;
    }

    .hero__title {
        font-size: clamp(1.875rem, 7vw, 2.75rem);
    }

    .hero__scroll {
        display: none;
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__inner {
        grid-template-columns: 1fr;
    }

    .about__image {
        max-height: 480px;
    }

    .contact__inner {
        grid-template-columns: 1fr;
    }

    .gallery__grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery__item--large,
    .gallery__item:not(.gallery__item--large) {
        grid-column: span 1;
    }
}

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

    .gallery__grid {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-section__actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-section__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .about__stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .footer__inner {
        gap: 32px;
    }

    .footer__brand {
        max-width: none;
    }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .gallery__item,
    .contact__form-wrap {
        transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    }
}

/* ── SCROLL REVEAL (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is visible without JS */
@supports not (opacity: 0) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
