/* style.css - Complete Upscale Light Theme */
:root {
    --bg-color: #f0f4f8; 
    --surface: #ffffff;
    --text-primary: #0f172a; 
    --text-secondary: #475569;
    --primary: #6366f1; /* Indigo */
    --secondary: #a855f7; /* Purple */
    --accent: #ec4899; /* Pink */
    --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
    --shadow-hover: 0 20px 40px -10px rgba(15, 23, 42, 0.2);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* --- BACKGROUND LAYERS --- */
/* Layer 1: Parallax Blobs */
.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.p-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(60px);
    opacity: 0.4;
    will-change: transform;
}

.ps-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: linear-gradient(45deg, var(--primary), var(--secondary)); }
.ps-2 { top: 40%; right: -5%; width: 40vw; height: 40vw; background: linear-gradient(45deg, var(--secondary), var(--accent)); }
.ps-3 { bottom: -10%; left: 20%; width: 60vw; height: 30vh; background: linear-gradient(to right, var(--primary), transparent); transform: rotate(-30deg); }

/* Layer 2: Interactive Canvas */
#canvas-interaction {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- NAVBAR --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
    text-decoration: none;
}
.logo span { color: var(--primary); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--primary); }

.cta-btn {
    padding: 12px 28px;
    background: var(--primary);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

/* --- SECTIONS --- */
section { padding: 5px 10%; position: relative; z-index: 1; }

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}
.section-title h2 { font-size: 2.5rem; margin-bottom: 15px; color: var(--text-primary); }
.section-title p { color: var(--text-secondary); font-size: 1.1rem; }

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 10% 80px;
    gap: 50px;
}

.hero-text { flex: 1; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 25px; color: var(--text-primary); }
.hero-text p { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 30px; }

/* 3D Stack Animation */
.hero-visual {
    flex: 1;
    height: 400px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stack-container {
    position: relative;
    width: 300px;
    height: 400px;
    transform-style: preserve-3d;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.1s ease-out; 
}

.stack-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: white;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1), -20px -20px 60px rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border: 1px solid white;
}

.stack-card.back { transform: translateZ(-50px) translateX(50px) translateY(50px); background: #e2e8f0; opacity: 0.8; z-index: 1; }
.stack-card.middle { transform: translateZ(-25px) translateX(25px) translateY(25px); background: #f8fafc; z-index: 2; }
.stack-card.front { transform: translateZ(0); z-index: 3; }

/* --- CARDS --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: var(--surface);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.card h3 { font-size: 1.4rem; margin-bottom: 15px; position: relative; z-index: 1; transform: translateZ(20px); }
.card p { color: var(--text-secondary); line-height: 1.6; position: relative; z-index: 1; transform: translateZ(20px); }

/* --- STATS --- */
.stats-section {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 60px 5%;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0 5%;
    border-radius: 20px;
    border: 1px solid white;
    box-shadow: var(--shadow);
}
.stat-number { font-size: 3rem; font-weight: 800; color: var(--primary); display: block; }
.stat-label { color: var(--text-secondary); font-weight: 600; }

/* --- FORMS --- */
form { display: flex; flex-direction: column; gap: 15px; }
input, textarea {
    padding: 15px;
    background: rgba(255,255,255,0.5);
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
}
input:focus, textarea:focus { border-color: var(--primary); background: white; }

/* --- FOOTER --- */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 10% 30px;
    position: relative;
    z-index: 1;
    margin-top: 100px;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px; }
.footer-col h4 { color: white; margin-bottom: 20px; }
.footer-col a { display: block; color: #94a3b8; text-decoration: none; margin-bottom: 10px; transition: 0.3s; }
.footer-col a:hover { color: white; }

.newsletter-box {
    background: rgba(255,255,255,0.05);
    padding: 5px;
    border-radius: 8px;
    display: flex;
    margin-top: 20px;
}
.newsletter-box input { background: transparent; border: none; color: white; width: 100%; }
.newsletter-box button { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; }

/* --- MOBILE --- */
@media (max-width: 900px) {
    nav { flex-direction: column; gap: 15px; padding: 15px; }
    .hero { flex-direction: column; text-align: center; padding-top: 150px; }
    .hero-visual { width: 100%; height: 350px; margin-top: 40px; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-section { flex-direction: column; text-align: center; }
}