@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 30px; /* Adjusted padding */
    background: #2E67B2;
    display: flex;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 32px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.navbar {
    display: flex;
    align-items: center;
    margin-left: auto; /* Pushes the navbar to the right */
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0 8px; /* Reduced padding between links */
}

.navbar a {
    position: relative;
    font-size: 18px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    margin-left: 8px; /* Reduced margin between links */
}

.navbar a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.navbar a:hover::before {
    width: 100%;
}

.services-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 150px 20px 50px 20px;
}

.service-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.service-box {
    background: #f1f1f1;
    border-radius: 20px;
    margin: 20px;
    padding: 20px;
    width: 250px; /* Increased width */
    height: 250px; /* Added height */
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensure content is spaced evenly */
}

.service-box h2 {
    color: #2E67B2;
    margin-bottom: 10px;
}

.service-box .learn-more {
    background: none;
    border: 2px solid #2E67B2;
    border-radius: 10px;
    padding: 10px 20px;
    color: #2E67B2;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    margin-top: auto; /* Pushes the button to the bottom */
}

.service-box .learn-more:hover {
    background: #2E67B2;
    color: #fff;
}

.service-box:hover {
    transform: translateY(-10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 20px 20px; /* Adjusted padding for smaller screens */
        justify-content: space-between; /* Spread logo and menu toggle */
    }

    .navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0; /* Align to right */
        width: 100%;
        background: #2E67B2;
        padding: 10px 0;
    }

    .navbar a {
        font-size: 16px;
        margin: 10px 0;
        text-align: center;
    }

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

    .bar {
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 4px 0;
        transition: 0.3s;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .navbar.active {
        display: flex;
    }

    .services-section {
        padding: 100px 20px 50px 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 20px;
    }

    .logo {
        font-size: 24px;
    }

    .navbar a {
        font-size: 14px;
    }

    .service-box {
        width: 200px; /* Reduced width for smaller screens */
        height: auto; /* Auto height */
    }
}

.footer {
    background-color: #2E67B2;
    color: #fff;
    padding: 30px 0; /* Adjusted padding */
    text-align: center;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-logo {
    flex: 1;
    text-align: center;
}

.footer-logo .logo {
    font-size: 32px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.footer-logo .copyright {
    font-size: 14px;
    margin-top: 5px;
    color: #fff;
}

.footer-contact {
    flex: 1;
    text-align: right;
}

.footer-contact h3,
.footer-contact p {
    margin: 5px 0;
    color: #fff;
    text-align: left;
}

.social-links {
    flex: 1;
    text-align: left;
}

.social-links h3 {
    margin-bottom: 10px;
    color: #fff;
}

.social-links .social-icons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.social-links .social-icon {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    margin-right: 15px; /* Increased spacing between icons */
    transition: color 0.3s ease;
}

.social-links .social-icon:hover {
    color: #f1c40f; /* Change icon color on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-logo {
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-contact {
        text-align: center;
        margin-bottom: 20px;
    }

    .social-links {
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 20px 10px;
    }

    .footer-logo .logo {
        font-size: 28px;
    }

    .social-links .social-icon {
        font-size: 18px;
        margin-right: 10px;
    }
}
