body {
    background-color: #0a0a0a;
    color: #f5f5f5;
    font-family: 'Arial', sans-serif; /* Added a modern font */
    margin: 0; /* Remove default body margin */
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif; /* A more elegant font for headings */
    color: #ffffff;
}

.main-content {
    padding-top: 80px; /* Adjusted to give more space below fixed navbar */
    min-height: 100vh;
    box-sizing: border-box; /* Include padding in element's total width and height */
    text-align: center; /* Center content within main sections */
}

.section {
    padding: 4rem 1rem; /* Adjusted padding for smaller screens */
    max-width: 1200px; /* Max width for content */
    margin: 0 auto; /* Center sections */
}

.section-content {
    padding: 0 1rem; /* Inner padding for content */
}

.navbar {
    background: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem; /* Slightly reduced padding */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0; /* Ensure it spans full width */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Match section width */
    margin: 0 auto;
}

.logo {
    font-size: 1.6rem; /* Slightly larger logo */
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 0; /* Add padding for clickable area */
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    width: 30px; /* Slightly larger hamburger */
    height: 20px; /* Adjust height for 3 lines */
    position: relative;
    z-index: 1001;
    transition: all 0.3s ease;
    padding: 5px; /* Add padding for easier clicking */
    box-sizing: content-box;
}

.hamburger span {
    width: 100%; /* Spans full width of hamburger container */
    height: 3px;
    background: #ffffff;
    border-radius: 2px; /* Slightly rounded ends */
    transition: all 0.3s ease;
}

/* Animate to X */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px); /* Adjusted translation */
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px); /* Slide out middle bar */
}
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px); /* Adjusted translation */
}

.nav-menu {
    display: flex; /* Always display for desktop */
    list-style: none; /* Remove bullet points */
    margin: 0;
    padding: 0;
    transition: all 0.3s ease-in-out;
}

.nav-menu li {
    margin-left: 1.5rem; /* Space between desktop nav items */
}

.nav-link {
    color: #ffffff;
    padding: 0.5rem 0.8rem; /* Adjusted padding */
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 5px; /* Subtle rounded corners on hover */
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15); /* Stronger hover effect */
    color: #e0e0e0;
}

/* Mobile styles for navigation */
@media (max-width: 767px) {
    .nav-menu {
        display: none; /* Hide on mobile by default */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Position below navbar */
        left: 0;
        width: 100%; /* Full width dropdown */
        background: #111;
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        border-radius: 0 0 8px 8px;
        max-height: 0; /* Hidden by default */
        overflow: hidden; /* Hide content */
    }

    .nav-menu.active {
        display: flex; /* Show when active */
        max-height: 200px; /* Or enough to show all links */
    }

    .nav-menu li {
        margin: 0; /* Remove margin for mobile list items */
        text-align: center;
    }

    .nav-link {
        display: block; /* Make links take full width */
        padding: 1rem 0; /* More padding for mobile links */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Separator lines */
    }

    .nav-link:last-child {
        border-bottom: none; /* No separator on last link */
    }
}


@media (min-width: 768px) {
    .hamburger {
        display: none; /* Hide hamburger on desktop */
    }

    .nav-menu {
        display: flex; /* Show nav menu on desktop */
        position: static; /* Reset position for desktop */
        width: auto;
        background: transparent;
        box-shadow: none;
        max-height: none;
        overflow: visible;
        flex-direction: row; /* Ensure row direction for desktop */
    }

    .nav-link {
        padding: 0.5rem 0.8rem; /* Restore desktop padding */
        border-bottom: none;
    }
}

/* Project and Photography Grid Styling */
.projects-grid, .photography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width for better mobile layout */
    gap: 1.5rem; /* Slightly reduced gap */
    margin-top: 3rem;
    padding: 0 1rem; /* Ensure padding for grids */
}

.project-card, .photo-category-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px; /* Slightly less rounded */
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px); /* Slightly less blur */
    text-align: left; /* Align text within cards */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute space */
    min-height: 180px; /* Ensure a minimum height for cards */
}

.project-card:hover, .photo-category-card:hover {
    transform: translateY(-8px); /* Less aggressive lift */
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.project-card h3, .photo-category-card h3 {
    font-size: 1.4rem; /* Slightly smaller heading for cards */
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.project-card p, .photo-category-card p {
    line-height: 1.5; /* Slightly tighter line height */
    margin-bottom: 1rem;
    font-size: 0.95rem; /* Slightly smaller text */
}

.project-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
    display: inline-block; /* Allows padding and consistent alignment */
    margin-top: auto; /* Pushes link to the bottom of the card */
}

.project-link:hover {
    border-bottom-color: #61dafb; /* A subtle, modern highlight color */
    color: #61dafb; /* Change link color on hover */
}

/* Photography specific card styles */
.photo-category-card {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    min-height: 150px; /* Adjust height for photography cards */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); /* Gradient background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
}

.photo-category-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    transform: scale(1.03); /* Slight zoom effect */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* General typography and spacing */
p {
    color: #ccc;
}

---
/* Footer Styling */
.footer {
    background: #111;
    color: #f5f5f5;
    padding: 2rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem; /* Add some space above the footer */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1); /* Subtle lift and slight enlarge on hover */
}

