:root {
    --primary-color: #ffffff; /*#222*/
    --accent-color: #3d4572; /*#FFD700*/
    --text-color: #333;
    --light-text-color: #5a5dc0;/*#fff*/
    --background-color: #ffffff;
    --light-gray-background: #f9f9f9;
}

/* Basic Reset and Mobile-First Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px; /* Adjust this value based on your header's height */
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3 {
    color: var(--light-text-color);
    margin-bottom: 20px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

section {
    padding: 60px 0;
}

/* Header & Navigation */
.main-header {
    background-color: var(--primary-color);
    padding: 0rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 75px;
    width: auto;
}

.nav-links {
    display: none; /* Hidden on mobile */
    list-style: none;
    align-items: center;
}

.nav-links img {
    height: 60px;
}

.nav-links a {
    color: var(--light-text-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

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

.hamburger-menu {
    display: block; /* Shown on mobile */
    cursor: pointer;
    font-size: 2rem;
    color: var(--light-text-color);
}

/* Mobile Nav (Drawer) */
.mobile-nav {
    display: none;
    position: fixed;
    top: 75px;
    right: 0;
    width: 250px;
    height: 100%;
    background-color: var(--primary-color);
    padding-top: 0; /* Reset padding-top as top handles positioning */
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    z-index: 1001; /* Higher z-index to appear above the header */
}

.mobile-nav.active {
    display: block;
}

.mobile-nav.active img{
    height: 60px;
    padding-left: 25px;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav ul li a {
    display: block;
    color: var(--light-text-color);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    transition: background-color 0.3s ease;
}

.mobile-nav ul li a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.close-menu {
    position: absolute;
    top: 10px;
    right: 20px;
    padding: 0px 15px;
    border-radius: 35px;
    font-size: 2rem;
    color: var(--light-text-color);
    cursor: pointer;
    background: #ccced8;
}


/* Hero Section */
.hero {
    padding: 0;
    position: relative;
    height: 80vh;
    color: white;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.carousel-caption p {
    font-size: 1.5rem;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: var(--accent-color);
}


/* Desktop and Tablet Styles */
@media (min-width: 768px) {
    .hero-container {
        flex-direction: row; /* Row for desktop */
        align-items: stretch; /* Stretch to fill height */
    }

    .hero-left {
        width: 40%; /* 40% width on desktop */
    }

    .hero-right {
        width: 60%; /* 60% width on desktop */
    }
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #8396ff/*#ffd600e0*/;
}

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

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.service-item {
    background-color: var(--background-color);
    /* padding: 30px; */
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover */
}

.service-item:hover {
    transform: translateY(-5px); /* Slightly lift the item */
    box-shadow: 0 15px 30px rgba(0,0,0,0.2); /* Stronger, more spread out shadow for embossed effect */
}

.service-item > p {
    padding: 0px 10px 10px 10px;
}

.service-item img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures image covers the area without distortion */
    margin-bottom: 20px;
    border-radius: 5px 5px 0px 0px;
}

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

.contact-info, .contact-form {
    margin-bottom: 40px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Footer */
.main-footer {
    background-color: var(--light-text-color);
    color: var(--primary-color);
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens if necessary */
}

.footer-content p {
    margin-right: 10px; /* Add some space between text and logo */
    margin-bottom: 0; /* Remove bottom margin for inline display */
}

.footer-content img {
    height: 50px; /* Make the logo smaller */
    width: auto;
}

/* Desktop and Tablet Styles */
@media (min-width: 768px) {
    .hamburger-menu, .mobile-nav {
        display: none;
    }

    .nav-links {
        display: flex;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-container {
        display: flex;
        justify-content: space-between;
        gap: 40px;
    }

    .contact-info, .contact-form {
        flex: 1;
    }
}