* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #050505;
    --bg-soft: #0d0d0d;
    --bg2: #0c0c0c;
    --panel: #111111;
    --panel2: #161616;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f5f5f5;
    --muted: #a1a1aa;
    --accent: #ffffff;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.container-narrow {
    width: min(780px, 92%);
    margin: 0 auto;
}

/* ——— Nav ——— */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.98rem;
    min-height: 50px;
}

.logo-box {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-box-placeholder {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text);
}

.brand-name {
    max-width: 200px;
    line-height: 1.15;
}

.site-logo {
    max-height: 56px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

.socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    color: var(--text);
    transition: 0.25s ease;
}

.socials a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    background: #161616;
}

/* ——— Homepage hero ——— */
.hero-home {
    position: relative;
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.04), transparent 30%),
        linear-gradient(180deg, #060606 0%, #0a0a0a 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 46px;
    align-items: center;
    padding: 80px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #d4d4d8;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.86rem;
    margin-bottom: 24px;
}

.hero-home h1 {
    font-size: clamp(2.8rem, 6vw, 5.6rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    margin-bottom: 22px;
    font-weight: 800;
}

.hero-home > .container.hero-grid > .hero-copy > p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 600;
    transition: 0.25s ease;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: #ffffff;
    color: #050505;
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #d4d4d8;
    font-size: 0.92rem;
}

.hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.showreel {
    aspect-ratio: 4 / 5;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        url('https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?auto=format&fit=crop&w=900&q=80') center/cover;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.showreel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
}

.showreel-content {
    position: relative;
    z-index: 2;
}

.showreel-tag {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.8rem;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
}

.showreel h3 {
    font-size: 1.55rem;
    margin-bottom: 8px;
}

.showreel p {
    font-size: 0.95rem;
    margin: 0;
    color: #e4e4e7;
}

/* ——— Inner page hero ——— */
.page-hero {
    padding: 90px 0 70px;
    text-align: center;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 30%),
        linear-gradient(180deg, #060606 0%, #0a0a0a 100%);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-hero p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.05rem;
}

/* ——— Sections ——— */
.section {
    padding: 90px 0;
    border-top: 1px solid var(--line);
}

.section--page-top {
    border-top: none;
    padding-top: 48px;
}

.contact-direct {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
    line-height: 1.5;
}

.contact-direct span {
    display: inline-block;
    margin-right: 1.5rem;
    margin-bottom: 6px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 34px;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.section-title p {
    color: var(--muted);
    max-width: 620px;
    font-size: 0.98rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card,
.portfolio-card,
.gallery-card,
.contact-box {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
}

.service-card {
    padding: 28px;
    min-height: 260px;
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--muted);
    font-size: 0.96rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.portfolio-card img {
    width: 100%;
    height: 260px;
    display: block;
    object-fit: cover;
}

.portfolio-content {
    padding: 22px;
}

.portfolio-content h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.portfolio-content p {
    color: var(--muted);
    font-size: 0.95rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-card img,
.gallery-card video {
    width: 100%;
    height: 260px;
    display: block;
    object-fit: cover;
}

.contact-box {
    padding: 34px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.contact-box h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-box p {
    color: var(--muted);
    max-width: 700px;
}

/* ——— Legacy / shared cards (admin, contact form) ——— */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
}

.media-card img,
.media-card video,
.portfolio-thumb {
    width: 100%;
    border-radius: 16px;
    display: block;
    object-fit: cover;
}

.portfolio-thumb,
.media-card img,
.media-card video {
    height: 260px;
}

.btn-dark {
    display: inline-block;
    background: var(--panel2);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    background: #0c0c0c;
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-family: inherit;
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

/* ——— Footer ——— */
.footer {
    padding: 28px 0 36px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: #040404;
    margin-top: 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-contact {
    margin-top: 8px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.notice-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #b9f7c8;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.notice-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ffb4b4;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 16px;
}

/* ——— Admin (compact pill buttons) ——— */
.admin-main .btn,
.login-wrap .card .btn {
    display: inline-block;
    background: var(--white);
    color: #050505;
    padding: 12px 20px;
    border-radius: 999px;
    border: 0;
    font-weight: 700;
    cursor: pointer;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: #090909;
    border-right: 1px solid var(--line);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-sidebar a {
    padding: 10px 12px;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
}

.admin-sidebar a:hover {
    background: var(--panel);
    color: var(--text);
}

.admin-brand {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.admin-main {
    padding: 28px;
}

.admin-topbar {
    margin-bottom: 24px;
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-card {
    width: min(460px, 100%);
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.full-span {
    grid-column: 1 / -1;
}

.small-preview {
    max-width: 130px;
    border-radius: 12px;
    display: block;
}

@media (max-width: 1000px) {
    .hero-home {
        min-height: auto;
        align-items: flex-start;
    }

    .hero-grid,
    .services-grid,
    .portfolio-grid,
    .gallery-grid,
    .contact-box {
        grid-template-columns: 1fr;
    }

    /* Showreel / visual first on phones and tablets */
    .hero-grid {
        padding: 28px 0 64px;
        gap: 32px;
    }

    .hero-grid > .hero-card {
        order: 1;
    }

    .hero-grid > .hero-copy {
        order: 2;
    }

    .showreel {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 980px) {
    .grid-3,
    .grid-4,
    .inline-form,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 820px) {
    .nav-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 0;
    }

    .nav-links {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .brand {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .hero-home h1 {
        font-size: 2.5rem;
    }

    .cta-row,
    .hero-points {
        flex-direction: column;
        align-items: flex-start;
    }

    .portfolio-card img,
    .gallery-card img,
    .gallery-card video {
        height: 220px;
    }

    .contact-box {
        padding: 24px;
    }
}