.social-links img {
    width: 28px; /* Size of social icons */
    height: 28px;
    /* REMOVE THIS LINE: filter: invert(100%); */
}

/* Responsive adjustments for footer */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .social-links {
        margin-top: 0;
    }
}

---
/* Resume Section Styling */
.resume {
    background: #0f0f0f; /* Slightly lighter dark background for contrast */
    padding: 6rem 1rem; /* More padding for resume section */
}

.resume-download-card {
    background: rgba(255, 255, 255, 0.08); /* A bit more prominent than project cards */
    border-radius: 12px;
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: 600px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.resume-download-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #61dafb; /* Highlight color for the call to action */
}

.resume-download-card p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #ccc;
}

.download-button {
    display: inline-block;
    background-color: #61dafb; /* Your accent color */
    color: #111; /* Dark text on light button */
    padding: 0.9rem 2.5rem;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(97, 218, 251, 0.4);
}

.download-button:hover {
    background-color: #4ac1e6; /* Slightly darker on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(97, 218, 251, 0.6);
}

.resume-details {
    text-align: left; /* Align details to the left */
    max-width: 900px; /* Wider for resume content */
    margin: 4rem auto 0 auto;
    padding: 0 1rem;
}

.resume-details h3 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
    padding-bottom: 0.5rem;
}

.experience-item, .education-item {
    margin-bottom: 2.5rem;
}

.experience-item h4, .education-item h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #61dafb; /* Highlight names/titles */
}

.experience-item .duration, .education-item .duration {
    font-size: 0.95rem;
    color: #bbb;
    margin-bottom: 0.8rem;
    display: block; /* Ensure it's on its own line */
}

.experience-item ul {
    list-style-type: disc; /* Or 'none' if you prefer */
    margin-left: 25px; /* Indent list items */
    padding: 0;
    color: #ccc;
}

.experience-item ul li {
    margin-bottom: 0.5rem;
}

.skills-list {
    line-height: 2; /* More space between lines of skills */
    color: #ccc;
}

/* Responsive adjustments for resume section */
@media (max-width: 767px) {
    .resume-download-card {
        padding: 1.5rem;
    }
    .resume-download-card h3 {
        font-size: 1.5rem;
    }
    .download-button {
        font-size: 1rem;
        padding: 0.7rem 2rem;
    }
    .resume-details h3 {
        font-size: 1.8rem;
    }
    .experience-item h4, .education-item h4 {
        font-size: 1.3rem;
    }
}

---
/* Gallery Page Specific Styling */
.gallery-page {
    padding-top: 120px; /* More space for the fixed navbar */
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 1.5rem; /* Space between photos */
    margin-top: 2rem;
    padding: 0 1rem; /* Padding for the grid itself */
}

.gallery-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden; /* Ensures images don't spill out of rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center; /* Center images within their div */
    align-items: center; /* Center images vertically */
    aspect-ratio: 16 / 9; /* Maintain aspect ratio for items - adjust as needed */
    max-height: 250px; /* Optional: constrain height for uniformity */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%; /* Make image fill its container */
    height: 100%; /* Make image fill its container */
    object-fit: cover; /* Cover the area, cropping if necessary, no distortion */
    display: block; /* Remove extra space below images */
}

.back-link {
    display: inline-block;
    margin-top: 3rem;
    color: #61dafb;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

.back-link:hover {
    color: #4ac1e6;
    transform: translateX(-5px); /* Small slide effect */
}

/* Responsive adjustments for gallery grid */
@media (max-width: 600px) {
    .photo-gallery-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .gallery-item {
        max-height: 200px; /* Adjust height for smaller screens */
    }
}

/* Profile Photo Section */
.profile-section {
    margin: 3rem auto 5rem auto; /* Adjust spacing around the photo */
    text-align: center;
    max-width: 300px; /* Constrain width of the container for responsive sizing */
}

.profile-photo {
    width: 200px; /* Fixed width for the photo */
    height: 200px; /* Fixed height for the photo */
    border-radius: 50%; /* Makes it perfectly circular */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border: 3px solid rgba(255, 255, 255, 0.2); /* Subtle white border */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4); /* Soft shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block; /* Remove extra space below image */
    margin: 0 auto 1.5rem auto; /* Center the image and add space below */
}

.profile-photo:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.profile-caption {
    font-size: 1.1rem;
    color: #bbb;
    font-weight: 300;
}

/* Responsive adjustments for profile photo */
@media (max-width: 600px) {
    .profile-photo {
        width: 150px; /* Smaller photo on small screens */
        height: 150px;
    }
    .profile-caption {
        font-size: 1rem;
    }
}