/* ===== Base Variables & Reset ===== */
:root {
    --bg-dark: #0f0518;
    --text-main: #ffffff;
    --text-muted: #e2d4f5;
    --accent-1: #00f3ff;
    --accent-2: #ff00aa;
    --accent-3: #9d00ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== Background Video & Effects ===== */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    mix-blend-mode: screen;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,0.2) 0%, rgba(5,5,5,0.9) 100%);
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.65;
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-1);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--accent-2);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    animation-duration: 25s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, 50px) scale(1.2); }
    100% { transform: translate(-50px, 100px) scale(0.8); }
}

/* ===== Typography & Utilities ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50px;
    background: inherit;
    filter: blur(15px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::after {
    opacity: 0.7;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background 0.3s, backdrop-filter 0.3s;
}

.nav-menu {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    margin-left: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 45px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.website-link {
    color: var(--text-main);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    margin-right: 10px;
    font-size: 1.1rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.website-link:hover {
    color: var(--accent-1);
    text-shadow: 0 0 10px var(--accent-1);
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--bg-dark);
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-icon.whatsapp {
    background: #25D366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}
.contact-icon.whatsapp:hover {
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.8);
    transform: scale(1.1);
}

.contact-icon.call {
    background: var(--accent-2);
    box-shadow: 0 0 15px rgba(0, 136, 255, 0.4);
}
.contact-icon.call:hover {
    box-shadow: 0 0 25px rgba(0, 136, 255, 0.8);
    transform: scale(1.1);
}

/* ===== Product Tabs ===== */
.product-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

/* ===== Product Sections ===== */
.product-section {
    display: none;
    animation: fadeInProduct 0.5s ease-out;
}

.product-section.active {
    display: block;
}

@keyframes fadeInProduct {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* Hero Visual Animation */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.mockup-card {
    width: 350px;
    height: 450px;
    transform: rotateY(-15deg) rotateX(10deg);
    animation: floatingCard 6s infinite alternate ease-in-out;
}

@keyframes floatingCard {
    0% { transform: translateY(0) rotateY(-15deg) rotateX(10deg); }
    100% { transform: translateY(-20px) rotateY(-5deg) rotateX(15deg); }
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.pulse-ring {
    width: 100px;
    height: 100px;
    border: 2px solid var(--accent-2);
    border-radius: 50%;
    margin: 40px auto;
    position: relative;
    animation: pulse 2s infinite;
}

.tracking-dot {
    width: 20px;
    height: 20px;
    background: var(--accent-3);
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--accent-3);
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 117, 252, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(37, 117, 252, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 117, 252, 0); }
}

.mockup-text .line {
    height: 8px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 15px;
    border-radius: 4px;
}
.w-100 { width: 100%; }
.w-80 { width: 80%; }
.w-60 { width: 60%; }
.highlight { background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); box-shadow: 0 0 10px var(--accent-1); }

.bus-icon-moving {
    position: absolute;
    bottom: 20px;
    font-size: 2rem;
    animation: driveBus 4s infinite linear;
    filter: drop-shadow(0 0 8px var(--accent-1));
}

