/* General Styling */
:root {
    --primary-color: #e74c3c; /* Red from your logo */
    --secondary-color: #34495e; /* Dark grey/blue from your logo */
    --accent-color: #f39c12; /* Orange for highlights */
    --text-color: #333;
    --light-bg: #f8f8f8;
    --dark-bg: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* Header & Navigation */
header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 60px; /* Adjust as needed */
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links li a {
    color: var(--secondary-color);
    font-weight: bold;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.call-button {
    background: var(--primary-color);
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.call-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.call-button i {
    color: #fff;
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    overflow: hidden;
    margin-bottom: 50px;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-item.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 30px 40px;
    border-radius: 10px;
    animation: fadeInScale 1s forwards;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #eee;
}

/* Animations for hero content */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Sections General */
section {
    padding: 80px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Services Section */
.services {
    background-color: var(--light-bg);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-item img {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: contain; /* Ensure image fits without cropping */
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.service-item h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-item .btn {
    align-self: center;
}

/* About Us Section */
.about {
    background-color: #d343005e;
}

.about p {
    font-size: 1.0rem;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #040038;
    text-align: middle;
}

/* Contact Section */
.contact {
    background-color: var(--dark-bg);
    color: #fff;
}

.contact h2 {
    color: #fff;
}

.contact h2::after {
    background: #fff; /* White underline for dark background */
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info p i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.contact-info p a {
    color: #fff;
    transition: color 0.3s ease;
}

.contact-info p a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: var(--text-color);
}

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: #fff;
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Specific Service Page Styling */
.service-page-content {
    max-width: 900px;
    margin: 80px auto 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left;
}

.service-page-content h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.service-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.service-page-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 30px;
}

.service-page-content ul li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #555;
}

.service-page-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.service-page-content .btn {
    display: block;
    width: fit-content;
    margin: 30px auto 0 auto;
    text-align: center;
}

/* Back to Home button on service pages */
.back-to-home {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 30px;
    transition: background-color 0.3s ease;
}

.back-to-home:hover {
    background-color: var(--primary-color);
}


/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    nav {
        padding: 0 15px;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 80px; /* Adjust based on header height */
        height: calc(100vh - 80px); /* Full height minus header */
        background-color: var(--dark-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
        padding-top: 30px;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        opacity: 0;
    }

    .nav-links li a {
        color: #fff;
        font-size: 1.4rem;
        margin: 15px 0;
        padding: 0; /* Remove padding from .nav-links li a */
    }

    .nav-links li a::after {
        background: #fff;
    }

    .call-button {
        background: var(--primary-color);
        color: #fff;
        font-size: 1.4rem;
        padding: 12px 25px;
        margin-top: 20px;
    }

    .burger {
        display: flex;
    }

    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.toggle .line2 {
        opacity: 0;
    }

    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-info, .contact-form {
        min-width: unset;
        width: 100%;
    }

    .service-page-content {
        margin: 50px auto;
        padding: 15px;
    }

    .service-page-content h1 {
        font-size: 2rem;
    }

    .service-page-content p, .service-page-content ul li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    section {
        padding: 60px 15px;
    }

    section h2 {
        font-size: 2.2rem;
    }

    .service-item {
        padding: 20px;
    }

    .service-item h3 {
        font-size: 1.5rem;
    }

    .service-item p {
        font-size: 0.9rem;
    }

    .contact-form h3 {
        font-size: 1.8rem;
    }
}

/* Nav link animation (for mobile menu) */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}