/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FAFAFA; /* Light neutral base */
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif; /* More modern font */
    color: #1F2937; /* Deep charcoal for professional headings */
}

p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #6B7280; /* Muted gray for clean, subtle text */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #374151; /* Cool Slate Gray */
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: white; /* Clean white for high contrast */
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: transparent;
    color: #60A5FA; /* Soft Sky Blue for hover effect */
    border-radius: 5px;

}

/* Hero Section */
.hero {
    background: linear-gradient(45deg, #3B82F6, #93C5FD); /* Vibrant blue gradient for dynamic feel */
    color: white;
    padding: 60px 20px;
    text-align: center;
    min-height: 400px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.hero-btn {
    background-color: #1F2937; /* Deep charcoal for contrast */
    color: white;
    padding: 15px 30px;
    font-size: 1.2em;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.hero-btn:hover {
    background-color: #60A5FA; /* Soft sky blue for hover */
}

/* About Me Section */
.about-me {
    padding: 50px;
    text-align: center;
    background-color: #fff;
}

.about-me h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #3B82F6; /* Vibrant blue to maintain consistency */
}

.about-me p {
    max-width: 600px;
    margin: 0 auto;
}

.cta-btn {
    margin-top: 30px;
    padding: 15px 25px;
    color: #fff;
    background-color: #1F2937; /* Deep charcoal for buttons */
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-btn:hover {
    background-color: #374151; /* Slate gray hover effect */
}

/* Project Showcase */
.tech-showcase {
    padding: 60px 20px;
    background-color: #F3F4F6; /* Light gray background for a clean layout */
}

.tech-showcase h2 {
    text-align: center;
    color: #3B82F6; /* Vibrant blue for section titles */
    margin-bottom: 40px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 10px;
    justify-content: center;
}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    height: 400px;
    text-align: center;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 20%;
    height: auto;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: block;
    margin: 0 auto;
}

.card-info {
    padding: 15px;
}

.card-info h3 {
    font-size: 1.5em;
    color: #3B82F6; /* Vibrant blue for card titles */
    margin-bottom: 10px;
}

.card-info p {
    font-size: 1em;
    color: #6B7280; /* Muted gray for the project description */
}

/* Footer */
footer {
    list-style: none;
    background-color: #374151; /* Cool Slate Gray for footer */
    color: white;
    text-align: center;
    padding: 15px;
    position: relative; /* Allows for better positioning */
    width: 100%; /* Make sure the footer spans the full width */
    margin-top: auto; /* Ensure the footer stays at the bottom */
}

footer p {
    margin: 0.5rem 0; /* Margin for paragraph spacing */
}


/* Social Media Links */
.social-media {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between social media links */
    margin-top: 10px; /* Added margin to separate from text */
}

.social-media a {
    color: #60A5FA; /* Soft sky blue */
    text-decoration: none;
    font-size: 1.2rem; /* Slightly larger font size for better visibility */
}

.social-media a:hover {
    text-decoration: underline; /* Underline on hover */
}

/* Navigation Toggle for Small Screens */
.nav-toggle {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
}


/* Media Queries */
@media (max-width: 768px) {

    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 40%; /* Full width */
        height: 100vh; /* Full height */
        background-color: #FAFAFA;
        color: #374151;
        z-index: 120; /* Ensure it is below the toggle */
        padding-top: 90px; /* Space for header */
        opacity: 1; /* Always visible when active */
        transform: translateX(-100%); /* Initially off-screen */
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .nav-menu a {
        color:#374151 ; /* Set to white explicitly */
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        display: block;
        margin: 10px 0;
        text-align: center;
    }

    .nav-toggle {
        display: block;
    }

    .nav-toggle:before {
        content: "\2630";
        /* Hamburger icon */
    }

    .nav-toggle.active:before {
        content: "\2715";
        /* Close icon */
    }


    

    .project-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 10px;
        justify-content: center;
        padding: 20px;
    }
    
    


    .hero h1 {
        font-size: 2.5em;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    footer {
        padding: 15px; /* Reduced padding for smaller screens */
    }

    .social-media a {
        font-size: 1rem; /* Adjust font size for mobile */
    }
       
footer {
    padding: 15px 10px;
}

footer p {
    font-size: 0.9rem; /* Slightly smaller text for mobile */
}

.social-media {
    gap: 8px; /* Reduce gap between icons for smaller screens */
}

.social-media a {
    font-size: 1rem; /* Adjust icon size for mobile */
}

}



@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        width: 40%;
    }

    .nav-toggle {
        font-size: 1.2em;
    }

    footer p {
        font-size: 0.8rem; /* Further decrease text size for very small screens */
    }

    .social-media a {
        font-size: 0.9rem; /* Icon size adjustment for extra small screens */
    }
}
