html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-family: 'Roboto Flex', sans-serif;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    box-sizing: border-box;
    background-color: black;
    color: seashell;
    padding-top: 70px;
    overflow-x: hidden;
}

/* Logo styles */
.logo-container {
    display: flex;
    align-items: center;
    margin-right: auto;
    padding-left: 20px;
}

.logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Navigation - Base */
nav {
    background-color: #0B0C10;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav-links li a {
    color: #91d237;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: seashell;
}

section {
    padding: 50px;
    text-align: center;
    background-color: #0B0C10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #89c633;
}

/* Home Section - Base */
#home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#intro-image img {
    width: 256px;
    border-radius: 50%;
    margin-top: 20px;
    margin-bottom: 20px;
}

#my-name {
    margin-top: -5px;
    margin-bottom: -5px;
    font-size: 30px;
    font-weight: bold;
    color: #89c633;
}

#contactBtn input {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #89c633;
    color: black;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#contactBtn input:hover {
    background-color: seashell;
}

/* Socials - Base */
#socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

#socials img {
    transition: transform 0.3s;
    width: 30px;
}

#socials img:hover {
    transform: scale(1.1);
    background-color: seagreen;
}

/* Projects - Base */
#projects {
    padding: 50px 20px;
}

#projects h1 {
    margin-bottom: 20px;
}

#projects p {
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

#project-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#project-links a {
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

#project-links img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#project-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(137, 198, 51, 0.8);
}

#project-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project-item {
    position: relative;
    width: 300px;
    overflow: hidden;
}

.project-item img {
    display: block;
    width: 100%;
    height: auto;
}

.project-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: #91d237;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
}

.project-item:hover .overlay {
    opacity: 1;
}

.overlay h2 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

.overlay p {
    font-size: 1em;
}


/* Assignments - Base */
/* Enhanced Assignments Section with Hover Effects */
#assignments {
    padding: 50px 20px;
}

#assignment-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

#assignment-links > div {
    flex: 1 1 300px;
    max-width: 350px;
    background-color: #1A1C22;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#assignment-links > div:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(137, 198, 51, 0.5);
}

#assignment-links a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
}

#assignment-links img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#assignment-links > div:hover img {
    transform: scale(1.05);
}

.assignment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 28, 34, 0.1), rgba(26, 28, 34, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    box-sizing: border-box;
    opacity: 1;
    transition: all 0.3s ease;
}

#assignment-links > div:hover .assignment-overlay {
    background: linear-gradient(to bottom, rgba(26, 28, 34, 0), rgba(26, 28, 34, 0.95));
}

.assignment-content {
    padding: 20px;
    background-color: #1A1C22;
    transition: all 0.3s ease;
}

#assignment-links > div:hover .assignment-content {
    background-color: #22242b;
}

#assignment-links h5 {
    margin: 0 0 10px;
    color: #91d237;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

#assignment-links > div:hover h5 {
    color: #b8e356;
}

#assignment-links p {
    margin: 0;
    color: #c5c6c7;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

#assignment-links > div:hover p {
    color: #e2e3e4;
}

.assignment-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #89c633;
    color: black;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

#assignment-links > div:hover .assignment-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Section - Base */
#gallery {
    padding: 50px 20px;
}

#gallery h1 {
    margin-bottom: 20px;
    color: #89c633;
}

#gallery p {
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
    color: seashell;
}

#gallery-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#gallery-items img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#gallery-items img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* About - Base */
#about {
    padding: 50px 20px;
}

#about h1 {
    color: #89c633;
    margin-bottom: 30px;
}

#about > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

#about-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
    color: seashell;
    font-size: 1.1rem;
    line-height: 1.7;
    padding: 0 20px;
}

#about-photo {
    flex: 1;
    min-width: 300px;
    text-align: center;
    padding: 20px;
}

#about-photo img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

#about-photo img:hover {
    transform: scale(1.01);
}

/* Contact Form - Base */
#contact {
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact h1 {
    color: #89c633;
    margin-bottom: 20px;
    text-align: center;
}

