/* ==========================================================================
   CSS Variables & Scoped Reset
   ========================================================================== */
.mt-wrapper {
    --primary-color: #0F2A47;
    --secondary-color: #4482FF;
    --accent-color: #00F5FF;
    --text-dark: #FFFFFF; 
    --text-muted: #CBD5E1;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;
    --transition: all 0.3s ease;

    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.mt-wrapper * {
    box-sizing: border-box;
}

.mt-wrapper h1, .mt-wrapper h2, .mt-wrapper h3, .mt-wrapper h4, .mt-wrapper h5, .mt-wrapper h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--bg-white);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
}

.mt-wrapper p {
    margin-bottom: 1.25rem;
    color: #E2E8F0;
    font-size: 1.05rem;
}

.mt-wrapper a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

.mt-wrapper a:hover {
    color: var(--bg-white);
}

.mt-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ==========================================================================
   Page Specific Background Video & Glow
   ========================================================================== */
.lms-bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.lms-bg-overlay {
    position: fixed;
    inset: 0;
    background: #0f061c;
    opacity: 0.85;
    z-index: 1;
}

.global-glow {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
      radial-gradient(circle at 20% 20%, rgba(0,245,255,0.15), transparent 40%),
      radial-gradient(circle at 80% 80%, rgba(123,92,255,0.12), transparent 40%);
}


/* ==========================================================================
   Section 1: Animated Portal
   ========================================================================== */
.animated-portal-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.portal-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent-color);
    border-bottom-color: #7b5cff;
    animation: spin 8s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation-duration: 10s;
}

.ring-2 {
    width: 80%;
    height: 80%;
    animation-duration: 7s;
    animation-direction: reverse;
    border-top-color: #ff4a3f;
    border-bottom-color: var(--accent-color);
}

.ring-3 {
    width: 60%;
    height: 60%;
    animation-duration: 5s;
    border-top-color: #7b5cff;
    border-bottom-color: #00f5ff;
}

.portal-core {
    position: absolute;
    width: 40%;
    height: 40%;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(123, 92, 255, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
    animation: pulseCore 3s ease-in-out infinite;
    backdrop-filter: blur(5px);
}

.portal-core i {
    font-size: 3.5rem;
    color: var(--bg-white);
    text-shadow: 0 0 15px var(--accent-color);
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
    animation: floatParticle 4s infinite ease-in-out;
}

.p-1 { top: 10%; left: 20%; animation-delay: 0s; }
.p-2 { top: 80%; left: 80%; animation-delay: 1s; background: #7b5cff; }
.p-3 { top: 20%; right: 10%; animation-delay: 2s; }
.p-4 { bottom: 10%; left: 30%; animation-delay: 3s; background: #ff4a3f; }

@keyframes spin {
    0% { transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(60deg) rotateY(0deg) rotateZ(360deg); }
}

@keyframes pulseCore {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(0, 245, 255, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 0 50px rgba(123, 92, 255, 0.8); }
}

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-20px) scale(1.5); opacity: 1; }
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.app-btn {
    display: flex;
    align-items: center;
    background: #ffffff;
    color: #01061c;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.app-btn i {
    font-size: 2rem;
    margin-right: 1rem;
}

.app-btn .btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.app-btn .btn-text span {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.2rem;
    color: #555;
}

.app-btn .btn-text strong {
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    font-weight: 700;
}

.app-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 245, 255, 0.3);
    color: #01061c;
}

