/* --- Variables & Reset --- */
:root {
    --color-bg: #121212;
    --color-bg-alt: #0a0a0a;
    --color-surface: #1e1e1e;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-accent: #FFD700;
    --color-accent-hover: #e5c100;

    --font-main: 'Manrope', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --container-width: 1200px;
    --header-height: 80px;

    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* scroll-behavior: smooth; REMOVED for Lenis compatibility */
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utilities --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    position: relative;
    /* Ensure content stack above bg */
    z-index: 2;
}

.highlight {
    color: var(--color-accent);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg);
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text);
    border: 2px solid var(--color-text);
    /* margin-left removed; handled by parent flex gap */
}

.btn-outline:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* --- Header & Nav --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-fast);
    background-color: transparent;
    /* Start transparent */
}

.navbar.scrolled {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-links li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    position: relative;
}

.nav-links li a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-links li a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent) !important;
    border-radius: 4px;
}

.btn-nav:hover {
    background: var(--color-accent);
    color: var(--color-bg) !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-text);
}

/* Parallax Video Background */
.parallax-video {
    position: absolute;
    top: -25%;
    /* Center the extra height */
    left: 0;
    width: 100%;
    height: 150%;
    /* Much taller for deep parallax */
    object-fit: cover;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.3), rgba(18, 18, 18, 1));
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-subtitle {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    letter-spacing: -2px;
}

.hero-text {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-text);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* --- General Section Styles for Backgrounds --- */
.section-bg {
    position: absolute;
    top: -25%;
    left: 0;
    width: 100%;
    height: 150%;
    /* Taller for Parallax */
    background-size: cover;
    background-position: center;
    z-index: -2;
    pointer-events: none;
    opacity: 0.3;
    /* Subtle background */
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.85);
    /* Darken bg heavily */
    z-index: -1;
    pointer-events: none;
}

/* --- Stats Section --- */
.stats-section {
    padding: var(--spacing-lg) 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid #333;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--color-accent);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* --- Services Section --- */
.services-section {
    padding: var(--spacing-xl) 0;
    min-height: 100vh;
    /* allow content to grow */
    height: auto;
    align-items: center;
    /* Center horizontally */
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    /* overflow: hidden; remove to allow scroll if needed, though usually handled by body */
}

.services-bg {
    background-image: url('../media/services-bg.jpg');
    /* Finance/Graphs dark */
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    position: relative;
    /* Ensure above overlay */
}

.service-card {
    background: rgba(30, 30, 30, 0.6);
    /* Transparent Glassy */
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 8px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    background: rgba(30, 30, 30, 0.9);
}

.icon-box {
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.service-card p {
    color: var(--color-text-muted);
}

/* --- Parallax Feature Section --- */
.feature-parallax {
    position: relative;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.feature-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../media/feature-bg.jpg');
    /* Modern building placeholder */
    background-size: cover;
    background-position: center;
    position: absolute;
    top: -25%;
    left: 0;
    width: 100%;
    height: 150%;
    /* Taller for GSAP parallax */
    z-index: -1;
}

.feature-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.feature-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- About Section --- */
.about-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-alt);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.img-placeholder {
    width: 100%;
    height: 400px;
    background: #333;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1e1e1e 25%, #252525 50%, #1e1e1e 75%);
    background-size: 200% 200%;
    animation: shimmer 10s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.tag {
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

.about-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-info p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.checklist li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #ccc;
}

.checklist li::before {
    content: '✓';
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- Contact Section --- */
.contact-section {
    padding: var(--spacing-xl) 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    background: var(--color-surface);
    border-radius: 1rem;
    padding: var(--spacing-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.detail-item {
    margin-bottom: 1.5rem;
}

.detail-item strong {
    display: block;
    color: var(--color-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

/* --- Contact Form (Floating Labels) --- */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0.5rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-text);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0.5rem;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

/* Floating Animation: When focused or has value (placeholder mismatch) */
.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    border-bottom-color: var(--color-accent);
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -1.2rem;
    left: 0;
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 700;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg) translateX(-150%);
    transition: transform 0.5s;
    pointer-events: none;
}

.btn-primary:hover .btn-shine {
    transform: skewX(-20deg) translateX(150%);
    transition: transform 0.7s;
}

.btn-block {
    position: relative;
    overflow: hidden;
    /* Ensure shine stays inside */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* --- Footer --- */
.footer {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    background-color: var(--color-bg-alt);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.footer-slogan {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    transform: translateY(-3px);
}

.footer-nav-list li {
    margin-bottom: 0.8rem;
}

.footer-nav-list a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-nav-list a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.contact-link {
    color: var(--color-accent);
    font-weight: 700;
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

/* Footer Mobile */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: left;
        /* Keep left alignment for readability */
    }

    .footer-brand {
        margin-top: 0;
    }
}

/* --- Animations & Initial States --- */
/* handled by GSAP */
.gsap-hide {
    opacity: 0;
    visibility: hidden;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu simplified for MVP */
    .menu-toggle {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-surface);
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .feature-content h2 {
        font-size: 2.5rem;
    }
}

/* --- Grain Overlay --- */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
}

/* --- Simple Legal Modal --- */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Black with opacity */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--color-surface);
    margin: auto;
    padding: 2.5rem;
    border: 1px solid var(--color-accent);
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: var(--color-text-muted);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--color-accent);
    text-decoration: none;
}

.modal-content h3 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.modal-content p {
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.highlight-box {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1.5rem;
    border: 1px dashed var(--color-accent);
}

.highlight-box p {
    margin-bottom: 0;
    font-size: 0.9em;
}

/* --- Password Overlay --- */
.password-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
}

.password-screen.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-out;
}

.password-card {
    background: var(--color-surface);
    border: 1px solid var(--color-accent);
    padding: 3rem;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.1);
}

.password-brand {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.password-card p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.error-msg {
    color: #ff4444 !important;
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0 !important;
    min-height: 1.5em;
}