/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    --primary-color: #0A4083;
    --primary-light: #2062b8;
    --secondary-color: #f7a919;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 10px 40px -10px rgba(10, 64, 131, 0.1);
    --shadow-hover: 0 20px 50px -10px rgba(10, 64, 131, 0.2);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   Background Shapes
   ========================================================================== */
.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-light);
    top: -150px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    top: 40%;
    left: -150px;
    opacity: 0.3;
}

.shape-3 {
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    bottom: -200px;
    right: 10%;
    opacity: 0.2;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 8px 20px rgba(10, 64, 131, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(10, 64, 131, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    z-index: -1;
    border-radius: 50px;
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
    opacity: 0.7;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    border-radius: 10px;
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

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

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.btn-nav {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 24px;
}

.btn-nav:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
}

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

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(247, 169, 25, 0.15);
    color: #d97706;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

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

.store-availability {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 48px;
    opacity: 0.9;
}

.store-availability i {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.store-availability.center {
    justify-content: center;
    margin-bottom: 16px;
    margin-top: 24px;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.stat i {
    font-size: 24px;
    background: rgba(10, 64, 131, 0.1);
    padding: 8px;
    border-radius: 12px;
}

/* Phone Mockup (Glassmorphism UI) */
.phone-mockup {
    width: 320px;
    max-width: 100%;
    height: 650px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 25px 50px -12px rgba(10, 64, 131, 0.25);
    margin: 0 auto;
    position: relative;
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotate(0deg) translateY(-10px);
}

.phone-screen {
    background: #000;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.3);
}

.phone-screen.p-0 {
    padding: 0;
    display: block;
}

/* Carousel Styles */
.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 400%; /* 4 images, so 400% width */
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    width: 25%; /* Each image takes up 1/4 of the track */
    height: 100%;
    object-fit: cover; /* Keeps aspect ratio and covers the screen */
    object-position: center;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: white;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(10, 64, 131, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(10, 64, 131, 0.03) 100%);
}

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

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
    text-align: center;
    max-width: 350px;
    border: 1px solid var(--glass-border);
}

.about-card i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-muted);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials {
    padding: 100px 0 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    border: 1px solid rgba(10, 64, 131, 0.08);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.stars {
    color: var(--secondary-color);
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.testimonial-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
    padding: 100px 0;
}

.cta-container {
    background: linear-gradient(135deg, rgba(10, 64, 131, 0.05), rgba(32, 98, 184, 0.1));
    border: 1px solid rgba(10, 64, 131, 0.1);
    border-radius: 40px;
    padding: 80px 40px;
    text-align: center;
    max-width: 900px;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.cta p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.version-info {
    margin-top: 20px !important;
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: white;
    padding: 80px 0 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col .logo {
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    color: var(--text-muted);
}

.footer-col ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--text-muted);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal-left, .reveal-right, .reveal-bottom, .reveal-scale {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-bottom { transform: translateY(50px); }
.reveal-scale { transform: scale(0.9); }

.active.reveal-left, 
.active.reveal-right, 
.active.reveal-bottom {
    opacity: 1;
    transform: translate(0);
}

.active.reveal-scale {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .hero-container, .about-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero p { max-width: 100%; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .mobile-menu-btn { display: block; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .cta h2 { font-size: 2rem; }
    .cta-container { padding: 40px 20px; }
    .footer-container { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .section-title h2 { font-size: 2rem; }
    .phone-mockup { height: 580px; padding: 10px; }
    .phone-screen { padding: 16px; }
}

/* Dropdown Menu */
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background-color: #fff; min-width: 250px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1); z-index: 1; border-radius: 8px; overflow: hidden; top: 100%; left: 0; }
.dropdown-content a { color: #333; padding: 12px 16px; text-decoration: none; display: block; font-weight: 500; transition: 0.2s; }
.dropdown-content a:hover { background-color: #f1f1f1; color: var(--primary-color); }
.dropdown:hover .dropdown-content { display: block; }
.dropbtn { display: flex; align-items: center; gap: 5px; }

/* Welcome Modal Styles */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); z-index: 9999; display: none; align-items: center; justify-content: center; transition: opacity 0.3s; }
.modal-content { background: white; padding: 40px; border-radius: 20px; max-width: 500px; width: 90%; text-align: center; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.modal-header { margin-bottom: 30px; }
.modal-logo { max-width: 80px; margin-bottom: 15px; }
.modal-header h2 { color: #333; margin-bottom: 10px; font-size: 1.8rem; }
.modal-header p { color: #666; font-size: 1rem; }
.modal-body { display: flex; flex-direction: column; gap: 15px; }
.modal-btn { display: flex; align-items: center; text-align: left; padding: 20px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; transition: all 0.3s ease; background: #f8f9fa; }
.modal-btn .icon { font-size: 2rem; margin-right: 20px; }
.modal-btn .btn-text { display: flex; flex-direction: column; }
.modal-btn .btn-text strong { font-size: 1.1rem; color: #333; margin-bottom: 5px; }
.modal-btn .btn-text span { font-size: 0.9rem; color: #666; }
.student-btn:hover { border-color: #667eea; background: rgba(102, 126, 234, 0.05); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(102,126,234,0.1); }
.school-btn:hover { border-color: #764ba2; background: rgba(118, 75, 162, 0.05); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(118,75,162,0.1); }

.text-gradient-saas { background: linear-gradient(135deg, #764ba2 0%, #d8363a 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
