:root {
    --primary-color: #1e293b; /* Deep Navy */
    --secondary-color: #3b82f6; /* Modern Blue */
    --accent-color: #ef4444;
    --bg-color: #f1f5f9;
    --text-color: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --border-radius: 8px;
    --transition: all 0.2s ease;
}

[data-theme="dark"] {
    --primary-color: #0f172a;
    --secondary-color: #60a5fa;
    --bg-color: #020617;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --white: #1e293b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 0.9rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Glassmorphism Classes (Subtle) */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow);
}

/* Buttons (Compact & Flat) */
.btn {
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #0f172a;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto;
    border-radius: 2px;
}

/* Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Flex & Grid Helpers */
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Mobile Responsiveness & Hamburger Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    background: none;
    border: none;
}

@media (max-width: 900px) {
    .nav-links, .nav-actions {
        display: none !important; /* Managed by JS */
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-radius: 0 0 20px 20px;
        align-items: center;
        gap: 15px;
    }
    
    .grid-3, .grid-2, .grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    
    .certificate-container {
        width: 100% !important;
        height: auto !important;
        padding: 20px !important;
        border-width: 10px !important;
    }
    
    .inner-border {
        padding: 30px !important;
    }
    
    .certificate-header h1 {
        font-size: 2.5rem !important;
    }
    
    .member-name {
        font-size: 2rem !important;
        padding: 0 20px !important;
    }
    
    .signatures {
        flex-direction: column;
        gap: 20px;
    }
    
    section {
        padding: 50px 0 !important;
    }
    
    .about-text {
        padding-left: 0 !important;
    }
    
    .page-header {
        padding: 120px 20px 60px !important;
    }
    
    nav {
        padding: 15px 20px !important;
    }
}
