﻿

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ================= BRAND COLORS ================= */
:root {
    --primary: #34345e;
    --accent: #d43e42;
    --accent-light: #ff5a5f;
    --accent-glow: rgba(212, 62, 66, 0.3);
    --primary-light: #4a4a7e;
}

/* ================= BACKGROUND ================= */
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #34345e 50%, #2d2d4a 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

    /* Animated gradient orbs */
    body::before {
        content: "";
        position: fixed;
        top: -50%;
        right: -20%;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, var(--accent-glow), transparent 70%);
        border-radius: 50%;
        filter: blur(80px);
        animation: float 8s ease-in-out infinite;
        z-index: 0;
    }

    body::after {
        content: "";
        position: fixed;
        bottom: -30%;
        left: -10%;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(52, 52, 94, 0.4), transparent 70%);
        border-radius: 50%;
        filter: blur(80px);
        animation: float 10s ease-in-out infinite reverse;
        z-index: 0;
    }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

/* ================= HEADER ================= */
.page-header {
    padding: 20px 0 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

    .page-header h1 {
        font-size: 48px;
        font-weight: 700;
        letter-spacing: 2px;
        display: inline-block;
        position: relative;
        animation: headerFade 1s ease forwards;
        text-shadow: 0 4px 20px rgba(212, 62, 66, 0.4);
    }

@keyframes headerFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header .brand {
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size:35px;
}

.page-header .title {
    margin-left: 12px;
    color: var(--accent-light);
    font-size: 35px;
}

/* Accent underline with gradient */
.page-subtitle::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    width: 160px;
    height: 4px;
    border-radius: 999px;
/*    background: linear-gradient(90deg, var(--accent), var(--accent-light));
*/    box-shadow: 0 2px 10px var(--accent-glow);
}

.page-subtitle {
    margin-top: 16px; /* space below underline */
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    text-align: center;
    animation: headerFade 1.2s ease forwards;
}

.logo-circle {
    width: 70px; /* adjust size */
    height: 70px;
    background: #ffffff; /* white circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

    .logo-circle img {
        max-width: 80%;
        max-height: 80%;
    }



.hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    z-index: 2;
}

    .hero-header .logo-circle {
        margin: 0;
        width: 90px;
        height: 90px;
        flex-shrink: 0;
    }

    .hero-header .page-header {
        text-align: left;
        padding: 0;
    }

    .hero-header .page-subtitle::after {
        left: 0;
        transform: none;
    }


/* ================= HORIZONTAL HEADER BOX ================= */
.header-box {
    max-width: 820px;
    margin: 40px auto 30px;
    padding: 22px 36px;
    background: linear-gradient( 135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02) );
    backdrop-filter: blur(14px);
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
    position: relative;
    z-index: 2;
}

    /* keep your existing hero-header layout */
    .header-box .hero-header {
        margin: 0;
    }

    /* subtitle underline align fix */
    .header-box .page-subtitle::after {
        left: 0;
        transform: none;
    }

/* ================= CONTENT ================= */
.content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.demo-boxes {
    display: flex;
    gap: 50px;
    padding: 20px;
    padding-top:90px;
}

/* ================= CARDS ================= */
.demo-card {
    width: 300px;
    height: 240px;
    background: linear-gradient(145deg, rgba(52, 52, 94, 0.7), rgba(42, 42, 70, 0.8));
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    /* Gradient border effect */
    .demo-card::before {
        content: "";
        position: absolute;
        inset: -2px;
        background: linear-gradient(135deg, var(--accent), var(--accent-light), var(--primary-light));
        border-radius: 24px;
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: -1;
    }

    /* Accent top bar */
    .demo-card::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, var(--accent), var(--accent-light));
        border-radius: 24px 24px 0 0;
        box-shadow: 0 2px 10px var(--accent-glow);
    }

    .demo-card:hover {
        transform: translateY(-12px) scale(1.05);
        box-shadow: 0 20px 60px rgba(212, 62, 66, 0.4), 0 0 0 1px rgba(255, 90, 95, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

        .demo-card:hover::before {
            opacity: 1;
        }

    /* Individual card color accents */
    .demo-card.institute:hover {
        box-shadow: 0 20px 60px rgba(212, 62, 66, 0.5), 0 0 0 1px var(--accent-light);
    }

    .demo-card.teacher:hover {
        box-shadow: 0 20px 60px rgba(255, 90, 95, 0.5), 0 0 0 1px var(--accent-light);
    }

    .demo-card.student:hover {
        box-shadow: 0 20px 60px rgba(212, 62, 66, 0.5), 0 0 0 1px var(--accent-light);
    }

/* ================= ICON ================= */
.icon {
    font-size: 56px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(212, 62, 66, 0.3));
    transition: all 0.3s ease;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.demo-card:hover .icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 6px 20px rgba(212, 62, 66, 0.6));
    animation: none;
}

