/* ==========================================================================
   SCALES - DIGITAL ECOSYSTEM STYLESHEET (FULL VERSION)
   Design System: Dark Glassmorphic / Futuristic / Linear & Apple Aesthetic
   School: SMP Negeri 1 Ciasem
   ========================================================================== */

:root {
    /* Color Palette */
    --primary-blue: #0B3D91;
    --secondary-blue: #1565C0;
    --gold-accent: #FFD54F;
    --gold-glow: rgba(255, 213, 79, 0.35);
    --bg-dark: #061A40;
    --bg-dark-accent: #020d24;
    --white: #FFFFFF;
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);

    /* Glassmorphism Variables */
    --glass-bg: rgba(11, 61, 145, 0.15);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-hover: rgba(255, 213, 79, 0.5);
    --glass-blur: blur(20px);
    
    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.4s var(--ease-out);
}

/* ==========================================================================
   1. Reset & Base Setup
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
    background: var(--bg-dark);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Mouse Interactive Glow Overlay */
.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    margin-top: -300px;
    margin-left: -300px;
    background: radial-gradient(circle, rgba(21, 101, 192, 0.18) 0%, rgba(255, 213, 79, 0.05) 40%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    border-radius: 50%;
    z-index: 99;
    transition: transform 0.15s ease-out;
    mix-blend-mode: screen;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background-color: var(--bg-dark-accent);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    width: 280px;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--white);
    margin-bottom: 24px;
    background: linear-gradient(135deg, #FFF 0%, var(--gold-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-blue), var(--gold-accent));
    transition: width 0.3s ease;
}

.loader-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================================================
   2. Typography Helpers & Containers
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--gold-accent);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header {
    margin-bottom: 56px;
}

.section-header.center {
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   3. Glassmorphism Panels & Cards
   ========================================================================== */
.glass-card, .glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(21, 101, 192, 0.25);
}

/* ==========================================================================
   4. Buttons & Interactive Elements
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-gold {
    background: linear-gradient(135deg, #FFD54F 0%, #FFA726 100%);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--gold-glow);
}

.btn-gold:hover {
    transform: scale(1.04);
    box-shadow: 0 0 35px rgba(255, 213, 79, 0.6);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   5. Header / Navigation Bar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(6, 26, 64, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
}

.nav-container {
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #FFF 0%, var(--gold-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold-accent);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.btn-nav {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ==========================================================================
   6. Hero Section & Animated Aurora Effect
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px;
    overflow: hidden;
}

.aurora-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.aurora {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.6;
    animation: floatAurora 18s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: var(--primary-blue);
}

.blob-2 {
    bottom: -10%;
    right: 15%;
    width: 600px;
    height: 600px;
    background: var(--secondary-blue);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 45%;
    width: 350px;
    height: 350px;
    background: rgba(255, 213, 79, 0.25);
    animation-delay: -10s;
}

@keyframes floatAurora {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -40px) scale(1.15); }
    100% { transform: translate(-40px, 50px) scale(0.9); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 85%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gold-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 213, 79, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 213, 79, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 213, 79, 0); }
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    letter-spacing: 6px;
    line-height: 1;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #FFFFFF 30%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--gold-accent);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.mouse {
    width: 22px;
    height: 36px;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--gold-accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 20px; }
}

/* Parallax Divider Backdrop */
.parallax-backdrop {
    position: relative;
    height: 50vh;
    width: 100%;
    overflow: hidden;
}

.backdrop-img {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) contrast(1.1);
    transform: translateY(0);
    will-change: transform;
}

.backdrop-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, transparent 40%, transparent 60%, var(--bg-dark) 100%);
}

/* ==========================================================================
   7. Feature Cards Grid & Clickable Link Cards
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 36px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 213, 79, 0.08);
    border: 1px solid rgba(255, 213, 79, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--white);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Styling Khusus Untuk Kartu yang Bisa Diklik */
.clickable-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.card-action {
    margin-top: auto;
    padding-top: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gold-accent);
    opacity: 0.75;
    transition: var(--transition-smooth);
}

.clickable-card:hover .card-action {
    opacity: 1;
    transform: translateX(6px);
}

/* ==========================================================================
   8. Statistics Section
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 60px 40px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 8px;
    background: linear-gradient(135deg, #FFF, var(--gold-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   9. Innovation Roadmap / Timeline
   ========================================================================== */
.timeline-wrapper {
    position: relative;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--glass-border);
    transform: translateY(-50%);
    z-index: 0;
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.timeline-card {
    padding: 28px;
    position: relative;
}

.timeline-card.highlight {
    border-color: var(--gold-accent);
    background: rgba(255, 213, 79, 0.05);
}

.timeline-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    background: var(--primary-blue);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.timeline-badge.gold {
    background: var(--gold-accent);
    color: var(--bg-dark);
}

.timeline-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.timeline-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   10. Footer Section
   ========================================================================== */
.footer {
    padding: 40px 0 60px;
    position: relative;
    z-index: 2;
}

.footer-glass {
    padding: 60px 40px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .brand-text {
    font-size: 2rem;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 380px;
}

.footer-brand .school-name {
    color: var(--gold-accent);
    margin-top: 8px;
    font-weight: 600;
}

.footer-contact h4 {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--gold-accent);
    margin-bottom: 16px;
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-actions {
    display: flex;
    align-items: center;
}

.full-width {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==========================================================================
   11. Mobile Responsiveness & Breakpoints
   ========================================================================== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition-smooth);
}

@media (max-width: 992px) {
    .timeline-line { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(6, 26, 64, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-smooth);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .btn-nav {
        display: none;
    }

    .hero-title {
        letter-spacing: 2px;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}