/* ===================================
   GLOBAL STYLES & RESETS
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Futuristic Color Palette */
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #7b2ff7;
    --accent: #ff006e;
    --success: #00ff88;
    
    /* Backgrounds */
    --bg-dark: #0a0e27;
    --bg-darker: #050816;
    --bg-card: rgba(15, 23, 42, 0.8);
    --bg-card-hover: rgba(20, 30, 55, 0.9);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 100%);
    --gradient-hero: linear-gradient(180deg, rgba(10, 14, 39, 0.95) 0%, rgba(5, 8, 22, 0.98) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 212, 255, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 212, 255, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 212, 255, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.4);
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(123, 47, 247, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: width var(--transition-normal);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding);
    padding-top: 120px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        var(--gradient-hero),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2300d4ff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.gradient-text {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

.gradient-text::after {
    content: 'Online Digital Redemption';
    position: absolute;
    left: 0;
    top: 0;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glitch 3s ease-in-out infinite;
    opacity: 0;
}

@keyframes glitch {
    0%, 90%, 100% { opacity: 0; transform: translate(0); }
    92%, 94%, 96% { opacity: 0.7; transform: translate(2px, 2px); }
    93%, 95% { opacity: 0.7; transform: translate(-2px, -2px); }
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 32px);
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 600;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    animation: bounce 2s infinite;
    color: var(--primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-20px); }
    60% { transform: translateX(-50%) translateY(-10px); }
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-darker);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 45px;
    font-size: 18px;
}

/* ===================================
   SECTIONS
   =================================== */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 15px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
}

/* ===================================
   ABOUT / FEATURES SECTION
   =================================== */

.about {
    padding: var(--section-padding);
    background: rgba(15, 23, 42, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-box {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.feature-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===================================
   CURRICULUM SECTION
   =================================== */

.curriculum {
    padding: var(--section-padding);
}

.curriculum-intro {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    line-height: 1.8;
    padding-bottom: 40px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

.curriculum-intro p {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 20px;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.curriculum-module {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.curriculum-module.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.curriculum-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.curriculum-module:hover::before {
    transform: scaleX(1);
}

.curriculum-module:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.module-icon-circle {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    box-shadow: var(--shadow-sm);
}

.module-header h3 {
    font-size: 18px;
    color: #F7E7CE;
}

.curriculum-module p {
    color: #F7E7CE;
    line-height: 1.7;
    font-size: 14px;
}

/* ===================================
   PRICING SECTION
   =================================== */

.pricing {
    padding: var(--section-padding);
    background: rgba(15, 23, 42, 0.3);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    padding: 45px;
    border-radius: 20px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    transition: all var(--transition-normal);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
}

.pricing-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.pricing-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    display: inline-block;
    background: rgba(123, 47, 247, 0.2);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.pricing-badge.popular {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary);
}

.pricing-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    margin-bottom: 10px;
}

.currency {
    font-size: 28px;
    color: var(--text-secondary);
    margin-right: 5px;
}

.price {
    font-size: 56px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.period {
    font-size: 20px;
    color: var(--text-secondary);
    margin-left: 5px;
}

.pricing-total {
    color: var(--text-muted);
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-features {
    list-style: none;
    margin-bottom: 35px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding-left: 5px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
}

.pricing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 20px;
    font-style: italic;
}

.guarantee-section {
    margin-top: 60px;
}

.guarantee-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 2px solid rgba(0, 255, 136, 0.2);
    display: flex;
    align-items: center;
    gap: 30px;
}

.guarantee-icon-circle {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.guarantee-box h4 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--success);
}

.guarantee-box p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta {
    padding: var(--section-padding);
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 20px;
    color: var(--text-primary);
}

.cta p {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: var(--text-primary);
    color: var(--bg-darker);
}

.cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.cta .btn-outline {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.cta .btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-darker);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--bg-darker);
    padding: 60px 20px 30px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-content {
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 10px;
}

.footer-quick-links {
    margin-bottom: 40px;
}

.footer-quick-links h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.footer-links-row a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 500;
}

.footer-links-row a:hover {
    color: var(--primary);
}

.footer-links-row .link-left {
    text-align: left;
    flex: 0 0 auto;
}

.footer-links-row .link-center {
    text-align: center;
    flex: 0 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.footer-links-row .link-right {
    text-align: right;
    flex: 0 0 auto;
    margin-left: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-muted);
    margin: 5px 0;
}

.footer-gands {
    font-size: 12px;
    color: rgba(160, 174, 192, 0.4);
    font-weight: 300;
    margin-top: 10px;
}

/* ===================================
   LEGAL PAGES (ADDED)
   =================================== */

.legal-hero {
    min-height: 60vh;
}

.legal-section {
    padding: var(--section-padding);
    padding-top: 40px;
}

.legal-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.legal-card br {
    line-height: 2;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 992px) {
    .curriculum-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-subtitle {
        font-size: 9px;
    }
    
    .hero {
        min-height: 90vh;
        padding-top: 100px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .curriculum-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured.animate-in {
        transform: scale(1) translateY(0);
    }
    
    .guarantee-box {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        text-align: center;
    }

    .footer-quick-links h4 {
        text-align: center;
    }

    .footer-links-row {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links-row .link-center {
        position: static;
        transform: none;
    }

    .footer-links-row .link-left,
    .footer-links-row .link-center,
    .footer-links-row .link-right {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 15px;
    }
    
    .logo-text {
        font-size: 18px;
    }

    .logo-subtitle {
        font-size: 8px;
    }
    
    .feature-card,
    .curriculum-module,
    .pricing-card {
        padding: 25px;
    }

    .guarantee-box {
        padding: 25px;
    }

    .guarantee-icon-circle {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scroll animations */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Loading state for images */
img {
    transition: opacity var(--transition-normal);
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}