/* Base Resets */
html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0B253A; /* Deep Blue / Navy */
    --secondary-color: #00A859; /* Emerald Green */
    --secondary-hover: #008744;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #f5f7f9;
    --whatsapp-color: #25D366;
    --phone-color: #E63946; /* MaxEnterprise style sticky button */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding-bottom: 0px;
}

html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 700;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 13px;
    padding: 10px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.btn-support {
    background-color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 600;
}

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

/* Header */
.header {
    background: linear-gradient(90deg, rgba(11,37,58,0.95), rgba(15,52,83,0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-bottom: 3px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header.sticky {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

/* Submenu/Dropdown for Mobile only styles */
.submenu-toggle {
    display: none;
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
}

.logo-icon {
    font-size: 48px;
}

.logo-text h1 {
    font-size: 36px;
    line-height: 1;
    color: var(--white);
}

.logo-text h1 span {
    color: var(--secondary-color);
}

.logo-text p {
    color: #cccccc !important;
}

.logo-text h1 span {
    color: var(--secondary-color);
}

.logo-text p {
    font-size: 11px;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-nav .nav-links {
    display: flex;
    gap: 20px; /* Reduced gap for better fit */
    align-items: center;
}

.main-nav .nav-links li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 14px; /* Slightly reduced for fit */
    letter-spacing: 0.3px;
    transition: 0.3s;
    text-transform: uppercase;
    white-space: nowrap; /* Prevent vertical stacking of words */
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a:hover, 
.main-nav a.active {
    color: var(--secondary-color);
}

/* Dropdown Styles (desktop) */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-top: 3px solid var(--secondary-color);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    display: block !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: capitalize !important;
    color: var(--white) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease !important;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--secondary-color) !important;
    padding-left: 25px !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--white); /* White for contrast against dark header */
    transition: 0.3s;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background-color: var(--primary-color);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11,37,58,0.85) 0%, rgba(11,37,58,0.4) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--white);
    max-width: 600px;
}

.slide-content .subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.slide-content h2 {
    font-size: 54px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 168, 89, 0.2);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
}

.section-header h2 span {
    color: var(--secondary-color);
}

.section-header p {
    color: var(--text-light);
    margin-top: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 168, 89, 0.15);
    border-bottom-color: var(--secondary-color);
}

.service-img {
    height: 220px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
    text-align: center;
}

.service-content h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 15px;
}

.card-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.card-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    flex: 1;
}

.btn-call {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-call:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: var(--white);
    border: 2px solid var(--whatsapp-color);
}

.btn-whatsapp:hover {
    background-color: #1DA851;
    border-color: #1DA851;
}

/* Floating Action Buttons */
.floating-btn {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.phone-btn {
    left: 30px;
    background-color: var(--phone-color);
    animation: pulse-red 2s infinite;
}

.whatsapp-btn {
    right: 30px;
    background-color: var(--whatsapp-color);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* Form Status Styles */
.form-status {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
}

.status-success {
    background-color: rgba(0, 168, 89, 0.1);
    color: var(--secondary-color);
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid var(--secondary-color);
}

.status-error {
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--phone-color);
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid var(--phone-color);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px 0 10px;
}

.container-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-about {
    max-width: 400px;
}

.footer-logo {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer-logo .logo-text h1 {
    color: var(--white);
}

.footer-contact h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #aaaaaa;
}

/* Pricing Section Styles */
.pricing-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

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

.pricing-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 5px solid var(--secondary-color);
    transition: transform 0.3s;
}

.pricing-card:hover { transform: translateY(-10px); }

