/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    background-color: #FAFAFA; /* Light Neutral Base */
    font-family: 'Raleway', Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

h1 {
    text-align: center;
    font-size: 2.5rem; /* Increased font size */
    color: #3B82F6; /* Vibrant Blue for headings */
    margin-top: 2rem;
    text-transform: uppercase; /* Uppercase for emphasis */
}

p {
    color: #6B7280; /* Muted Gray for text */
    margin-bottom: 1rem;
}

/* Main Section Styles */
main {
    flex: 1;
    padding: 2rem; /* Added padding for better spacing */
}

.projects {
    display: flex;
    flex-wrap: wrap; /* Allows project items to wrap */
    justify-content: center; /* Centers project items */
    gap: 2rem; /* Adds space between project items */
    margin-top: 2rem; /* Adds space above the projects section */
}

.project-item {
    background-color: #FFDAB9; /* Peach */
    border: 1px solid #3B82F6; /* Vibrant Blue border */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow for depth */
    padding: 1.5rem; /* Padding inside project items */
    width: 300px; /* Fixed width for project items */
    transition: transform 0.2s ease; /* Smooth hover effect */
}

.project-item img {
    width: 20%; /* Full width of the container */
    height: auto; /* Fixed height for images */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border-radius: 8px; /* Rounded corners for images */
}

.project-item:hover {
    transform: translateY(-5px); /* Slight lift on hover */
}

.card-info {
    padding: 15px 0; /* Spacing within card info */
}

.project-item h2 {
    font-size: 1.5rem; /* Adjusted size for project titles */
    color: #3B82F6; /* Vibrant Blue for project titles */
    margin-bottom: 0.5rem; /* Spacing below title */
}

.project-item p {
    font-size: 1rem; /* Adjusted font size for descriptions */
    line-height: 1.5; /* Improved readability */
    margin-bottom: 1rem; /* Spacing below paragraphs */
}

.project-item a {
    display: inline-block; /* Ensures link is a block */
    text-align: center;
    font-size: 1rem; /* Size of the link */
    font-weight: bold;
    color: #1E90FF; /* Dodger Blue */
    text-decoration: none;
    padding: 0.5rem 1rem; /* Padding for the link */
    border-radius: 5px; /* Rounded corners */
    background-color: #3B82F6; /* Vibrant Blue background */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for hover */
}

.project-item a:hover {
    background-color: #60A5FA; /* Soft Sky Blue on hover */
    color: white; /* White text on hover */
}

/* Navigation Styles */
.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);
}

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

.navbar-menu {
    list-style: none;
    display: flex;
    margin: 0;
}

.navbar-menu li {
    margin: 0 1rem;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px;
    transition: background-color 0.3s ease;
}

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

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    
}

.bar {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px 0;
}



/* Footer */
footer {
    background-color: #374151; /* Cool Slate Gray for footer */
    color: white; /* Text color */
    text-align: center; /* Center text */
    padding: 2rem; /* Padding for the footer */
    margin-top: auto; /* Keep it at the bottom */
    position: relative; /* Better positioning */
}

.footer-content {
    max-width: 800px; /* Max width for content */
    margin: 0 auto; /* Center the content */
}

footer p {
    margin: 0.5rem 0; /* Margin for paragraph spacing */
    color: #6B7280; /* Muted gray for text */
}

.social-media {
    list-style: none; /* Remove bullet points */
    padding: 0; /* Remove padding */
    display: flex; /* Flexbox for alignment */
    justify-content: center; /* Center social media links */
    gap: 15px; /* Space between social media links */
    margin-top: 10px; /* Margin to separate from text */
}

.social-media a {
    color: #60A5FA; /* Soft sky blue */
    text-decoration: none; /* Remove underline */
    font-size: 1.2rem; /* Slightly larger font size */
    transition: color 0.3s; /* Smooth color transition */
}

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



/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-menu {
        display: none; /* Menu hidden initially */
        flex-direction: column;
        width: 40%;
        height: 100vh;
        background-color: white;
        color: #374151;
        position: absolute; /* Positioning the menu */
        top: 0px; /* Below the navbar */
        left: 0;
        padding-top: 90px;
        opacity: 1;
        z-index: 120; /* On top of other elements */
        transform: translateX(-100%); 
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .nav-menu a {
        color: #374151 !important; /* Set to white explicitly */
    }

    .navbar-menu.active {
        display: flex; /* Show menu when visible */
        opacity: 1;
        transform: translateX(0);
        background-color: white !important;
        color: #374151 !important;

    
    }
    .navbar-menu li {
        
        margin: 10px 0;
        text-align: center;
        color: #374151 !important;

    
    }
    .navbar-toggle {
        display: flex; /* Show hamburger icon */
    }
    .navbar-menu a{
        color: #374151 !important;

    }
    .navbar-menu.active a:hover {
        color: #60A5FA !important; /* Soft sky blue */
    }

 
    
/* Hamburger icon animation styles */
.navbar-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}


       
footer {
    padding: 15px 10px;
}

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

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

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


/* 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 */
}


}

@media (max-width: 480px) {
    img {
        object-fit: contain;
    }

    
    footer {
        padding: 8px; /* Further reduce padding on extra small screens */
    }

    .social-media a {
        font-size: 0.9rem; /* Reduce font size for icons */
    }

    footer p {
        font-size: 0.8rem; /* Smaller text for extra small screens */
    }
}
