/* -------------------------------------------------------------------------- */
/* 1. DESIGN TOKENS (Variables)                                              */
/* -------------------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --brand-black: #050505;
    --brand-card: #0a0a0a;
    --accent-sky: #38bdf8;
    --accent-indigo: #6366f1;
    --accent-emerald: #10b981;
    
    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Spacing & Effects */
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------------------- */
/* 2. BASE RESET                                                             */
/* -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;700;800&display=swap');

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--brand-black);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* -------------------------------------------------------------------------- */
/* 3. REUSABLE COMPONENTS (The Modular Logic)                                */
/* -------------------------------------------------------------------------- */

/* Background Gradients */
.hero-gradient {
    background: linear-gradient(180deg, #0f172a 0%, var(--brand-black) 100%);
    min-height: 100vh;
}

/* Glassmorphism Cards */
.card-blur {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.card-blur:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-sky);
    transform: translateY(-8px);
}

/* Button System */
.btn-primary {
    background-color: var(--accent-sky);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    display: inline-block;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #7dd3fc;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
    transform: scale(1.02);
}

.btn-cyan { /* Legacy support for the button name in index */
    @extend .btn-primary;
}

/* Accent Borders (Used in Hosting/Portfolio) */
.accent-border {
    position: relative;
    padding-left: 1.5rem;
}

.accent-border::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent-sky);
    border-radius: 4px;
}

/* -------------------------------------------------------------------------- */
/* 4. MODAL SYSTEM (Global)                                                  */
/* -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: none; /* Controlled via main.js */
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-content {
    background: var(--brand-card);
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 600px;
    border-radius: 2.5rem;
    padding: 3rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* -------------------------------------------------------------------------- */
/* 5. ANIMATIONS                                                             */
/* -------------------------------------------------------------------------- */
.pulse-dot {
    display: inline-block;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0px rgba(56, 189, 248, 0.4); }
    100% { box-shadow: 0 0 0 12px rgba(56, 189, 248, 0); }
}

/* -------------------------------------------------------------------------- */
/* 6. UTILITIES                                                              */
/* -------------------------------------------------------------------------- */
.text-muted { color: var(--text-muted); }
.text-sky { color: var(--accent-sky); }
.text-indigo { color: var(--accent-indigo); }



/* Navigation Button Group Styles */
.nav-btn-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Ensure the Login button transition is smooth */
a[href="login.php"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Optional: Mobile adjustment if you use a burger menu later */
@media (max-width: 768px) {
    .ml-4 { margin-left: 0; }
    .border-l { border-left: none; }
    .pl-8 { padding-left: 0; }
}

.translate-x-full {
    transform: translateX(100%);
}


#mobileMenu.translate-x-full {
    transform: translateX(100%);
}
#mobileMenu {
    transform: translateX(0);
    transition: transform 0.5s ease-in-out;
}


/* Force Mobile Menu Hidden State */
#mobileMenu {
    transform: translateX(100%); /* Start off-screen */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important; /* Ensure it's not set to display:none */
}

/* When the class is REMOVED, move back to 0 */
#mobileMenu:not(.translate-x-full) {
    transform: translateX(0);
}


/* Fix for iOS tap delay and detection */
button, 
[onclick] {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