.pricing-card h3 { font-size: 24px; margin-bottom: 20px; }
.price-value { font-size: 36px; font-weight: 800; color: var(--primary-color); margin-bottom: 15px; }
.price-suffix { font-size: 16px; font-weight: 500; color: var(--text-light); }
.pricing-features { text-align: left; margin: 30px 0; }
.pricing-features li { margin-bottom: 12px; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.pricing-features i { color: var(--secondary-color); }

/* Testimonials Styles */
.testimonials-section { padding: 80px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; margin-top: 40px; }
.testimonial-card { background: var(--bg-light); padding: 35px; border-radius: 10px; position: relative; }
.testimonial-stars { color: #f1c40f; margin-bottom: 15px; }
.testimonial-text { font-style: italic; margin-bottom: 20px; font-size: 16px; }
.testimonial-author { font-weight: 700; color: var(--primary-color); }

/* Gallery (Before/After) Styles */
.gallery-section { padding: 80px 0; background-color: var(--primary-color); color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-top: 40px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.3s; }
.gallery-label { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.6); padding: 5px 12px; border-radius: 20px; font-size: 12px; }

/* FAQ Accordion Styles */
.faq-section { padding: 80px 0; background-color: var(--white); }
.faq-container { max-width: 800px; margin: 40px auto 0; }
.faq-item { border: 1px solid #eee; margin-bottom: 15px; border-radius: 6px; overflow: hidden; }
.faq-question { padding: 20px; background: #fff; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.faq-question i { transition: transform 0.3s; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.3s ease-out; background: #fafafa; }
.faq-item.active .faq-answer { padding: 20px; max-height: 200px; border-top: 1px solid #eee; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* Google Map Styles */
.map-container { margin-top: 50px; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,0.1); }
.map-container iframe { width: 100%; height: 450px; border: 0; }

@media (max-width: 1024px) {
    .container { padding: 0 30px; }
    .header-container { height: 80px; }
    .logo-icon { font-size: 36px; }
    .logo-text h1 { font-size: 28px; }
    .main-nav .nav-links { gap: 15px; }
    .slide-content h2 { font-size: 44px; }
}

@media (max-width: 991px) {
    .header-container { padding: 10px 20px; height: 70px; }

    .main-nav .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 270px;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 25px 40px;
        gap: 0;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
        overflow-y: auto;
    }

    .main-nav .nav-links.active { right: 0; }

    .main-nav .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .main-nav .nav-links li a {
        font-size: 15px;
        padding: 12px 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Mobile dropdown: static, toggled via JS .active class */
    .dropdown-menu {
        position: static !important;
        display: none;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        border-top: none !important;
        background: rgba(255,255,255,0.05) !important;
        width: 100% !important;
        margin: 5px 0 10px 10px !important;
        padding: 5px 0 !important;
    }

    .dropdown-menu.active { display: block !important; }

    .dropdown-menu li a {
        padding: 9px 15px !important;
        font-size: 13px !important;
        font-weight: 400 !important;
    }

    .mobile-menu-btn { display: block; order: 3; }
    .header .btn-quote { display: none; }

    .hero { height: auto; min-height: 400px; }

    .slide-content {
        max-width: 100%;
        padding: 80px 20px;
    }

    .slide-content h2 { font-size: 32px; margin-bottom: 15px; }
    .slide-content p { font-size: 15px; margin-bottom: 20px; }

    .services-grid, .pricing-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-header h2 { font-size: 26px; }

    .footer-container { flex-direction: column; text-align: center; }
    .footer-about { max-width: 100%; }
    .footer-contact p { justify-content: center; }

    /* Large bottom padding so floating buttons don't overlap footer text */
    .footer { padding-bottom: 120px; }
    .footer-bottom { font-size: 13px; }

    .floating-btn { width: 48px; height: 48px; font-size: 22px; bottom: 20px; }
    .phone-btn { left: 15px; }
    .whatsapp-btn { right: 15px; }

    .pricing-card { padding: 30px 20px; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .logo-text h1 { font-size: 22px; }
    .logo-icon { font-size: 28px; }
    .logo-text p { font-size: 9px; letter-spacing: 0.5px; }

    .slide-content { padding: 70px 15px; }
    .slide-content h2 { font-size: 24px; }
    .slide-content p { font-size: 14px; }

    .btn { padding: 10px 18px; font-size: 13px; }

    .floating-btn { width: 42px; height: 42px; font-size: 19px; bottom: 15px; }
    .phone-btn { left: 12px; }
    .whatsapp-btn { right: 12px; }

    .footer { padding-bottom: 130px; }
    .footer-bottom { font-size: 12px; padding: 15px 10px; }
    .section-header h2 { font-size: 22px; }
}

