/* ============================================
   MWETANA SchooLink Cx - Landing Page Styles
   ============================================ */

/* CSS Variables */
:root {
    --orange: #FF6B00;
    --orange-light: #FF8A33;
    --orange-dark: #E05E00;
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --dark-3: #0f3460;
    --text: #2C3E50;
    --text-light: #7F8C8D;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f0f2f5;
    --gray-200: #e4e7eb;
    --gray-300: #d1d5db;
    --gradient: linear-gradient(135deg, #FF6B00 0%, #FF8A33 50%, #e05e00 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ============================================
   Preloader
   ============================================ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid transparent;
}

.loader-ring.orange-ring {
    border-top-color: var(--orange);
    border-right-color: var(--orange);
    animation: spin 1.2s linear infinite;
    left: -10px;
}

.loader-ring.dark-ring {
    border-bottom-color: var(--gray-300);
    border-left-color: var(--gray-300);
    animation: spin 1.2s linear infinite reverse;
    right: -10px;
}

.loader-text {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    z-index: 1;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.35s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-rings {
    position: relative;
    width: 36px;
    height: 30px;
}

.ring {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid;
}

.ring-orange {
    border-color: var(--orange);
    left: 0;
    top: 3px;
}

.ring-dark {
    border-color: var(--dark);
    left: 12px;
    top: 3px;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--dark);
    transition: color 0.3s;
}

#navbar:not(.scrolled) .logo-text {
    color: var(--white);
}

.cx {
    color: var(--orange);
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--white); }

#navbar.scrolled .nav-links a { color: var(--text-light); }
#navbar.scrolled .nav-links a:hover { color: var(--dark); }

.nav-cta {
    background: var(--gradient);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

#navbar.scrolled .mobile-menu-btn span { background: var(--dark); }

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    color: var(--white);
    font-size: 24px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--orange); }

.mobile-cta {
    background: var(--gradient) !important;
    padding: 14px 36px !important;
    border-radius: 50px;
    font-size: 18px !important;
    margin-top: 16px;
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    min-height: 100vh;
    background: var(--dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--orange);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #3b82f6;
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--orange);
    bottom: 20%;
    right: 30%;
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 0, 0.15);
    border: 1px solid rgba(255, 107, 0, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--orange-light);
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line { display: block; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 0, 0.5);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat { text-align: center; }

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
}

.stat-suffix {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--orange);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
}

/* Phone Mockup */
.hero-phone {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    z-index: 2;
}

.phone-frame {
    width: 280px;
    height: 570px;
    background: #1a1a2e;
    border-radius: 40px;
    padding: 12px;
    position: relative;
    box-shadow:
        0 0 0 2px rgba(255,255,255,0.1),
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 0 0 1px rgba(255,255,255,0.05);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,107,0,0.5), transparent);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-notch::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2a2a4e;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f5f7fa;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

/* Screen Content Styles */
.screen-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-size: 10px;
}

/* Dashboard Screen */
.dashboard-screen .screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 16px 12px;
    background: var(--white);
}

.screen-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient);
}

.greeting {
    font-size: 9px;
    color: var(--text-light);
}

.student-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
}

.notification-bell {
    position: relative;
    font-size: 16px;
    color: var(--dark);
}

.bell-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    width: 14px;
    height: 14px;
    background: var(--orange);
    border-radius: 50%;
    font-size: 8px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.semester-card {
    margin: 8px 16px;
    background: var(--gradient-dark);
    border-radius: 14px;
    padding: 14px;
    color: white;
}

