/* 
 * SYSTEM DESIGN - MAN 2 CIANJUR UNDER CONSTRUCTION LANDING PAGE
 * Premium Glassmorphism & Islamic-Emerald-Gold Theme
 */

/* Color Variables & Reset */
:root {
    --bg-dark: #05140e;
    --bg-darker: #020c08;
    
    /* Emerald/Green Tones */
    --primary-green: #0b6a3a;
    --primary-green-rgb: 11, 106, 58;
    --dark-green: #074828;
    --light-green: #2ecc71;
    --soft-green: #eef7f2;
    --text-muted-green: #8da69a;
    
    /* Gold/Yellow Tones */
    --accent-gold: #d4af37;
    --accent-gold-rgb: 212, 175, 55;
    --light-gold: #ffe885;
    --dark-gold: #9e7d17;
    
    /* General Neutrals */
    --text-light: #f3f7f5;
    --text-dark: #121c17;
    --border-glass: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(11, 106, 58, 0.12);
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.5);
    
    /* Font */
    --font-primary: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

/* Ambient Background Glows */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
    transition: all 1s ease;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(11, 106, 58, 0.7) 0%, rgba(0,0,0,0) 70%);
    top: -150px;
    left: -100px;
    animation: floatGlow 15s ease-in-out infinite alternate;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, rgba(0,0,0,0) 70%);
    bottom: -200px;
    right: -100px;
    animation: floatGlow 20s ease-in-out infinite alternate-reverse;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(11, 106, 58, 0.4) 0%, rgba(0,0,0,0) 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes floatGlow {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(40px) scale(1.1); }
}

/* Main Container - Responsive Centered Layout */
.main-container {
    width: 100%;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    z-index: 10;
}

/* Header & Logo styling */
.school-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    animation: fadeInDown 1s ease forwards;
}

.logo-wrapper {
    background: radial-gradient(circle, rgba(11, 106, 58, 0.4) 0%, rgba(2, 12, 8, 0.9) 100%);
    padding: 16px;
    border-radius: 28px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-wrapper:hover {
    transform: rotate(45deg) scale(1.08);
}

.school-logo {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: rotateLogo 25s linear infinite;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-brand {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent-gold);
    text-transform: uppercase;
}

.main-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-light) 30%, #a4cfbc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Main Content Panel */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 32px;
    padding: 50px 40px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeInUp 1s ease forwards 0.2s;
    opacity: 0;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 106, 58, 0.25);
    border: 1px solid rgba(11, 106, 58, 0.4);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--light-green);
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(11, 106, 58, 0.15);
}

.badge-icon {
    width: 14px;
    height: 14px;
    animation: spinSlow 3s linear infinite;
}

/* Headings */
.hero-heading {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-heading span {
    background: linear-gradient(135deg, var(--light-gold) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted-green);
    max-width: 640px;
    margin-bottom: 40px;
}

/* Animated Progress Bar */
.progress-container {
    width: 100%;
    max-width: 580px;
    margin-bottom: 45px;
    text-align: left;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #c4d7cd;
}

.progress-percent {
    color: var(--accent-gold);
    font-weight: 700;
}

.progress-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--accent-gold) 100%);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    position: relative;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100-percent
    );
    animation: progressShine 2s infinite linear;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Countdown Timer Grid */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 580px;
    margin-bottom: 45px;
}

.countdown-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.countdown-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.25);
    background: rgba(11, 106, 58, 0.08);
}

.countdown-num {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted-green);
    font-weight: 600;
}

/* Notification Box Styling */
.notify-box {
    width: 100%;
    max-width: 580px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 28px;
}

.notify-box h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #e5ede9;
}

.notify-form {
    display: flex;
    gap: 12px;
    width: 100%;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted-green);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.notify-form input[type="email"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px 14px 48px;
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.notify-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    font-family: var(--font-primary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-submit {
    background: linear-gradient(135deg, #e5c158 0%, var(--accent-gold) 100%);
    color: var(--bg-darker);
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

.form-feedback {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    display: none;
}

/* Feature Teaser Section */
.teaser-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeInUp 1s ease forwards 0.4s;
    opacity: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(11, 106, 58, 0.2);
    background: linear-gradient(135deg, rgba(11, 106, 58, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.feature-icon-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.bg-green {
    background: rgba(11, 106, 58, 0.25);
    color: var(--light-green);
    border: 1px solid rgba(11, 106, 58, 0.3);
}

.bg-gold {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.bg-teal {
    background: rgba(0, 150, 136, 0.2);
    color: #00dac6;
    border: 1px solid rgba(0, 150, 136, 0.3);
}

.feature-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
}

.feature-card p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted-green);
}

/* Contact Footer Section */
.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
    animation: fadeInUp 1s ease forwards 0.6s;
    opacity: 0;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 720px;
    text-align: left;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 22px;
    height: 22px;
    color: var(--accent-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-text h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #e5ede9;
}

.contact-text p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted-green);
}

/* Social media connections */
.social-wrapper {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #a4cfbc;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-green);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(11, 106, 58, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.copyright {
    font-size: 12px;
    color: rgba(141, 166, 154, 0.5);
    margin-top: 10px;
}

/* Notification Toast Styling */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: linear-gradient(135deg, rgba(6, 32, 19, 0.95) 0%, rgba(2, 18, 10, 0.98) 100%);
    border: 1px solid rgba(11, 106, 58, 0.3);
    border-left: 4px solid var(--accent-gold);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s ease forwards;
    transform: translateX(120%);
}

@keyframes slideInRight {
    100% { transform: translateX(0); }
}

.toast-success {
    border-left-color: var(--light-green);
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: var(--light-green);
}

.toast-error .toast-icon {
    color: #ff5252;
}

/* Animations */
@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateLogo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }
    
    .hero-section {
        padding: 40px 24px;
        border-radius: 24px;
    }
    
    .hero-heading {
        font-size: 32px;
    }
    
    .countdown-grid {
        grid-template-columns: repeat(2, 2fr);
        gap: 12px;
    }
    
    .countdown-num {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .notify-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-submit {
        width: 100%;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 20px;
    }
    
    .hero-heading {
        font-size: 26px;
    }
    
    .hero-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .notify-box {
        padding: 18px;
    }
}
