/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-color: #1a4d55;
    --secondary-color: #6ebb45;
    --accent-color: #e6c496;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;

    /* Spacing */
    --section-padding: 80px 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--primary-color);
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    display: block;
    color: var(--secondary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Utility */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.bg-light-custom {
    background-color: var(--light-bg);
}

/* Top Contact Bar */
.top-contact-bar {
    background: linear-gradient(135deg, var(--primary-color), #1a5d66);
    color: #ffffff;
    padding: 10px 0;
    font-size: 0.875rem;
}

.top-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.top-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-contact-item:hover {
    color: var(--secondary-color);
}

.top-contact-item i {
    font-size: 0.9rem;
    position: relative;
    top: 1px;
}

.top-social-links {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.top-social-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-social-icon:hover {
    background: var(--secondary-color);
    transform: rotate(15deg) scale(1.1);
}

@media (max-width: 768px) {
    .top-contact-bar {
        font-size: 0.75rem;
    }

    .top-contact-info {
        gap: 10px;
    }

    .top-contact-item span {
        display: none;
    }

    .top-social-links {
        justify-content: center;
        margin-top: 5px;
    }
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Navbar Logo */
.navbar-logo {
    height: 70px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1);
}

.navbar-logo:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.navbar-brand {
    padding: 0;
    margin-right: 3rem;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item {
    margin: 0 0.75rem;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color);
}

/* Services Dropdown */
.dropdown-services {
    position: relative;
}

.dropdown-services .nav-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown-services:hover .nav-link i {
    transform: rotate(180deg);
}

.services-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    min-width: 700px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: 1rem;
}

.dropdown-services:hover .services-dropdown {
    opacity: 1;
    visibility: visible;
    margin-top: 0.5rem;
}

.dropdown-service-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
}

.dropdown-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.dropdown-service-card:hover::before {
    transform: scaleX(1);
}

.dropdown-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(26, 77, 85, 0.12);
    border-color: var(--secondary-color);
}

.dropdown-service-card .icon-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.dropdown-service-card:hover .icon-box {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: scale(1.1) rotate(5deg);
}

.dropdown-service-card .icon-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.dropdown-service-card:hover .icon-box i {
    color: #ffffff;
}

.dropdown-service-card h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.dropdown-service-card:hover h6 {
    color: var(--secondary-color);
}

.dropdown-service-card p {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
}

/* Dropdown Arrow */
.services-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #ffffff;
    filter: drop-shadow(0 -2px 3px rgba(0, 0, 0, 0.1));
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.stat-item {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(10deg);
}

.stat-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(26, 77, 85, 0.85), rgba(26, 77, 85, 0.75)), url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
}

.hero-section h1,
.hero-section h5,
.hero-section p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-section h1 {
    color: #ffffff !important;
}

/* Service Cards */
.hover-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    cursor: pointer;
}

.hover-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.hover-card:hover::before {
    transform: scaleX(1);
}

.hover-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(26, 77, 85, 0.15) !important;
}

.hover-card .icon-box {
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
}

.hover-card:hover .icon-box {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
    transform: scale(1.1) rotate(5deg);
}

.hover-card:hover .icon-box i {
    color: #ffffff !important;
}

.hover-card .card-title {
    transition: color 0.3s ease;
}

.hover-card:hover .card-title {
    color: var(--secondary-color);
}

/* Testimonials Section */
.testimonial-card {
    background: #ffffff;
    padding: 4rem 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    transform: scale(1.01);
}

.quote-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: transform 0.6s ease;
}

.testimonial-card:hover .quote-icon {
    transform: rotate(15deg) scale(1.1);
}

.quote-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.testimonial-text {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.author-info h5 {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.rating {
    display: flex;
    gap: 3px;
}

.rating i {
    color: #ffc107;
    font-size: 1.1rem;
    margin: 0 2px;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    border: none;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-control-prev {
    left: -70px;
}

.carousel-control-next {
    right: -70px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--secondary-color);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(26, 77, 85, 0.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    margin-bottom: -3rem;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.5;
    border: none;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--secondary-color);
}

/* Testimonials Section Container */
#testimonialsCarousel {
    padding: 3rem 0 4rem;
}

#testimonialsCarousel .carousel-inner {
    overflow: hidden;
    padding: 1rem 0;
    cursor: grab;
}

