body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f3f4;
    color: #161a1d;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Navigation Bar */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: #0b090a;
    padding: 20px 50px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

nav:hover {
    background-color: #212529; /* Darken background on hover */
}

nav .logo {
    font-size: 26px;
    font-weight: bold;
    color: #e5383b;
    transition: color 0.3s ease;
}

nav .logo:hover {
    color: #ffffff; /* Change logo color on hover */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
    color: #e5383b;
    transform: translateY(-3px); /* Subtle hover effect on links */
}

/* Home Section */
#home {
    min-height: 90vh;
    padding: 80px 20px;
    background: linear-gradient(to right, #f5f3f4, #ffffff);
    background-image: url('image1.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.home-content {
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.text h1 {
    color: #660708;
    font-size: 40px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInText 1.5s ease-out forwards;
}

.text p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0;
    animation: fadeInText 2s ease-out forwards;
}

.text .btn, .get-started, button {
    display: inline-block;
    background: #ba181b;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease, transform 0.3s ease;
}

.text .btn:hover, .get-started:hover, button:hover {
    background: #e5383b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Hover shadow effect */
}

.home-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.home-image img:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Section Titles */
#about h2, #services h2, #contact h2 {
    font-size: 34px;
    margin-bottom: 10px;
    color: #660708;
    animation: fadeInText 2s ease-out forwards;
}

/* Services */
.service-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.service-box {
    background: #ffffff;
    padding: 25px;
    width: 260px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeIn 1s ease-out;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.service-box h3 {
    color: #a4161a;
}

/* Forms */
input, textarea {
    width: 100%;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    background-color: #ffffff;
    color: #161a1d;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #a4161a;
    outline: none;
}

button {
    padding: 12px;
    background: #e5383b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #ba181b;
}

/* Footer */
footer {
    background: #212529;
    font-size: 14px;
    padding: 25px 10px;
    color: #ffffff;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 15px 30px;
    }

    .home-content {
        flex-direction: column;
        text-align: center;
    }

    section {
        padding: 40px 20px;
    }

    .service-container {
        flex-direction: column;
        align-items: center;
    }

    .service-box {
        margin-bottom: 20px;
    }
}