/* ================= TEXT ================= */
.demo-card h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

    .demo-card h2::after {
        content: "";
        display: block;
        width: 50px;
        height: 3px;
        margin: 14px auto 0;
        background: linear-gradient(90deg, var(--accent), var(--accent-light));
        border-radius: 999px;
        box-shadow: 0 2px 8px var(--accent-glow);
        transition: width 0.3s ease;
    }

.demo-card:hover h2::after {
    width: 80px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .demo-boxes {
        flex-direction: column;
        gap: 30px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .demo-card {
        width: 280px;
    }
}

/* Add this at the end of your style.css */
.frame.video-mode .spotlight {
    box-shadow: none !important;
}


/* INTRO SECTION */
.intro-section {
    text-align: center;
    z-index: 2;
    padding-top: 60px;
}

.intro-title {
    font-size: 48px;
    font-weight: 700;
    margin-top: 20px;
}

.intro-subtitle {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 30px;
}

.intro-video video {
    width: 720px;
    max-width: 90%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    margin-bottom: 30px;
}

.start-demo-btn {
    padding: 14px 36px;
    font-size: 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    box-shadow: 0 10px 30px var(--accent-glow);
    transition: all 0.3s ease;
    margin-bottom:8px;
    margin-top:8px;
}

    .start-demo-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 40px var(--accent-glow);
    }


/* HERO VIDEO SECTION */
.hero-section {
    text-align: center;
    z-index: 2;
}

/* VIDEO CARD – SAME FEEL AS DEMO BOX */
.video-card {
    width: 1100px; /* Increase this value from 820px */
    max-width: 93%;
    margin: 0px auto;
    /* padding: 16px;
    background: linear-gradient(145deg, rgba(52, 52, 94, 0.7), rgba(42, 42, 70, 0.8));*/
    backdrop-filter: blur(12px);
    border-radius: 24px;
    /*   border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);*/
    position: relative;
}

    /* Accent top line */
    .video-card::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
/*        background: linear-gradient(90deg, var(--accent), var(--accent-light));
*/        border-radius: 24px 24px 0 0;
        box-shadow: 0 2px 10px var(--accent-glow);
    }

    .video-card video {
        width: 100%;
        border-radius: 18px;
    }


/* Hidden state */
.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* Visible state */
.start-demo-wrapper {
/*    margin-top: 30px;
*/    transition: all 0.6s ease;
    text-align: center;
}

    /* When shown */
    .start-demo-wrapper.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

/* Arrow hint */
.arrow-hint {
    font-size: 22px;
    margin-bottom: 12px;
    animation: arrowBounce 1.4s infinite;
    color: var(--accent-light);
    text-shadow: 0 4px 12px var(--accent-glow);
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

/* Auto focus highlight after video ends */
.start-demo-btn.auto-focus {
    animation: pulseGlow 1.4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 90, 95, 0.6);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(255, 90, 95, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 90, 95, 0);
    }
}


/* 🔊 Subtle sound enable hint */
.sound-hint {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 14px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    animation: hintFadeIn 1.2s ease forwards;
    pointer-events: none;
}

    /* Soft pulse */
    .sound-hint::after {
        content: "";
        position: absolute;
        inset: -6px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,0.2);
        animation: pulse 1.8s infinite;
    }

@keyframes hintFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes pulse {
    0% {
        opacity: .6;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: .6;
    }
}

/*End demo*/
/* ================= END DEMO BUTTON ================= */
.end-demo-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    box-shadow: 0 10px 30px var(--accent-glow);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideInFromRight 0.6s ease-out 0.5s backwards;
}

    .end-demo-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px var(--accent-glow);
    }

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}