/* RESET & VARS */
:root {
    --bg-color: #0a0a0a;
    --card-bg: #161616;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #3b82f6; /* Modern Blue */
    --accent-glow: rgba(59, 130, 246, 0.5);
    --font-main: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.5px; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.9rem; color: var(--text-muted); }
.nav-links a:hover { color: var(--text-main); }
.nav-links a.active { color: var(--text-main); border-bottom: 2px solid var(--accent); }

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
}

/* HAMBURGER MENU (Hidden on Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 4px 0;
    transition: 0.4s;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;          /* Changed from height: 90vh to prevent cutoff on small screens */
    display: flex;
    align-items: center;
    padding: 120px 5% 0;        /* ADDED: 120px top padding to push content below Navbar */
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.highlight {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

.btn-secondary {
    border: 1px solid var(--text-muted);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    margin-right: 1rem;
}
.btn-secondary:hover { border-color: var(--text-main); background: var(--card-bg); }

/* PROJECTS GRID */
.projects-section { padding: 5rem 5%; }
.section-title { font-size: 2rem; margin-bottom: 3rem; }

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

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.project-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 1px;
    font-weight: 600;
}

.project-card h3 { font-size: 1.5rem; margin: 1rem 0 0.5rem; }
.project-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

.project-link { font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid transparent; }
.project-link:hover { border-bottom: 1px solid var(--text-main); }

/* FOOTER */
footer {
    padding: 5rem 5%;
    border-top: 1px solid #333;
    text-align: center;
}
footer h2 { font-size: 2rem; margin-bottom: 1rem; }
.email-link { font-size: 1.2rem; color: var(--accent); }
.copyright { margin-top: 3rem; color: var(--text-muted); font-size: 0.8rem; }

/* PROFILE & RESUME */
.profile-header {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
}

.profile-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.social-links { margin-top: 1.5rem; display: flex; gap: 1.5rem; }

.resume-section { padding: 5rem 5%; background: var(--bg-color); }
.resume-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.timeline-item {
    border-left: 2px solid #333;
    padding-left: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}
.timeline-item .date { color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.timeline-item h4 { color: var(--text-muted); margin-bottom: 0.5rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.tag {
    background: #222;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #333;
}

.education-item { margin-bottom: 2rem; }
.hobby-list li { color: var(--text-muted); margin-bottom: 0.5rem; }

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

    .nav-links {
        display: none; /* Hide default menu */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(10, 10, 10, 0.95);
        padding: 2rem 0;
        border-bottom: 1px solid #333;
        text-align: center;
    }

    .nav-links.active {
        display: flex; /* Show when toggled */
    }

    .nav-links li { margin: 1rem 0; }

    /* Other Adjustments */
    .hero h1 { font-size: 2.5rem; }
    .profile-header { flex-direction: column; text-align: center; }
    .resume-grid { grid-template-columns: 1fr; }
    .social-links { justify-content: center; }
}

html {
    scroll-behavior: smooth;
}