#testimonialsCarousel .carousel-inner:active {
    cursor: grabbing;
}

@media (max-width: 991px) {
    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }
}

/* Footer Section */
.footer-section {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 4rem 0 0;
    margin-top: auto;
    clear: both;
}

.footer-section h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    display: block;
}

.footer-text {
    color: #b8c5d6;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: rotate(15deg) scale(1.15);
}

/* Footer Links */
.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #b8c5d6;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
    font-size: 0.95rem;
}

.footer-links a::before {
    content: '- ';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    left: -12px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 0;
}

/* Contact Info */
.contact-info {
    list-style: none;
    padding: 0;
}

.contact-link {
    color: #b8c5d6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.contact-info li {
    display: flex;
    align-items: center;
    color: #b8c5d6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 12px;
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #1a252f;
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #b8c5d6;
    font-size: 0.9rem;
}

/* Copyright */
.copyright {
    background-color: #1a252f;
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE MEDIA QUERIES - ALL SECTIONS
   ======================================== */

/* Tablet and Below (991px and down) */
@media (max-width: 991px) {

    /* Top Contact Bar */
    .top-contact-bar {
        font-size: 0.75rem;
        padding: 0.5rem 0;
    }

    .top-contact-item span {
        display: none;
    }

    .top-social-links {
        justify-content: center;
    }

    /* Navbar */
    .navbar-logo {
        height: 60px;
    }

    .navbar-brand {
        margin-right: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }

    /* Services Dropdown */
    .services-dropdown {
        position: static;
        transform: none;
        min-width: 100%;
        margin-top: 0;
        padding: 1rem;
    }

    .dropdown-service-card {
        min-height: auto;
    }

    /* Statistics */
    .stats-section {
        padding: 3rem 0;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Testimonials */
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

    /* Footer */
    .footer-section {
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 1rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* Mobile Landscape (768px and down) */
@media (max-width: 768px) {

    /* Top Contact Bar */
    .top-contact-info {
        gap: 10px;
    }

    /* Navbar */
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-logo {
        height: 55px;
    }

    /* Section Padding */
    .section-padding {
        padding: 3rem 0;
    }

    /* Service Cards */
    .hover-card {
        margin-bottom: 1.5rem;
    }

    /* Statistics */
    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* Testimonial Cards */
    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    /* Footer */
    .footer-section h5 {
        margin-top: 2rem;
    }
}

/* Mobile Portrait (576px and down) */
@media (max-width: 576px) {

    /* Top Contact Bar */
    .top-contact-bar {
        padding: 0.4rem 0;
    }

    .top-contact-item {
        font-size: 0.7rem;
    }

    .top-social-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    /* Navbar */
    .navbar-logo {
        height: 50px;
    }

    .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }

    /* Section Titles */
    h2 {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
    }

    /* Service Cards */
    .card-title {
        font-size: 1.1rem;
    }

    .card-text {
        font-size: 0.9rem;
    }

    .icon-box {
        width: 60px !important;
        height: 60px !important;
    }

    /* Statistics */
    .stat-number {
        font-size: 1.75rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem 1rem;
    }

    .quote-icon {
        width: 50px;
        height: 50px;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .carousel-indicators {
        margin-bottom: -2rem;
    }

    /* Footer */
    .footer-logo {
        max-width: 150px;
    }

    .footer-text {
        font-size: 0.85rem;
    }

    .footer-links a,
    .contact-info li {
        font-size: 0.85rem;
    }

    /* Scroll to Top Button */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.25rem;
    }
}

/* Extra Small Mobile (375px and down) */
@media (max-width: 375px) {

    /* Navbar */
    .navbar-logo {
        height: 45px;
    }

    /* Section Titles */
    h2 {
        font-size: 1.5rem;
    }

    /* Service Cards */
    .card-body {
        padding: 1.5rem !important;
    }

    /* Statistics */
    .stat-number {
        font-size: 1.5rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 1.25rem 0.75rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    /* Footer */
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Landscape Orientation Fix for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-particles {
        display: none;
    }
}