/* ============================================
   LANDING PAGE - MOBILE-FIRST REFACTOR
   Minimal Design | Symmetric Layout | Responsive Scaling
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   1. MINIMAL COLOR PALETTE & ROOT VARIABLES
   ============================================ */
:root {
    /* ERP Modern Color Palette (Stitch Generated) */
    --primary: #0047FF;
    --primary-hover: #0039CC;
    --primary-light: #E0E7FF;
    --secondary: #0F172A;
    --secondary-light: #F1F5F9;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;

    /* Legacy Support (for existing components) */
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);
    --bg-white: var(--white);
    /* --bg-light already defined above at line 20, no re-mapping needed */
    --border-color: var(--border);
    --border-subtle: var(--border);
    --accent-color: var(--primary);
    --accent-blue: var(--primary);
    --accent-purple: var(--primary);
    --bg-primary: var(--bg-light);
    --bg-secondary: var(--white);

    /* Spacing System */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    /* Responsive Sizing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Form Element Enhancements */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px !important;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 71, 255, 0.1);
}

/* ============================================
   ERP MODERN DESIGN SYSTEM (VANILLA HTML/CSS)
   ============================================ */
.erp-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.erp-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.erp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--secondary);
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.erp-logo i {
    color: var(--primary);
    font-size: 24px;
}

.erp-nav-desktop ul {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.erp-nav-desktop a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.erp-nav-desktop a:hover {
    color: var(--primary);
}

.erp-header-auth {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Buttons */
.erp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.erp-btn-primary {
    background-color: var(--primary);
    color: white !important;
}

.erp-btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.erp-btn-ghost {
    background-color: transparent;
    color: var(--text-main);
}

.erp-btn-ghost:hover {
    background-color: var(--bg-light);
}

.erp-btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text-main) !important;
}

.erp-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
}

.erp-btn-large {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius);
}

.erp-mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.erp-mobile-nav {
    display: none;
}

/* Mobile Menu Open State */
body.menu-open .erp-mobile-nav {
    display: block;
    position: absolute;
    top: 80px; /* height of header */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.erp-mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
}

.erp-mobile-nav li {
    width: 100%;
}

.erp-mobile-nav a {
    display: block;
    padding: 16px 24px;
    color: var(--text-main);
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border);
}

.erp-mobile-nav li:last-child a {
    border-bottom: none;
}

.erp-mobile-nav a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

/* Hero Section */
.erp-hero {
    padding: 120px 0 60px 0;
    /* Reduced from 140/80 */
    background: radial-gradient(circle at top right, #f0f4ff 0%, #ffffff 50%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.erp-hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.erp-badge {
    display: inline-flex;
    padding: 6px 16px;
    background-color: #E0E7FF;
    color: var(--primary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    border: none;
}

.erp-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
    max-width: 900px;
}

.erp-title span {
    color: var(--primary);
    background: none;
    -webkit-text-fill-color: var(--primary);
}

.erp-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

.erp-hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Modules Grid */
.erp-modules-section {
    padding: 80px 0;
    /* Reduced from 100px */
    background-color: var(--white);
}

.erp-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.erp-section-header h2 {
    font-size: 32px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.erp-section-header p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.erp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.erp-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 32px;
    /* Reduced from 40px for better balance */
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 240px;
    /* Base minimum height for consistency */
}

.erp-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    /* Softer shadow */
    transform: translateY(-2px);
    /* Subtle lift */
}

.erp-card-featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    padding: 40px;
    min-height: auto;
}

.erp-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
}

.erp-card-featured .erp-card-icon {
    margin-bottom: 0;
    width: 80px;
    height: 80px;
    font-size: 2.2rem;
    /* Slightly smaller for balance */
    flex-shrink: 0;
}

.portal-icon {
    background-color: var(--primary-light);
    color: var(--primary);
}

.tutor-icon {
    background-color: #f0f9ff;
    color: #0369a1;
}

.management-icon {
    background-color: #f8fafc;
    color: #475569;
}

.billing-icon {
    background-color: #f0fdf4;
    color: #15803d;
}

