/* cinematic.css - Responsive White/Corporate Aesthetic */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-muted: #475569;
    --accent-glow: #2563eb;
    --border-glass: rgba(15, 23, 42, 0.1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
    font-weight: 700;
}

/* Lenis Smooth Scroll */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border-glass);
}

.brand {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.brand-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-glow);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.btn-primary {
    background: var(--accent-glow);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    background: #1d4ed8;
}

/* Sections */
section {
    position: relative;
    padding: 120px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

/* Glass Overlays for Sections */
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 0;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    align-items: center;
    text-align: center;
    padding-top: 180px;
    padding-bottom: 120px;
    min-height: 90vh;
}

.hero .section-overlay {
    background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,1));
}

.hero-pill {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-glow);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: inline-block;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 6rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: #0f172a;
}

.hero p {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Glass Panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.05);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.text-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    line-height: 1.1;
    color: #0f172a;
}

.text-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Visual Assets */
.visual-asset {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.image-asset {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* Dashboard Visual */
.dashboard-visual {
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.dash-header {
    grid-column: 1 / -1;
    height: 30px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.dash-dot { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }

.dash-card {
    background: #f8fafc;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
}
.dash-value { font-size: 28px; font-weight: 700; margin-top: 8px; color: var(--accent-glow); }

/* Footer */
footer {
    padding: 80px 5% 40px;
    background: #0f172a;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-contact h3 {
    margin-bottom: 20px;
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-contact p {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: white;
}

/* Contact Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    transform: translateY(40px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.modal-overlay.active .contact-modal {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ef4444;
}

.contact-modal h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-modal p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-glow);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #ffffff;
}

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

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent-glow);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #1d4ed8;
}

.btn-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Form Toast Notification */
.form-toast {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 2;
}

.form-toast.active {
    opacity: 1;
    visibility: visible;
}

.toast-icon {
    width: 64px;
    height: 64px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.toast-icon svg { width: 32px; height: 32px; color: white; }

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .dashboard-visual {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 80px 5%;
        background-attachment: scroll; /* Disable parallax on mobile for performance */
    }
    
    .hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }
    
    .glass-panel {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
