/* Basic Reset & General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 80%;
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    flex-grow: 1;
}

/* Header & Navigation */
header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    border-bottom: 4px solid #007bff;
}

header .logo {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header .logo a {
    color: #fff;
    text-decoration: none;
}

nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #007bff;
    color: #fff;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}


/* Main Content Sections */
main h1, main h2, main h3 {
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}
main h1 { font-size: 2rem; }
main h2 { font-size: 1.75rem; }
main h3 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
}

ul {
    margin-left: 20px;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Home Page Specific */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.hero img.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid #007bff;
}

.hero .tagline {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Project & Experience Cards */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.card h3 {
    color: #0056b3;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.5rem;
}

.card .dates {
    font-style: italic;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 0.75rem;
}

.card ul {
    list-style-type: disc; /* Or circle, or none if preferred */
}

/* Skills Page */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.skills-container ul {
    list-style-type: none;
    padding-left: 0;
}

.skills-container li {
    background-color: #e9ecef;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Contact Page */
.contact-info a {
    color: #007bff;
    text-decoration: none;
}
.contact-info a:hover {
    text-decoration: underline;
}
.contact-info p {
    font-size: 1.1em;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 0;
    background-color: #333;
    color: #aaa;
    margin-top: auto; /* Pushes footer to bottom */
    font-size: 0.9em;
}

footer a {
    color: #007bff;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    header .logo {
        font-size: 2rem;
    }

    nav ul {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: #444; /* Background for dropdown */
    }

    nav ul.nav-active {
        display: flex; /* Show when active */
    }

    nav ul li {
        display: block;
        margin: 0;
        text-align: center;
    }
    nav ul li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #555;
    }
    nav ul li a:hover {
        background-color: #0056b3;
    }

    .menu-toggle {
        display: block; /* Show hamburger on mobile */
    }

    .hero img.profile-pic {
        width: 150px;
        height: 150px;
    }
}