.semester-label {
    font-size: 10px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.semester-info {
    display: flex;
    justify-content: space-around;
}

.info-item {
    text-align: center;
}

.info-num {
    display: block;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.info-label {
    display: block;
    font-size: 8px;
    opacity: 0.6;
    margin-top: 2px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px 16px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: 12px;
    font-size: 8px;
    font-weight: 600;
    color: white;
}

.action-card i { font-size: 16px; }
.ac-orange { background: linear-gradient(135deg, #FF6B00, #FF8A33); }
.ac-blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.ac-green { background: linear-gradient(135deg, #10b981, #34d399); }
.ac-purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }

.recent-activity {
    padding: 8px 16px;
    flex: 1;
}

.recent-activity .section-title,
.screen-content .section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 6px;
}

.activity-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: white;
    flex-shrink: 0;
}

.ai-blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.ai-orange { background: linear-gradient(135deg, #FF6B00, #FF8A33); }
.ai-green { background: linear-gradient(135deg, #10b981, #34d399); }

.activity-info { flex: 1; }
.activity-name { font-size: 10px; font-weight: 600; color: var(--dark); }
.activity-desc { font-size: 8px; color: var(--text-light); }
.activity-grade { font-size: 14px; font-weight: 800; color: #10b981; font-family: 'Space Grotesk'; }
.activity-amount { font-size: 11px; font-weight: 700; color: var(--orange); font-family: 'Space Grotesk'; }

.phone-bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 7px;
    color: var(--text-light);
}

.nav-item i { font-size: 12px; }
.nav-item.active { color: var(--orange); }

/* Floating Cards */
.float-card {
    position: absolute;
    background: var(--white);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    font-size: 12px;
    z-index: 3;
    white-space: nowrap;
}

.float-card i {
    font-size: 18px;
}

.float-card strong {
    display: block;
    font-size: 12px;
    color: var(--dark);
}

.float-card small {
    display: block;
    font-size: 10px;
    color: var(--text-light);
}

.float-card-1 {
    top: 15%;
    left: -60px;
}

.float-card-1 i { color: var(--orange); }

.float-card-2 {
    bottom: 25%;
    right: -70px;
}

.float-card-2 i { color: #10b981; }

.float-card-3 {
    bottom: 10%;
    left: -40px;
    flex-direction: column;
    align-items: flex-start;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 30px;
}

.mini-chart .bar {
    width: 8px;
    background: var(--gradient);
    border-radius: 2px;
    transition: height 0.3s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--orange);
    border-radius: 2px;
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

.scroll-indicator span {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================
   Sections Common
   ============================================ */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(255, 107, 0, 0.1);
    color: var(--orange);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header .section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   Features Section
   ============================================ */
#features {
    padding: 120px 0;
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all 0.4s ease;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--orange);
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: var(--gradient);
    color: var(--white);
    transform: scale(1.1);
}

.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--orange);
    background: rgba(255, 107, 0, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
}

/* ============================================
   App Screens Section
   ============================================ */
#screens {
    background: var(--dark);
    overflow: hidden;
    min-height: 100vh;
    position: relative;
}

.screens-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Text side - starts centered, animates to left */
.screens-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    max-width: 600px;
    z-index: 2;
    transition: none; /* GSAP controls this */
}

.screens-text .section-tag { margin-bottom: 16px; }

.screens-text .section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
}

.screens-text .section-desc {
    color: rgba(255,255,255,0.6);
    font-size: 17px;
    line-height: 1.7;
    max-width: 460px;
    margin: 0 auto 24px;
}

.screens-text .screen-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    opacity: 0;
    margin-bottom: 20px;
}

.screens-text .screens-progress {
    display: flex;
    gap: 10px;
    opacity: 0;
    margin-bottom: 12px;
}

.current-screen-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--orange);
    opacity: 0;
    letter-spacing: 1px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.progress-dot.active {
    background: var(--orange);
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.5);
}

/* Phone area - starts off-screen right, GSAP animates it in */
.screens-phone-area {
    position: absolute;
    right: -30%;
    z-index: 3;
    opacity: 0;
}

#screens .section-tag { background: rgba(255,107,0,0.2); }

.screen-nav-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s;
}

.screen-nav-btn.active,
.screen-nav-btn:hover {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
}

.screens-carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    justify-content: center;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-phone {
    flex-shrink: 0;
    text-align: center;
    opacity: 0.4;
    transform: scale(0.85);
    transition: all 0.5s ease;
    display: none;
}

.carousel-phone.active {
    opacity: 1;
    transform: scale(1);
    display: block;
}

.carousel-phone.adjacent {
    display: block;
    opacity: 0.3;
    transform: scale(0.8);
}

.small-frame {
    width: 260px;
    height: 530px;
}

.screen-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-top: 20px;
    font-family: 'Space Grotesk', sans-serif;
}

/* Courses Screen */
.courses-screen { background: #f5f7fa; }

.screen-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 16px 12px;
    background: var(--white);
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

.screen-top-bar i { font-size: 14px; color: var(--text-light); }

.search-bar-mock {
    margin: 8px 16px;
    background: var(--gray-100);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-light);
}

.search-bar-mock i { font-size: 12px; }

