/* 1. IMPORTS & ROOT VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-glow: #6c5ce7;
    --secondary-glow: #a29bfe;
    --bg-dark: #0a0a0c;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --container-padding: 20px;
}

.light-mode {
    --bg-dark: #f5f6fa;
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text-main: #2d3436;
}

/* 2. CORE RESET & SCROLLBAR */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
}

html {
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
}

/* Hide scrollbar for Chrome/Safari */
::-webkit-scrollbar { display: none; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    transition: background 0.5s ease;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 3. LAYOUT & CONTAINERS */
.container { 
    max-width: 1100px; 
    margin: 120px auto; 
    padding: 0 var(--container-padding); 
}

.glass-card {
    background: var(--glass-bg); 
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px); 
    border-radius: 24px; 
    padding: 30px;
    transition: var(--transition);
}

.glass-card:hover { 
    border-color: var(--primary-glow); 
    box-shadow: 0 15px 35px rgba(108, 92, 231, 0.2); 
}

/* 4. NAVIGATION (Unified) */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 9999;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 12px 30px;
    border-radius: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover { 
    color: var(--secondary-glow); 
    text-shadow: 0 0 10px var(--primary-glow);
}

.burger { 
    display: none; 
    cursor: pointer; 
}

.burger div { 
    width: 25px; 
    height: 3px; 
    background-color: var(--text-main); 
    margin: 5px; 
    transition: 0.3s; 
}

/* 5. COMPONENTS (Status, Toasts, Orbs) */
.orb {
    position: fixed; 
    width: 500px; height: 500px; 
    border-radius: 50%;
    background: var(--primary-glow); 
    filter: blur(140px); 
    opacity: 0.15;
    z-index: -1; 
    animation: float 15s infinite alternate;
}

@keyframes float { 
    from { transform: translate(-10%, -10%); } 
    to { transform: translate(20%, 10%); } 
}

.status-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
}

.status-dot.online {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse-green 2s infinite;
}

.success-toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translate(-50%, -20px);
    background: rgba(10, 10, 12, 0.9);
    border: 1px solid var(--primary-glow);
    padding: 15px 30px;
    border-radius: 50px;
    opacity: 0;
    z-index: 11000;
    transition: all 0.5s var(--transition);
}

/* 6. FORMS & INPUTS */
input, textarea {
    width: 100%; 
    background: rgba(255,255,255,0.05); 
    border: 1px solid var(--glass-border);
    padding: 12px; 
    border-radius: 12px; 
    color: var(--text-main); 
    margin-top: 10px;
    outline: none;
    transition: var(--transition);
}

textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 400px;
}

/* Vertical scrollbar for long text areas */
textarea::-webkit-scrollbar { display: block; width: 6px; }
textarea::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }

/* 7. TYPOGRAPHY & BUTTONS */
.glow-text {
    background: linear-gradient(to right, var(--text-main), var(--primary-glow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.btn {
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    color: white; 
    border: none; padding: 12px 28px; border-radius: 30px;
    font-weight: 600; cursor: pointer; transition: var(--transition);
    display: inline-block; text-decoration: none;
}

.btn:hover { 
    box-shadow: 0 0 25px var(--primary-glow); 
    transform: scale(1.05); 
}

/* 8. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .container { width: 95%; }
}

@media (max-width: 768px) {
    .burger { display: block; }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 70%;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in;
        border-left: 1px solid var(--glass-border);
    }

    .nav-active { transform: translateX(0%); }

    /* Burger Animation to X */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    .about-grid, .hero-grid, .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
}
/* Footer Link Styling */
.footer-link {
    color: var(--text-main);
    text-decoration: none;
    opacity: 0.7;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-link:hover {
    opacity: 1;
    color: var(--primary-glow);
    padding-left: 5px; /* Subtle slide effect */
}

/* Footer Social Icons */
.footer-social {
    color: var(--text-main);
    transition: var(--transition);
}

.footer-social:hover {
    color: var(--primary-glow);
    transform: translateY(-3px);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

@media (max-width: 600px) {
    h1 { font-size: 2.2rem !important; }
    .status-badge { bottom: 10px; right: 10px; padding: 8px 12px; font-size: 0.7rem; }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}
/* Admin Page Specific Styles */
.admin-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.admin-entry:hover {
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 900px) {
    .admin-grid { grid-template-columns: 1fr; }
}