:root {
    /* 1. The Gradient System */
    --grad-hero: linear-gradient(135deg, #0B0206 0%, #3A0A12 100%);
    /* Feature gradient changed to match Executive Burgundy theme (Blue clashes with Red) */
    --grad-feature: linear-gradient(120deg, #1A0505, #4A0E15);
    --grad-bg: linear-gradient(135deg, #232526, #414345);
    --grad-gold: linear-gradient(135deg, #C9A24D, #FFD369);
    --grad-success: linear-gradient(135deg, #0F9B8E, #38EF7D);
    --grad-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));

    /* 2. Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #B0B3B8;
    --text-header: #E0E0E0;
    --text-btn: #0F2027;
    --border-glass: rgba(255, 255, 255, 0.1);

    /* 3. Typography */
    --font-main: 'Inter', sans-serif;

    /* 4. Spacing */
    --section-pad: 120px;
    --container-max: 1100px;
}

/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: #0B0206;
    /* Fallback */
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

ul {
    list-style: none;
}

/* TYPOGRAPHY */
h1 {
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

h2 {
    font-weight: 600;
    font-size: 2.5rem;
    letter-spacing: -0.01em;
    color: var(--text-header);
    margin-bottom: 48px;
    text-align: center;
}

h3 {
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* COMPONENTS */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.btn-primary {
    display: inline-block;
    background: var(--grad-gold);
    color: var(--text-btn);
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(201, 162, 77, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 77, 0.3);
}

/* NAVIGATION */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 32, 39, 0.9);
    /* Dark fallback for read */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 20px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn-primary) {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--text-primary);
}

/* SECTIONS */

/* Hero: The Boardroom */
#hero {
    height: 100vh;
    min-height: 700px;
    /* Executive Burgundy + Real Hero Image */
    background:
        linear-gradient(rgba(11, 2, 6, 0.85), rgba(58, 10, 18, 0.9)),
        url("../assets/images/hero.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

/* ... existing styles ... */

.portfolio-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    transition: background 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Portfolio Images */
.portfolio-item:nth-child(1) {
    background: linear-gradient(90deg, #0B0206 0%, rgba(11, 2, 6, 0.8) 50%, rgba(11, 2, 6, 0.4) 100%),
        url("../assets/images/portfolio1.png");
    background-size: cover;
    background-position: center;
}

.portfolio-item:nth-child(2) {
    background: linear-gradient(90deg, #0B0206 0%, rgba(11, 2, 6, 0.8) 50%, rgba(11, 2, 6, 0.4) 100%),
        url("../assets/images/portfolio2.png");
    background-size: cover;
    background-position: center;
}

.portfolio-item:nth-child(3) {
    background: linear-gradient(90deg, #0B0206 0%, rgba(11, 2, 6, 0.8) 50%, rgba(11, 2, 6, 0.4) 100%),
        url("../assets/images/portfolio3.png");
    background-size: cover;
    background-position: center;
}

.portfolio-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-left-color: #C9A24D;
}

.client-sector {
    font-size: 0.875rem;
    color: #C9A24D;
    /* Gold */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

/* Results: The Analysis (Alternating) */
#results {
    padding: var(--section-pad) 0;
    background: var(--grad-feature);
}

.results-flex {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.result-item {
    display: flex;
    flex-direction: column;
}

.metric {
    font-size: 4rem;
    font-weight: 700;
    background: var(--grad-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 8px;
}

.label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* Contact: The Boardroom */
#contact {
    padding: var(--section-pad) 0;
    background: var(--grad-hero);
    text-align: center;
    border-top: 1px solid var(--border-glass);
}

.contact-wrapper {
    max-width: 600px;
}

.direct-contact {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.direct-contact p {
    font-size: 0.875rem;
    color: #5d6d75;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
}

.contact-links a {
    color: var(--text-secondary);
    border-bottom: 1px solid transparent;
}

.contact-links a:hover {
    color: #C9A24D;
    border-bottom-color: #C9A24D;
}

.separator {
    color: #5d6d75;
}

/* Footer */
#footer {
    background: #0F2027;
    /* Darkest part of hero */
    padding: 60px 0;
    border-top: 1px solid var(--border-glass);
    font-size: 0.875rem;
    color: #5d6d75;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    /* Increased gap for cleanliness */
}

.footer-logo {
    display: block;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.attribution-link {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    /* 12px */
    color: var(--text-secondary);
    opacity: 0.6;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.attribution-link:hover {
    opacity: 1;
    color: var(--text-secondary);
    /* No glow/color change */
}

.footer-social {
    display: flex;
    gap: 24px;
}

.footer-social a {
    color: var(--text-secondary);
    opacity: 0.6;
    transition: opacity 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

.footer-social a:hover {
    opacity: 1;
    color: #FFFFFF;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #5d6d75;
}

.footer-links a:hover {
    color: var(--text-secondary);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    :root {
        --section-pad: 80px;
        /* Reduce padding for mobile */
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    /* Mobile Nav: Hide text links, Keep CTA */
    .nav-links a:not(.btn-primary) {
        display: none;
    }

    .nav-links {
        display: flex;
        /* Show container */
        gap: 0;
    }

    .nav-container {
        justify-content: space-between;
        /* Keep Logo and CTA apart */
    }

    /* Adjust Grid Gaps */
    .grid-services {
        gap: 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .contact-links {
        flex-direction: column;
        gap: 12px;
    }

    .separator {
        display: none;
    }

    #hero {
        min-height: 600px;
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 0.8rem;
    }
}

/* LEGAL PAGES */
.legal-header {
    background: var(--grad-hero);
    padding: 160px 0 60px 0;
    /* Extra top padding for fixed nav */
    text-align: center;
    border-bottom: 1px solid var(--border-glass);
}

.legal-header h1 {
    margin-bottom: 16px;
    font-size: 3rem;
}

.legal-content {
    padding: var(--section-pad) 0;
    background: var(--grad-bg);
}

.text-block-legal {
    max-width: 800px;
    margin: 0 auto;
}

.text-block-legal h3 {
    color: var(--text-header);
    margin-top: 48px;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.text-block-legal h3:first-child {
    margin-top: 0;
}

.text-block-legal p {
    margin-bottom: 24px;
    text-align: justify;
}

.text-block-legal ul {
    list-style: disc;
    margin-left: 24px;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.text-block-legal li {
    margin-bottom: 12px;
    padding-left: 8px;
}

.text-block-legal strong {
    color: var(--text-primary);
}