/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #f9f9f9;
    color: #333333;
}

footer{
    margin: 0px;
    padding: 0px 0px 6px 0px;
}

.navbar {
    margin: 0 5%;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-list li {
    display: inline;
}

.nav-list li a {
    text-decoration: none;
    font-size: large;
    color: #333333;
    font-family: 'Lato', sans-serif;
}

.nav-list li a:hover {
    color: #40E0D0;
}

.navhr{
    color: #333;
}

.intro{
    margin: 8% 10% 2% 10%;
    font-family: 'Merriweather', serif;
}

.intro p{
    font-size: x-large;
    font-family: 'Lato', sans-serif;
}

.intro button{
    margin: 2%;
    font-size: large;
    text-transform: uppercase;
    border-radius: 10px;
    width: 240px;
    height: 42px;
    background-color: #333;
    color: #fff;
    border: none;
    font-family: 'Lato', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.intro button:hover{
    background-color: #40E0D0;
    color: #f9f9f9;
}

.intro-bigtext{
    font-size: 36px;
}


.skills{
    margin: 8% 10% 2% 10%;
    font-family: 'Merriweather', serif;
}

.skills h1{
    font-family: 'Merriweather', serif;
    text-transform: uppercase;
    font-size: 36px;
    margin-bottom: 6%;
}

.skills-img ul li{
    display: inline;
}

.skills-img ul li img{
    width: 60px;
    height: 60px;
    margin: 0px 15px 0px 15px;
}

.navportfolio{
    margin: 0% 0% 6% 0%;
    width: 100%;
    color: #333;
}


.navintro{
    margin: 8% 6%;
    width: 88%;
    color: #333;
}

.lastline{
    margin: 1% 6%;
    width: 88%;
    align-self: center;
    color: #333;
}

.about{
    margin: 8% 10% 2% 10%;
    text-align: center;
}

.about h1{
    font-weight: x-large;
    font-family: 'Merriweather', serif;
    text-transform: uppercase;
    margin: 3% 0% 5% 0%;
}

.about p{
    font-weight: medium;
    font-family: 'Lato', sans-serif;
    margin: 2%;
}


.contact{
    margin: 8% 10% 4% 10%;
    text-align: center;
}

.contact h1{
    font-weight: x-large;
    font-family: 'Merriweather', serif;
    text-transform: uppercase;
    margin: 3% 0% 5% 0%;
}

.contact-list{
    text-align: left;
    float: left;
}

.contact-list ul{
    list-style: none;
    margin: 0px 400px 0px 0px;
}

.contact-list ul li a{
    font-weight: medium;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    margin: 0%;
}

.name{
    text-align: right;
    float: right;
}

.name h1{
    font-family: 'Merienda', 'lato', sans-serif;
    font-size: xx-large;
}

/* Style for the Contact Title */
.contact-title {
    width: 100%; /* Ensures it spans the full width */
    text-align: center; /* Centers the heading */
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #333;
}

/* Adjustments for Smaller Screens */
@media (max-width: 768px) {
    .contact-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 1.2rem;
        margin-bottom: 2%;
    }
}


.contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Ensures wrapping on smaller screens */
    margin: 8% 10% 2% 10%;
}

.contact-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}


.contact-list ul li {
    margin-bottom: 5px;
}

.contact-list ul li a {
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    font-size: 1rem;
    text-decoration: none;
    color: #000;
}

.contact-icons ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0px 0px 0px 80px;
}

.contact-icons ul li {
    margin: 0px 5px;
}

.contact-icons img {
    width: 40px;
    height: 40px;
}

.contact-icons img:hover {
    filter: brightness(0.85); /* Darkens the icon on hover */
}

.name {
    text-align: right;
}

.name h1 {
    margin: 0;
    font-family: 'Merienda', 'Lato', sans-serif;
    font-size: 1.5rem;
    text-align: right;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .contact {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-title

    .contact-list {
        margin-bottom: 20px;
        margin: 20px;
    }

    .contact-icons ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 10px;
}

    .name {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .contact-icons ul {
        justify-content: center;
    }

    .contact-icons img {
        width: 24px;
        height: 24px;
    }

    .name h1 {
        font-size: 1.2rem;
    }
}


/* Adjust layout for screens smaller than 768px */
@media (max-width: 768px) {
    .contact {
        margin: 5% 5% 2% 5%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact h1 {
        font-size: 1.5em;
        margin: 2% 0;
    }

    .contact-list {
        float: none;
        margin: 0;
        text-align: center;
    }

    .contact-list ul {
        margin: 0;
        padding: 0;
    }

    .contact-list ul li {
        display: inline-block;
        margin: 0 10px;
    }

    .contact-list ul li a {
        font-size: 0.9em;
    }

    .contact-icons {
        float: none;
        margin: 10px 0;
        display: flex;
        justify-content: center;
    }

    .contact-icons img {
        width: 24px;
        height: 24px;
        margin: 0px 5px;
    }

    .name {
        float: none;
        text-align: center;
        margin: 10px 0;
    }

    .name h1 {
        font-size: 2.3em;
    }
}




/* Mobile styles */
.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    position: relative;
}

#menu-bar {
    font-size: 30px;
}