.erp-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.erp-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 15px;
    flex-grow: 1;
}

.erp-card-link {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.erp-card-link:hover {
    color: var(--primary-hover);
}

.erp-card-link:hover i {
    transform: translateX(4px);
}

/* Stats Section */
.erp-stats {
    padding: 60px 0;
    background: linear-gradient(to right, var(--secondary), #1e293b);
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.erp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    text-align: center;
}

.stat-number {
    font-size: 40px;
    /* Slightly smaller for better balance */
    font-weight: 800;
    margin-bottom: 4px;
    /* Tighter spacing */
    color: var(--white);
    /* White for better contrast on dark */
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.erp-footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
    color: var(--text-main);
}

.erp-footer-container {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
}

.erp-footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
    font-size: 14px;
}

.erp-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.erp-footer-col h4 {
    color: var(--secondary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.erp-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.erp-footer-col a {
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-size: 14px;
    text-decoration: none;
}

.erp-footer-col a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.erp-footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0 0 0;
    margin-top: 24px;
}

.erp-footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.erp-footer-bottom p {
    color: var(--text-muted);
    margin: 0;
    font-size: 14px;
}

.erp-social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.erp-social-links a {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
}

.erp-social-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {

    .erp-nav-desktop,
    .erp-header-auth {
        display: none;
    }

    .erp-mobile-menu-btn {
        display: block;
    }

    .erp-hero {
        padding: 100px 0 40px 0;
    }

    .erp-title {
        font-size: 36px;
    }

    .erp-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .erp-modules-section {
        padding: 64px 0;
    }

    .erp-grid {
        gap: 24px;
    }

    .erp-stats {
        padding: 48px 0;
    }

    .erp-stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .erp-footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        margin-bottom: 40px;
    }

    .erp-footer-brand p {
        margin: 16px auto 0;
    }

    .erp-footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .erp-card-featured {
        flex-direction: column;
        text-align: center;
        padding: 32px;
    }

    .erp-card-featured .erp-card-icon {
        margin: 0 auto 20px auto;
    }

    .erp-footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .erp-social-links {
        justify-content: center;
    }
}

/* ============================================
   2. GLOBAL STYLES & TYPOGRAPHY
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Typography Hierarchy for Mobile-First */
h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.25px;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* ============================================
   3. CONTAINER & LAYOUT UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* ============================================
   4. HEADER - MOBILE-FIRST
   ============================================ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

/* Top Bar */
.header-top {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.header-top .logo {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    color: var(--text-primary);
}

.header-top nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.header-top nav a {
    font-size: 0.85rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color var(--transition);
    white-space: nowrap;
}

.header-top nav a:hover {
    color: var(--accent-color);
}

/* Bottom Bar */
.header-bottom {
    padding: var(--spacing-sm) 0;
    display: none;
    /* Hide on mobile */
}

.header-bottom .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-bottom nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-xl);
    justify-content: center;
}

.header-bottom nav a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition);
}

.header-bottom nav a:hover {
    color: var(--text-primary);
}

/* ============================================
   5. HERO SECTION - MOBILE-FIRST MINIMAL
   ============================================ */

.hero-animated {
    position: relative;
    width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-white);
    padding-top: 100px;
    padding-bottom: var(--spacing-lg);
}

/* Animated Background SVG */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    z-index: 1;
}

.flow-line {
    opacity: 0.4;
    /* animation: flowAnimation linear infinite; */
}

.flow-line-1 {
    animation-duration: 15s;
    animation-delay: 0s;
}

.flow-line-2 {
    animation-duration: 18s;
    animation-delay: 2s;
}

.flow-line-3 {
    animation-duration: 20s;
    animation-delay: 4s;
}

.flow-line-4 {
    animation-duration: 22s;
    animation-delay: 6s;
}

.flow-line-5 {
    animation-duration: 25s;
    animation-delay: 8s;
}

