:root {
    --bg-dark: #030405; 
    --accent-ice: #00c3ff; 
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(0, 195, 255, 0.3);
    --text-main: #fcfcfc;
    --text-dim: #a0a0a0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- DYNAMIC AMBIENT GLOW (JS CONTROLLED) --- */
.ambient-background {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden;
    background-color: var(--bg-dark);
}

.matte-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    backdrop-filter: blur(60px); 
    -webkit-backdrop-filter: blur(60px);
    z-index: 2;
    pointer-events: none;
    will-change: backdrop-filter; /* Tells the GPU to pre-calculate the heavy glass */
}

.dynamic-orb {
    position: absolute; border-radius: 50%; filter: blur(40px); z-index: 1;
    pointer-events: none;
    
    /* The Magic: Smoothly glides the orb over 6 seconds whenever JS changes its position */
    transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1), opacity 4s ease-in-out;
    will-change: transform, opacity; /* Keeps it locked to the GPU */
}

/* --- NAVIGATION --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; width: 100%; border-bottom: 1px solid var(--border);
    background: rgba(3, 4, 5, 0.6); backdrop-filter: blur(20px);
    position: sticky; top: 0; z-index: 100;
}
.logo { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.5px; }

.nav-links { display: flex; gap: 30px; }
.nav-tab {
    font-family: 'Outfit', sans-serif; font-size: 0.85rem; font-weight: 600;
    color: var(--text-dim); text-transform: uppercase; cursor: pointer;
    padding: 10px 0; border-bottom: 2px solid transparent; transition: all 0.3s ease;
}
.nav-tab:hover { color: var(--text-main); }
.nav-tab.active { color: var(--accent-ice); border-bottom-color: var(--accent-ice); }

/* --- GLOBAL APP SCROLLING --- */
.tab-content { 
    display: none; 
    flex: 1; 
    padding: 11px 10% 40px 10%; /* 11px precision top gap */
    overflow-y: auto; 
    
    /* Global Smooth Edge Fade */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 96%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 96%, transparent 100%);
}

.tab-content.active { 
    display: flex; 
    flex-direction: column; 
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; 
}

/* Safely centers inner content */
.tab-content > div {
    margin: auto;
    width: 100%;
}

/* Custom Webkit Scrollbar for all tabs */
.tab-content::-webkit-scrollbar { width: 6px; }
.tab-content::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 10px; margin: 20px 0; }
.tab-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 10px; transition: background 0.3s ease; }
.tab-content::-webkit-scrollbar-thumb:hover { background: var(--accent-ice); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- INTERACTIVE CARDS --- */
.glass-card {
    background: var(--glass); border: 1px solid var(--border);
    padding: 40px; border-radius: 16px; backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
    transform: translateY(-8px); border-color: var(--border-hover);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 195, 255, 0.05) inset;
}
.glass-card h3 { font-family: 'Outfit'; font-size: 1.2rem; margin-bottom: 15px; color: var(--accent-ice); text-transform: uppercase; transition: color 0.3s ease; }
.glass-card p { font-size: 0.95rem; color: var(--text-dim); line-height: 1.6; }

/* --- FORM ELEMENTS --- */
.form-container { max-width: 600px; margin: 0 auto; text-align: center; }
.form-container h2 { font-family: 'Outfit'; font-size: 2rem; margin-bottom: 15px; }
.form-container p { color: var(--text-dim); margin-bottom: 30px; }

.input-field {
    width: 100%; background: rgba(255,255,255,0.02); border: 1px solid var(--border);
    border-radius: 8px; padding: 15px; color: white; font-family: inherit;
    margin-bottom: 20px; outline: none; transition: all 0.3s ease;
}
.input-field:focus { border-color: var(--accent-ice); background: rgba(0, 195, 255, 0.03); box-shadow: 0 0 15px rgba(0, 195, 255, 0.1); }
textarea.input-field { resize: none; }

.action-btn {
    background: var(--text-main); color: #000; border: none; width: 100%;
    padding: 15px; border-radius: 8px; font-weight: 700; cursor: pointer;
    font-family: 'Outfit'; font-size: 1rem; transition: all 0.3s ease;
}
.action-btn:hover { background: var(--accent-ice); transform: scale(1.02); box-shadow: 0 5px 15px rgba(0, 195, 255, 0.3); }

/* --- TRUE GLASS SYSTEM STATUS MODAL --- */
.status-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.4); 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px); 
    z-index: 2000; display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.status-overlay.active { display: flex; opacity: 1; }

.status-modal {
    background: rgba(10, 15, 20, 0.45); 
    backdrop-filter: blur(35px) saturate(120%); 
    -webkit-backdrop-filter: blur(35px) saturate(120%); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1); 
    width: 90%; max-width: 850px; max-height: 90vh; overflow-y: auto;
    border-radius: 20px; padding: 40px; position: relative;
    animation: modalScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
    from { transform: scale(0.95) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.close-modal-btn {
    position: absolute; top: 25px; right: 25px;
    background: none; border: none; color: var(--text-dim);
    font-size: 1.5rem; cursor: pointer; transition: color 0.2s; 
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.close-modal-btn:hover { color: var(--text-main); }

.status-banner {
    background: rgba(255, 170, 0, 0.08); border: 1px solid rgba(255, 170, 0, 0.2);
    padding: 20px 30px; border-radius: 12px; display: flex; align-items: center; gap: 20px;
    margin-bottom: 40px;
}
.status-pulse {
    width: 15px; height: 15px; background: #ffaa00; border-radius: 50%;
    box-shadow: 0 0 10px #ffaa00; animation: pulse-warn 2s infinite;
}
@keyframes pulse-warn {
    0% { box-shadow: 0 0 0 0 rgba(255, 170, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 170, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 170, 0, 0); }
}
.log-entry { border-left: 2px solid rgba(255,255,255,0.2); padding-left: 25px; margin-bottom: 30px; position: relative; }
.log-entry::before {
    content: ''; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px;
    background: var(--bg-dark); border: 2px solid var(--accent-ice); border-radius: 50%;
}
.log-date { font-family: 'Outfit'; font-size: 0.85rem; color: var(--accent-ice); margin-bottom: 5px; letter-spacing: 1px; }

/* --- SPECIFICS --- */
.hero { margin-bottom: 60px; text-align: center; }
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 15px; font-family: 'Outfit'; letter-spacing: -0.5px; }
.hero p { color: var(--text-dim); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }
.motto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.construction-box { text-align: center; max-width: 500px; margin: 50px auto; border-color: rgba(255,255,255,0.2); }
.construction-box:hover { border-color: var(--text-main); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.1) inset; }
footer { text-align: center; padding: 30px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.8rem; margin-top: auto; position: relative; z-index: 10; background: rgba(3, 4, 5, 0.4); }

/* --- MOBILE RESPONSIVENESS & APP UX --- */
@media (max-width: 768px) {
    nav { flex-direction: column; padding: 15px 5%; gap: 15px; }
    .nav-links { 
        width: 100%; 
        overflow-x: auto; 
        white-space: nowrap; 
        justify-content: flex-start;
        padding-bottom: 5px; 
        -ms-overflow-style: none;  
        scrollbar-width: none;  
    }
    .nav-links::-webkit-scrollbar { display: none; }
    
    .tab-content { padding: 40px 5%; }
    .hero h1 { font-size: 2.2rem; }
    .glass-card { padding: 25px; }
    
    .status-modal { width: 95%; padding: 25px; }
    .close-modal-btn { top: 15px; right: 15px; }
}