/* Frontier School — Landing styles */

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #020617;
    color: #f8fafc;
    overflow-x: hidden;
}

.bg-grid {
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
    background-size: 48px 48px;
}

/* Gemini background */
.gemini-bg-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.gemini-blob {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.5;
    animation: float-blob 15s ease-in-out infinite alternate;
    will-change: transform;
}

.blob-blue {
    background: rgba(56, 189, 248, 0.55);
    width: 50vw;
    height: 50vw;
    top: -10%;
    left: -10%;
}

.blob-purple {
    background: rgba(168, 85, 247, 0.45);
    width: 40vw;
    height: 40vw;
    top: 20%;
    right: -5%;
    animation-delay: -5s;
}

.blob-pink {
    background: rgba(232, 20, 105, 0.35);
    width: 45vw;
    height: 45vw;
    bottom: -20%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float-blob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 5%) scale(1.1); }
    66% { transform: translate(-5%, 10%) scale(0.9); }
    100% { transform: translate(0, -5%) scale(1); }
}

.gemini-text-gradient {
    background: linear-gradient(to right, #38bdf8, #818cf8, #e81469, #38bdf8);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: text-shimmer 4s linear infinite;
}

@keyframes text-shimmer {
    to { background-position: 200% center; }
}

/* Glass cards */
.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.2);
}

.frontier-gradient {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.85) 0%, rgba(2, 6, 23, 0.95) 100%);
    border: 1px solid rgba(56, 189, 248, 0.15);
    position: relative;
    box-shadow: inset 0 0 40px rgba(56, 189, 248, 0.05);
}

.frontier-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.animate-float {
    animation: float-element 6s ease-in-out infinite;
}

@keyframes float-element {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Buttons */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.45);
}

.btn-accent {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transition: all 0.35s ease;
}

.btn-accent:hover {
    opacity: 0.92;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
}

/* Microsoft symbol */
.ms-symbol {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    flex-shrink: 0;
}

.ms-square {
    width: 8px;
    height: 8px;
}

/* Nav */
#main-nav.nav-scrolled {
    background-color: rgba(2, 6, 23, 0.95) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
}

.menu-open #mobile-menu {
    transform: translateX(0);
}

/* Section eyebrow */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.08);
    color: #38bdf8;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

/* Feature pills */
.pillar-card {
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
}

.pillar-card:hover {
    border-color: rgba(56, 189, 248, 0.25);
    background: rgba(15, 23, 42, 0.75);
}

.pillar-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Program cards */
.program-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2.5rem;
    border-radius: 2rem;
}

.program-card--featured {
    transform: translateY(-1rem);
    border-top: 2px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.12);
}

@media (max-width: 1023px) {
    .program-card--featured {
        transform: none;
    }
}

/* Gallery */
.frontier-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .frontier-gallery {
        grid-template-columns: 1.2fr 0.8fr;
        grid-template-rows: auto auto;
    }

    .frontier-gallery__main {
        grid-row: span 2;
    }
}

.frontier-gallery__img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.frontier-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #94a3b8;
}

/* Stats bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .stats-bar {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 1.25rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CTA section */
.cta-panel {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(124, 58, 237, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2.5rem;
    position: relative;
    overflow: hidden;
}

.cta-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(232, 20, 105, 0.12), transparent 50%);
    pointer-events: none;
}

/* Events & partners */
.partner-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.partner-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #cbd5e1;
    transition: all 0.35s ease;
}

.partner-pill:hover {
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.partner-pill--microsoft { border-color: rgba(0, 164, 239, 0.25); }
.partner-pill--aws { border-color: rgba(255, 153, 0, 0.3); color: #fdba74; }
.partner-pill--adobe { border-color: rgba(255, 0, 0, 0.25); color: #fca5a5; }
.partner-pill--google { border-color: rgba(66, 133, 244, 0.25); color: #93c5fd; }

.event-card {
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    height: 100%;
    transition: all 0.4s ease;
}

.event-card:hover {
    border-color: rgba(56, 189, 248, 0.25);
    background: rgba(15, 23, 42, 0.8);
}

.event-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.events-highlight {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(2, 6, 23, 0.8) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}
