/* General styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
}

header {
    background-color: white;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Basic styling */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: 80px;
    background-color: #fff;
}

.logo {
    color: #333;
    font-size: 36px;
    font-weight: bold;
    text-align: left;
}

nav {
    display: flex;
    align-items: center;
    justify-content: right;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    transition: all 0.3s ease;
}

/* Align navigation in middle vertically */
nav ul li {
    display: flex;
    align-items: center;
}

/* Apply the hover effect for nav links with glow from sides only */
nav ul li a:hover {
    transform: translateY(-5px);
    box-shadow: 10px 0 20px rgba(255, 193, 0, 0.7), -10px 0 20px rgba(255, 193, 0, 0.7); /* Glow only from sides */
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5)); /* Sharper shadow */
    animation: glowPopSide 1.5s infinite;
}

/* Login icon in the same set as navigation links */
.avatar-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Hamburger menu */
.hamburger {
    font-size: 30px;
    cursor: pointer;
    display: none;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        margin-right: 10px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 10px;
        background-color: #fff;
        width: auto;
        text-align: center;
    }

    nav ul.active {
        display: flex;
    }
}

@keyframes glowPopSide {
    0% {
        box-shadow: 10px 0 5px rgba(255, 193, 0, 0.5), -10px 0 5px rgba(255, 193, 0, 0.5);
        filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.1));
    }
    50% {
        box-shadow: 10px 0 20px rgba(255, 193, 0, 0.8), -20px 0 20px rgba(255, 193, 0, 0.8);
        filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.2));
    }
    100% {
        box-shadow: 10px 0 5px rgba(255, 193, 0, 0.5), -10px 0 5px rgba(255, 193, 0, 0.5);
        filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.1));
    }
}

.about-us {
    padding: 70px;
    text-align: center;
    background: linear-gradient(to top, #ff512f 0%, #ff7e00 50%, #f09819 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
}

.about-us h1, .about-us h2 {
    color: #fff; /* Ensures text is readable over the gradient */
    margin: 10px 0; /* Adjust spacing between headers */
}

.about-us h1 {
    font-size: 2.5rem;
    margin-top: 30px;
}

.about-us h2 {
    font-size: 2rem;
    margin-bottom: 20px; /* Add spacing between this heading and the paragraph */
}

.about-us p {
    font-size: 1.5rem;
    max-width: 1000px;
    line-height: 1.6;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8); /* Slightly opaque background for readability */
    padding: 20px;
    border-radius: 10px;
}



/* Services Container */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 0 auto;
    padding: 14px;
    width: 100%;
    box-sizing: border-box;
}

/* Service Box */
.service-box {
    flex: 0 1 calc(20% - 20px);
    min-width: 180px;
    max-width: 550px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 17px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out, background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #000; /* Black text color */
}

/* Outer Glow Animation with Gradient Colors */
.service-box:hover {
    box-shadow: 0 10px 20px rgba(255, 81, 47, 0.7),
                -10px 0 20px rgba(255, 126, 0, 0.7),
                10px 0 20px rgba(240, 152, 25, 0.7),
                0 10px 20px rgba(255, 193, 0, 0.5), /* Added new gradient color */
                -10px 0 20px rgba(255, 126, 0, 0.5),
                10px 0 20px rgba(255, 81, 47, 0.5);
    transform: scale(1.05);
}

/* On Click: Box Color Fills with Outer Glow Color, Text Turns White */
.service-box:active {
    background-color: rgba(255, 81, 47, 0.7);
    color: white;
    transform: scale(1);
}

.service-box h2 {
    margin-bottom: 5px;
    font-size: 1.8rem;
    text-align: center;
}

.service-box p {
    font-size: 1.3rem;
    line-height: 1.3;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .services-container {
        gap: 35px;
    }

    .service-box {
        flex: 0 1 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .services-container {
        gap: 20px;
    }

    .service-box {
        flex: 0 1 calc(100% - 20px);
        max-width: 400px;
    }
}

/* Contact Section */
.contact-section {
    background-color: #ffffff;
    padding: 50px;
    text-align: center;
}

.contact-title {
    font-size: 3rem;
    margin-bottom: 30px;
}

/* Consistent glow animations for contact buttons if implemented */
.contact-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.contact-button {
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: outerGlow 1.5s infinite alternate;
}

@keyframes outerGlow {
    0% {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: 0 0 20px rgba(4, 56, 162, 0.6);
    }
}

.contact-button:hover {
    box-shadow: 0 0 20px rgba(4, 56, 162, 0.6);
}

.contact-button:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: #2596be;
    border-radius: 5px;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.contact-button:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.contact-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.contact-caption {
    font-size: 1.1rem;
    color: #2596be;
}

/* Button size consistency */
.contact-button {
    min-width: 150px;
    padding: 20px;
}

/* Footer  */

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 14px;
}

footer a {
    color: #ffc100;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffdb70;
    text-decoration: underline;
}