.windows-btn {
    background: linear-gradient(135deg, #00f5ff, #5b8def);
    border: none;
}
.windows-btn .btn-text span { color: rgba(1, 6, 28, 0.7); }
.windows-btn .btn-text strong { color: #01061c; }

.playstore-btn {
    background: #111;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}
.playstore-btn:hover {
    background: #222;
    color: #fff;
    border-color: #00f5ff;
}
.playstore-btn .btn-text span { color: #aaa; }
.playstore-btn .btn-text strong { color: #fff; }


/* ==========================================================================
   Section 2: Hero Section Layout (Split Screen)
   ========================================================================== */
.mt-hero {
    color: var(--bg-white);
    padding: 5rem 0;
    margin-bottom: 3rem;
    position: relative;
}

.mt-hero-grid-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.mt-hero-content-left h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.mt-hero-content-left h1 span {
    color: var(--accent-color);
}




/* CSS Mockup Styling */
.css-mockup-wrapper {
    perspective: 1000px;
    width: 100%;
}

.mockup-screen {
    background: rgba(10, 15, 30, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 245, 255, 0.15);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    backdrop-filter: blur(20px);
}

.mockup-screen:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    height: 30px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
}

.mockup-header .dots {
    display: flex;
    gap: 6px;
}

.mockup-header .dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
}
.mockup-header .dots span:nth-child(2) { background: #ffbd2e; }
.mockup-header .dots span:nth-child(3) { background: #27c93f; }

.mockup-body {
    display: flex;
    height: 300px;
}

.mockup-sidebar {
    width: 60px;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mockup-sidebar .nav-item {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
}

.mockup-sidebar .nav-item.active {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.mockup-content {
    flex-grow: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-banner {
    height: 80px;
    background: linear-gradient(45deg, rgba(68,130,255,0.2), rgba(123,92,255,0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.mockup-banner i {
    font-size: 2rem;
    color: #fff;
}
.mockup-banner .banner-text {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Poppins';
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mockup-card {
    height: 120px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}


/* ==========================================================================
   Section 3: Core Features (4-Column Grid)
   ========================================================================== */
.mt-features-section {
    padding: 4rem 0 8rem 0;
}

.section-heading {
    margin-bottom: 4rem;
}
.text-center {
    text-align: center;
}

.mt-section-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}
.mt-section-title span {
    color: var(--accent-color);
}
.section-subtitle {
    max-width: 800px;
    margin: 0 auto;
    color: #CBD5E1;
}

.mt-features-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card-glass {
    background: linear-gradient(135deg, rgba(1, 6, 28, 0.7) 0%, rgba(15, 42, 71, 0.6) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.feature-card-glass::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px; 
    background: linear-gradient(45deg, #00f5ff, #7b5cff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card-glass:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, rgba(1, 6, 28, 0.9) 0%, rgba(15, 42, 71, 0.8) 100%);
}
.feature-card-glass:hover::after {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 2rem;
    transition: transform 0.4s ease;
}

.feature-card-glass:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-color);
    color: #0f061c;
    box-shadow: 0 0 20px rgba(0,245,255,0.4);
}

.feature-card-glass h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
    min-height: 50px;
}

.feature-card-glass p {
    font-size: 0.95rem;
    color: #a1a8c0;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   Section 4: Impact Counters
   ========================================================================== */
.mt-stats-section {
    padding: 2rem 0 6rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-box {
    background: rgba(1, 6, 28, 0.5);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 245, 255, 0.15);
    border-color: rgba(0, 245, 255, 0.5);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #00f5ff, #7b5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: #CBD5E1;
    font-size: 1.1rem;
    font-weight: 500;
}

/* ==========================================================================
   Section 5: Student Testimonials (Slider logic handled by global testimonials CSS)
   ========================================================================== */

/* ==========================================================================
   Scroll Animation Classes
   ========================================================================== */
.mt-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.mt-fade-in.mt-appeared {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Constraints
   ========================================================================== */
@media (max-width: 1200px) {
    .mt-features-4col {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-card-glass h3 {
        min-height: auto;
    }
}

@media (max-width: 992px) {
    .mt-hero-grid-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .mt-hero-content-left h1 {
        font-size: 3rem;
    }
    .download-buttons {
        justify-content: center !important;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .animated-portal-container {
        width: 200px;
        height: 200px;
    }
    .mt-features-4col, .stats-grid {
        grid-template-columns: 1fr;
        width: 90%;
        margin: 0 auto;
    }
    .mt-hero-content-left h1 {
        font-size: 2.5rem;
    }
    .mt-section-title {
        font-size: 2rem;
    }
}
