:root {
    --bg-dark: #0a0b10;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f0f0f5;
    --text-muted: #9aa0a6;
    --accent-1: #8a2be2; /* Purple */
    --accent-2: #00d2ff; /* Cyan */
    --font-family: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden; /* For parallax logic */
}

/* Background Blobs (Liquid/Glass aesthetics) */
#blob-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    filter: blur(100px);
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: blob-move 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 { width: 50vw; height: 50vw; background: var(--accent-1); top: -10vw; left: -10vw; }
.blob-2 { width: 40vw; height: 40vw; background: var(--accent-2); bottom: -10vw; right: -5vw; animation-delay: -5s; }
.blob-3 { width: 30vw; height: 30vw; background: #ff007a; top: 40vh; left: 30vw; animation-delay: -10s; opacity: 0.3; }

@keyframes blob-move {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(5vw, 5vh); }
}

/* Parallax Setup */
.parallax-container {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    perspective: 1px;
}

.parallax-group {
    position: relative;
    transform-style: preserve-3d;
    scroll-margin-top: 100px;
}

.parallax-layer {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
}

.parallax-layer--base { transform: translateZ(0); }
.parallax-layer--back { transform: translateZ(-1px) scale(2); }

/* Glassmorphism Utilities */
.glass-nav {
    background: rgba(10, 11, 16, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0; width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Typography & Components */
.text-gradient {
    background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo img {
    height: 48px;
    border-radius: 8px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover { color: var(--accent-2); }

.cta-btn {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.4);
}

/* Sections */
.section-spacer { padding: 4rem 4rem; position: relative; z-index: 10; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 4rem; }

/* About Section */
.about-container { max-width: 1100px; margin: 0 auto; padding: 2.5rem 3rem; }
.about-container .section-title { font-size: 2rem; margin-bottom: 1.5rem; text-align: left; }
.about-content { display: flex; flex-direction: column; gap: 1rem; font-size: 0.95rem; line-height: 1.6; color: var(--text-muted); }
.about-content p:first-child { font-size: 1.05rem; color: var(--text-main); font-weight: 500; line-height: 1.5; }

/* Hero Section */
.hero { display: flex; align-items: center; justify-content: space-between; flex-direction: row-reverse; padding: 10rem 4rem 6rem; min-height: 90vh; position: relative; gap: 2rem; z-index: 10;}
.hero-content { flex: 0 1 auto; width: 100%; max-width: 500px; padding: 2.5rem; margin-top: 0; border-radius: 20px; }
.hero-content h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1.5rem; letter-spacing: -1px; }
.hero-content p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.5; }

.hero-graphic {
    position: relative;
    flex: 1.5;
    width: 100%; height: 550px;
    display: flex; align-items: center; justify-content: center;
    z-index: 1;
}

.hero-dashboard {
    position: relative;
    width: 100%; height: 100%;
    background-image: url('assets/hero_glass_pane.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: screen; /* Strips away the black background to preserve the transparent glass */
    animation: dashboard-float 8s infinite ease-in-out;
    transform-style: preserve-3d;
}

@keyframes dashboard-float {
    0%, 100% { transform: scale(1.2) translateY(0); }
    50% { transform: scale(1.2) translateY(-15px); }
}

.holographic-graphs {
    display: none !important;
    position: absolute;
    width: 76%; 
    height: 60%;
    top: 20%; 
    left: 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    transform: perspective(1000px) rotateY(-8deg) rotateX(6deg) translateZ(40px);
    transform-style: preserve-3d;
}

.hologram-card {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), inset 0 0 12px rgba(138, 43, 226, 0.2);
    opacity: 0.85;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, opacity 0.4s ease;
    background-color: rgba(10, 11, 16, 0.6);
    background-blend-mode: screen;
}

.hologram-card:hover {
    transform: translateZ(40px) scale(1.05);
    opacity: 1;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5), inset 0 0 25px rgba(138, 43, 226, 0.4);
    z-index: 10;
}

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.feature-card { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; transition: transform 0.4s; }
.feature-card:hover { transform: translateY(-10px); }
.feature-card h3 { font-size: 1.5rem; }
.feature-card p { color: var(--text-muted); line-height: 1.5; }

/* Stylized Screenshots */
.screenshot-wrapper {
    width: 100%; height: 260px;
    perspective: 1000px;
    overflow: visible; position: relative;
}

.stylized-screen {
    width: 100%; height: 100%; position: relative;
    background-size: cover; background-position: top center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: all 0.5s;
}

.feature-card:hover .stylized-screen { transform: rotateY(0deg) rotateX(0deg) scale(1.02); box-shadow: 0 20px 45px rgba(0, 212, 255, 0.3); }

.img-triangle { background-image: url('assets/screenshot1.png'); background-color: rgba(255,255,255,0.02); }
.img-stochastic { background-image: url('assets/screenshot2.png'); background-color: rgba(255,255,255,0.02); }
.img-alpha { background-image: url('assets/screenshot3.png'); background-color: rgba(255,255,255,0.02); }
.img-history { background-image: url('assets/screenshot4.png'); background-color: rgba(255,255,255,0.02); }
.img-portfolio { background-image: url('assets/screenshot5.png'); background-color: rgba(255,255,255,0.02); }

/* Contact Section */
.contact-container { max-width: 800px; margin: 0 auto; padding: 4rem; display: flex; flex-direction: column; gap: 2rem; text-align: center; }
form { display: flex; flex-direction: column; gap: 1rem; }
input, textarea {
    width: 100%; padding: 1rem;
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    border-radius: 12px; color: var(--text-main); font-family: var(--font-family); outline: none;
}
input:focus, textarea:focus { border-color: var(--accent-1); }

.contact-info p { color: var(--text-muted); margin-top: 0.5rem; }
.contact-info a { color: var(--accent-2); text-decoration: none; }

.footer { padding: 2rem; position: static; justify-content: center; margin-top: 4rem; border-top: 1px solid var(--glass-border); border-bottom: none; }

@media(max-width: 900px) {
    .feature-grid { grid-template-columns: 1fr; }
}

@media(max-width: 768px) {
    .hero { flex-direction: column; padding: 8rem 2rem 4rem; gap: 2rem; }
    .hero-content { min-width: 100%; padding: 0 1rem; }
    .hero-graphic { width: 100%; height: 300px; justify-content: center; }
    .glass-nav { padding: 1rem 2rem; }
    .section-spacer { padding: 4rem 1rem; }
}
