/* ============================================
   Kid Academy - Coming Soon Page Styles
   ============================================ */

/* ---------- CSS Custom Properties (Variables) ---------- */
:root {
    /* Light Mode Colors */
    --primary: #6C63FF;
    --primary-light: #8B85FF;
    --primary-dark: #5B52E0;
    --secondary: #FFD166;
    --secondary-light: #FFE08A;
    --accent: #00C2A8;
    --accent-light: #00E5C6;
    --background: #FFFFFF;
    --background-secondary: #F8FAFC;
    --surface: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(108, 99, 255, 0.15);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6C63FF 0%, #00C2A8 100%);
    --gradient-secondary: linear-gradient(135deg, #FFD166 0%, #FF8E53 100%);
    --gradient-background: linear-gradient(135deg, #E0E7FF 0%, #DBEAFE 50%, #E0FCFF 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50px;
}

/* ---------- Dark Mode Variables ---------- */
[data-theme="dark"] {
    --primary: #8B5CF6;
    --primary-light: #A78BFA;
    --primary-dark: #7C3AED;
    --secondary: #FBBF24;
    --accent: #34D399;
    --background: #0F172A;
    --background-secondary: #1E293B;
    --surface: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;

    --glass-bg: rgba(30, 41, 59, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);

    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #34D399 100%);
    --gradient-background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 50%, #134E4A 100%);

    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.4);
}

/* ---------- Reset & Base Styles ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-background);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    transition: background var(--transition-slow), color var(--transition-medium);
    position: relative;
}

/* ---------- Background Decorations ---------- */
.background-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Gradient Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--secondary);
    bottom: -50px;
    left: -100px;
    animation-delay: -7s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

/* Floating Education Icons */
.floating-icon {
    position: absolute;
    font-size: 2rem;
    animation: floatIcon 6s ease-in-out infinite;
    opacity: 0.6;
    transition: opacity var(--transition-medium);
}

[data-theme="dark"] .floating-icon {
    opacity: 0.4;
}

.icon-book {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    font-size: 2.5rem;
}

.icon-pencil {
    top: 20%;
    right: 8%;
    animation-delay: -1s;
    font-size: 2rem;
}

.icon-rocket {
    bottom: 25%;
    left: 8%;
    animation-delay: -2s;
    font-size: 2.8rem;
}

.icon-star {
    top: 15%;
    left: 15%;
    animation-delay: -3s;
    font-size: 1.8rem;
}

.icon-graduation {
    bottom: 15%;
    right: 10%;
    animation-delay: -4s;
    font-size: 2.5rem;
}

.icon-lightbulb {
    top: 40%;
    left: 3%;
    animation-delay: -2.5s;
    font-size: 2.2rem;
}

.icon-atom {
    top: 35%;
    right: 5%;
    animation-delay: -1.5s;
    font-size: 2rem;
}

.icon-palette {
    bottom: 35%;
    right: 15%;
    animation-delay: -3.5s;
    font-size: 2rem;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(5deg);
    }

    50% {
        transform: translateY(-5px) rotate(-3deg);
    }

    75% {
        transform: translateY(-20px) rotate(3deg);
    }
}

/* ---------- Theme Toggle ---------- */
.theme-toggle-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle {
    position: relative;
    width: 64px;
    height: 32px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    overflow: hidden;
}

.theme-toggle:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.toggle-icon {
    font-size: 0.9rem;
    z-index: 2;
    transition: opacity var(--transition-medium);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-slider {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    transition: left var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .toggle-slider {
    left: calc(100% - 28px);
}

.sun {
    opacity: 1;
}

.moon {
    opacity: 0.5;
}

[data-theme="dark"] .sun {
    opacity: 0.5;
}

[data-theme="dark"] .moon {
    opacity: 1;
}

/* ---------- Main Container ---------- */
.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* ---------- Glassmorphism Content Card ---------- */
.content-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
    transition: all var(--transition-medium);
}

.content-card:hover {
    box-shadow: var(--shadow-glow);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Logo Container ---------- */
.logo-container {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-radius: 20px;
}

.logo-image {
    max-width: 150px;
    height: auto;
    transition: transform var(--transition-medium);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    border-radius: 20px;

}

.logo-image:hover {
    transform: scale(1.05);
}

[data-theme="dark"] .logo-image {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.brand-name {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 800;
    background: linear-gradient(90deg, #3B82F6, #FACC15, #EF4444, #22C55E, #F97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
    animation: colorShift 4s ease-in-out infinite;
    background-size: 200% auto;
}

@keyframes colorShift {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

/* ---------- Main Heading ---------- */
.main-heading {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.heading-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ---------- Subtext ---------- */
.subtext {
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 400;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ---------- Footer ---------- */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    text-align: center;
    z-index: 1;
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Responsive Design ---------- */

/* Tablet */
@media (max-width: 768px) {
    .content-card {
        padding: 35px 25px;
    }

    .floating-icon {
        font-size: 1.5rem;
    }

    .icon-book,
    .icon-rocket,
    .icon-graduation {
        font-size: 1.8rem;
    }

    .blob-1 {
        width: 250px;
        height: 250px;
    }

    .blob-2 {
        width: 200px;
        height: 200px;
    }

    .blob-3 {
        width: 180px;
        height: 180px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    body {
        min-height: 100vh;
        min-height: 100dvh;
        /* Dynamic viewport height for mobile */
        padding: 10px;
    }

    .container {
        padding: 10px;
        min-height: auto;
        align-items: flex-start;
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .content-card {
        padding: 25px 18px;
        border-radius: var(--radius-lg);
    }

    .logo-container {
        margin-bottom: 18px;
        gap: 8px;
    }

    .logo-image {
        max-width: 100px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .main-heading {
        font-size: 1.35rem;
        margin-bottom: 12px;
    }

    .subtext {
        font-size: 0.85rem;
        margin-bottom: 15px;
        padding: 0 5px;
    }

    .theme-toggle-wrapper {
        top: 12px;
        right: 12px;
    }

    .theme-toggle {
        width: 56px;
        height: 28px;
        padding: 0 5px;
    }

    .toggle-slider {
        width: 20px;
        height: 20px;
        left: 4px;
    }

    [data-theme="dark"] .toggle-slider {
        left: calc(100% - 24px);
    }

    .toggle-icon {
        font-size: 0.8rem;
    }

    .floating-icon {
        display: none;
    }

    .blob-1 {
        width: 180px;
        height: 180px;
        top: -60px;
        right: -60px;
    }

    .blob-2 {
        width: 150px;
        height: 150px;
        bottom: -40px;
        left: -60px;
    }

    .blob-3 {
        width: 120px;
        height: 120px;
    }

    .footer {
        position: relative;
        padding: 15px 10px;
        margin-top: 15px;
    }

    .footer p {
        font-size: 0.75rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .container {
        padding: 8px;
        padding-top: 55px;
    }

    .content-card {
        padding: 20px 15px;
    }

    .logo-image {
        max-width: 80px;
    }

    .brand-name {
        font-size: 0.9rem;
    }

    .main-heading {
        font-size: 1.2rem;
    }

    .subtext {
        font-size: 0.8rem;
    }
}

/* ---------- Utility Classes ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Accessibility & Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .blob,
    .floating-icon {
        animation: none;
    }
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

button:focus:not(:focus-visible) {
    outline: none;
}