/* General reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background-color: #000; /* Updated black color with hex value */
    color: #fff; /* Updated to use white hex for consistency */
    max-width: 1200px;
    margin: auto;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 10px;
    /* overflow-y: auto; */
}

.hidden {
    display: none;
}

/* Header styles */
header {
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background for header */
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: relative;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 3em;
    margin-bottom: 0.2em;
}

/* Navbar styles */
.navbar {
    margin-top: 2px; /* Adjust spacing from header */
    position: relative;
    
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center; /* Center align menu items */
    z-index: 2000;
    
}

.navbar ul li {
    margin: 0 2px;
}

.navbar ul li a {
    display: block;
    padding: 5px 10px;
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    transition: background-color 0.3s ease, color 0.4s ease;
    transition: color 0.3s ease-in-out;
}

.navbar ul li a:hover {
    background-color: #ff250378; /* Darker background color on hover */
}

.navbar ul li a.active {
    background-color: #ff25038e; /* Pre-colored background for active menu item */
}

/* Container section title */
.container h2 {
    padding: 5px;
    background-color: #ff250361;
    text-align: center;
}

/* About me section */
#about-me {
    background-size: cover;
    background-position: center;
    padding: 10px 0; /* Adjust padding to center content vertically */
    color: #fff;
    text-align: center;
}

.about-me-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-me-text {
    max-width: 60%;
}

.about-me-text h2 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.about-me-text p {
    font-size: 1.2em;
    line-height: 1.6;
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

section {
    padding: 10px 0;
    height: 80vh;
    position: relative;
    background: rgba(0, 0, 0, 0.81);
    z-index: 2000;
    overflow-y: auto;
}

section h2 {
    font-size: 2.5em;
    margin-bottom: 1em;
}

section article {
    margin-bottom: 1em;
}

/* Unordered lists */
ul {
    list-style: none;
}

ul li {
    margin-bottom: 5px;
}

/* Skills section */
.container-s {
    width: 100%;
    background-color: #ddd;
}

.skills {
    text-align: right;
    padding-top: 10px;
    padding-bottom: 10px;
    color: white;
}

.skills-list {
    list-style: none; /* Remove bullet points */
    display: flex;
    flex-wrap: wrap; /* Allows wrapping of items on smaller screens */
    justify-content: center;
    padding: 0;
    margin: 0;
}

.skills-list li {
    margin: 10px 20px;
    padding: 10px 20px;
    background-color: #ff25033d; /* You can change this color as needed */
    color: white;
    border-radius: 5px;
    font-size: 1.2em;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.skills-list li:hover {
    background-color: #333; /* Darken on hover */
    transform: scale(1.05); /* Slight scaling effect */
}

/* Footer styles */
footer {
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background for footer */
    color: #fff;
    text-align: end;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Media Queries for Responsive Design */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
    .container {
        padding: 6px;
    }

    header h1 {
        font-size: 2.5em;
    }

    .navbar ul li a {
        font-size: 1em;
        padding: 8px 16px;
    }

    .about-me-content {
        flex-direction: column;
        text-align: center;
    }

    .about-me-text {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .profile-image img {
        width: 200px;
        height: 200px;
        margin-bottom: 20px;
    }

    section h2 {
        font-size: 2em;
    }
}

/* Phones and smaller tablets */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 2em;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
        overflow: scroll;
    }

    .navbar ul li {
        margin: 2px 0;
    }

    .navbar ul li a {
        font-size: 0.9em;
        padding: 4px 12px;
    }

    .about-me-content {
        padding: 2px 0;
    }

    .about-me-text {
        font-size: 0.7em;
    }

    .profile-image img {
        width: 200px;
        height: 200px;
    }

    section h2 {
        font-size: 1.5em;
    }
}

/* Additional improvements */

/* Dark mode contrast adjustments for better readability */
body {
    background-color: #111; /* Darker background */
    color: #f0f0f0; /* Lighter text color */
}

/* Adjust text and link contrast */
a {
    color: #ff2a7f; /* Brighter pink for links */
    text-decoration: none;
}

a:hover {
    color: #ff5b9f; /* Slight color change on hover */
}



/* ********************************************** */
.clean-btn {
    z-index: 1;
    font-family: sans-serif;
    font-size: 15px;
    color: white;
    /* text-shadow: 0 0 10px #000000; */
    user-select: none;
    padding: 10 5px 15px 15px;
    position: relative;
    cursor: pointer;
    text-decoration: underline;
    background-color: #ff250361;
    width: 15%;
    text-align: center;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

.name {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    font-size: 2vw;
    text-shadow: 0 0 5px #000000;
    user-select: none;
    pointer-events: none;
}

@media all and (min-width: 640px) {
    .name {
        font-size: 45px
    }
}

/* ******************************** */
/* Mobile Navbar styles */
.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin: 0;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Show the hamburger menu on mobile */
@media (max-width: 768px) {
    .navbar ul {
        top: 10%;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: scroll;
        transition: max-height 0.3s ease-in-out;
    }

    .navbar ul.show {
        max-height: 400px; /* Set this according to your menu's height */
    }

    .navbar-toggle {
        display: flex;
    }

    /* .navbar ul li {
        margin: 10px 0;
    } */

    .navbar ul li a {
        font-size: 1.2em;
        padding: 10px 20px;
    }
    section {
        padding: 10px 0;
        height: 100%;
        position: relative;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2000;
    }
    .clean-btn {
        /* z-index: 1;
        font-family: sans-serif;
        font-size: 15px;
        color: white;
        /* text-shadow: 0 0 10px #000000; */
        /* user-select: none;
        padding: 10 5px 15px 15px;
        position: relative;
        cursor: pointer;
        text-decoration: underline;
        background-color: #ff250361; */ 
        width: 100%;
        text-align: center;
    }
}
