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

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FAFAFA; /* Light neutral base */
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    min-height: 100vh; /* Make body at least the full height of the viewport */
}

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

h3 {
    text-align: center;
    font-size: 2rem;
    margin-top: 2rem;
    font-family: 'Montserrat', sans-serif; /* More modern font */
    color: #1F2937; /* Deep charcoal for professional headings */
}

/* Send Email button */
.send-email {
    background-color: #374151; /* Cool Slate Gray */
    color: white;
    display: block;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white; /* Keep text color white for contrast */
    text-decoration: none;
    margin: 1.5rem auto;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    width: fit-content;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.send-email:hover {
    background-color: #60A5FA; /* Soft sky blue on hover */
    color: white; /* Keep text color white on hover */
}

/* Flexbox layout for the boxes */
.boxes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem;
}

.box {
    width: 5rem;
    height: 5rem;
    margin: 10px;
    border-radius: 10%; /* Rounded corners for boxes */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
}

/* Use the color palette for boxes */
.box-one { background-color: #93C5FD; /* Softer blue for box 1 */ }
.box-two { background-color: #FF6B81; /* Softer red for box 2 */ }
.box-three { background-color: #60A5FA; /* Soft sky blue for box 3 */ }

/* Footer styles */
footer {
    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;
    color: #6B7280;
}

.social-media {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between social media links */
}

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

.social-media a:hover {
    text-decoration: underline; /* Underline 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;
}

.navbar-menu li {
    margin: 0;
}

.navbar-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;
}

/* No background color for navbar items on hover */
.navbar-menu a:hover {
    color: #3B82F6; /* Vibrant blue on hover */
    background-color: transparent; /* Transparent background */
    border-radius: 5px;
}

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

.bar {
    height: 3px;
    width: 25px;
    background-color: #6B7280; /* Muted gray */
    margin: 4px;
    transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 40%; /* Full width */
        height: 100vh; /* Full height */
        color: #6B7280 !important;
        background-color: white;
        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;
    }


    .navbar-menu.active {
        display: flex;
        opacity: 1;
        transform: translateX(0);
        color: #374151 !important;
        
    
    }

    .navbar-menu li {

        margin: 10px 0;
        text-align: center;
    }

    .navbar-menu.active a {
        text-decoration: none;
        padding: 10px 15px;
        color: #374151 !important;
    }

    .navbar-menu a:hover {
        background-color: transparent;
        color: #3B82F6;
    }

    .navbar-menu.active a:hover {
        color: #3B82F6 !important;
    }
   

    .navbar-toggle {
        display: flex;
        
    }

   

    /* Resize boxes on smaller screens */
    .box {
        width: 6rem;
        height: 6rem;
    }

    
    footer {
        padding: 10px; /* Slightly reduce padding on smaller screens */
    }

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

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

    .social-media a {
        font-size: 1.1rem; /* Slightly smaller icon text */
    }
}


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

    .nav-menu {
        width: 100%;
    }

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

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

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

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

@media (max-width: 600px) {
    .box {
        width: 3.5rem;
        height: 3.5rem;
    }
}

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