#contact p {
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
    color: seashell;
    text-align: center;
}

#contact div {
    margin-bottom: 20px;
    width: 100%;
    max-width: 600px;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    background-color: #0B0C10;
    color: azure;
    border: 2px solid #89c633;
    border-radius: 5px;
    font-size: 16px;
}

#contact textarea {
    min-height: 150px;
    resize: vertical;
}

#contact input[type="button"] {
    background-color: #89c633;
    color: black;
    border: none;
    cursor: pointer;
    width: 150px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: block;
    margin: 0 auto;
}

#contact input[type="button"]:hover {
    background-color: seashell;
}

/* Footer - Base */
footer {
    background-color: black;
    color: white;
    text-align: center;
    height: 15px;
    padding: 15px;
    align-items: center;
    display: flex;
    justify-content: center;
    gap: 15px;
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    width: 20px;
}

.footer-socials {
    display: flex;
    gap: 4px;
}

.footer-socials img {
    width: 15px;
    height: 15px;
}

.footer-socials img:hover {
    transform: scale(1.1);
    background-color: seagreen;
}

/* ======================== */
/* RESPONSIVE MEDIA QUERIES */
/* ======================== */

/* Mobile Small (320px) */
@media all and (max-width: 320px) {
    body {
        padding-top: 45px;
    }

    nav {
        padding: 5px 0;
    }

    .nav-container {
        padding: 5px 15px;
    }

    .logo img {
        height: 25px;
    }

    section {
        padding: 20px;
    }

    #intro-image img {
        width: 180px;
    }

    #my-name {
        font-size: 24px;
    }

    #contactBtn input {
        padding: 8px 16px;
        font-size: 14px;
    }

    input, textarea {
        width: 90%;
    }

    input[type="button"] {
        width: 50%;
    }

    #about-text, #about-photo {
        min-width: 250px;
    }

    #projects {
        padding: 30px 15px;
    }

    #project-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #assignment-links > div {
        flex: 1 1 250px;
    }

    #assignment-links img {
        height: 160px;
    }

    #gallery-items {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #about-photo {
        display: none;
    }

    #contact {
        padding: 20px 15px;
    }

    #contact p {
        margin-bottom: 20px;
        font-size: 14px;
    }

    #contact div {
        max-width: 280px;
    }

    #contact input,
    #contact textarea {
        padding: 8px;
        font-size: 14px;
    }

    #contact textarea {
        min-height: 100px;
    }

    #contact input[type="button"] {
        width: 100%;
        padding: 10px;
    }

    /* Mobile menu adjustments */
    .nav-links {
        top: 45px;
        height: calc(100vh - 45px);
    }

    .toggle_btn {
        font-size: 1.1rem;
    }
}

/* Mobile Medium (375px) */
@media all and (min-width: 321px) and (max-width: 375px) {
    body {
        padding-top: 50px;
    }

    nav {
        padding: 6px 0;
    }

    .nav-container {
        padding: 6px 18px;
    }

    .logo img {
        height: 28px;
    }

    section {
        padding: 25px;
    }

    #intro-image img {
        width: 200px;
    }

    #my-name {
        font-size: 26px;
    }

    input, textarea {
        width: 80%;
    }

    input[type="button"] {
        width: 40%;
    }

    #projects {
        padding: 30px 15px;
    }

    #project-links {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    #assignment-links > div {
        flex: 1 1 280px;
    }

    #gallery-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #about-photo {
        display: none;
    }

    #contact {
        padding: 25px 15px;
    }

    #contact div {
        max-width: 300px;
    }

    #contact input,
    #contact textarea {
        padding: 9px;
        font-size: 14px;
    }

    #contact p {
        margin-bottom: 25px;
        font-size: 15px;
    }

    #contact input[type="button"] {
        width: 100%;
    }

    /* Mobile menu adjustments */
    .nav-links {
        top: 50px;
        height: calc(100vh - 50px);
    }

    .toggle_btn {
        font-size: 1.2rem;
    }
}

