/* ===============================
   GLOBAL RESET & BASE
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1e2f2f;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

p, li {
    font-weight: 600;
    color: #f1f1f1;
}

h1, h2, h3, h4 {
    font-weight: 800;
}

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

/* ===============================
   HEADER & NAVIGATION
================================ */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #000000;
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 2px solid #FFD700;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #FFD700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #99CC33;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #99CC33;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #99CC33;
}

/* ===============================
   SECTIONS
================================ */
.section {
    padding: 120px 0 100px;
}

.section.alt {
    background: rgba(47, 79, 79, 0.3);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    color: #FFD700;
    letter-spacing: 1px;
}

/* ===============================
   HERO
================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, #ffffff, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text h2 {
    color: #99CC33;
    margin: 1.5rem 0;
}

.hero-text p {
    font-size: 1.15rem;
    font-weight: 600;
    color: #f5f5f5;
    max-width: 90%;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #99CC33, #FFD700);
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 800;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(153, 204, 51, 0.3);
}

/* ===============================
   PROJECT CARDS (USED EVERYWHERE)
================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-category-card {
    background: rgba(47, 79, 79, 0.7);
    border: 1px solid #99CC33;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.project-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(153, 204, 51, 0.2);
}

.project-category-card h3 {
    color: #FFD700;
    margin-bottom: 0.5rem;
}

.project-category-card p {
    font-weight: 600;
    color: #eaeaea;
}

.category-count {
    margin-top: 1rem;
    background: rgba(153, 204, 51, 0.2);
    color: #FFD700;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 800;
    display: inline-block;
}

/* ===============================
   TOGGLES (PYTHON / SQL PAGES)
================================ */
.toggle-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(153, 204, 51, 0.1);
    border: 1px solid #99CC33;
    color: #ffffff;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
}

.toggle-btn:hover {
    background: rgba(153, 204, 51, 0.2);
}

.toggle-content {
    display: none;
    padding: 1.5rem;
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-left: 3px solid #FFD700;
    border-radius: 8px;
}

.toggle-content.active {
    display: block;
}

/* ===============================
   LINKS
================================ */
.github-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 800;
    color: #FFD700;
    text-decoration: none;
}

/* ===============================
   FOOTER
================================ */
.footer {
    background: #000;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #99CC33;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

/* ===============================
   ANIMATIONS
================================ */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: slideIn 0.8s ease-out;
}
