/* ===========================
   CSS Variables & Reset
   =========================== */

:root {
    /* Colors */
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --secondary: #EC4899;
    --accent: #10B981;
    --bg-dark: #0F172A;
    --bg-darker: #020617;
    --text-light: #F1F5F9;
    --text-gray: #94A3B8;
    --card-bg: rgba(30, 41, 59, 0.5);
    --card-border: rgba(99, 102, 241, 0.2);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent: 'Space Grotesk', var(--font-main);

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 5rem 1.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================
   Animated Background
   =========================== */

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.bg-animation::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite reverse;
}

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

/* ===========================
   Container & Utilities
   =========================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* ===========================
   Buttons
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-family: var(--font-accent);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-accent);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.icon-bubble {
    position: absolute;
    font-size: 2.5rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

.icon-bubble:nth-child(1) { animation-delay: 0s; }
.icon-bubble:nth-child(2) { animation-delay: 1s; }
.icon-bubble:nth-child(3) { animation-delay: 2s; }
.icon-bubble:nth-child(4) { animation-delay: 3s; }
.icon-bubble:nth-child(5) { animation-delay: 4s; }
.icon-bubble:nth-child(6) { animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* ===========================
   Section Titles
   =========================== */

.section-title {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

/* ===========================
   Value Proposition Section
   =========================== */

.value-prop {
    padding: var(--section-padding);
    position: relative;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.value-card:hover::before {
    opacity: 1;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.value-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===========================
   Domains Section
   =========================== */

.domains {
    padding: var(--section-padding);
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.05) 100%);
}

.domain-category {
    margin-bottom: 4rem;
}

.domain-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-family: var(--font-accent);
    font-size: 1.75rem;
    margin: 3rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-icon {
    font-size: 2rem;
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.domain-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 1.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.domain-card:hover {
    transform: translateY(-3px);
    border-color: var(--secondary);
    box-shadow: 0 15px 30px rgba(236, 72, 153, 0.2);
}

.domain-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.domain-emoji {
    font-size: 2rem;
}

.domain-card h4 {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-weight: 600;
}

.domain-card p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.domain-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
}

/* ===========================
   Program Details Section
   =========================== */

.program-details {
    padding: var(--section-padding);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.detail-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.detail-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.detail-card h3 {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.detail-card p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* ===========================
   Who Should Apply Section
   =========================== */

.who-should-apply {
    padding: var(--section-padding);
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.05) 0%, transparent 100%);
}

.apply-content {
    max-width: 900px;
    margin: 3rem auto 0;
}

.apply-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.apply-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.apply-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.check-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: bold;
}

.apply-item h4 {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.apply-item p {
    color: var(--text-gray);
}

/* ===========================
   Final CTA Section
   =========================== */

.final-cta {
    padding: var(--section-padding);
    margin: 4rem 0;
}

.cta-box {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 2px solid var(--primary);
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}

.cta-box h2 {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    position: relative;
}

.cta-box > p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    position: relative;
}

.cta-box .btn {
    position: relative;
    margin-bottom: 1rem;
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-style: italic;
}

/* ===========================
   Footer
   =========================== */

.footer {
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.footer p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 1rem;
    }

    .hero-stats {
        gap: 2rem;
    }

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

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

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

    .floating-icons {
        display: none;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }
}

/* ===========================
   Animations & Transitions
   =========================== */

.value-card,
.domain-card,
.detail-card,
.apply-item {
    animation: fadeIn 0.6s ease-out backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delays */
.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }
.value-card:nth-child(5) { animation-delay: 0.5s; }
.value-card:nth-child(6) { animation-delay: 0.6s; }

/* ===========================
   Accessibility
   =========================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states */
a:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* ===========================
   Print Styles
   =========================== */

@media print {
    .bg-animation,
    .floating-icons,
    .btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
