@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #343a40;
    --light-text-color: #6c757d;
    --card-background: #ffffff;
    --border-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
}

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

/* Header */
header {
    background-color: var(--card-background);
    box-shadow: 0 2px 4px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    max-width: 800px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    object-fit: cover;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero .contact-info a {
    color: #ffffff;
    margin: 0 15px;
    font-size: 1.1rem;
    text-decoration: underline;
}

.hero .contact-info a:hover {
    opacity: 0.8;
}

/* General Section Styling */
.section {
    padding: 80px 20px;
    background-color: var(--card-background);
    margin-bottom: 20px;
    box-shadow: 0 2px 8px var(--shadow-color);
    border-radius: 8px;
}

.section:nth-of-type(even) {
    background-color: var(--background-color);
}

.section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    border-radius: 2px;
}

/* Experience & Education Items */
.experience-item, .project-item, .education-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover, .project-item:hover, .education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow-color);
}

.experience-item h3, .project-item h3, .education-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.experience-item p, .project-item p, .education-item p {
    color: var(--light-text-color);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.experience-item ul, .project-item ul, .education-item ul {
    margin-top: 10px;
    margin-left: 25px;
    color: var(--text-color);
}

.experience-item ul li, .project-item ul li, .education-item ul li {
    margin-bottom: 5px;
}

/* Skills Section */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.skills-list h3 {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.3rem;
}

.skills-list span {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: background-color 0.3s ease;
}

.skills-list span:hover {
    background-color: #0056b3;
}

/* GitHub Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.projects-grid .project-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.projects-grid .project-item h3 {
    margin-bottom: 10px;
}

.projects-grid .project-item h3 a {
    text-decoration: none;
    color: var(--primary-color);
}

.projects-grid .project-item h3 a:hover {
    text-decoration: underline;
}

.projects-grid .project-item p {
    flex-grow: 1; /* Allow description to take available space */
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-top: auto; /* Push to bottom of flex container */
}

.project-meta .language {
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.project-meta .stars {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Design */
/* Hamburger menu styles */
.hamburger {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100; /* Above nav-menu */
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap; /* Allow items to wrap */
        justify-content: space-between; /* Logo left, hamburger right */
        align-items: center;
    }

    .hamburger {
        display: block; /* Show hamburger on mobile */
    }

    .nav-menu {
        display: none; /* Hide nav menu by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: var(--card-background);
        position: absolute;
        top: 60px; /* Below header */
        left: 0;
        box-shadow: 0 2px 4px var(--shadow-color);
        padding: 10px 0;
    }

    .nav-menu.nav-open {
        display: flex; /* Show nav menu when open */
    }

    .nav-menu li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-menu li a {
        padding: 10px 0;
        display: block;
    }

    /* Existing media query rules, adjusted */
    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .hero .contact-info a {
        display: block;
        margin: 10px 0;
    }

    .section {
        padding: 50px 15px;
    }

    .section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .hero .contact-info a {
        display: block;
        margin: 10px 0;
    }

    .section {
        padding: 50px 15px;
    }

    .section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .experience-item h3, .project-item h3, .education-item h3 {
        font-size: 1.3rem;
    }

    .skills-list span {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Fade-in animation for scroll-reveal */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- NEW DEBUG CSS --- */
main, main section {
    background-color: yellow !important; /* Bright color */
    min-height: 150px !important; /* Ensure height */
    border: 2px solid blue !important; /* Strong border */
    display: block !important; /* Force block display */
    visibility: visible !important; /* Force visibility */
    opacity: 1 !important; /* Force opacity */
    position: static !important; /* Ensure not absolutely positioned off-screen */
    z-index: auto !important; /* Reset z-index */
}
/* --- END NEW DEBUG CSS --- */
