@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500&family=Poppins:wght@300;400;600&display=swap');

:root {
    --dark-navy: #0a192f;
    --navy: #112240;
    --light-navy: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --accent: #64ffda;
    --font-sans: 'Poppins', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* This fixes the navbar covering section titles on scroll */
    scroll-padding-top: 80px;
}

body {
    background-color: var(--dark-navy);
    color: var(--slate);
    font-family: var(--font-sans);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================= */
/* Final Navbar Code (Desktop + Mobile)      */
/* ========================================= */

/* --- Navbar --- */
.navbar {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.5rem;
    text-decoration: none;
    border: 2px solid var(--accent);
    padding: 5px 10px;
    z-index: 101; /* Isko hamesha upar rakhein */
}

/* --- Hamburger Icon (Mobile ke liye) --- */
.hamburger {
    display: none; /* Desktop par isko chupana hai */
    font-size: 1.8rem;
    color: var(--accent);
    cursor: pointer;
    z-index: 101;
    transition: transform 0.3s ease-in-out;
}

.hamburger.active {
    transform: rotate(90deg); /* Jab menu khule, icon ko ghuma do */
}


/* --- Menu Links --- */
.nav-menu {
    list-style: none;
    display: flex; /* Desktop par links ko line mein rakho */
    align-items: center;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--lightest-slate);
    text-decoration: none;
    font-family: var(--font-mono);
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent);
}


/* --- Responsive Magic (Yahan se sab theek hoga) --- */
@media (max-width: 768px) {
    
    /* Step 1: Menu links ko hide karo */
    .nav-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;

        position: fixed;
        top: 0;
        right: -100%; /* By default, menu ko screen ke bahar rakho */
        
        width: 75%;
        max-width: 300px;
        height: 100vh;
        
        background-color: var(--navy);
        box-shadow: -10px 0px 30px -15px rgba(2,12,27,0.7);
        transition: right 0.4s ease-in-out;
    }

    /* Step 2: Jab 'active' class lage, tab menu dikhao */
    .nav-menu.active {
        right: 0; /* Menu ko screen ke andar le aao */
    }

    .nav-menu a {
        font-size: 1.2rem;
    }
    
    /* Step 3: Hamburger icon ko dikhao */
    .hamburger {
        display: block;
    }
}
/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
}

.hero-intro {
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    color: var(--lightest-slate);
    font-weight: 600;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(30px, 6vw, 60px);
    color: var(--slate);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    max-width: 540px;
    margin-bottom: 2.5rem;
}

.cta-button {
    color: var(--accent);
    background-color: transparent;
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 1.25rem 1.75rem;
    font-family: var(--font-mono);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/* --- General Section Styling --- */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2rem;
    color: var(--lightest-slate);
    font-weight: 600;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--accent);
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-skills {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 10px;
    list-style: none;
    margin-top: 20px;
}

.about-skills li {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}
.about-skills i {
    color: var(--accent);
    margin-right: 5px;
}

.about-image {
    position: relative;
    max-width: 300px;
}
.about-image img {
    width: 100%;
    border-radius: 4px;
}

/* --- Experience Section (Timeline) --- */
.timeline {
    position: relative;
    max-width: 750px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--light-navy);
    top: 0;
    bottom: 0;
    left: 15px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    padding-left: 50px;
}

.timeline-dot {
    position: absolute;
    left: 6px;
    top: 21px;
    width: 18px;
    height: 18px;
    background-color: var(--dark-navy);
    border: 2px solid var(--accent);
    border-radius: 50%;
    z-index: 1;
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--light-slate);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: var(--lightest-slate);
    font-size: 1.2rem;
}
.timeline-content .company {
    color: var(--accent);
    margin-bottom: 1rem;
}
.timeline-content ul {
    list-style-type: none;
}
.timeline-content ul li {
    padding-left: 20px;
    position: relative;
}
.timeline-content ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background-color: var(--navy);
    padding: 2rem;
    border-radius: 4px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    color: var(--lightest-slate);
    margin-bottom: 1rem;
}

.project-tech {
    margin: 1.5rem 0;
    font-family: var(--font-mono);
    color: var(--slate);
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    background-color: var(--light-navy);
    padding: 5px 10px;
    border-radius: 15px;
}

.project-links a {
    color: var(--lightest-slate);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.project-links a:hover {
    color: var(--accent);
}

/* --- Skills & Education --- */
.skills-list p, .education-card {
    background-color: var(--navy);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent);
    border-radius: 4px;
}

.education-card h3 {
    color: var(--lightest-slate);
}
.education-card .institution {
    color: var(--accent);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    font-family: var(--font-mono);
    color: var(--slate);
}

.footer-links a {
    color: var(--slate);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ========================================= */
/* Responsive Design (YAHAN SE PASTE KAREIN) */
/* ========================================= */

/* Tablet aur chhote desktop ke liye (For screens smaller than 992px) */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem; /* Side se thodi kam space */
    }

    .about-content {
        grid-template-columns: 1fr; /* Image aur text ko ek ke neeche ek laayein */
        gap: 30px;
    }

    .about-image {
        margin: 0 auto; /* Image ko center mein rakhein */
    }
}

/* Mobile phones ke liye (For screens smaller than 768px) */
@media (max-width: 768px) {
    section {
        padding: 60px 0; /* Sections ke beech mein space kam karein */
    }

    .hero-title {
        font-size: clamp(35px, 10vw, 50px); /* Hero title ka font chhota karein */
    }

    .hero-subtitle {
        font-size: clamp(25px, 8vw, 40px); /* Subtitle ka font chhota karein */
    }
    
    .nav-menu {
        gap: 1rem;
        margin-left: 1rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
    }

    .timeline::after {
        left: 10px; /* Experience timeline ko adjust karein */
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-dot {
        left: 1px;
    }
}

/* Chhote mobile phones ke liye (For screens smaller than 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem; /* Side se aur kam space */
    }

    .hero-links {
        flex-direction: column; /* Buttons ko ek ke neeche ek laayein */
        align-items: flex-start; /* Buttons ko left align karein */
    }
    
    .project-card {
        padding: 1.5rem;
    }

    .footer-links a {
        margin: 0 0.8rem;
    }
}
