/* 
 * EduShare Premium Design 2026 - Motion & Glass
 */

:root {
    --color-navy: #003B64;
    --color-cyan: #2494D1;
    --color-green: #3BB34A;
    /* Kept for accents but not used in blobs anymore */
    --color-orange: #EB7E31;
    /* Kept for accents */
    --color-white: #FFFFFF;

    --grad-primary: linear-gradient(135deg, var(--color-cyan), #1b7bb3);
    --grad-accent: linear-gradient(135deg, var(--color-orange), #d96d24);

    --font-main: system-ui, -apple-system, sans-serif;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
    --glass-blur: blur(14px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-navy);
    /* Colors: White and Blue shades */
    background: radial-gradient(circle at top left, #f3f8ff, #ffffff, #e6f3ff);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Dynamic Background Blobs (Blue/White Textures) --- */
.bg-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatMove 20s infinite alternate ease-in-out;
}

/* Changed colors to only Blues/Whites/Cyans as requested */
.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--color-cyan);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #a6d4fa;
    top: 40%;
    right: -10%;
    animation-duration: 22s;
    animation-delay: -5s;
}

/* Light Blue */
.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--color-navy);
    bottom: -10%;
    left: 20%;
    opacity: 0.1;
    animation-duration: 28s;
    animation-delay: -10s;
}

/* Subtle Navy */

@keyframes floatMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* --- Hero Video Background --- */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* User said "decrease transparency" -> make it more visible (higher opacity) */
    opacity: 0.85;
}

/* Overlay made lighter/more transparent to see video better */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 100%);
    z-index: 1;
}

/* --- FLOATING OVAL NAVBAR --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 600px;
    /* Ensure space for links */
    max-width: 90%;
    z-index: 1000;
    padding: 0 2rem;
    height: 60px;
    /* Fixing height to ensure consistency */
    display: flex;
    align-items: center;

    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    /* Oval/Pill shape */
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 59, 100, 0.1);

    transition: all 0.4s ease;
}

/* Scrolled state (optional, maybe shrink slightly or shadow increase) */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 40px rgba(0, 59, 100, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 2rem;
}

.nav-logo-img {
    height: 55px !important;
    width: 55px !important;
    max-width: 55px !important;
    max-height: 55px !important;
    min-width: 55px !important;
    min-height: 55px !important;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-navy);
    opacity: 0.7;
    transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-cyan);
    opacity: 1;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-navy);
}

/* --- Layout --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.text-center {
    text-align: center;
}

/* Hero Specific */
.hero {
    /* Top padding needs to account for floating nav + breathing room */
    padding-top: 180px;
    padding-bottom: 8rem;
    position: relative;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 59, 100, 0.15);
    border-color: var(--color-cyan);
    cursor: default;
    /* Ensures it feels interactive even if just static content */
}

/* Make clickable cards explicitly show pointer */
a.glass-panel:hover {
    cursor: pointer;
}

/* Blog Card */
.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.blog-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-tag {
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(36, 148, 209, 0.1);
    border-radius: 20px;
    color: var(--color-cyan);
    font-weight: bold;
    font-size: 0.8rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--grad-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(235, 126, 49, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(235, 126, 49, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid var(--color-cyan);
    color: var(--color-cyan);
}

.btn-secondary:hover {
    background: var(--color-cyan);
    color: white;
    transform: translateY(-3px);
}

/* Icons */
.icon-grid {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.1));
}

/* Steps Horizontal */
.steps-container {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-top: 4rem;
}

.step-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: 0.4s;
}

.step-item:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-navy);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -3.5rem auto 1.5rem auto;
}

/* Footer */
footer {
    background: var(--color-navy);
    color: white;
    padding: 5rem 0;
    margin-top: 5rem;
}

/* Responsive Nav */
@media (max-width: 900px) {

    .grid-2,
    .steps-container {
        flex-direction: column;
    }

    .hero {
        padding-top: 160px;
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 10px;
        width: 95%;
        min-width: auto;
        padding: 0.8rem 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 2rem;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        display: none;
        /* simple toggle via JS */
    }

    .nav-links.active {
        display: flex;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Multimedia Elements */
video,
audio {
    width: 100%;
    border-radius: 12px;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-3d);
}

.media-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 12px;
    margin-top: 0.5rem;
    background: white;
    box-shadow: var(--shadow-3d);
}

.media-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-3d);
    object-fit: cover;
}