/* Reset and Font Import */
body, h1, h2, p, ul, li, a, form, input, textarea, button {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    box-sizing: border-box;
}

body {
    background-color: #000000; /* Black background for the body */
    overflow-x: hidden;
}

/* Navbar Styling */
nav {
    background-color: #000000; /* Black background for navbar */
    color: #ffffff;
    width: 100vw; /* Ensure the navbar spans the full viewport width */
    box-sizing: border-box; /* Include padding in the element's width */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* Adjusted padding for better fit */
    position: sticky;
    top: 0;
    z-index: 1000; /* Make sure navbar stays on top */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Added shadow for better separation */
}

nav .logo img {
    max-width: 35px; /* Adjust the size of the logo */
    height: auto;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px; /* Space between menu items */
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px; /* Adjust font size */
    padding: 8px 12px; /* Adjust padding for better fit */
    transition: color 0.3s ease, background-color 0.3s ease;
}

nav ul li a:hover {
    border-radius: 5px;
    background-color: #a8a8a830;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 200px;
    z-index: 999;
    background-color: #00000030;
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
}
.sidebar li {
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
}

.hideONpc {
    display: none;
}

/* Responsive Adjustments for Navbar */
@media (max-width: 992px) {
    nav {
        padding: 10px; /* Less padding for smaller screens */
    }

    nav ul {
        flex-direction: column; /* Stack items vertically */
        gap: 10px; /* Adjust gap for smaller screens */
    }

   .hideONMobile {
        display: none;
    } 

    .hideONpc {
        display: block;
    }
}

@media (max-width: 768px) {
    nav ul li a {
        font-size: 14px; /* Smaller font size */
        padding: 8px; /* Less padding */
    }
    .hideONMobile {
        display: none;
    }
    .hideONpc {
        display: block;
    }
}

.profile-container {
    position: absolute; /* Position the container absolutely */
    right: 20px; /* Adjust the distance from the right edge */
    top: 20px; /* Adjust the distance from the top edge */
    text-align: center; /* Center-align the text below the photo */
}

.profile-photo {
    width: 120px; /* Size of the photo */
    height: 120px;
    border-radius: 50%; /* Makes the photo rounded */
    border: 2px solid #333; /* Optional: Add a border around the photo */
}

.stylish-name {
    font-family: 'Your Stylish Font', sans-serif; /* Replace with your chosen font */
    font-size: 24px; /* Font size for the name */
    color: white; /* Text color */
    margin-top: 10px; /* Space between the photo and the name */
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.animate-name {
    animation: fadeIn 2s ease-in-out;
}

/* Sections Backgrounds */
#home, #gallery, #about {
    background-color: #000000; /* Black background for sections */
}

#contact {
    background-color: #2c2c2c; /* Darker gray background for Contact section */
    color: #ffffff; /* Ensure text color is readable */
}

/* Home Section */
#home {
    background-image: url('src/background.png'); /* Replace with the correct image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #ffffff;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Optional overlay to make text more readable */
    z-index: 0;
}

.hero-title {
    font-size: 3rem;
    margin: 0;
    font-weight: 700; /* Added weight for emphasis */
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-top: 10px;
}

/* Preloader */
#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #000000; /* Black background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Indicator */
#scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* Parallax Scrolling Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Gallery */
#gallery {
    background-color: #000000; /* Black background for gallery */
    padding: 100px 20px;
    text-align: center;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.image-item {
    position: relative;
    display: inline-block;
    max-width: 300px; /* Adjust width as needed */
    margin-top: 20px;
}

.image-item img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* Rounded corners for images */
    transition: none; /* Remove transition effect */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    opacity: 0; /* Hidden by default */
    border-radius: 10px; /* Same rounded corners for the overlay */
    transition: opacity 0.3s ease;
}

.image-item:hover .overlay {
    opacity: 1;
}

/* About Section */
#about {
    background-color: #000000; /* Black background for About section */
    padding: 100px 20px;
    text-align: center;
}

.skills {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.skill-bar {
    background-color: #333333; /* Dark gray for skill bars */
    border-radius: 5px;
    overflow: hidden;
    height: 25px;
    position: relative;
}

.skill-bar span {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    z-index: 1;
}

.progress {
    height: 100%;
    background-color: #5ca4a9;
    width: 0;
    transition: width 4s ease-out; /* Longer transition for a smooth effect */
}

/* Contact Section */
#contact {
    background-color: #2c2c2c; /* Dark gray background for Contact section */
    color: #ffffff; /* Ensure text color is readable */
    padding: 100px 20px;
    text-align: center;
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form input, form textarea {
    background-color: #2c2c2c; /* Darker gray background for form elements */
    border: none;
    padding: 15px;
    border-radius: 5px;
    color: white;
}

form button {
    background-color: #5ca4a9;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 10px;
}

form button:hover {
    background-color: #489b95;
}

/* Footer */
footer {
    background-color: #000000; /* Black background for footer */
    padding: 20px;
    text-align: center;
}

/* Media Queries */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 992px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .image-item {
        max-width: 100%;
    }

    .skills {
        flex-direction: column;
    }

    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
    }

    form input, form textarea {
        padding: 10px;
    }

    form button {
        padding: 10px;
    }
}

/* Social Media Icons */
.social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-media a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333333;
    color: #ffffff;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    transition: background-color 0.3s, transform 0.3s;
}

.social-media a:hover {
    background-color: #5ca4a9;
    transform: scale(1.1); /* Slightly increase size on hover */
}