/* Mobile Large (425px) */
@media all and (min-width: 376px) and (max-width: 425px) {
    body {
        padding-top: 55px;
    }

    nav {
        padding: 7px 0;
    }

    .nav-container {
        padding: 7px 20px;
    }

    .logo img {
        height: 30px;
    }

    section {
        padding: 30px;
    }

    #intro-image img {
        width: 220px;
    }

    #my-name {
        font-size: 28px;
    }

    input, textarea {
        width: 75%;
    }

    #projects {
        padding: 40px 20px;
    }

    #project-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    #assignment-links {
        gap: 25px;
    }

    #gallery-items {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    #about-photo {
        display: none;
    }

    #contact {
        padding: 30px 20px;
    }

    #contact div {
        max-width: 350px;
    }

    #contact input,
    #contact textarea {
        padding: 10px;
        font-size: 15px;
    }

    #contact p {
        margin-bottom: 30px;
    }

    #contact input[type="button"] {
        width: 200px;
    }

    /* Mobile menu adjustments */
    .nav-links {
        top: 55px;
        height: calc(100vh - 55px);
    }

    .toggle_btn {
        font-size: 1.3rem;
    }
}

/* Tablet (768px) */
@media all and (min-width: 426px) and (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    nav {
        padding: 8px 0;
    }

    .logo img {
        height: 35px;
    }

    section {
        padding: 40px;
    }

    #project-links {
        grid-template-columns: repeat(2, 1fr);
    }

    #assignment-links {
        justify-content: center;
    }

    input, textarea {
        width: 70%;
    }

    #project-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    #assignment-links > div {
        flex: 1 1 250px;
    }

    #gallery-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    #about-photo {
        display: none;
    }

    #contact {
        padding: 40px 30px;
    }

    #contact div {
        max-width: 450px;
    }

    #contact input,
    #contact textarea {
        padding: 11px;
        font-size: 15px;
    }

    #contact p {
        font-size: 17px;
    }

    #contact input[type="button"] {
        width: 200px;
        padding: 15px;
    }

    /* Mobile menu adjustments */
    .nav-links {
        top: 60px;
        height: calc(100vh - 60px);
    }
}

/* Laptop (1024px) */
@media all and (min-width: 769px) and (max-width: 1024px) {
    #project-links {
        grid-template-columns: repeat(3, 1fr);
    }

    #assignment-links > div {
        flex: 1 1 250px;
    }

    #gallery-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    #contact {
        padding: 50px 40px;
    }

    #contact input[type="button"] {
        width: 200px;
        padding: 15px;
        font-size: 17px;
    }
}

/* Laptop Large (1440px) */
@media all and (min-width: 1025px) {
    #project-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    #assignment-links > div {
        flex: 1 1 300px;
    }

    #gallery-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    #contact {
        padding: 60px;
    }

    #contact input[type="button"] {
        width: 220px;
        padding: 16px;
        font-size: 18px;
    }
}

/* About section adjustments for smaller screens */
@media all and (max-width: 768px) {
    #about > div {
        flex-direction: column;
        gap: 30px;
    }

    #about-text {
        text-align: center;
    }
}

/* Hamburger Menu Styles */
.toggle_btn {
    display: none;
    cursor: pointer;
    color: #91d237;
    transition: all 0.3s ease;
    z-index: 1001;
}

.toggle_btn:hover {
    color: seashell;
}

/* Mobile Menu Styles */
@media all and (max-width: 768px) {
    .toggle_btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        background-color: #0B0C10;
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links::before {
        content: '';
        position: fixed;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-links.active::before {
        opacity: 1;
    }

    .nav-container {
        justify-content: space-between;
    }
}

@media all and (min-width: 769px) {
    .nav-container {
        justify-content: center;
        position: relative;
    }

    .logo-container {
        position: absolute;
        left: 20px;
        margin-right: 0;
    }

    .nav-links {
        margin: 0 auto;
    }
}