@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@300;500;700&display=swap');

:root {
    --color-primary: #351565;
    --color-accent: #C6913F;
    --color-secondary: #9C8CB4;
    --color-secondary-alt: #9C84B4;
    --color-bg: #1a0b33;
    /* Darker version of primary for deep space feel */
    --color-text: #EFEFEF;
    --color-text-dark: #333333;
    --color-white: #ffffff;

    --font-main: 'Libre Franklin', sans-serif;

    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

/* Starry Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.6;
    animation: twinkle 5s infinite;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 0 30px rgba(198, 145, 63, 0.3);
    letter-spacing: 4px;
    background: linear-gradient(to bottom, #ffffff, #e0e0e0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

h2 {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-secondary-alt);
}

p {
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.highlight {
    color: var(--color-accent);
    font-weight: 500;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

header {
    padding: var(--spacing-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logos {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.logo-img {
    height: 60px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 8px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding: var(--spacing-xl) 0;
    gap: var(--spacing-xl);
}

.hero-content {
    flex: 1;
    animation: fadeIn 1s ease-out;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    animation: fadeIn 1.5s ease-out;
}

.flyer-preview {
    max-width: 100%;
    width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--color-accent);
    animation: float 6s ease-in-out infinite;
}

.cta-button {
    display: inline-block;
    background: rgba(198, 145, 63, 0.1);
    color: var(--color-accent);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.2rem;
    margin-top: var(--spacing-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--color-accent);
    box-shadow: 0 0 15px rgba(198, 145, 63, 0.2), inset 0 0 10px rgba(198, 145, 63, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(198, 145, 63, 0.6), inset 0 0 20px rgba(198, 145, 63, 0.4);
    background: rgba(198, 145, 63, 0.2);
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.tagline {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.features {
    background: linear-gradient(to bottom, rgba(53, 21, 101, 0.2), rgba(26, 11, 51, 0.2));
    /* approx 20% opacity */
    padding: var(--spacing-xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.cert-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg);
    border-radius: 20px;
    border: 1px solid var(--color-secondary);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    backdrop-filter: blur(10px);
}


/* Secondary Tagline */
.secondary-tagline {
    font-size: 1.2rem;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 2px;
}

/* Audience Badge */
.audience-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    color: var(--color-white);
    backdrop-filter: blur(5px);
}

.audience-badge .icon {
    margin-right: 0.5rem;
}


/* Earth Float & Glow */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 156, 198, 0.3) 0%, rgba(53, 21, 101, 0.0) 70%);
    z-index: -1;
    filter: blur(50px);
    animation: pulse-glow 6s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.earth-globe {
    width: 500px;
    height: 500px;
    background-color: #000;
    /* Solid black fallback to prevent transparency */
    background-image: url('assets/earth_texture.jpg');
    background-size: 200% 100%;
    /* Ensure 2:1 ratio for map */
    background-repeat: repeat-x;
    border-radius: 50%;
    position: relative;
    box-shadow: inset 20px 0 80px 6px rgba(0, 0, 0, 0.9);
    /* Shadow for night side effect */
    animation: rotateEarth 60s linear infinite;
    transform-style: preserve-3d;
}

.earth-globe::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: -20px -20px 50px 2px rgba(0, 0, 0, 0.5) inset, 0 0 20px 2px rgba(0, 156, 198, 0.3);
    /* Inner shadow + outer glow */
}

@keyframes rotateEarth {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: -200% 0;
        /* Move left to simulate rotation */
    }
}



/* Partner Flags */
.partner-flags {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-md);
}

.partner-flags img {
    height: 30px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, filter 0.3s;
    filter: grayscale(100%);
    opacity: 0.8;
}

.partner-flags img:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
    opacity: 1;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.info-card {
    background: rgba(53, 21, 101, 0.4);
    padding: var(--spacing-lg);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 4px solid var(--color-accent);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(198, 145, 63, 0.5);
    background: rgba(53, 21, 101, 0.5);
}

.info-card h4 {
    color: var(--color-secondary-alt);
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.info-card ul {
    list-style: none;
}

.info-card ul li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-card.pricing {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* Instructors Grid */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.instructor-card {
    background: rgba(53, 21, 101, 0.4);
    padding: var(--spacing-lg);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}

.instructor-card:hover {
    transform: translateY(-10px);
    background: rgba(53, 21, 101, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(198, 145, 63, 0.3);
}

.instructor-card.primary {
    border: 1px solid var(--color-accent);
    background: rgba(198, 145, 63, 0.1);
}

.instructor-card .flag-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.instructor-card .flag-icon img {
    width: 100%;
    height: auto;
}

.instructor-card h4 {
    color: var(--color-white);
    margin-bottom: 0.2rem;
}

.instructor-card .role {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.instructor-card .origin {
    color: var(--color-secondary);
    font-size: 0.8rem;
    font-style: italic;
}

/* Timeline / Curriculum */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
    opacity: 0.8;
    box-shadow: 0 0 10px var(--color-accent);
}

.session {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.session-number {
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #4a1e8e);
    border: 2px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-white);
    z-index: 1;
    box-shadow: 0 0 15px rgba(198, 145, 63, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.session:hover .session-number {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(198, 145, 63, 0.6);
}

.session-content {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 10px;
    flex: 1;
    transition: background 0.3s;
}

.session:hover .session-content {
    background: rgba(255, 255, 255, 0.08);
}

.session-content h4 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.session-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--color-secondary);
}

/* Footer Modernization */
footer {
    background: rgba(0, 0, 0, 0.3);
    margin-top: var(--spacing-xl);
    border-top: 1px solid var(--color-accent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-brand h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--color-secondary);
    font-size: 1rem;
    margin-bottom: 0px;
}

/* Typewriter Cursor */
.typewriter-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--color-accent);
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.footer-contact h4 {
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: 1px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}

.contact-link:hover {
    color: var(--color-accent);
}

.contact-link .icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .hero-image {
        display: none;
        /* Hide astronaut on small mobile to save vertical space if needed, or adjust */
    }

    .timeline::before {
        left: 20px;
    }

    .session-number {
        min-width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .session {
        gap: var(--spacing-md);
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-xl);
    }
}