:root {
    --primary-bg: #0d1117;
    --secondary-bg: #161b22;
    --border-color: #30363d;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent-glow: #238636;
    --accent-glow-light: rgba(35, 134, 54, 0.5);
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 20px 20px;
}

/* --- Sidebar Navigation --- */
.sidebar {
    width: 260px;
    background-color: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.sidebar-header {
    padding: 0 1.5rem 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 2rem;
    color: white;
    text-shadow: 0 0 10px var(--accent-glow-light);
}

.logo-accent {
    color: var(--accent-glow);
}

.nav-links {
    list-style: none;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-links li a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1rem 1.5rem;
    margin: 0.2rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-links li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.nav-links li a:hover {
    background-color: var(--secondary-bg);
    color: white;
    border-left: 3px solid var(--accent-glow);
}

.nav-links li a.active {
    background-color: var(--accent-glow);
    color: white;
    font-weight: bold;
    box-shadow: 0 0 15px var(--accent-glow-light);
    border-left: 3px solid var(--accent-glow);
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 3rem;
    animation: fadeIn 0.5s ease-in-out;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.main-header h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 15px var(--accent-glow);
}

.visitor-counter {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.visitor-counter span {
    background-color: #000;
    color: var(--accent-glow);
    padding: 5px 10px;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 1.2rem;
    letter-spacing: 2px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 5px var(--accent-glow-light);
}

/* --- Mobile Menu Controls --- */
.menu-toggle, .close-btn {
    display: none; /* Hidden on desktop */
    position: absolute;
    top: 1.5rem;
    z-index: 1001;
    background: var(--secondary-bg);
    color: var(--accent-glow);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
}
.menu-toggle {
    left: 1.5rem;
}
.close-btn {
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    line-height: 1;
}

/* --- Homepage Cards --- */
.lab-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; margin-top: 2rem; }
.card { background-color: var(--secondary-bg); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-10px); box-shadow: 0 0 30px var(--accent-glow-light); border-color: var(--accent-glow); }
.card img { width: 100%; height: 400px; object-fit: cover; opacity: 0.7; transition: opacity 0.3s ease, transform 0.3s ease; }
.card:hover img { opacity: 1; transform: scale(1.05); }
.card-content { padding: 1.5rem; position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(13, 17, 23, 1) 40%, rgba(13, 17, 23, 0)); }
.card-content h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 0.5rem; color: #fff; }
.card-content p { color: var(--text-secondary); margin-bottom: 1rem; }
.btn { display: inline-block; background-color: transparent; border: 2px solid var(--accent-glow); color: var(--accent-glow); padding: 0.5rem 1rem; text-decoration: none; border-radius: 5px; font-weight: bold; transition: all 0.3s ease; }
.btn:hover { background-color: var(--accent-glow); color: white; box-shadow: 0 0 15px var(--accent-glow-light); }

/* --- Content page styles --- */
.content-section { background: var(--secondary-bg); border: 1px solid var(--border-color); padding: 2rem; border-radius: 8px; margin-top: 2rem; }
.content-section h3 { font-family: var(--font-display); color: var(--accent-glow); margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.content-section p, .content-section li { color: var(--text-primary); line-height: 1.8; }
.content-section ul { list-style: none; padding-left: 0; }
.content-section ul li { margin-bottom: 0.7rem; }
.content-section ul li a { color: var(--text-primary); text-decoration: none; transition: color 0.3s ease, padding-left 0.3s ease; }
.content-section ul li a:hover { color: var(--accent-glow); padding-left: 10px; }
.content-section ul li a::before { content: '»'; margin-right: 10px; color: var(--accent-glow); opacity: 0.5; }
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.digital-lab-layout { display: flex; gap: 2rem; align-items: flex-start; }
.digital-lab-layout .content-section { flex: 1; }
.digital-lab-media { flex-basis: 300px; }
.digital-lab-media img { width: 100%; border-radius: 8px; border: 1px solid var(--border-color); margin-bottom: 1rem; }


/*********************************/
/* --- RESPONSIVE STYLES --- */
/*********************************/

/* -- Tablets -- */
@media (max-width: 992px) {
    .sidebar {
        width: 240px;
    }
    .main-content {
        padding: 2rem;
    }
    .main-header h1 {
        font-size: 2.5rem;
    }
}

/* -- Mobile Phones -- */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        overflow: auto; /* Allow body to scroll */
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%); /* Hide sidebar by default */
    }

    body.sidebar-open .sidebar {
        transform: translateX(0); /* Show sidebar */
    }

    .main-content {
        overflow-y: visible;
        width: 100%;
        padding: 1.5rem;
        padding-top: 5rem; /* Make space for menu button */
    }

    .menu-toggle, .close-btn {
        display: block; /* Show menu buttons */
    }
    
    .main-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
    
    .main-header h1 {
        font-size: 2rem;
    }
    
    .lab-cards, .links-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }
    
    .digital-lab-layout {
        flex-direction: column; /* Stack digital lab content vertically */
    }

}



