/* Global Reset and Typography */
:root {
    --primary-color: #007bff; /* A professional blue */
    --secondary-color: #4a4a4a; /* Dark grey text */
    --background-light: #f9f9f9; /* Very light background */
    --card-background: #ffffff; /* White cards */
    --border-color: #e0e0e0;
    --font-main: 'Inter', sans-serif;
}

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

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

/* Main Layout Container */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Header/Intro Section */
.intro-section {
    background-color: var(--card-background);
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.intro-content h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.tagline {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info span {
    margin: 0 15px;
    font-size: 0.95em;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* --- Navigation Bar Styling (New) --- */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--card-background);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

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

.nav-links li a {
    text-decoration: none;
    color: var(--secondary-color);
    padding: 10px 15px;
    font-weight: 600;
    transition: color 0.3s;
}

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

/* General Card Styling (for Sections) */
.card {
    background-color: var(--card-background);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

/* --- SKILLS SECTION STYLES --- */
.skills-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.skill-category {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    border-left: 3px solid #ccc;
}

.skill-category h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
    color: var(--primary-color);
}

.skill-badge {
    display: inline-block;
    background-color: #eef;
    color: #333;
    padding: 6px 12px;
    margin: 5px 5px 5px 0;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
}

/* --- EXPERIENCE (TIMELINE) STYLES --- */
.timeline {
    position: relative;
    margin-left: 20px;
}

/* The vertical line connecting the timeline items */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px; /* Space for the bullet point/circle */
}

/* The circular marker on the timeline */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid var(--card-background);
    z-index: 1;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.4em;
}

.timeline-content .company {
    font-style: italic;
    color: #777;
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
}

.timeline-content li {
    margin-bottom: 8px;
}

/* --- INFO & LINKS SECTION STYLES --- */
.info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.info-grid h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.university {
    font-size: 1.1em;
    font-weight: 600;
}

.link-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    display: block;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.github-btn {
    background-color: #24292e; /* GitHub dark color */
    color: #ffffff;
}

.github-btn:hover {
    background-color: #1d2127;
    transform: translateY(-2px);
}

.resume-btn {
    background-color: var(--primary-color);
    color: white;
}

.resume-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}


/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .intro-content h1 {
        font-size: 2.5em;
    }
    
    .skills-grid {
        flex-direction: column;
    }

    .info-grid {
        grid-template-columns: 1fr; /* Stack Education and Links vertically */
    }
    
    .timeline {
        margin-left: 0;
    }
    
    .timeline::before {
        left: 10px; /* Move the line closer to the edge */
    }
    
    .timeline-item::before {
        left: 0; /* Align the circle with the left margin */
    }
}

/* --- NEW: ABOUT ME STYLING --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* --- NEW: TECH STACK STYLING (Skills Grid Refined) --- */
.skills-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.skill-category {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    border-left: 3px solid #ccc;
}

.skill-category h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
    color: var(--primary-color);
}

.skill-badge {
    display: inline-block;
    background-color: #eef;
    color: #333;
    padding: 6px 12px;
    margin: 5px 5px 5px 0;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s, transform 0.2s; /* Transition for micro-interaction */
}

/* Micro-interaction for skills */
.skill-badge.interactive:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05); /* Slight scale up on hover */
}

/* --- NEW: PROJECTS STYLING --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.project-card {
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    background-color: #fdfdfd;
    transition: all 0.3s ease-in-out; /* Smooth transition for hover */
}

/* Micro-interaction for projects */
.project-card.interactive:hover {
    box-shadow: var(--shadow-hover); /* More pronounced shadow on hover */
    transform: translateY(-5px); /* Subtle lift effect */
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.project-links {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.small-btn {
    padding: 8px 15px;
    font-size: 0.9em;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}
/* Reuse existing button styles for small buttons */
.small-btn.github-btn { background-color: #24292e; color: white; }
.small-btn.github-btn:hover { background-color: #1d2127; }
.small-btn.resume-btn { background-color: var(--primary-color); color: white; }
.small-btn.resume-btn:hover { background-color: #0056b3; }


/* --- Timeline, Info, Footer (Existing Styles - Minor Adjustments) --- */
/* ... (Timeline styles remain the same, ensuring compatibility) ... */

.info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}
/* ... (Rest of the CSS remains the same) ... */

/* Responsive Design */
@media (max-width: 768px) {
    /* ... (Existing responsive styles) ... */
    .skills-grid {
        flex-direction: column;
    }
    .info-grid {
        grid-template-columns: 1fr; 
    }
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    .nav-links {
        margin-top: 10px;
        justify-content: center;
    }
}