#menu-close {
    font-size: 30px;
    display: none;
}

.content {
    margin-top: 4px;
    text-align: center;
}

.welcome h2 {
    margin: 0px;
    font-family: 'Merriweather', serif;
    color: #333333;
}

/* Full-Screen Navbar using flex */
.nav-list.fullscreen {
    display: flex;
    flex-direction: column; /* Align items vertically */
    justify-content: center; /* Center the menu items vertically */
    align-items: center; /* Align items horizontally */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f1f1f1;
    z-index: 1000;
    padding-top: 50px; /* Add padding to move menu items down */
}

.nav-list li {
    margin: 20px 0;
    font-size: 24px;
}

.nav-list li a {
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-list li a:hover {
    color: #40E0D0;
}

/* Content hiding */
.content.hidden {
    display: none;
}

/* Toggle Navbar for mobile */
@media screen and (max-width: 768px) {
    .nav-list {
        display: none;  /* Initially hide the menu on mobile */
        width: 100%;
        text-align: center;
        flex-direction: column;
    }

    .nav-list.fullscreen {
        display: flex;  /* Show the menu as fullscreen on mobile */
    }

    .menu-icon {
        display: block;  /* Show the menu icon on mobile */
    }
    
    .menu-icon.active #menu-bar {
        display: none;  /* Hide hamburger icon */
    }

    .menu-icon.active #menu-close {
        display: block;  /* Show close (X) icon */
    }

    .about h1{
        font-weight: x-large;
        font-family: 'Merriweather', serif;
        text-transform: uppercase;
        margin: 3% 0% 5% 0%;
    }
    
    .about h2{
        font-weight: medium;
        font-family: 'Lato', sans-serif;
        text-transform: uppercase;
        margin: 2%;
    }
}







/* General Styles */
.portfolio {
    margin: 8% 8% 0% 10%;
    font-family: 'Merriweather', serif;
}

.portfolio h1 {
    text-transform: uppercase;
    font-size: 36px;
    margin-bottom: 6%;
    text-align: left;
}

.portfolio-content img {
    width: 573px;
    height: 320px;
    float: left;
    margin-right: 20px; /* Add spacing between the image and text */
    margin-bottom: 6%;
    border-radius: 20px;
}

.portfolio-content img:hover{
    transition: transform .5s; /* Animation */
    transform: scale(1.05);
}

.portfolio-content-1 {
    float: right;
    margin: 4% 0% 0% 1%;
    text-align: left;
    max-width: 50%; /* Ensure it stays proportional */
}

.portfolio-content-1 h3 {
    font-size: large;
}

.portfolio-content-1 p {
    font-size: small;
    margin-top: 2%;
    text-align: justify; /* Justify text for better readability */
}

