/* Skymirror Academy - Enhanced Theme Styles */

/* ============================================
   PROFESSIONAL COLOR SYSTEM
   ============================================
   Primary: Deep Navy (#0f172a, #1e293b, #334155)
   Secondary: Platinum/Silver (#cbd5e1, #94a3b8, #64748b)
   Accent: Cyan (#06b6d4, #0891b2) - CTAs and highlights
   Success: Emerald (#059669) - ONLY for success states
   Icon Accents: Cyan/Platinum for semantic meaning
   Neutrals: Slate grays for text and backgrounds
   
   Design Philosophy: Institutional, prestigious, timeless
   Inspiration: MIT, Stanford, Oxford - world-class education
   ============================================ */

/* Typography System */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

/* Text Justification & Readability */
p {
    text-align: left;
    hyphens: none;
    word-spacing: 0.05em;
}

.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

/* Improved Line Heights */
.leading-relaxed {
    line-height: 1.75;
}

.leading-tight {
    line-height: 1.15;
}

/* Enhanced Glass Morphism */
.bg-glass {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.08) 0%, rgba(96, 165, 250, 0.05) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(167, 139, 250, 0.2);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Enhanced Program Cards */
.program-card {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(96, 165, 250, 0.06) 100%);
    border-radius: 1.25rem;
    border: 1px solid rgba(167, 139, 250, 0.15);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2), 0 4px 15px rgba(96, 165, 250, 0.1);
    transition: all 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(225deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 50%, rgba(139, 92, 246, 0) 100%);
    z-index: -1;
    transition: opacity 0.4s ease-in-out;
    opacity: 0;
}

.program-card:hover {
    transform: translateY(-0.75rem) scale(1.02);
    box-shadow: 0 30px 60px rgba(167, 139, 250, 0.3), 0 20px 40px rgba(96, 165, 250, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(167, 139, 250, 0.35);
}

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

/* Enhanced Badges */
.badge {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.25) 0%, rgba(96, 165, 250, 0.18) 100%);
    color: rgb(196, 181, 253);
    padding: 0.5em 1em;
    border-radius: 9999px;
    border: 1px solid rgba(167, 139, 250, 0.25);
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.badge:hover {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.35) 0%, rgba(96, 165, 250, 0.28) 100%);
    border-color: rgba(167, 139, 250, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

/* Gradient Text */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-gradient {
    background-image: linear-gradient(90deg, #a78bfa 0%, #60a5fa 25%, #818cf8 50%, #a78bfa 75%, #60a5fa 100%);
    background-size: 400% auto;
    animation: gradient 12s ease-in-out infinite;
}

.gradient-mesh {
    background: 
        radial-gradient(at 0% 0%, rgba(167, 139, 250, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(96, 165, 250, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.25) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(59, 130, 246, 0.2) 0px, transparent 50%);
}

@keyframes gradient {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* Enhanced Buttons */
.btn-primary {
    background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.4), 0 4px 15px rgba(96, 165, 250, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 40px rgba(167, 139, 250, 0.5), 0 8px 20px rgba(96, 165, 250, 0.3);
}

/* Floating Animation */
.floating {
    animation: float 6s ease-in-out infinite;
}

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

/* Phase Card Enhancements */
.phase-card {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.08) 0%, rgba(96, 165, 250, 0.05) 100%);
    border-radius: 1.25rem;
    border: 1px solid rgba(167, 139, 250, 0.15);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.phase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(167, 139, 250, 0.25), 0 10px 20px rgba(96, 165, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.3);
}

/* Navigation Enhancement */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a78bfa, #60a5fa);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Improved Section Spacing */
.section-spacing {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (max-width: 768px) {
    .section-spacing {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Consistent Vertical Rhythm */
.section-gap {
    margin-bottom: 4rem;
}

.content-gap {
    margin-bottom: 2rem;
}

/* Max Width for Optimal Reading */
.prose {
    max-width: 65ch;
}

.prose-lg {
    max-width: 75ch;
}

/* Enhanced Stats/Numbers */
.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Improved Form Inputs */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

/* Enhanced Team Cards */
.team-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-card:hover {
    transform: translateY(-12px) scale(1.02);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #a78bfa, #60a5fa);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, rgba(167, 139, 250, 0.1) 25%, rgba(96, 165, 250, 0.15) 50%, rgba(167, 139, 250, 0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Improved Shadows */
.shadow-glow {
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.3), 0 0 40px rgba(96, 165, 250, 0.2);
}

.shadow-glow-hover:hover {
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.5), 0 0 60px rgba(96, 165, 250, 0.3);
}
