/* css/styles.css */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6; /* Light grey background */
    color: #333; /* Default text color */
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background-color: #ffffff; /* White background for header */
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* For hamburger menu positioning */
}

nav .logo {
    text-decoration: none;
    color: #3498db; /* Blue for logo */
    font-size: 1.8em;
    font-weight: bold;
    z-index: 101; /* Ensure logo is above menu when open */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center; /* Align items vertically in nav */
}

nav ul li {
    margin-left: 25px; /* Spacing between nav items */
}

nav ul li a {
    text-decoration: none;
    color: #555; /* Dark grey for nav links */
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3498db; /* Blue on hover */
}

.signup-button, .login-button {
    background-color: #3498db; /* Blue for signup/login */
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent; /* Default transparent border */
    white-space: nowrap; /* Prevent buttons from wrapping */
}

.login-button {
    background-color: transparent;
    color: #3498db;
    border-color: #3498db;
    margin-left: 10px; /* Space between signup and login */
}

.signup-button:hover {
    background-color: #2980b9;
}

.login-button:hover {
    background-color: #3498db;
    color: white;
}


/* Hamburger Menu Icon */
.menu-toggle {
    display: none; /* Hidden by default on larger screens */
    flex-direction: column;
    cursor: pointer;
    z-index: 101; /* Ensure toggle is above menu when open */
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: #333;
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Responsive Navigation for Mobile */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Hide navigation links by default on mobile */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        background-color: #ffffff;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        padding: 20px 0;
        border-radius: 0 0 8px 8px;
        align-items: flex-start; /* Align menu items to the left */
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        transform: translateY(-10px); /* Slightly off-screen */
        opacity: 0;
        pointer-events: none; /* Disable interaction when hidden */
    }

    nav ul.active {
        display: flex; /* Show navigation links when active */
        transform: translateY(0); /* Slide into view */
        opacity: 1;
        pointer-events: all; /* Enable interaction */
    }

    nav ul li {
        margin: 10px 20px; /* Adjust spacing for mobile menu items */
        width: calc(100% - 40px); /* Full width minus padding */
    }

    nav ul li a {
        color: #333; /* Darker color for mobile menu links */
        display: block; /* Make links full width */
        padding: 10px 0;
        border-bottom: 1px solid #eee; /* Separator for menu items */
    }

    nav ul li:last-child a {
        border-bottom: none; /* No border for the last item */
    }

    .menu-toggle {
        display: flex; /* Show hamburger icon on mobile */
    }

    /* Animate Hamburger icon to 'X' */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


/* Footer Styles */
footer {
    background-color: #2c3e50; /* Dark blue/grey for footer */
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
    margin-bottom: 30px;
    padding: 0 20px; /* Add padding to content within footer */
}

.footer-section h3 {
    color: #e0f2f7; /* Lighter blue for headings */
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-section p, .footer-section a {
    color: #ccc; /* Light grey for text */
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #fff;
}

.footer-section .social-icon {
    display: inline-block;
    margin-right: 15px;
    color: #ccc;
    font-size: 1.1em;
}

.footer-section .social-icon:hover {
    color: #3498db; /* Blue on hover for social icons */
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #aaa;
    font-size: 0.9em;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        text-align: center;
    }
    .footer-section {
        margin-bottom: 20px;
    }
}