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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6; /* Light background */
}

/* --- Navigation & Header --- */
header {
    background: #007bff; /* Primary color */
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

nav h1 {
    font-size: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #0056b3; /* Darker blue on hover */
    border-radius: 4px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* --- Main Content Sections --- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section {
    padding: 60px 20px;
    margin-bottom: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

section h2 {
    text-align: center;
    color: #007bff;
    margin-bottom: 40px;
    font-size: 2rem;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    padding-bottom: 5px;
}


/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #e0f7fa, #ffffff);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero h2 {
    color: #333;
    margin-bottom: 15px;
    border-bottom: none;
    font-size: 2.5rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: #28a745; /* Green for primary action */
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 10px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #1e7e34;
}

.cta-button.secondary {
    background-color: #6c757d;
}

.cta-button.secondary:hover {
    background-color: #5a6268;
}

.hero-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.button-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

/* --- Skills Section --- */
.skills h2 {
    margin: 0 auto 40px;
}

.skills-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.skills-grid div {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    flex: 1 1 200px; /* Allows flexible width */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.skills-grid h3 {
    color: #007bff;
    margin-bottom: 10px;
}

/* --- Experience & Education Sections --- */
.job-entry, .education-entry {
    border-left: 3px solid #007bff;
    padding-left: 20px;
    margin-bottom: 30px;
}

.job-entry h3, .education-entry h3 {
    color: #333;
    margin-bottom: 5px;
}

.company {
    color: #5a6268;
    font-weight: normal;
    font-style: italic;
}

.date-location, .date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.job-entry ul {
    margin-left: 20px;
}

.achievement {
    background-color: #fff3cd;
    color: #856404;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
}

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

.project-card {
    background: #e9ecef;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    color: #007bff;
    margin-bottom: 10px;
}

.tech-stack {
    color: #343a40;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.project-link {
    display: inline-block;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.project-link:hover {
    text-decoration: underline;
}

/* --- Contact Section --- */
.contact {
    text-align: center;
}

.contact p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.contact-links a {
    color: #007bff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.contact-links a:hover {
    color: #0056b3;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: white;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav h1 {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #0056b3;
        margin-top: 10px;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    section {
        padding: 40px 15px;
    }

    section h2 {
        font-size: 1.5rem;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .skills-grid {
        flex-direction: column;
    }

    .skills-grid div {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    nav h1 {
        font-size: 1.2rem;
    }

    section h2 {
        font-size: 1.3rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}