/* --- 1. VARIABLES & RESET --- */
:root {
    --bg-dark: #0a0f1a;
    --card-bg: #161e2d;
    --accent-blue: #3b82f6;
    --text-white: #ffffff;
    --text-gray: #94a3b8;
    --font-main: 'Lexend', sans-serif;
    --nav-height: 80px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- 2. NAVIGATION --- */
header {
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 8%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
}

.logo span { color: var(--accent-blue); }

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

.nav-list a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 400;
    transition: 0.3s;
}

.nav-list a:hover { color: var(--accent-blue); }

/* --- 3. MOBILE MENU TOGGLE --- */
.menu-toggle {
    display: none; /* Hidden on Desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: var(--text-white);
    transition: 0.3s ease;
    border-radius: 2px;
}

/* --- 4. HERO SECTION --- */
#hero {
    padding: calc(var(--nav-height) + 5rem) 8% 5rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1100px;
}

.pre-title {
    color: var(--accent-blue);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 400;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h1 span { color: var(--accent-blue); }

.description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 650px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.btn {
    padding: 0.9rem 2rem;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn.secondary {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
}

/* --- 5. SKILLS & PROJECTS --- */
#skills, #projects { padding: 6rem 8%; }

h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: var(--card-bg);
    padding: 0.6rem 1.5rem;
    border: 1px solid #2d3748;
    border-radius: 30px;
    color: var(--accent-blue);
    font-size: 0.95rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #2d3748;
    position: relative;
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-10px);
}

.status-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #22c55e;
    color: white;
    padding: 0.25rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.tech-stack {
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-stack span {
    font-size: 0.75rem;
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
}

.project-link {
    text-decoration: none;
    color: white;
    font-weight: 600;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- 6. FOOTER --- */
footer {
    padding: 4rem 8%;
    text-align: center;
    color: var(--text-gray);
    border-top: 1px solid #1e293b;
}

/* --- 7. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Show Hamburger on Mobile */
    }

    .nav-list {
        position: fixed;
        top: var(--nav-height);
        left: -100%; /* Hidden off-screen */
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        padding-top: 4rem;
        transition: 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-list.active {
        left: 0; /* Slide in Menu */
    }

    #hero {
        padding-top: 10rem;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .btn {
        width: 100%;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}