@keyframes flowAnimation {
    0% {
        stroke-dasharray: 1200;
        stroke-dashoffset: 0;
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        stroke-dasharray: 1200;
        stroke-dashoffset: 1200;
        opacity: 0.3;
    }
}

/* Hero Content Container */
.hero-content-modern {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: auto;
}

.content-wrapper {
    text-align: center;
    max-width: 600px;
    padding: var(--spacing-md);
    /* animation: fadeInUp 1s ease-out 0.3s forwards; */
    opacity: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

/* Hero Title - Solid Color */
.hero-title-animated {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
    margin: 0;
    color: var(--text-primary);
    /* animation: fadeInUp 0.8s ease-out; */
}



.hero-title-animated .letter {
    display: inline-block;
    /* animation: letterFadeIn 0.6s ease-out backwards; */
}

@keyframes letterFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Subtitle */
.hero-subtitle-modern {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    /* animation: fadeInUp 0.8s ease-out 0.1s forwards; */
    opacity: 1;
    max-width: 500px;
}



/* Hero Description */
.hero-description {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    /* animation: fadeInUp 0.8s ease-out 0.2s forwards; */
    opacity: 1;
    max-width: 500px;
}



/* CTA Button Group */
.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    /* animation: fadeInUp 0.8s ease-out 0.3s forwards; */
    opacity: 1;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism Button */
.btn-glass {
    position: relative;
    padding: var(--spacing-md) var(--spacing-lg);
    min-height: 48px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: rgba(37, 99, 235, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--spacing-md);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    white-space: nowrap;
    width: 100%;
}

.btn-glass:hover {
    background: rgba(37, 99, 235, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.25);
}

.btn-glass:active {
    transform: translateY(0);
}

.btn-arrow {
    display: inline-block;
    transition: transform var(--transition);
}

.btn-glass:hover .btn-arrow {
    transform: translateX(4px);
}

#btn-get-started-hero,
#btn-get-started-hero * {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Outline Button */
.btn-outline {
    padding: var(--spacing-md) var(--spacing-lg);
    min-height: 48px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 2px solid var(--accent-color);
    border-radius: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    white-space: nowrap;
    width: 100%;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.btn-outline:active {
    transform: translateY(0);
}

/* Floating Elements - Redesigned for Mobile */
.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    mix-blend-mode: multiply;
    /* animation: float 6s ease-in-out infinite; */
}

.element-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    bottom: 10%;
    right: 5%;
    animation-delay: 2s;
}

.element-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ============================================
   6. MODAL STYLES
   ============================================ */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.auth-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal.hidden {
    display: none;
}

/* Body state when modal open */
body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-container {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--spacing-md);
    padding: var(--spacing-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 1.5rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-light);
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.modal-logo {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: #000000;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.modal-header .student-badge,
.modal-header .teacher-badge,
.modal-header .admin-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--spacing-sm);
    background: var(--bg-white);
    color: var(--text-primary);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.error-message {
    background: #fee;
    color: #c00;
    padding: var(--spacing-md);
    border-radius: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    display: none;
    font-size: 0.9rem;
}

.error-message.show {
    display: block;
}

.success-message {
    background: #efe;
    color: #060;
    padding: var(--spacing-md);
    border-radius: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    display: none;
    font-size: 0.9rem;
}

.success-message.show {
    display: block;
}

.btn-submit {
    width: 100%;
    padding: var(--spacing-md);
    min-height: 48px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--spacing-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: var(--spacing-md);
}

.btn-submit:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.btn-submit:active {
    transform: translateY(0);
}

.modal-footer {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-lg);
}

.modal-footer p {
    margin: 0;
}

