/* --- Color Palette Variables --- */
:root {
    --primary-bg: #040202; /* Darkest Brown/Near Black - Website Background */
    --text-color: #8d3e34a4; /* Dark Reddish Brown - Main Body Text */
    --accent-color: #b93501ae; /* Lighter Reddish Brown - Headings, Highlights, Hover */
    
    /* Using the primary colors for supporting elements */
    --secondary-bg: #040202; /* Slightly lighter background for cards/contrast */
    --card-bg: #2d0d004c; 
}

/* --- Base and Reset --- */
body {
    margin: 0;
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    padding: 10px; 
    background-color: var(--primary-bg);
    color: var(--text-color); 
    line-height: 1.6;
    scroll-behavior: smooth;
    font-family: NTR;              
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, Liberation Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

h1, h2, h3 {
    color: var(--accent-color); 
    font-weight: 700;
}

section {
    padding: 80px 5%;
    width: 60%;
    margin: 0 auto; 
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(133, 54, 25, 0), var(--accent-color), rgba(133, 54, 25, 0));
}

.section-title {
    text-align: left;
    margin-bottom: 50px;
    font-size: 2.5em;
    text-transform: lowercase;
    letter-spacing: 3px;
}

/* --- Navigation Bar Styling --- */
.navbar {
    background-color: var(--primary-bg);
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);
}

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

.site-logo a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

.nav-links-wrapper {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 5px 0;
    display: block;
    font-weight: 500;
    transition: color 0.3s;
}

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

.right-links {
    margin-left: 30px;
}

.right-links a {
    font-size: 1.2em;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.5em;
    cursor: pointer;
}

/* --- 1. Home Section Styling --- */
.hero-section {
    /*min-height: 90vh;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center; 
}

.hero-section .greeting-text {
    font-size: 4em;
    color: var(--text-color);
}

.hero-section .highlight-name {
    color: var(--accent-color); 
    font-weight: 700;
}

.hero-section .tagline {
    color: var(--accent-color); 
    font-size: 2.5em;
}

.hero-section .intro-paragraph {
    max-width: 700px;
    margin: 0 auto 20px auto; 
    text-align: center; 
    font-size: 1.3em;
}

/* --- 2. About Me Section Styling --- */
.about-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.about-text {
    flex: 2;
    text-align: left; 
}

.tech-heading {
    color: var(--accent-color);
}

.tech-stack ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 10px;
    text-align: left;
}

.tech-stack i {
    color: var(--accent-color);
}

.about-image-container {
    flex: 1;
    min-width: 250px;
    height: 350px;
    background-color: var(--secondary-bg);
    /*border: 3px solid var(--accent-color);*/
    overflow: hidden; 
}

.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block; 
}

/* --- 3. Experience Section Styling (Normal List) --- */
.experience-list-container {
    /* No card styling - just a clean container */
    max-width: 800px;
    margin: 0 auto; /* CENTERS THE EXPERIENCE BLOCK */
    /*padding: 0;*/
    text-align: left;
}

.job-title {
    color: var(--accent-color); /* Use accent color for job title */
    font-size: 1.5em;
    margin-bottom: 5px;
}

.company-name {
    color: var(--text-color); /* Use text color for company name */
}

.duration {
    color: var(--text-color);
    font-size: 0.9em;
    margin-bottom: 20px;
    display: block;
}

.job-description {
    list-style: none;
    padding: 0;
}

.job-description li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.job-description i {
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 5px;
}

/* --- 4. Projects Section Styling (Cards retained) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--secondary-bg);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    text-align: left;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.github-icon {   
    color: var(--text-color);
    transition: color 0.3s;
}

.project-name {
    color: var(--accent-color);
}

.tech-stack-used {
    color: var(--text-color);
}

/* --- Footer Styling --- */
.main-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8em;
    color: var(--text-color);
    background-color: var(--primary-bg);
    border-top: 1px solid rgba(133, 54, 25, 0.2);
}

/* --- Responsive Design (Media Query) --- */
@media (max-width: 1000px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-text {
        width: 100%;
        text-align: center; 
    }

    .tech-stack ul {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        width: fit-content;
        margin: 10px auto; 
    }
}

@media (max-width: 768px) {
    /* Mobile nav links are set to accent color to stand out better */
    .nav-links a {
        color: var(--accent-color);
    }

    .experience-list-container {
        text-align: left;
        padding: 0 15px; /* Add padding for better look on small screens */
    }
    
    .job-description li {
        padding-left: 20px;
        font-size: 0.95em;
    }
}