.filter-chips {
    display: flex;
    gap: 6px;
    padding: 4px 16px 8px;
}

.chip {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--text-light);
}

.chip.active {
    background: var(--gradient);
    color: white;
}

.course-card-mock {
    margin: 4px 16px 8px;
    background: var(--white);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid var(--gray-200);
}

.course-header-mock {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.course-code {
    font-size: 9px;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
}

.course-name-mock {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
}

.credits-badge {
    font-size: 8px;
    font-weight: 700;
    background: rgba(255, 107, 0, 0.1);
    color: var(--orange);
    padding: 3px 8px;
    border-radius: 10px;
}

.course-meta {
    display: flex;
    gap: 12px;
    font-size: 9px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.course-meta i { font-size: 8px; margin-right: 3px; }

.course-capacity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.capacity-bar {
    flex: 1;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.capacity-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
}

.course-capacity span { font-size: 8px; color: var(--text-light); }

.enroll-btn {
    width: 100%;
    padding: 8px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

/* Grades Screen */
.grades-screen { background: #f5f7fa; }

.gpa-overview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    margin: 8px 16px;
    background: var(--white);
    border-radius: 14px;
}

.gpa-circle {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.gpa-circle svg { width: 100%; height: 100%; }

.gpa-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    font-size: 18px;
    font-weight: 800;
    font-family: 'Space Grotesk';
    color: var(--dark);
}

.gpa-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 40%);
    font-size: 8px;
    color: var(--text-light);
    font-weight: 600;
}

.gpa-stats { display: flex; gap: 20px; }
.gpa-stat { text-align: center; }
.gs-num { display: block; font-size: 16px; font-weight: 800; color: var(--dark); font-family: 'Space Grotesk'; }
.gs-label { display: block; font-size: 8px; color: var(--text-light); margin-top: 2px; }

.semester-filter {
    display: flex;
    gap: 6px;
    padding: 4px 16px;
    overflow-x: auto;
}

.sem-chip {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--text-light);
    white-space: nowrap;
}

.sem-chip.active {
    background: var(--dark);
    color: white;
}

.grade-list {
    padding: 8px 16px;
    flex: 1;
}

.grade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 6px;
}

.gc-code { font-size: 9px; font-weight: 700; color: var(--orange); }
.gc-name { font-size: 11px; font-weight: 600; color: var(--dark); }

.grade-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    font-family: 'Space Grotesk';
    color: white;
}

.grade-a { background: linear-gradient(135deg, #10b981, #34d399); }
.grade-b { background: linear-gradient(135deg, #3b82f6, #60a5fa); }

/* Chat Screen */
.chat-screen { background: #f0f2f5; }

.chat-messages {
    flex: 1;
    padding: 12px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-msg {
    display: flex;
    gap: 6px;
    max-width: 85%;
}

.chat-msg.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    flex-shrink: 0;
}

.msg-content {
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--white);
}

.chat-msg.sent .msg-content {
    background: var(--gradient);
    color: white;
}

.msg-sender { font-size: 8px; font-weight: 700; color: var(--orange); margin-bottom: 2px; }
.chat-msg.sent .msg-sender { display: none; }
.msg-text { font-size: 10px; line-height: 1.4; }
.msg-time { font-size: 7px; color: var(--text-light); margin-top: 3px; text-align: right; }
.chat-msg.sent .msg-time { color: rgba(255,255,255,0.7); }

.chat-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--white);
    margin: 8px 12px;
    border-radius: 24px;
    font-size: 11px;
    color: var(--text-light);
}

.chat-input i { color: var(--orange); font-size: 16px; }
.chat-input span { flex: 1; }

/* Billing Screen */
.billing-screen { background: #f5f7fa; }

.balance-card {
    margin: 8px 16px;
    background: var(--gradient-dark);
    border-radius: 16px;
    padding: 20px 16px;
    color: white;
    text-align: center;
}

.balance-label { font-size: 10px; opacity: 0.7; }

.balance-amount {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Space Grotesk';
    margin: 6px 0;
}

.balance-status {
    font-size: 9px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
}

.billing-summary {
    margin: 8px 16px;
    background: var(--white);
    border-radius: 12px;
    padding: 12px;
}

.billing-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    padding: 6px 0;
    color: var(--text);
}

.billing-row.total { font-weight: 700; font-size: 12px; }
.amount-negative { color: #ef4444; }
.amount-positive { color: #10b981; }

.billing-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 4px 0;
}

.payment-history-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--dark);
    padding: 4px 16px;
}

.payment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 16px;
    padding: 8px 12px;
    background: var(--white);
    border-radius: 10px;
}

