/* css/pages/monhoc.css - Premium Glassmorphism Design */

:root {
    --bg-deep: #0f172a;
    --accent-primary: #3b82f6;
    --accent-secondary: #0ea5e9;
    --accent-glow: #60a5fa;
    --text-light: #f8fafc;
    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --radius-md: 24px;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
}

/* --- Hero Section: Animated Gradient --- */
.mh-hero {
    position: relative;
    padding: 180px 20px 100px;
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a, #090a57);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    color: white;
    text-align: center;
    overflow: hidden;
    margin-bottom: -60px;
    /* Overlap content */
    border-radius: 0 0 50px 50px;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Hero Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border-radius: 50%;
    animation: floatingShape 20s infinite linear;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 10%;
    animation-duration: 30s;
    animation-direction: reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 20%;
    animation-duration: 20s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 30%;
    animation-duration: 15s;
}

@keyframes floatingShape {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(30px, 30px) rotate(180deg) scale(1.1);
    }

    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

.mh-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.mh-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
}

.mh-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- Glass Content Cards --- */
.main-content-wrapper {
    position: relative;
    z-index: 20;
    margin-top: 0;
    padding-bottom: 80px;
}

.subject-hub {
    display: grid;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
}

.glass-card:hover::before {
    left: 150%;
}

.subject-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
}

.subject-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    background: var(--accent-primary);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.subject-title-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--bg-deep);
}

/* Subject Themes */
.subject-physics .subject-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.subject-physics:hover {
    border-color: #3b82f6;
}

.subject-math .subject-icon {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.subject-math:hover {
    border-color: #ef4444;
}

.subject-chemistry .subject-icon {
    background: linear-gradient(135deg, #10b981, #047857);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.subject-chemistry:hover {
    border-color: #10b981;
}

.subject-biology .subject-icon {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.subject-biology:hover {
    border-color: #f59e0b;
}

/* Grade Grid */
.grade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.grade-btn {
    display: block;
    text-align: center;
    padding: 15px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid transparent;
}

.grade-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.is-coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
    background: transparent;
    border: 1px dashed #cbd5e1;
}

.is-coming-soon:hover {
    background: transparent;
    color: #475569;
    transform: none;
    box-shadow: none;
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}