/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #181C14; /* Dark green-black background as dominant */
    color: #ECDFCC; /* Light cream text for readability */
    line-height: 1.6;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #101110; /* Charcoal gray navbar */
    color: #ECDFCC; /* Pale cream text */
    z-index: 1000;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
}

.navbar .logo a {
    color: #ECDFCC; /* Pale cream links */
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s ease;
}

.navbar .logo a:hover {
    color: #697565; /* Olive-gray highlight on hover */
}

.navbar .nav-links {
    list-style-type: none;
    display: flex;
}

.navbar .nav-links li {
    margin: 0 15px;
}

.navbar .nav-links a {
    color: #ECDFCC; /* Pale cream links */
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: #697565; /* Olive gray highlight on hover */
}
/* Progress Bar Container */
#progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 90px;
    width: 0%;
    height: 6px; /* Adjust the height of the progress bar */
    background-color: #ECDFCC; /* Light background for the bar */
    z-index: 999; /* Ensure it's above other content */
    border-radius: 10px;
}

/* Actual Progress Bar */
#progress-bar {
    width: 0;
    height: 100%;
    background-color: #000000f0; /* Aesthetic olive-gray color */
    transition: width 0.25s ease-out; /* Smooth transition */
}

/* Section Styles */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    transition: all 0.8s ease;
    opacity: 0;
    transform: translateY(20px);
}

/* Home Section */
#home {
    background-color: #181C14; /* Dominant dark green-black background */
    color: #ECDFCC;
    text-align: center;
}

.home-content h1 {
    font-size: 48px;
    animation: fadeInDown 2s ease forwards;
}

.home-content p {
    margin: 20px 0;
    font-size: 24px;
}

.highlight {
    color: #697565; /* Olive gray highlight */
}

.cta {
    padding: 12px 32px;
    background-color: #697565; /* Olive gray button */
    color: #ECDFCC;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    transform: perspective(100px) rotateX(0deg);
}

.cta:hover {
    background-color: #3C3D37; /* Charcoal gray hover effect */
    transform: perspective(100px) rotateX(15deg); /* 3D hover animation */
}

/* About Section */
#about {
    background-color: #3C3D37; /* Charcoal gray for the about section */
    color: #ECDFCC; /* Light cream text */
    text-align: left;
}

.about-content h2 {
    font-size: 36px;
    color: #ECDFCC;
    animation: fadeInLeft 1.5s ease forwards;
}

.about-content p {
    color: #ECDFCC;
}

/* Projects Section */
#projects {
    background-color: #181C14; /* Dominant dark green-black background */
    color: #ECDFCC;
    text-align: center;
}

.project-card h2 {
    font-size: 36px;
    color: #ECDFCC;
    animation: fadeInLeft 1.5s ease forwards;
}

.projects-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.project-content h2 {
    font-size: 36px;
    color: #ECDFCC;
    animation: fadeInLeft 1.5s ease forwards;
}

.project-card {
    background-color: #3C3D37; /* Charcoal gray for cards */
    color: #ECDFCC; /* Light cream text */
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    text-align: center;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    margin: 20px;
    transform: perspective(1000px) rotateY(0deg);
}

.project-card:hover {
    transform: perspective(1000px) rotateY(20deg); /* 3D hover effect */
    box-shadow: 0px 8px 20px rgba(236, 223, 204, 0.3); /* Pale cream shadow */
}

.project-card .project-card-image{
    width: 250px;
    height: 125px;
}

/* Contact Section */
#contact {
    background-color: #3C3D37; /* Charcoal gray for contact */
    color: #ECDFCC;
    text-align: center;
}

.contact-content h2 {
    font-size: 36px;
    color: #ECDFCC;
    animation: fadeInRight 1.5s ease forwards;
}

.contact-content p {
    color: #ECDFCC;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #181C14; /* Dark green-black background */
    color: #ECDFCC;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* About Section Image Container */
.image-container {
    justify-content: left;
    align-items: center;
    perspective: 1000px; /* Added perspective for 3D effect */
    margin-right: 30px; /* Add margin around the image */
    object-fit: contain;
    color:#64655f;
}

/* Styling the Image */
.animated-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px; /* Slightly rounded corners */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    transition: transform 0.2s ease; /* Smooth transition for hover effect */
}

/* Contact Section Styles */
.contact-content {
    text-align: center;
    padding: 50px 20px;
    background-color: #3C3D37; /* Use your color palette */
    color: #ECDFCC; /* Light color for text */
}

/* Social Media Icons Container */
.social-media {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between icons */
    margin-top: 20px;
}

/* Individual Social Media Icon Styles */
.social-icon {
    display: inline-block;
    width: 50px; /* Adjust size of icons */
    height: 50px;
    transition: transform 0.3s ease; /* Smooth hover transition */
}

.social-icon img {
    width: 100%; /* Make images responsive */
    height: auto;
}

/* Hover Effect for Icons */
.social-icon:hover {
    transform: scale(1.2); /* Scale up on hover */
}

/*****************************************************************************/
/*******************       Responsive Design       ***************************/
/*****************************************************************************/

@media (min-width: 768px) {
    .navbar .nav-links {
        display: flex;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px;
        flex-direction: column;
    }

    .navbar .logo {
        font-size: 22px;
    }

    .home-content h1 {
        font-size: 36px;
    }

    .projects-grid {
        display: block;
    }

    .project-card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 32px;
    }

    .projects-grid {
        size: 60%;
    }

    .project-card {
        width: 100%; /* Full width for mobile */
        margin: 20px 0;
    }
}

/* Responsive Adjustments for Image */
@media (max-width: 768px) {
    .image-container {
        margin-right: 50px;
    }
    .animated-image {

        width: 120%;
        height: 120%;
        object-fit: contain;
    }
}

@media (max-width: 670px) {
    .animated-image {
        width: 120%;
        height: 120%;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .section {
        flex-direction: column;
    }
    .animated-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    .social-icon {
        width: 50px;
        height: 50px;
    }
    .project-content h2 {
        font-size: large;
    }
}

@media (max-width: 576px) {
    .social-icon {
        width: 35px;
        height: 35px;
    }
}

/* Ensure contact section fits the screen */
.contact-content {
    padding: 20px;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 576px) {
    .contact-content h2 {
        font-size: 24px;
    }

    .contact-content p {
        font-size: 14px;
    }
}

@media only screen and (hover: none) {
    .hide-for-touch-devices {
        display: none;
    }
}