:root {
    --main-color: #d1c9c9;
    --text-dark: #333;
    --text-light: #fff;
    --accent-color: #e74c3c;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--main-color);
    color: var(--text-dark);
    overflow-x: hidden; /* Prevent horizontal scrolling on mobile */
    font-size: 16px;    /* Base font size for better readability on mobile */
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4%;
    background-color: var(--main-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.sticky {
    position: fixed;
    top: 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-out;
    padding: 8px 4%;
}

.logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover:after {
    width: 100%;
}

/* Services Slide-Down Menu Styles */
.services-menu {
    position: relative;
}

.services-toggle {
    cursor: pointer;
}

.services-submenu {
    display: none;
    list-style: none;
    background-color: var(--main-color);
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.services-submenu.active {
    display: block;
    max-height: 500px; /* Increased to accommodate more menu items */
}

.services-submenu li {
    margin: 0;
}

.services-submenu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.services-submenu a:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--accent-color);
    padding: 8px;
    z-index: 1010;
}

/* CTA Button Style */
.cta-button {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
    white-space: nowrap;
    text-align: center;
}

.cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.4);
}

/* Hero Section with Image Slider */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    overflow: hidden;
    text-align: center;
}

/* Hero Image Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 10px;
}

.slide:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    color: var(--text-light);
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 1;
    padding: 20px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-subtitle {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.hero-tag {
    background-color: rgba(231, 76, 60, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.2rem;
    animation: slideInRight 0.8s ease-out;
    animation-fill-mode: both;
}

.hero-tag:nth-child(2) {
    animation-delay: 0.3s;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Services Section */
.services-section {
    padding: 60px 4%;
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background-color: var(--main-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%; /* Ensure consistent height */
    display: flex;
    flex-direction: column;
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin: 15px 15px 10px;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 15px 15px;
    color: #555;
    flex-grow: 1; /* Allow text to expand */
}

.read-more {
    display: inline-block;
    margin: 0 15px 15px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #c0392b;
}

/* Make service-link behave like read-more */
.service-link {
    cursor: pointer;
}

/* Our Clients Section */
.clients-section {
    padding: 60px 4% 40px;
    background-color: var(--main-color);
    overflow: hidden;
}

.clients-slider {
    width: 100%;
    overflow: hidden;
    margin-top: 30px;
}

.clients-track {
    display: flex;
    animation: slideRightToLeft 15s linear infinite;
}

.client-item {
    flex: 0 0 auto;
    margin: 0 15px;
    text-align: center;
}

.client-item img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

/* Sliding Animation */
@keyframes slideRightToLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.clients-track:hover {
    animation-play-state: paused;
}

/* About Section with Proprietor */
.about-section {
    padding: 60px 4%;
    background-color: var(--main-color);
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: bold;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 12px auto 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-direction: column;
}

.about-img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-content {
    width: 100%;
    text-align: center;
}

.about-content h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--text-dark);
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1rem;
}

.proprietor-info {
    display: flex;
    align-items: center;
    margin-top: 25px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: var(--shadow);
    flex-direction: column;
    text-align: center;
}

.proprietor-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid var(--accent-color);
}

.proprietor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proprietor-details h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.proprietor-details p {
    font-style: italic;
    color: #555;
    margin-bottom: 0;
}

/* Why Choose Us Section */
.benefits-section {
    padding: 60px 4%;
    background-color: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.benefit-item {
    background-color: var(--main-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    height: 100%;
    text-align: center;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item h3 {
    color: var(--accent-color);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.benefit-item p {
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 60px 4%;
    background-color: var(--main-color);
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.contact-info, .contact-form {
    width: 100%;
    text-align: center;
}

.contact-info h3, .contact-form h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-align: center;
}

.contact-info p {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: center;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea, .contact-form select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

/* Dropdown Select Field Styles */
.contact-form select {
    background-color: white;
    color: #555;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23555' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.contact-form select:focus {
    border-color: var(--accent-color);
    outline: none;
}

.contact-form select:hover {
    border-color: #bbb;
}

/* Style for the option items */
.contact-form select option {
    padding: 10px;
    background-color: white;
    color: #555;
}

.contact-form button {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background-color: #c0392b;
}

/* Footer */
.footer {
    background-color: #222;
    color: var(--text-light);
    padding: 50px 4% 25px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section p {
    margin-bottom: 8px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.brochure-section {
    margin-top: 15px;
}

.download-brochure-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.download-brochure-btn:hover {
    background-color: #c0392b;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 20px;
    background-color: #25d366;
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Active Service Card */
.service-card.active {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 2px solid var(--accent-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Form Success and Error Message Styles */
.form-success-message,
.form-error-message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    font-weight: 500;
    animation: fadeIn 0.5s ease;
}

.form-success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form Input Focus Styles */
.contact-form input,
.contact-form textarea {
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* Disabled Button Style */
.contact-form button[type="submit"]:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Service Modal Styles */
.service-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    position: relative;
    background-color: var(--main-color);
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 95%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.4s;
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--accent-color);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1;
}

.close-modal:hover {
    color: #c0392b;
}

.service-detail-content {
    margin-top: 20px;
}

.service-detail-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-detail-title {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.service-detail-section {
    margin-bottom: 25px;
}

.service-detail-section h3 {
    color: var(--accent-color);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.service-detail-section p {
    line-height: 1.6;
    margin-bottom: 12px;
}

.service-detail-section ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.service-detail-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Tablet & Large Mobile Styles */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .modal-content {
        width: 90%;
        padding: 25px;
    }
    
    .service-detail-image {
        height: 250px;
    }
}

/* Desktop Styles - Only apply basic adjustments as focus is on mobile */
@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-container {
        flex-direction: row;
    }
    
    .about-content, .about-img {
        width: 50%;
    }
    
    .about-content {
        text-align: left;
    }
    
    .contact-container {
        flex-direction: row;
    }
    
    .contact-info, .contact-form {
        width: 50%;
    }
    
    .modal-content {
        width: 80%;
        max-width: 800px;
    }
}

/* Mobile Menu */
@media (max-width: 767px) {
    body {
        padding-top: 70px; /* Add space for fixed header */
    }
    
    .header {
        padding: 10px 4%;
        position: fixed;
        top: 0;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 15px;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        background: var(--main-color);
        width: 100%;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-links li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .nav-links a {
        display: block;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .mobile-menu-btn.open {
        color: #fff;
        background: var(--accent-color);
        border-radius: 5px;
    }
    
    /* Services submenu styles for mobile */
    .services-submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        display: none;
        max-height: none;
        background-color: rgba(0,0,0,0.03);
    }
    
    .services-submenu.active {
        display: block;
    }
    
    .services-submenu a {
        padding-left: 40px;
    }
    
    /* Hero section needs top margin to account for fixed header */
    .hero {
        padding-top: 70px;
        height: calc(100vh - 70px);
    }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tag {
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-content h2 {
        font-size: 1.6rem;
    }
    
    .client-item img {
        max-height: 50px;
    }
}
