/* ========================================
   Root & General Styles
   ======================================== */

:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #00bfa5;
    --accent-color: #ff6b35;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

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

/* ========================================
   Navigation Bar
   ======================================== */

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Dropdown Menu Styles */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links .dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-links .dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 70vh;
    overflow-y: auto;
}

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

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu > li > a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.dropdown-menu > li > a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown-menu > li > a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Submenu Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu:hover > a {
    background: var(--light-bg);
    color: var(--primary-color);
}

.submenu-items {
    display: none;
    padding-left: 15px;
    background: #f8f9fa;
    border-left: 3px solid var(--primary-color);
    margin: 5px 0 5px 20px;
    border-radius: 4px;
}

.dropdown-submenu:hover .submenu-items {
    display: block;
}

.submenu-items li a {
    display: block;
    padding: 8px 15px;
    color: var(--text-light);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.submenu-items li a:hover {
    color: var(--primary-color);
    padding-left: 20px;
    background: white;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ========================================
   Hero Carousel Section
   ======================================== */

.hero-carousel {
    position: relative;
    width: 100%;
    background-color: var(--primary-color);
}

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

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.4) 0%, rgba(0, 51, 102, 0.5) 100%);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.carousel-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.carousel-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.animate-text {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: var(--white);
    transform: scale(1.3);
}

.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px 10px 0;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.primary-btn:hover {
    background-color: #00a693;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 191, 165, 0.4);
}

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

.secondary-btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Stats (Below Carousel) */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.stat {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    text-align: center;
    color: var(--white);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.stat:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat h3 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.stat p {
    font-size: 1rem;
    opacity: 0.95;
}

/* ========================================
   Services Section
   ======================================== */

.services {
    padding: 80px 20px;
    background-color: var(--background-light);
}

.services h2,
.why-us h2,
.process h2,
.testimonials h2,
.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-top-color: var(--secondary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========================================
   Process Section
   ======================================== */

.process {
    padding: 80px 20px;
    background-color: var(--white);
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    min-width: 250px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.step p {
    font-size: 0.9rem;
    opacity: 0.95;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 50px;
}

/* ========================================
   Why Us Section
   ======================================== */

.why-us {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f7f5 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========================================
   FAQ Section
   ======================================== */

.faq {
    padding: 80px 20px;
    background-color: var(--white);
}

.faq h2 {
    color: var(--primary-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.faq-item {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background-color: var(--background-light);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
    text-align: left;
}

.faq-question:hover {
    background-color: #e8f4ff;
    color: var(--primary-color);
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-question {
    background-color: var(--primary-color);
    color: var(--white);
}

.faq-item.active .faq-question i {
    color: var(--white);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--white);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   Testimonials Section
   ======================================== */

.testimonials {
    padding: 80px 20px;
    background-color: var(--background-light);
}

.testimonials-carousel-wrapper {
    overflow: hidden;
    margin-bottom: 2rem;
}

.testimonials-carousel {
    display: flex;
    gap: 2rem;
    position: relative;
    transition: transform 0.5s ease;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 280px;
}

.testimonial-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.stars {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-text {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    color: var(--text-light);
    font-weight: 600;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.carousel-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.carousel-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

/* ========================================
   Contact Section
   ======================================== */

.contact {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.contact h2 {
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    min-width: 30px;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.2);
}

.contact-form button {
    margin-top: 0.5rem;
}

/* ========================================
   Floating Buttons
   ======================================== */

.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 99;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.phone-btn {
    background-color: #0066cc;
}

.phone-btn:hover {
    background-color: #0052a3;
    transform: scale(1.1);
}

.whatsapp-btn {
    background-color: #25d366;
}

.whatsapp-btn:hover {
    background-color: #20a85a;
    transform: scale(1.1);
}

/* ========================================
   Google Maps Section
   ======================================== */

.map-section {
    padding: 60px 20px;
    background-color: var(--background-light);
}

.map-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 3rem 20px 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p {
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 2rem;
    color: #999;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* ========================================
   Responsive Design - Tablets
   ======================================== */

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: none;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin-top: 10px;
        max-height: none;
        background: #f8f9fa;
        border-radius: 8px;
        display: none;
    }

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

    .nav-links .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }

    .submenu-items {
        display: none;
        margin: 5px 0 5px 15px;
    }

    .dropdown-submenu.active .submenu-items {
        display: block;
    }

    .mobile-toggle {
        display: flex;
    }

    .carousel-container {
        height: 450px;
    }

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

    .carousel-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .carousel-arrow {
        font-size: 1.5rem;
        padding: 10px 15px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-dots {
        bottom: 20px;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .cta-btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 1rem;
    }

    .services h2,
    .why-us h2,
    .process h2,
    .testimonials h2,
    .contact h2 {
        font-size: 2rem;
    }

    .process-steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .floating-buttons {
        bottom: 20px;
        right: 15px;
    }

    .float-btn {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
}

/* ========================================
   Responsive Design - Mobile
   ======================================== */

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 50px 15px;
        min-height: 350px;
        background-size: contain;
        background-position: center top;
    }

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

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .stat h3 {
        font-size: 1.8rem;
    }

    .stat p {
        font-size: 0.8rem;
    }

    .services,
    .process,
    .why-us,
    .testimonials,
    .contact {
        padding: 50px 15px;
    }

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

    .service-card {
        padding: 1.5rem;
    }

    .services h2,
    .why-us h2,
    .process h2,
    .testimonials h2,
    .contact h2 {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .step {
        padding: 1.5rem;
        min-width: auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature i {
        font-size: 2rem;
    }

    .testimonials-carousel {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .floating-buttons {
        bottom: 15px;
        right: 10px;
        gap: 10px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .faq {
        padding: 50px 15px;
    }

    .faq h2 {
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 1.2rem;
        font-size: 0.95rem;
    }

    .faq-question i {
        font-size: 1rem;
        margin-left: 0.5rem;
    }

    .faq-answer p {
        padding: 1.2rem;
        font-size: 0.9rem;
    }
}
