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

:root {
    --bg-primary: #0d1117;
    --bg-nav: rgba(13, 17, 23, 0.92);
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent: #c4a265;
    --accent-hover: #d4b275;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── NAV ── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo-icon {
    height: 28px;
    width: auto;
    filter: invert(1);
}

/* ── HERO ── */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero::before {
    content: '';
    position: absolute;
    inset: -20%;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    animation: heroDrift 30s ease-in-out infinite alternate;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(13, 17, 23, 0.88) 0%,
        rgba(13, 17, 23, 0.65) 50%,
        rgba(13, 17, 23, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
    animation: fadeInUp 1.2s ease-out;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(230, 237, 243, 0.78);
    max-width: 480px;
    margin-bottom: 3rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease, gap 0.3s ease;
}

.hero-cta:hover {
    color: var(--accent-hover);
    gap: 1rem;
}

.hero-cta .arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.hero-cta:hover .arrow {
    transform: translateX(4px);
}

/* ── FOOTER ── */

.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem 2.5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
}

.footer-copy {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* ── ANIMATIONS ── */

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

@keyframes heroDrift {
    0% {
        transform: scale(1.05) translate(0%, 0%);
    }
    33% {
        transform: scale(1.12) translate(-2%, -1%);
    }
    66% {
        transform: scale(1.08) translate(1.5%, -2%);
    }
    100% {
        transform: scale(1.15) translate(-1%, -1.5%);
    }
}

/* ── RESPONSIVE ── */

@media (max-width: 768px) {
    .nav-inner {
        padding: 1rem 1.5rem;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 0.85rem;
    }

    .hero {
        background-position: center 40%;
    }

    .hero::before {
        animation: none;
        inset: 0;
        transform: scale(1.05);
    }
}