.payment-icon { color: #10b981; font-size: 14px; }
.payment-info { flex: 1; }
.payment-desc { font-size: 10px; font-weight: 600; color: var(--dark); }
.payment-date { font-size: 8px; color: var(--text-light); }
.payment-amt { font-size: 11px; font-weight: 700; color: #10b981; font-family: 'Space Grotesk'; }

/* ============================================
   Modules Section
   ============================================ */
#modules {
    padding: 120px 0;
    background: var(--gray-50);
}

.modules-timeline {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.module-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.module-item.reverse { direction: rtl; }
.module-item.reverse > * { direction: ltr; }

.module-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 60px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.module-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.module-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.module-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text);
}

.module-features i {
    color: var(--orange);
    font-size: 14px;
}

.module-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.module-icon-large {
    width: 200px;
    height: 200px;
    border-radius: 40px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--white);
    box-shadow: 0 20px 60px rgba(255, 107, 0, 0.3);
    transition: transform 0.5s;
}

.module-icon-large:hover {
    transform: rotate(5deg) scale(1.05);
}

/* ============================================
   Technology Section
   ============================================ */
#tech {
    padding: 120px 0;
    background: var(--white);
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tech-content .section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 16px;
}

.tech-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

.tech-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tech-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--orange);
}

.tech-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--orange);
}

.tech-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.tech-card p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   Download Section
   ============================================ */
#download {
    padding: 120px 0;
    background: var(--gray-50);
}

.download-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.download-content .section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 16px;
}

.download-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 14px;
    transition: all 0.3s;
}

.store-btn i { font-size: 28px; }
.store-btn small { display: block; font-size: 10px; opacity: 0.8; }
.store-btn strong { display: block; font-size: 17px; }

.apple-btn {
    background: var(--dark);
    color: var(--white);
}

.apple-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(26, 26, 46, 0.4);
}

.google-btn {
    background: var(--gradient);
    color: var(--white);
}

.google-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 0, 0.4);
}

.qr-section {
    display: flex;
    gap: 24px;
}

.qr-card {
    text-align: center;
}

.qr-code {
    width: 140px;
    height: 140px;
    padding: 8px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: 10px;
}

.qr-code svg { width: 100%; height: 100%; }

.qr-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
}

.qr-label i { margin-right: 4px; }

.download-phone {
    display: flex;
    justify-content: center;
}

/* ============================================
   Footer
   ============================================ */
#footer {
    background: var(--dark);
    padding: 20px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left span {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-right a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
}

.footer-right a:hover { color: var(--orange); }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .module-item { gap: 40px; }
    .tech-grid { grid-template-columns: 1fr; gap: 40px; }
    .download-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .download-phone { order: -1; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-btn { display: flex; }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-description { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }

    .hero-phone {
        max-width: 300px;
        margin: 0 auto;
    }

    .float-card { display: none; }

    .features-grid { grid-template-columns: 1fr; }

    .screens-inner { flex-direction: column; padding: 80px 24px; }
    .screens-text {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        text-align: center !important;
        margin-bottom: 30px;
    }
    .screens-phone-area {
        position: relative !important;
        right: auto !important;
        transform: none !important;
    }
    .screens-text .screen-nav { justify-content: center; }
    .screens-text .screens-progress { justify-content: center; }
    .screen-nav-btn { padding: 8px 16px; font-size: 12px; }

    .module-item,
    .module-item.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        direction: ltr;
    }

    .module-visual { order: -1; }

    .module-icon-large {
        width: 140px;
        height: 140px;
        font-size: 56px;
        border-radius: 30px;
    }

    .tech-cards { grid-template-columns: repeat(2, 1fr); }

    .download-buttons { flex-direction: column; }
    .store-btn { justify-content: center; }

    .qr-section { justify-content: center; }

    .phone-frame {
        width: 240px;
        height: 490px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px; }
    .btn { padding: 12px 22px; font-size: 14px; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .stat-divider { display: none; }
    .tech-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
    .tech-card { padding: 16px 10px; }
    .qr-code { width: 110px; height: 110px; }
}

/* ============================================
   GSAP Animation Helper Classes
   ============================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
}