.modal-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Auth Selector Grid (Login/Signup options) */
.auth-selector-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.auth-selector-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    /* rounded-2xl */
    padding: var(--spacing-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.auth-selector-card:hover {
    border-color: var(--primary);
    background: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.auth-selector-card-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.auth-selector-card h3 {
    font-size: 1.1rem;
    margin: 0;
}

.auth-selector-card p {
    font-size: 0.85rem;
    margin: 0;
}

/* 2-column layout for desktop selector */
@media (min-width: 640px) {
    .auth-selector-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .auth-selector-grid.signup {
        grid-template-columns: repeat(2, 1fr);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   7. ABOUT & FOOTER SECTIONS - MOBILE-FIRST
   ============================================ */

.about-us,
.about-more {
    padding: var(--spacing-2xl) 0;
}

.about-us h2,
.about-more h2 {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.about-text,
.about-more-text {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: center;
}

.about-columns {
    background: var(--bg-light);
    padding: var(--spacing-2xl) 0;
    margin-top: var(--spacing-2xl);
}

.about-columns .container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

.column-content {
    text-align: center;
}

.column-content p {
    margin-bottom: var(--spacing-lg);
}

/* Footer */
footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    color: var(--text-secondary);
}

footer .container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

.footer-logo {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.footer-logo span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-md);
    font-weight: 400;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl) var(--spacing-2xl);
    text-align: center;
}

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    transition: color var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

/* ============================================
   8. RESPONSIVE DESIGN - TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {

    /* Update container padding */
    .container {
        padding: 0 var(--spacing-xl);
    }

    /* Typography Scaling */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Header Bottom Visible on Tablet+ */
    .header-bottom {
        display: block;
    }

    /* Hero Section */
    .hero-animated {
        min-height: auto;
        padding: 120px var(--spacing-md) var(--spacing-xl);
    }

    .content-wrapper {
        gap: var(--spacing-xl);
        padding: var(--spacing-xl);
    }

    .hero-title-animated {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }

    .hero-subtitle-modern {
        font-size: clamp(1.15rem, 3vw, 1.4rem);
    }

    /* CTA Buttons - Horizontal on Tablet */
    .hero-cta-group {
        flex-direction: row;
        gap: var(--spacing-md);
        width: auto;
    }

    .btn-glass,
    .btn-outline {
        width: auto;
        min-width: 160px;
    }

    /* Floating Elements - Visible on Tablet */
    .floating-element {
        display: block;
    }

    /* Footer - Multi-column */
    footer .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-logo {
        text-align: left;
    }

    .footer-links {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-xl);
        text-align: left;
    }
}

/* ============================================
   9. RESPONSIVE DESIGN - DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {

    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    p {
        font-size: 1rem;
    }

    /* Container */
    .container {
        padding: 0 var(--spacing-xl);
    }

    /* Hero Section */
    .hero-animated {
        min-height: auto;
        padding: 140px var(--spacing-lg) var(--spacing-2xl);
    }

    .hero-title-animated {
        font-size: 3rem;
    }

    .hero-subtitle-modern {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    /* About Sections */
    .about-text {
        columns: 2;
        column-gap: var(--spacing-2xl);
        text-align: left;
    }

    .about-columns .container {
        flex-direction: row;
        gap: var(--spacing-2xl);
    }

    .column-content {
        text-align: left;
        flex: 1;
    }

    /* Modal */
    .modal-container {
        max-width: 600px;
        padding: var(--spacing-2xl);
    }
}

/* ============================================
   10. UTILITY ANIMATIONS (PRESERVED)
   ============================================ */

@keyframes cursorBlink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@keyframes buttonGlow {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    }

    50% {
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
    }
}

/* ============================================
   11. ACCESSIBILITY & FOCUS STATES
   ============================================ */

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
       DARK HEADER FOR MODALS
       ============================================ */
.modal-header-dark {
    background: transparent !important;
    color: var(--text-primary) !important;
    padding: 1.5rem 0 1rem 0 !important;
    margin: 0 0 1.5rem 0 !important;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.modal-header-dark h2 {
    color: var(--text-primary) !important;
    font-size: 1.4rem !important;
    margin-bottom: 0.25rem !important;
}

.modal-header-dark .modal-subtitle {
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
}

.modal-header-dark .modal-logo {
    margin-bottom: 0.5rem;
}

.modal-header-dark .modal-logo i {
    color: var(--accent-color) !important;
    font-size: 1.5rem !important;
}

.student-signup-active .modal-close {
    color: var(--text-primary) !important;
}