@keyframes driveBus {
    0% { transform: translateX(-50px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(350px); opacity: 0; }
}

/* ===== Workflow Animations Section ===== */
.workflow {
    padding: 6rem 10%;
    position: relative;
    z-index: 10;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.workflow-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.workflow-visual {
    height: 200px;
    margin-bottom: 2rem;
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== App Mockups (Driver, Parent, School) ===== */
.app-mockup {
    border: 4px solid #333;
    background: #111;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.app-mockup.phone {
    width: 130px;
    height: 190px;
    border-radius: 16px;
}
.app-mockup.tablet {
    width: 220px;
    height: 150px;
    border-radius: 12px;
    flex-direction: row;
}

/* Shared Elements */
.app-header {
    padding: 8px;
    font-size: 0.6rem;
    font-weight: bold;
    text-align: center;
    color: #fff;
    z-index: 2;
}
.driver-header { background: var(--accent-2); }
.parent-header { background: var(--accent-3); }

.app-map {
    flex: 1;
    position: relative;
    background: repeating-linear-gradient(45deg, #1a1a1a, #1a1a1a 10px, #222 10px, #222 20px);
}

/* Scenario 1: Driver App Specifics */
.app-bottom-sheet {
    height: 40%;
    background: #222;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 8px;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.stop-info {
    font-size: 0.55rem;
    color: var(--text-muted);
    border-bottom: 1px solid #333;
    padding-bottom: 3px;
}
.student-item {
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #333;
    padding: 4px 6px;
    border-radius: 6px;
}
.avatar { font-size: 0.8rem; }
.check-circle {
    width: 12px; height: 12px;
    background: #00ff88;
    border-radius: 50%;
    color: #000;
    font-size: 0.5rem;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.2;
}
.animated-check { animation: checkBoarding 6s infinite; }

.route-line {
    position: absolute;
    top: 20%; left: 20%;
    width: 60%; height: 60%;
    border-left: 3px solid var(--accent-2);
    border-bottom: 3px solid var(--accent-2);
    border-bottom-left-radius: 10px;
}
.driver-bus {
    position: absolute; font-size: 1.2rem;
    animation: followRoute 6s infinite;
}

@keyframes checkBoarding {
    0% { opacity: 0.2; transform: scale(1); }
    40% { opacity: 0.2; transform: scale(1); }
    45% { opacity: 1; transform: scale(1.3); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes followRoute {
    0% { top: 10%; left: 10%; }
    40% { top: 70%; left: 10%; }
    80% { top: 70%; left: 70%; }
    100% { top: 70%; left: 70%; }
}

/* Scenario 2: Parent App Specifics */
.home-marker { position: absolute; top: 70%; left: 70%; font-size: 1rem; }
.parent-bus { position: absolute; font-size: 1rem; animation: followRoute 6s infinite; }
.eta-badge {
    position: absolute;
    top: 5px; right: 5px;
    background: #000;
    color: #fff;
    font-size: 0.5rem;
    padding: 3px 5px;
    border-radius: 4px;
    border: 1px solid var(--accent-3);
}
.notification-popup {
    position: absolute;
    top: 30px; left: 5%; width: 90%;
    background: var(--accent-1); color: #000;
    font-size: 0.55rem; padding: 6px;
    border-radius: 8px; font-weight: bold;
    opacity: 0; transform: translateY(-20px);
    animation: popNotification 6s infinite;
    z-index: 10;
}
@keyframes popNotification {
    0% { opacity: 0; transform: translateY(-20px); }
    70% { opacity: 0; transform: translateY(-20px); }
    75% { opacity: 1; transform: translateY(0); }
    95% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* Scenario 3: School Admin Specifics */
.sidebar {
    width: 40px;
    background: #0a0a0a;
    border-right: 1px solid #333;
    display: flex; flex-direction: column; align-items: center;
    padding-top: 10px; gap: 10px;
}
.logo-small { font-size: 0.8rem; margin-bottom: 10px; }
.nav-item { width: 20px; height: 6px; background: #333; border-radius: 3px; }
.nav-item.active { background: var(--accent-1); box-shadow: 0 0 5px var(--accent-1); }

.main-panel {
    flex: 1;
    display: flex; flex-direction: column;
    padding: 8px; background: #111;
}
.top-stats {
    display: flex; gap: 5px; margin-bottom: 8px;
}
.stat-box {
    flex: 1; background: #222; padding: 4px; border-radius: 4px;
    font-size: 0.5rem; color: #fff; text-align: left;
}
.stat-box.alert { color: #00ff88; }
.admin-map {
    flex: 1; background: #1a1a1a; border-radius: 6px; position: relative;
    overflow: hidden;
}
.bus-dot {
    width: 6px; height: 6px; background: var(--accent-3);
    border-radius: 50%; position: absolute;
    box-shadow: 0 0 5px var(--accent-3);
}
.b1 { top: 20%; left: 20%; animation: moveDot1 4s infinite alternate; }
.b2 { top: 50%; left: 60%; animation: moveDot2 5s infinite alternate; }
.b3 { top: 70%; left: 30%; animation: moveDot3 3s infinite alternate; }

@keyframes moveDot1 { 100% { top: 30%; left: 40%; } }
@keyframes moveDot2 { 100% { top: 40%; left: 80%; } }
@keyframes moveDot3 { 100% { top: 80%; left: 50%; } }

/* ===== Features Section ===== */
.features {
    padding: 8rem 10%;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Decision Matrix ===== */
.decision {
    padding: 5rem 10% 10rem;
    position: relative;
    z-index: 10;
    text-align: center;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.decision-container {
    max-width: 800px;
    margin: 0 auto;
}

.interactive-decision {
    position: relative;
    min-height: 250px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(20px);
}

.decision-step {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.decision-step.active {
    opacity: 1;
    pointer-events: all;
}

.decision-step h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-choice {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-choice:hover {
    background: var(--accent-1);
    border-color: var(--accent-1);
}

/* ===== Footer ===== */
footer {
    padding: 2rem 10%;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
}

.footer-content p {
    color: var(--text-muted);
}

/* ===== Scroll Animations ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ===== New Mockup Enhancements ===== */
/* Browser Window */
.browser-window {
    width: 100%;
    height: 100%;
    background: #111;
    border-radius: 12px;
    border: 2px solid #333;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}
.browser-topbar {
    height: 30px;
    background: #222;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
    border-bottom: 1px solid #333;
}
.browser-content {
    flex: 1;
    position: relative;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-1);
    box-shadow: 0 0 15px var(--accent-1);
    animation: scanUpDown 3s infinite ease-in-out;
    z-index: 5;
}
@keyframes scanUpDown {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
.lock-icon-large {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px var(--accent-1));
    animation: pulseLock 2s infinite;
}
@keyframes pulseLock {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Biometric Device */
.biometric-device {
    width: 200px;
    height: 320px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 20px;
    border: 3px solid #333;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), inset 0 0 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}
.biometric-screen {
    width: 80%;
    height: 40%;
    background: #050505;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fingerprint-sensor {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px dashed var(--accent-3);
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-3);
    position: relative;
}
.fingerprint-sensor::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-3);
    animation: pulse 2s infinite;
}
.face-scan-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0,243,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,243,255,0.1) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.65;
}
.face-icon {
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px var(--accent-1));
}

/* Workflow specific additions */
.exam-mockup {
    width: 100%;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.exam-question {
    height: 20px;
    background: #333;
    border-radius: 4px;
    width: 80%;
}
.exam-option {
    height: 15px;
    background: #222;
    border-radius: 4px;
    width: 60%;
}
.exam-option.selected {
    background: var(--accent-2);
}
.proctor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
    width: 100%;
    height: 100%;
    padding: 5px;
}
.proctor-feed {
    background: #222;
    border-radius: 4px;
    position: relative;
}
.feed-alert {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background: #ff5f56;
    border-radius: 50%;
    animation: pulse 1s infinite;
}
.sms-bubble {
    background: var(--accent-2);
    padding: 8px;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    font-size: 0.5rem;
    color: white;
    margin-top: 10px;
    width: 80%;
    align-self: flex-start;
    animation: slideInLeft 0.5s ease-out;
}
@keyframes slideInLeft {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.pie-chart {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-1) 0% 75%, #333 75% 100%);
    position: relative;
    margin: 10px auto;
}
.pie-chart::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #111;
    border-radius: 50%;
}

/* ===== Research Hub Visual (SVG Network) ===== */
.research-visual {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.research-network {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.net-line {
    stroke: rgba(0, 243, 255, 0.4);
    stroke-width: 2;
    stroke-linecap: round;
}
.net-node {
    fill: #111;
    stroke-width: 2px;
}
.center-node {
    fill: var(--accent-3);
    stroke: var(--accent-3);
    filter: drop-shadow(0 0 10px var(--accent-3));
    animation: pulseLock 2s infinite alternate;
}
.edge-node {
    stroke: var(--accent-1);
    transition: all 0.3s ease;
}

/* ===== ThinkMode Visual (Cognitive Core 3D) ===== */
.cognitive-core {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotateCore 20s infinite linear;
}
.ring {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 2px solid rgba(0, 243, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2), inset 0 0 15px rgba(0, 243, 255, 0.2);
}
.ring-x { transform: rotateX(75deg); animation: spinRing 5s infinite linear; }
.ring-y { transform: rotateY(75deg); animation: spinRing 7s infinite linear reverse; border-color: var(--accent-2); }
.ring-z { transform: rotateZ(75deg) rotateX(45deg); border-color: var(--accent-3); animation: spinRing 9s infinite linear; }
.core-orb {
    position: absolute;
    top: 50%; left: 50%;
    width: 60px; height: 60px;
    margin-top: -30px; margin-left: -30px;
    background: radial-gradient(circle, #fff, var(--accent-1));
    border-radius: 50%;
    box-shadow: 0 0 40px var(--accent-1), 0 0 80px var(--accent-2);
    animation: pulseOrb 2s infinite alternate ease-in-out;
}
@keyframes rotateCore {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}
@keyframes spinRing {
    100% { transform: rotate(360deg); }
}
@keyframes pulseOrb {
    0% { transform: scale(0.8); box-shadow: 0 0 20px var(--accent-1); }
    100% { transform: scale(1.2); box-shadow: 0 0 60px var(--accent-1), 0 0 100px var(--accent-2); }
}

/* Workflow additions */
.typing-text {
    font-family: monospace;
    color: var(--accent-1);
    font-size: 1rem;
}
.cursor {
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}
.radar-chart {
    width: 80px;
    height: 80px;
    background: 
        radial-gradient(circle, transparent 20%, #111 20%, #111 80%, transparent 80%),
        conic-gradient(var(--accent-1) 0% 20%, var(--accent-2) 20% 50%, var(--accent-3) 50% 100%);
    border-radius: 50%;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: pulseLock 3s infinite alternate;
}

/* ===== ERP Visual Modern ===== */
.erp-visual-modern { width: 350px; height: 250px; position: relative; perspective: 1000px; display: flex; align-items: center; justify-content: center; }
.dashboard-window { width: 100%; height: 100%; background: #0a0a0a; border-radius: 12px; border: 1px solid #333; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.05); transform: rotateY(-10deg) rotateX(5deg); transition: transform 0.5s ease; position: relative; }
.dashboard-window:hover { transform: rotateY(0) rotateX(0); }

.dash-header { height: 20px; background: #111; border-bottom: 1px solid #333; display: flex; align-items: center; padding: 0 10px; gap: 10px; }
.dots { display: flex; gap: 4px; }
.dots span { width: 8px; height: 8px; border-radius: 50%; }
.dots .r { background: #ff5f56; } .dots .y { background: #ffbd2e; } .dots .g { background: #27c93f; }
.dash-title { font-size: 0.5rem; color: #ddd; font-family: monospace; letter-spacing: 1px; flex: 1; text-align: center; text-transform: uppercase; margin-top: 2px; }

.dash-body { display: flex; height: calc(100% - 20px); }
.dash-sidebar { width: 40px; background: #151515; border-right: 1px solid #333; padding: 10px 5px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.nav-item { width: 20px; height: 20px; background: #222; border-radius: 4px; transition: 0.3s; }
.nav-item.active { background: var(--accent-1); box-shadow: 0 0 10px var(--accent-1); animation: pulseOrb 2s infinite; }

.dash-content { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.dash-cards { display: flex; gap: 10px; }
.d-card { flex: 1; background: #1a1a1a; border-radius: 6px; padding: 10px; border: 1px solid #333; display: flex; align-items: center; gap: 10px; }
.d-icon { font-size: 1.2rem; }
.d-lines { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.d-lines .l { height: 4px; background: #333; border-radius: 2px; }
.d-lines .short { width: 60%; }
.c1 { border-color: rgba(0,243,255,0.3); } .c2 { border-color: rgba(255,0,128,0.3); }

.dash-main-chart { flex: 1; background: #111; border-radius: 6px; border: 1px solid #222; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 10px; }
.chart-grid { position: absolute; inset: 0; background-image: linear-gradient(#222 1px, transparent 1px), linear-gradient(90deg, #222 1px, transparent 1px); background-size: 20px 20px; opacity: 0.3; }
.line-graph { width: 100%; height: 100%; position: relative; z-index: 2; }
.path-animate { stroke-dasharray: 200; stroke-dashoffset: 200; animation: drawLine 4s infinite alternate ease-in-out; }
@keyframes drawLine { 0% { stroke-dashoffset: 200; } 100% { stroke-dashoffset: 0; } }

.ai-overlay { position: absolute; bottom: 20px; right: 20px; display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.8); padding: 5px 10px; border-radius: 20px; border: 1px solid var(--accent-1); backdrop-filter: blur(5px); animation: floatElement 3s infinite alternate ease-in-out; }
.ai-core { width: 24px; height: 24px; position: relative; display: flex; align-items: center; justify-content: center; }
.ai-ring { position: absolute; inset: 0; border: 2px dashed var(--accent-1); border-radius: 50%; animation: spinRing 4s infinite linear; }
.ai-eye { width: 8px; height: 8px; background: var(--accent-1); border-radius: 50%; box-shadow: 0 0 10px var(--accent-1); animation: pulseLock 1.5s infinite; }
.ai-text { font-size: 0.6rem; color: var(--accent-1); font-weight: bold; font-family: monospace; }

/* ===== PTM Visual ===== */
.ptm-visual {
    width: 250px;
    height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-call-mockup {
    width: 220px;
    height: 150px;
    background: #222;
    border-radius: 8px;
    border: 2px solid #444;
    position: relative;
    overflow: hidden;
}
.video-main {
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
.video-pip {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 60px;
    background: #333;
    border-radius: 4px;
    border: 1px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.call-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.call-btn {
    width: 20px;
    height: 20px;
    background: #555;
    border-radius: 50%;
}
.call-btn.red {
    background: #ff4757;
    animation: pulse 2s infinite;
}
.calendar-popup {
    position: absolute;
    bottom: 20px;
    right: -20px;
    width: 140px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-1);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transform: translateY(20px);
    animation: floatElement 3s infinite alternate ease-in-out;
}
.cal-header {
    font-size: 0.6rem;
    color: var(--accent-1);
    font-weight: bold;
    margin-bottom: 5px;
}
.cal-body {
    font-size: 0.7rem;
    color: #fff;
}

/* ERP Literal UI Mockups */
.literal-ui-box { width: 280px; height: 160px; flex-shrink: 0; background: #050505; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; font-family: 'Space Grotesk', sans-serif; }

/* 1. Admissions */
.ui-panel { background: #111; padding: 10px; border-radius: 6px; border: 1px solid #333; text-align: center; }
.ui-header { font-size: 0.6rem; color: var(--accent-1); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.ui-avatar { width: 30px; height: 30px; border-radius: 50%; background: #444; margin: 0 auto 5px; }
.ui-avatar.small { width: 20px; height: 20px; margin-bottom: 0; }
.ui-text-line { height: 4px; background: #333; width: 80%; margin: 3px auto; border-radius: 2px; font-size: 0.5rem; color: #fff; line-height: 1; }
.start-test-btn { margin-top: 8px; font-size: 0.5rem; background: var(--accent-2); color: #000; padding: 3px 8px; border-radius: 4px; animation: pulseLock 2s infinite; font-weight: bold; }

/* 2. Class Management */
.class-menu { width: 55%; background: #111; height: 100%; padding: 10px 5px; border-right: 1px solid #333; display: flex; flex-direction: column; gap: 5px; }
.menu-item { font-size: 0.45rem; color: #eee; padding: 3px; border-radius: 3px; transition: 0.3s; }
.menu-item.active { background: #222; color: #00ff88; font-weight: bold; animation: highlightMenu 4s infinite alternate; }
.class-content { flex: 1; display: flex; align-items: center; justify-content: center; }
.content-pulse { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent-1); animation: pulseOrb 2s infinite; }
@keyframes highlightMenu { 0%, 100% { color: #00ff88; } 50% { color: var(--accent-1); } }

/* 3. Student Profile Flip Card */
.flip-card { width: 80%; height: 80%; perspective: 1000px; }
.flip-front, .flip-back { width: 100%; height: 100%; position: absolute; backface-visibility: hidden; background: #111; border-radius: 6px; padding: 10px; border: 1px solid #333; text-align: center; animation: autoFlip 6s infinite ease-in-out; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.flip-back { transform: rotateY(180deg); background: linear-gradient(145deg, #111, #222); border-color: var(--accent-1); }
.id-card-header { font-size: 0.7rem; font-weight: bold; color: var(--accent-1); letter-spacing: 2px; margin-bottom: 10px; }
.barcode { font-size: 0.6rem; color: #fff; letter-spacing: 1px; margin-top: 10px; font-family: monospace; }
@keyframes autoFlip { 0%, 40% { transform: rotateY(0deg); } 50%, 90% { transform: rotateY(180deg); } 100% { transform: rotateY(0deg); } }

/* 4. Fees Management */
.fee-split { display: flex; width: 100%; height: 100%; }
.fee-left { flex: 1; border-right: 1px dashed #444; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.money-text { font-size: 0.5rem; color: #ddd; }
.amount { font-size: 0.8rem; color: #00ff88; font-weight: bold; }
.coin-stack { display: flex; flex-direction: column-reverse; gap: -2px; }
.coin { width: 20px; height: 6px; background: gold; border-radius: 50%; border: 1px solid #b8860b; }
.fee-right { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.receipt-printer { width: 50px; height: 10px; background: #333; position: relative; }
.receipt-paper-literal { position: absolute; top: 10px; left: 5px; width: 40px; background: #fff; color: #000; font-size: 0.4rem; padding: 5px 2px; text-align: center; animation: printReceiptLiteral 4s infinite; overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.r-line { border-top: 1px dashed #ccc; padding-top: 2px; text-align: left; padding-left: 2px; }
@keyframes printReceiptLiteral { 0%, 10% { height: 0; opacity: 1; } 40%, 80% { height: 45px; opacity: 1; } 90%, 100% { opacity: 0; height: 45px; } }

/* 5. Certificates & Reports */
.report-card-ui { width: 85%; height: 85%; background: #fff; border-radius: 4px; padding: 10px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 0 15px rgba(255,255,255,0.2); }
.rc-header { font-size: 0.7rem; font-weight: bold; color: #000; text-align: center; border-bottom: 2px solid #000; padding-bottom: 2px; }
.rc-row { display: flex; justify-content: space-between; font-size: 0.5rem; color: #333; border-bottom: 1px solid #eee; padding-bottom: 2px; margin-top: 2px; }
.grade { font-weight: bold; }
.grade.A { color: green; }
.grade.B { color: blue; }
.rc-footer { margin-top: auto; font-size: 0.5rem; font-weight: bold; text-align: center; color: #ff4757; animation: pulseLock 2s infinite; border: 1px solid #ff4757; border-radius: 4px; padding: 2px; }

/* 6. Teacher Management */
.teacher-list { width: 90%; height: 90%; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.teacher-row { display: flex; gap: 8px; align-items: center; background: #1a1a1a; padding: 4px; border-radius: 4px; border: 1px solid #333; }
.t-avatar { width: 20px; height: 20px; border-radius: 50%; }
.bg-1 { background: #ff4757; } .bg-2 { background: var(--accent-1); } .bg-3 { background: var(--accent-3); }
.t-info { display: flex; flex-direction: column; text-align: left; }
.t-name { font-size: 0.5rem; color: #fff; font-weight: bold; }
.t-sub { font-size: 0.4rem; color: #ddd; }

/* Responsive */
@media (max-width: 1024px) {
    html { font-size: 90%; }
}

@media (max-width: 768px) {
    html {
        font-size: 80%;
    }
    .navbar {
        padding: 1rem 5%;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .logo { 
        font-size: 1.5rem; 
    }
    .mobile-menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-left: 0;
        margin-top: 15px;
        background: rgba(10, 10, 10, 0.95);
        padding: 20px;
        border-radius: 12px;
        border: 1px solid var(--glass-border);
        gap: 20px;
        box-sizing: border-box;
    }
    .navbar.menu-open .nav-menu {
        display: flex;
        animation: fadeInProduct 0.3s ease;
    }
    .contact-links {
        justify-content: center;
        width: 100%;
    }
    .product-tabs {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        padding-bottom: 0;
    }
    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    .brand-logo { height: 35px; }
    .website-link { display: none; }
    .contact-icon { width: 35px; height: 35px; }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    .hero-title { font-size: 3rem; }
    .cta-group { justify-content: center; flex-direction: column; }
    .hero-visual { margin-top: 2rem; width: 100%; display: flex; justify-content: center; overflow: hidden; }
    
    /* Scale down complex CSS drawings & mockups visually without breaking layout */
    .mockup-card, .app-mockup, .erp-visual-modern, .ptm-visual, .browser-visual, .biometric-visual, .research-visual, .cognitive-core {
        transform: scale(0.8);
        transform-origin: center top;
    }
    
/* removed app-mockup.tablet override to fix mobile layout */
    .sidebar { width: 100%; flex-direction: row; height: 40px; border-right: none; border-bottom: 1px solid #333; padding: 0 10px; }
    .admin-map { height: 150px; }
    
    .workflow { padding: 4rem 5%; }
    .workflow-grid, .feature-grid { grid-template-columns: 1fr !important; gap: 1.5rem; box-sizing: border-box; width: 100%; overflow: hidden; }
      .feature-card { padding: 1.5rem; width: 100%; box-sizing: border-box; overflow: hidden; }
    .workflow-card { padding: 1.5rem; width: 100%; box-sizing: border-box; overflow: hidden; }
    
    .literal-ui-box {
        transform: scale(0.85);
        transform-origin: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 70%;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-visual { margin-top: 1rem; }
    
    .mockup-card, .erp-visual-modern, .ptm-visual, .browser-visual, .biometric-visual, .research-visual, .cognitive-core {
        transform: scale(0.65);
    }
    .literal-ui-box {
        transform: scale(0.7);
    }
}

.jee-layout { display: flex; width: 100%; height: 100%; background: #fff; color: #000; font-family: Arial, sans-serif; }
.jee-main { flex: 1; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.jee-header { display: flex; justify-content: space-between; font-size: 0.4rem; border-bottom: 1px solid #ddd; padding-bottom: 2px; font-weight: bold; }
.jee-q { height: 12px; background: #555; width: 90%; border-radius: 2px; margin-bottom: 2px; }
.jee-opt { display: flex; align-items: center; gap: 4px; }
.jee-opt-circle { width: 8px; height: 8px; border-radius: 50%; border: 1px solid #999; }
.jee-opt-circle.checked { background: #28a745; border-color: #28a745; }
.jee-opt-text { height: 8px; background: #ccc; width: 50%; border-radius: 2px; }
.jee-sidebar { width: 50px; background: #f0f4f8; border-left: 1px solid #ddd; padding: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; align-content: start; }
.jee-pal { width: 12px; height: 12px; border-radius: 2px; background: #dc3545; }
.jee-pal.ans { background: #28a745; }
.jee-pal.curr { border: 1px solid #000; transform: scale(1.1); }
.jee-pal.unv { background: #fff; border: 1px solid #ccc; }

/* Animated Feature Icons */
.anim-icon { width: 50px; height: 50px; margin: 0 auto 15px; position: relative; display: flex; align-items: center; justify-content: center; }
.shield-body { width: 30px; height: 35px; border: 2px solid var(--accent-1); border-radius: 4px 4px 15px 15px; background: rgba(0, 243, 255, 0.1); position: relative; display: flex; align-items: center; justify-content: center; animation: pulseShield 2s infinite ease-in-out; }
.shield-cross { width: 15px; height: 2px; background: #ff4757; transform: rotate(45deg); position: absolute; animation: spinCross 3s infinite linear; }
.shield-cross::after { content: ''; position: absolute; width: 15px; height: 2px; background: #ff4757; transform: rotate(-90deg); }
@keyframes pulseShield { 0%, 100% { transform: scale(1); box-shadow: 0 0 5px var(--accent-1); } 50% { transform: scale(1.1); box-shadow: 0 0 15px var(--accent-1); } }
@keyframes spinCross { 100% { transform: rotate(405deg); } }

.flash-bolt { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 25px solid var(--accent-3); position: absolute; top: 10px; animation: flashBolt 1.5s infinite; transform-origin: top; }
.flash-bolt::after { content: ''; position: absolute; width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 25px solid var(--accent-3); top: -15px; left: -10px; transform: rotate(180deg) scale(0.6); }
@keyframes flashBolt { 0%, 100% { filter: drop-shadow(0 0 2px var(--accent-3)); transform: scale(1) skewX(-10deg); } 50% { filter: drop-shadow(0 0 12px var(--accent-3)); transform: scale(1.2) skewX(-10deg); } }

.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.chart-bar { width: 8px; background: var(--accent-2); border-radius: 2px 2px 0 0; animation: barRise 2s infinite alternate ease-in-out; }
.chart-bar:nth-child(1) { height: 10px; animation-delay: 0s; }
.chart-bar:nth-child(2) { height: 20px; animation-delay: 0.2s; }
.chart-bar:nth-child(3) { height: 30px; animation-delay: 0.4s; }
@keyframes barRise { 0% { transform: scaleY(0.5); transform-origin: bottom; } 100% { transform: scaleY(1); transform-origin: bottom; } }

/* ===== Intro Preloader ===== */
#intro-preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#intro-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.brand-text-reveal {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    display: flex;
    color: #fff;
    overflow: hidden;
}

.text-mask {
    display: block;
    overflow: hidden;
}

.reveal-text {
    display: block;
    transform: translateY(100%);
    animation: textReveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.text-mask:nth-child(2) .reveal-text {
    animation-delay: 0.2s;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.t-sub { font-size: 0.4rem; color: #ddd; }

/* Responsive */
@media (max-width: 1024px) {
    html { font-size: 90%; }
}

@media (max-width: 768px) {
    html {
        font-size: 80%;
    }
    .navbar {
        padding: 1rem 5%;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .logo { 
        font-size: 1.5rem; 
    }
    .mobile-menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-left: 0;
        margin-top: 15px;
        background: rgba(10, 10, 10, 0.95);
        padding: 20px;
        border-radius: 12px;
        border: 1px solid var(--glass-border);
        gap: 20px;
        box-sizing: border-box;
    }
    .navbar.menu-open .nav-menu {
        display: flex;
        animation: fadeInProduct 0.3s ease;
    }
    .contact-links {
        justify-content: center;
        width: 100%;
    }
    .product-tabs {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        padding-bottom: 0;
    }
    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    .brand-logo { height: 35px; }
    .website-link { display: none; }
    .contact-icon { width: 35px; height: 35px; }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    .hero-title { font-size: 3rem; }
    .cta-group { justify-content: center; flex-direction: column; }
    .hero-visual { margin-top: 2rem; width: 100%; display: flex; justify-content: center; overflow: hidden; }
    
    /* Scale down complex CSS drawings & mockups visually without breaking layout */
    .mockup-card, .app-mockup, .erp-visual-modern, .ptm-visual, .browser-visual, .biometric-visual, .research-visual, .cognitive-core {
        transform: scale(0.8);
        transform-origin: center top;
    }
    
/* removed app-mockup.tablet override to fix mobile layout */
    .sidebar { width: 100%; flex-direction: row; height: 40px; border-right: none; border-bottom: 1px solid #333; padding: 0 10px; }
    .admin-map { height: 150px; }
    
    .workflow { padding: 4rem 5%; }
    .workflow-grid, .feature-grid { grid-template-columns: 1fr !important; gap: 1.5rem; box-sizing: border-box; width: 100%; overflow: hidden; }
      .feature-card { padding: 1.5rem; width: 100%; box-sizing: border-box; overflow: hidden; }
    .workflow-card { padding: 1.5rem; width: 100%; box-sizing: border-box; overflow: hidden; }
    
    .literal-ui-box {
        transform: scale(0.85);
        transform-origin: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 70%;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-visual { margin-top: 1rem; }
    
    .mockup-card, .erp-visual-modern, .ptm-visual, .browser-visual, .biometric-visual, .research-visual, .cognitive-core {
        transform: scale(0.65);
    }
    .literal-ui-box {
        transform: scale(0.7);
    }
}

.jee-layout { display: flex; width: 100%; height: 100%; background: #fff; color: #000; font-family: Arial, sans-serif; }
.jee-main { flex: 1; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.jee-header { display: flex; justify-content: space-between; font-size: 0.4rem; border-bottom: 1px solid #ddd; padding-bottom: 2px; font-weight: bold; }
.jee-q { height: 12px; background: #555; width: 90%; border-radius: 2px; margin-bottom: 2px; }
.jee-opt { display: flex; align-items: center; gap: 4px; }
.jee-opt-circle { width: 8px; height: 8px; border-radius: 50%; border: 1px solid #999; }
.jee-opt-circle.checked { background: #28a745; border-color: #28a745; }
.jee-opt-text { height: 8px; background: #ccc; width: 50%; border-radius: 2px; }
.jee-sidebar { width: 50px; background: #f0f4f8; border-left: 1px solid #ddd; padding: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; align-content: start; }
.jee-pal { width: 12px; height: 12px; border-radius: 2px; background: #dc3545; }
.jee-pal.ans { background: #28a745; }
.jee-pal.curr { border: 1px solid #000; transform: scale(1.1); }
.jee-pal.unv { background: #fff; border: 1px solid #ccc; }

/* Animated Feature Icons */
.anim-icon { width: 50px; height: 50px; margin: 0 auto 15px; position: relative; display: flex; align-items: center; justify-content: center; }
.shield-body { width: 30px; height: 35px; border: 2px solid var(--accent-1); border-radius: 4px 4px 15px 15px; background: rgba(0, 243, 255, 0.1); position: relative; display: flex; align-items: center; justify-content: center; animation: pulseShield 2s infinite ease-in-out; }
.shield-cross { width: 15px; height: 2px; background: #ff4757; transform: rotate(45deg); position: absolute; animation: spinCross 3s infinite linear; }
.shield-cross::after { content: ''; position: absolute; width: 15px; height: 2px; background: #ff4757; transform: rotate(-90deg); }
@keyframes pulseShield { 0%, 100% { transform: scale(1); box-shadow: 0 0 5px var(--accent-1); } 50% { transform: scale(1.1); box-shadow: 0 0 15px var(--accent-1); } }
@keyframes spinCross { 100% { transform: rotate(405deg); } }

.flash-bolt { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 25px solid var(--accent-3); position: absolute; top: 10px; animation: flashBolt 1.5s infinite; transform-origin: top; }
.flash-bolt::after { content: ''; position: absolute; width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 25px solid var(--accent-3); top: -15px; left: -10px; transform: rotate(180deg) scale(0.6); }
@keyframes flashBolt { 0%, 100% { filter: drop-shadow(0 0 2px var(--accent-3)); transform: scale(1) skewX(-10deg); } 50% { filter: drop-shadow(0 0 12px var(--accent-3)); transform: scale(1.2) skewX(-10deg); } }

.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.chart-bar { width: 8px; background: var(--accent-2); border-radius: 2px 2px 0 0; animation: barRise 2s infinite alternate ease-in-out; }
.chart-bar:nth-child(1) { height: 10px; animation-delay: 0s; }
.chart-bar:nth-child(2) { height: 20px; animation-delay: 0.2s; }
.chart-bar:nth-child(3) { height: 30px; animation-delay: 0.4s; }
@keyframes barRise { 0% { transform: scaleY(0.5); transform-origin: bottom; } 100% { transform: scaleY(1); transform-origin: bottom; } }

/* ===== Intro Preloader ===== */
#intro-preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#intro-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.brand-text-reveal {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    display: flex;
    color: #fff;
    overflow: hidden;
}

.text-mask {
    display: block;
    overflow: hidden;
}

.reveal-text {
    display: block;
    transform: translateY(100%);
    animation: textReveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.text-mask:nth-child(2) .reveal-text {
    animation-delay: 0.2s;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes textReveal {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}

/* ===== 10-Second Cinematic Story Preloader ===== */
.cinematic-preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

.cinematic-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: -1;
}

.story-mode {
    width: 100%; height: 100%; position: relative;
}

/* Phase 1: Brand */
.phase-brand {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    animation: brandPhase 10s linear forwards;
}
@keyframes brandPhase {
    0%, 15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    25%, 90% { opacity: 1; transform: translate(-50%, -150px) scale(0.6); }
    100% { opacity: 0; }
}

/* Phase 2: Graphic */
.phase-graphic {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0;
}


.teacher-scene {
    position: absolute;
    top: 30%; left: 50%; transform: translate(-50%, 0);
    opacity: 0;
    width: 300px;
    display: flex; justify-content: center; align-items: center;
    animation: teacherPhase 10s linear forwards;
}
@keyframes teacherPhase {
    0%, 20% { opacity: 0; transform: translate(-50%, 20px); filter: blur(5px); }
    25%, 55% { opacity: 1; transform: translate(-50%, 0); filter: blur(0px); }
    60%, 100% { opacity: 0; transform: translate(-50%, -20px); filter: blur(5px); }
}

.salute-scene {
    position: absolute;
    top: 30%; left: 50%; transform: translate(-50%, 0);
    opacity: 0;
    width: 300px;
    display: flex; justify-content: center; align-items: center;
    animation: salutePhase 10s linear forwards;
}
@keyframes salutePhase {
    0%, 60% { opacity: 0; transform: translate(-50%, 20px); filter: blur(5px); }
    65%, 95% { opacity: 1; transform: translate(-50%, 0); filter: blur(0px); }
    100% { opacity: 0; }
}

.salute-img {
    width: 250px;
    max-width: 80vw;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(255, 153, 51, 0.3), 0 0 60px rgba(19, 136, 8, 0.3);
    animation: salutePulse 10s linear forwards;
}
@keyframes salutePulse {
    0%, 70% { transform: scale(0.95); filter: brightness(0.5); }
    75%, 95% { transform: scale(1); filter: brightness(1.2); }
    100% { transform: scale(1.05); filter: brightness(1); }
}

/* Phase 3: Story Text Sequence */
.story-sequence {
    position: absolute;
    top: 60%; left: 50%; transform: translate(-50%, 0);
    width: 100%; text-align: center;
}
.story-step {
    position: absolute; width: 100%; left: 0;
    font-size: 1.5rem; font-weight: 300; letter-spacing: 2px;
    opacity: 0;
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
}

.step-3 { 
    font-size: 2rem; font-weight: 600;
    animation: step3 10s linear forwards; 
}
.india-gradient {
    background: linear-gradient(90deg, #ff9933, #ffffff, #138808);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
@keyframes step3 {
    0%, 65% { opacity: 0; transform: translateY(20px) scale(0.9); }
    70%, 95% { opacity: 1; transform: translateY(0) scale(1); filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)); }
    100% { opacity: 0; }
}

.cinematic-line {
    position: absolute;
    bottom: 40px; left: 50%; transform: translateX(-50%);
    width: 200px; height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px; overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.5s forwards 0.5s;
}

.duration-10s {
    position: absolute; top: 0; left: 0; height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    animation: progressFill 10s cubic-bezier(0.65, 0, 0.35, 1) forwards !important;
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}
@keyframes fadeIn {
    to { opacity: 1; }
}