.portfolio-content-1 button {
    width: 240px;
    height: 40px;
    margin-top: 2%;
    font-size: medium;
    text-transform: uppercase;
    border-radius: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    font-family: 'Lato', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.portfolio-content-1 button:hover{
    background-color: #40E0D0;
}

.portfolio-content-skill-img ul {
    padding: 0;
    text-align: left; /* Align skills to the left */
}

.portfolio-content-skill-img ul li {
    list-style: none;
    display: inline-block;
    margin: 6px 10px 6px 0px;
}

.portfolio-content-skill-img ul li img {
    width: 30px;
    height: 30px;
    margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    /* For tablets */
    .portfolio {
        margin: 5%; /* Adjust margins */
    }

    .portfolio-content img {
        width: 100%;
        height: auto; /* Maintain aspect ratio */
        float: none; /* Remove float */
        margin-bottom: 20px; /* Add spacing below image */
    }

    .portfolio-content-1 {
        float: none;
        margin: 0;
        text-align: center; /* Center align for smaller screens */
        max-width: 100%; /* Use full width */
    }

    .portfolio-content-1 h3 {
        font-size: 18px;
        text-align: left;
    }

    .portfolio-content-1 p {
        font-size: 14px;
        text-align: left;
    }

    .portfolio-content-skill-img ul {
        text-align: left;
    }

    .portfolio-content-skill-img ul li img {
        margin: 0%;
    }

    .portfolio-content-1 button {
        width: 100%;
        height: 45px;
        margin-bottom: 8%;
        font-size: small;
        text-transform: uppercase;
        border-radius: 10px;
        background-color: #333;
        color: #fff;
        border: none;
        font-family: 'Lato', sans-serif;
    }


    .about h1{
        font-weight: x-large;
        font-family: 'Merriweather', serif;
        text-transform: uppercase;
        margin: 3% 0% 5% 0%;
    }
    
    .about h2{
        font-weight: medium;
        font-family: 'Lato', sans-serif;
        text-transform: uppercase;
        margin: 2%;
    }

}

@media (max-width: 576px) {
    /* For mobile phones */
    .portfolio h1 {
        font-size: 28px;
    }

    .portfolio-content-1 h3 {
        font-size: 16px;
    }

    .portfolio-content-1 p {
        font-size: 12px;
    }

    .portfolio-content-1 button {
        width: 320px;
        height: 40px;
        margin-bottom: 8%;
        font-size: x-small;
         text-transform: uppercase;
        border-radius: 10px;
        background-color: #333;
        color: #fff;
        border: none;
        font-family: 'Lato', sans-serif;
    }

    .portfolio-content-skill-img ul li img {
        width: 25px;
        height: 25px;
    }

    .about h1{
        font-weight: x-large;
        font-family: 'Merriweather', serif;
        text-transform: uppercase;
        margin: 3% 0% 5% 0%;
    }
    
    .about h2{
        font-weight: medium;
        font-family: 'Lato', sans-serif;
        text-transform: uppercase;
        margin: 3%;
    }
}




    




/* Root Variables for Light and Dark Modes */
:root {
    --bg-color: #f9f9f9;
    --text-color: #333333;
    --hover-color: #40E0D0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Merriweather', serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

.toggle-container {
    position: fixed; 
    top: 120px;
    right: 0px;
    z-index: 1000;
}

.toggle-container img {
    width: 100px;
    height: 100px;
    cursor: pointer;
    transition: transform 0.2s;
}

.toggle-container img:hover {
    transform: scale(1.1);
}

#scroll-image {
    opacity: 1; /* Fully visible initially */
    transition: opacity 0.3s ease; /* Smooth transition for the opacity change */
}





/* Dark Mode Styles */
/* Light Mode */
body {
    background-color: #f9f9f9;
    color: #000;
    transition: all 0.3s ease-in-out;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #000000; /* Dark background */
    color: #ffffff; /* Light text */
}

body.dark-mode a {
    color: #40E0D0; /* Highlighted link color */
}

body.dark-mode button:hover {
    color: #111;
    background-color: #f9f9f9; /* Highlighted link color */
}

body.dark-mode a:hover {
    color: #f9f9f9; /* Highlighted link color */
}

body.dark-mode li a:hover {
    color: #40E0D0; /* Light text for headings, paragraphs, and lists */
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode p,
body.dark-mode ul,
body.dark-mode li,
body.dark-mode li a {
    color: #f9f9f9; /* Light text for headings, paragraphs, and lists */
}

body.dark-mode .navbar {
    background-color: #000; /* Dark navbar background */
}

body.dark-mode button {
    background-color: #40E0D0; /* Button background color */
    color: #000; /* Button text color */
}

/* Specific Section Adjustments */
body.dark-mode .skills, 
body.dark-mode .portfolio, 
body.dark-mode .about, 
body.dark-mode .contact {
    background-color: #000; /* Section background */
    border: 0px solid #000; /* Section borders */
    color: #ffffff; /* Section text */
}

body.dark-mode .skills ul li img,
body.dark-mode .portfolio-content-skill-img ul li img {
    filter: brightness(1.1); /* Make images more visible in dark mode */
}

body.dark-mode .toggle-container img:hover {
    transform: scale(1.2);
    filter: brightness(1.1); /* Slightly brighter hover effect */
}

.dialog-box {
    position: absolute;
    top: 80px; /* Adjust as needed */
    left: 10%;
    transform: translateX(-30%);
    background-color: rgba(224, 224, 224, 0.801); /* Semi-transparent background */
    color: #000000;
    padding: 0px;
    border-radius: 4px;
    font-family: 'lato', sans-serif;
    font-size: 10px;
    display: none; /* Hidden by default */
    z-index: 10;
    text-align: center;
}

.contact-page{
    margin: 8% 10% 2% 10%;
    font-family: 'Merriweather', serif;
}

.contact-header h1{
    font-size: 36px;
}

.contact-header h3{
    font-size: 24px;
    margin: 12px 0px 0px 6px;
}

.contact-header a{
    color: #333;
}

.contact-header a:hover {
    opacity: 0.8; /* Slightly darkens the link on hover */
}

.contact-header p{
    font-size: 16px;
    margin: 2px 0px 0px 6px;
}

.contact-header ul{
    list-style: none;
    display: inline-flex;
    margin: 30px 30px 30px 0px;
}

.main-icon{
    width: 80px;
    height: 80px;
    padding: 10px;
    border: 2px solid #333;
    border-radius: 20%;
}
