/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css?family=Raleway:400,500,700');

/* Base styles for the layout */
html, body {
    height: 100%; /* Ensure the body fills the screen height */
    margin: 0;
    font-family: 'Raleway', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Body */
body {
    background-color: #FAFAFA; /* Light neutral base */
    color: #6B7280; /* Muted gray */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: auto; /* Ensure vertical scrolling works fine */
}

/* Header and Navigation */
header {
    background-color: #374151; /* Cool Slate Gray */
    z-index: 100;
    width: 100%; /* Ensure header takes up full width */
    position: relative;
    top: 0;
    left: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow-x: hidden; /* Prevent menu overflow horizontally */
}

.nav-menu li {
    display: inline;
}

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

.nav-menu a:hover {
    color: #60A5FA; /* Sky blue */
}

.signup a {
    background-color: #1F2937; /* Deep charcoal */
    padding: 8px 16px;
    border-radius: 4px;
    color: white;
}

.signup a:hover {
    background-color: #60A5FA; /* Sky blue hover */
}

/* Content */
.grid-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    flex-grow: 1; /* Takes up the remaining space to push the footer down */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.grid-item {
    margin: 10px 0;
}

h1, h2 {
    color: #3B82F6; /* Vibrant blue for headings */
}

.button {
    background-color: #FFDAB9; /* Peach */
    color: #333; /* Dark Text */
}

.swiper-slide img {
    width: 100%;
    height: 300px; /* Consistent height for all images */
    object-fit: cover;
}

/* Footer */
footer {
    margin-top: auto; /* Pushes footer to the bottom if content is smaller */
    text-align: center;
    padding: 20px;
    background-color: #374151; /* Slate gray */
    color: #6B7280; /* Light text for contrast */
    width: 100%; /* Full width for the footer */
}

/* Social Media Links */
.social-media {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

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

.social-media a:hover {
    text-decoration: underline;
    color: #3B82F6; /* Vibrant blue */
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    transition: font-size 0.3s ease; /* Smooth transition */
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 40%; /* Adjusted width for mobile */
        height: 100vh;
        background-color: white;
        z-index: 120;
        padding-top: 90px;
        opacity: 1;
        transform: translateX(-100%); /* Hidden by default */
        overflow-y: auto; /* Allow vertical scrolling within menu */
    }

    .nav-menu.active {
        transform: translateX(0); /* Slides into view */
        display: flex;
    }

    .nav-menu.active a:hover {
        color: #3B82F6; /* Vibrant blue */
    }

    .nav-menu a {
        color: #374151; /* Set to gray explicitly */
    }

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

    .nav-toggle {
        display: block;
        font-size: 1.5em; /* Default size */
        cursor: pointer;
    }

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

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

/* Swiper styles */
.swiper-container {
    width: 100%;
    height: 300px; /* Set a height for the swiper */
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    background: #fff;
}

.text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

@media (max-width: 480px) {
    .swiper-container {
        height: 200px; /* Adjust height for smaller screens */
    }

    .nav-menu {
        width: 100%; /* Full width for very small screens */
    }

    .grid-container {
        padding: 10px; /* Less padding for smaller screens */
    }

    .nav-menu a {
        padding: 10px 0; /* Increase tap targets */
    }

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

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