/* ============================================================================
   Landing Page Styles
   Modern, clean design following the HVAC brand guidelines
   ============================================================================ */

/* CSS Variables for Dark Mode */
:root {
    --bg-primary: #2c6bd0;
    --bg-primary-rgb: 44, 107, 208;
    --bg-primaryDark: #1e4a8c;
    --bg-primaryDark-rgb: 30, 74, 140;
    --bg-primaryLight: #4a8ae8;
    --bg-primaryLight-rgb: 74, 138, 232;
    --bg-sidebar: #ffffff;
    --bg-sidebar-rgb: 255, 255, 255;
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fa;
    --bg-input: #ffffff;
    --bg-modal: #ffffff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #4a90d9;
    --bg-primary-rgb: 74, 144, 217;
    --bg-primaryDark: #3a7bc8;
    --bg-primaryDark-rgb: 58, 123, 200;
    --bg-primaryLight: #5ba0e9;
    --bg-primaryLight-rgb: 91, 160, 233;
    --bg-sidebar: #121417;
    --bg-sidebar-rgb: 18, 20, 23;
    --bg-body: #121417;
    --bg-card: #1e2227;
    --bg-card-hover: #252a30;
    --bg-input: #2a2f36;
    --bg-modal: #1e2227;
    --text-primary: #e4e6eb;
    --text-secondary: #b0b3b8;
    --text-muted: #8a8d91;
    --border-color: #3a3f47;
    --border-light: #2d3238;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

/* Base Responsive Utilities */
body {
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-toggler {
    border: 1px solid var(--bg-primary);
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(44, 107, 208, 0.2);
}

.navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(44, 107, 208, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    color: #505050;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--bg-primary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--bg-primary);
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

.navbar-collapse {
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f6f7fd 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    padding-right: 2rem;
}

.accent-bar {
    height: 4px;
    width: 80px;
    background-color: var(--bg-primary);
    border-radius: 2px;
}

.accent-bar-small {
    height: 4px;
    width: 20px;
    background-color: var(--bg-primaryLight);
    border-radius: 2px;
}

.hero-title {
    font-size: calc(3rem + 3.2vw);
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #505050;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-subtitle i {
    font-size: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Statistics */
.hero-stats {
    margin-top: 2.5rem;
}

.hero-stats .row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.hero-stats .col-md-4 {
    flex: 1;
    min-width: 0;
}

.hero-stats .col-md-4:not(:last-child) {
    border-right: 2px solid #e9ecef;
}

.stat-item-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0 0.5rem;
}

.stat-icon-left {
    font-size: 1.5rem;
    color: var(--bg-primary);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-items: center;
}

.stat-number-left {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-primary);
    line-height: 1;
    white-space: nowrap;
}

.stat-number-left::after {
    content: '+';
    margin-left: 2px;
}

.stat-label-left {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}


.hero-image {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-image img {
    filter: drop-shadow(0 20px 40px rgba(44, 107, 208, 0.2));
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 100%;
}

.hero-carousel .carousel-inner {
    border-radius: 18px;
}

.hero-carousel .carousel-item {
    height: 550px;
    transition: transform 0.6s ease-in-out;
}

.hero-carousel .carousel-item img {
    height: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    object-fit: cover;
    border-radius: 18px;
}

.hero-carousel .carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    text-align: left;
}

.hero-carousel .carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.hero-carousel .carousel-caption p {
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0.9;
    word-wrap: break-word;
}

.hero-carousel .carousel-indicators {
    margin-bottom: 1rem;
}

.hero-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
}

.hero-carousel .carousel-indicators button.active {
    background-color: var(--bg-primary);
    width: 30px;
    border-radius: 5px;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.hero-carousel .carousel-control-prev {
    left: 20px;
}

.hero-carousel .carousel-control-next {
    right: 20px;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100%;
    filter: invert(1);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #202124;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
}

.service-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--bg-primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-primaryDark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 1rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-description {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f6f7fd 0%, #ffffff 100%);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-primaryDark) 100%);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-wrapper i {
    font-size: 1.5rem;
    color: #ffffff;
}

.feature-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.6;
}

.feature-image {
    text-align: center;
    padding: 2rem;
}

.feature-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(44, 107, 208, 0.15));
}

.floating-icon {
    animation: float-smooth 3s ease-in-out infinite;
}

@keyframes float-smooth {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-primaryDark) 100%);
    color: #ffffff;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-light {
    background-color: #ffffff;
    color: var(--bg-primary);
    border: none;
}

.cta-section .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.contact-card {
    background: #f6f7fd;
    border-radius: 18px;
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-primaryDark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon i {
    font-size: 1.75rem;
    color: #ffffff;
}

.contact-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 1rem;
}

.contact-card p {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background-color: #f6f7fd;
    border-top: 1px solid #e9ecef;
}

.footer-section {
    height: 100%;
}

.footer-brand h4 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    font-style: italic;
}

.footer-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--bg-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer p {
    color: #6c757d;
    font-size: 0.9rem;
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--bg-primary);
    text-decoration: none;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background-color: var(--bg-primaryDark);
    transform: translateY(-2px);
    color: white;
}

/* Contact Items */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-item i {
    color: var(--bg-primary);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.contact-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.footer-bottom p {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-bottom-links .separator {
    color: #dee2e6;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Footer responsive adjustments */
    .footer-brand h4 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .footer-tagline {
        text-align: center;
    }
    
    .footer-description {
        text-align: center;
        font-size: 0.85rem;
    }
    
    .footer-title {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 0.75rem;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-item i {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-brand h4 {
        font-size: 1.35rem;
    }
    
    .footer-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .footer-title {
        font-size: 0.95rem;
    }
    
    .footer-links li {
        margin-bottom: 0.35rem;
    }
    
    .footer-link {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .contact-item strong {
        font-size: 0.85rem;
    }
    
    .contact-item p {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        padding-top: 1rem;
        margin-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .footer-bottom-links .separator {
        display: none;
    }
}

/* Button Styles */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn i {
    font-size: 1em;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

/* Prevent dark mode toggle icon from moving on hover */
.dark-mode-toggle:hover i {
    transform: none;
}

.btn-primary {
    background-color: var(--bg-primary);
    border-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--bg-primaryDark);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    background-color: var(--bg-primary);
    border-color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(44, 107, 208, 0.3);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-outline-primary {
    color: var(--bg-primary);
    border-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--bg-primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline-primary:hover {
    color: #ffffff;
    border-color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 107, 208, 0.3);
}

.btn-outline-primary:hover::before {
    width: 100%;
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

.btn.rounded-pill {
    border-radius: 50rem;
}
/* Responsive Design */
@media (max-width: 1199px) {
    .hero-title {
        font-size: calc(2.5rem + 2.5vw);
    }
    
    .hero-carousel .carousel-item {
        height: 500px;
    }
    
    .feature-image img {
        max-width: 350px;
    }
}

@media (max-width: 991px) {
    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: calc(2.5rem + 2vw);
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-carousel .carousel-item {
        height: 480px;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }
    
    .feature-image {
        margin-top: 2rem;
    }
    
    .feature-image img {
        max-width: 300px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
    }

    .hero-carousel .carousel-item {
        height: 450px;
    }

    .hero-carousel .carousel-caption {
        padding: 1.5rem 1rem 1rem;
    }

    .hero-carousel .carousel-caption h5 {
        font-size: 1.25rem;
    }

    .hero-carousel .carousel-caption p {
        font-size: 0.9rem;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-carousel .carousel-control-prev {
        left: 10px;
    }

    .hero-carousel .carousel-control-next {
        right: 10px;
    }

    .services-section,
    .features-section,
    .cta-section,
    .contact-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 100%;
    }

    .feature-item {
        gap: 1rem;
    }

    .feature-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .feature-icon-wrapper i {
        font-size: 1.25rem;
    }
    
    .feature-content h4 {
        font-size: 1.1rem;
    }
    
    .feature-content p {
        font-size: 0.9rem;
    }
    
    .feature-image img {
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Dark mode toggle responsive */
    .dark-mode-toggle {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
        margin: 0.5rem 0 !important;
    }
    
    /* Navbar buttons responsive */
    .navbar-nav .btn-sm {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .hero-section {
        padding: 70px 0 30px;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-subtitle i {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-buttons .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-carousel .carousel-item {
        height: 400px;
    }
    
    .hero-carousel .carousel-caption h5 {
        font-size: 1.1rem;
    }
    
    .hero-carousel .carousel-caption p {
        font-size: 0.85rem;
    }

    .services-section,
    .features-section,
    .cta-section,
    .contact-section,
    .testimonials-section,
    .faq-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.1rem;
        min-height: auto;
    }
    
    .service-description {
        font-size: 0.9rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
    }

    .contact-icon i {
        font-size: 1.5rem;
    }
    
    .contact-card h4 {
        font-size: 1.1rem;
    }
    
    .contact-card p {
        font-size: 0.9rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-description {
        font-size: 0.95rem;
    }
    
    .cta-buttons .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer p,
    .footer-link {
        font-size: 0.85rem;
    }
}


/* ============================================================================
   Testimonials Section
   ============================================================================ */
.testimonials-section {
    padding: 80px 0;
    background-color: #f6f7fd;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.testimonial-stars {
    color: #ffc107;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.testimonial-stars i {
    margin: 0 1px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #505050;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    font-size: 3rem;
    color: var(--bg-primary);
}

.testimonial-profile-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-primary);
}

.author-info {
    text-align: left;
}

.author-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #202124 !important;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.9rem;
    color: #6c757d !important;
    margin-bottom: 0;
}

.testimonial-indicators button {
    width: 30px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background-color: #d1d5db !important;
    border: none !important;
    margin: 0 4px !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
    padding: 0 !important;
    text-indent: 0 !important;
}

.testimonial-indicators button.active {
    background-color: var(--bg-primary) !important;
}

.testimonial-indicators button:hover:not(.active) {
    background-color: #9ca3af !important;
}

/* ============================================================================
   FAQ Section
   ============================================================================ */
.faq-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 13px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background-color: #ffffff;
    color: #202124;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bg-primary);
    color: #ffffff;
}

.accordion-button:not(.collapsed) i {
    color: #ffffff;
}

.accordion-button i {
    color: var(--bg-primary);
    font-size: 1.25rem;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232c6bd0'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #505050;
    background-color: #f8f9fa;
}

/* ============================================================================
   Responsive Adjustments for New Sections
   ============================================================================ */
@media (max-width: 991px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .faq-section {
        padding: 60px 0;
    }
    
    /* Stats remain in one line */
    .hero-stats .col-md-4 {
        padding: 0.5rem 0.35rem;
    }
    
    .stat-number-left {
        font-size: 1.25rem;
    }
    
    .stat-label-left {
        font-size: 0.65rem;
    }
    
    /* Navbar improvements */
    .navbar-nav .nav-link {
        padding: 0.5rem;
    }
}

/* Extra small devices (phones in portrait, less than 400px) */
@media (max-width: 399px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Keep stats in one line - very compact */
    .hero-stats .col-md-4 {
        padding: 0.5rem 0.1rem;
    }
    
    .stat-item-horizontal {
        padding: 0 0.1rem;
    }
    
    .stat-number-left {
        font-size: 0.9rem;
    }
    
    .stat-label-left {
        font-size: 0.5rem;
        line-height: 1;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-subtitle i {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .hero-carousel .carousel-item {
        height: 350px;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-icon {
        width: 55px;
        height: 55px;
    }
    
    .service-icon i {
        font-size: 1.35rem;
    }
    
    .service-title {
        font-size: 1rem;
    }
    
    .service-description {
        font-size: 0.85rem;
    }
    
    .feature-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .feature-icon-wrapper i {
        font-size: 1.1rem;
    }
    
    .feature-content h4 {
        font-size: 1rem;
    }
    
    .feature-content p {
        font-size: 0.85rem;
    }
    
    .cta-title {
        font-size: 1.35rem;
    }
    
    .cta-description {
        font-size: 0.9rem;
    }
    
    .contact-card {
        padding: 1.5rem 1.25rem;
    }
    
    .contact-icon {
        width: 55px;
        height: 55px;
    }
    
    .contact-icon i {
        font-size: 1.35rem;
    }
    
    .contact-card h4 {
        font-size: 1rem;
    }
    
    .contact-card p {
        font-size: 0.85rem;
    }
    
    .testimonial-card {
        padding: 1.5rem 1rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    .testimonial-profile-img {
        width: 45px;
        height: 45px;
    }
    
    .author-info h5 {
        font-size: 0.95rem;
    }
    
    .author-info p {
        font-size: 0.8rem;
    }
    
    .accordion-button {
        font-size: 0.85rem;
        padding: 0.75rem 0.875rem;
    }
    
    .accordion-button i {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .accordion-body {
        padding: 0.875rem;
        font-size: 0.85rem;
    }
    
    .footer p,
    .footer-link {
        font-size: 0.8rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.45rem 0.875rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }
}

/* Landscape orientation on mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        padding: 80px 0 40px;
        min-height: auto;
    }
    
    .hero-carousel .carousel-item {
        height: 350px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .services-section,
    .features-section,
    .cta-section,
    .contact-section,
    .testimonials-section,
    .faq-section {
        padding: 50px 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next,
    .hero-carousel .carousel-indicators,
    .cta-section,
    .footer {
        display: none;
    }
    
    .hero-section,
    .services-section,
    .features-section,
    .testimonials-section,
    .faq-section,
    .contact-section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
}

@media (max-width: 767px) {
    /* Keep stats in one line on mobile */
    .hero-stats .row {
        gap: 0;
    }
    
    .hero-stats .col-md-4 {
        padding: 0.5rem 0.25rem;
    }
    
    .hero-stats .col-md-4:not(:last-child) {
        border-right: 1px solid #e9ecef;
    }
    
    .stat-item-horizontal {
        gap: 0.25rem;
        padding: 0 0.25rem;
    }
    
    .stat-number-left {
        font-size: 1.1rem;
    }
    
    .stat-label-left {
        font-size: 0.6rem;
        line-height: 1.1;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .author-info {
        text-align: center;
    }

    .author-avatar {
        font-size: 2.5rem;
    }

    .accordion-button {
        font-size: 0.95rem;
        padding: 1rem 1.25rem;
    }

    .accordion-body {
        padding: 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Navbar mobile improvements */
    .navbar-collapse {
        background-color: #ffffff;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-item {
        margin: 0;
    }
    
    .navbar-nav .nav-item.ms-lg-3,
    .navbar-nav .nav-item.ms-2 {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
    
    .navbar-nav .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    /* Keep stats in one line - more compact */
    .hero-stats .row {
        gap: 0;
    }
    
    .hero-stats .col-md-4 {
        padding: 0.5rem 0.15rem;
    }
    
    .stat-item-horizontal {
        padding: 0 0.15rem;
    }
    
    .stat-number-left {
        font-size: 1rem;
    }
    
    .stat-label-left {
        font-size: 0.55rem;
        line-height: 1;
    }
    
    .testimonial-card {
        padding: 2rem 1.25rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-profile-img {
        width: 50px;
        height: 50px;
    }
    
    .author-avatar {
        font-size: 2rem;
    }
    
    .author-info h5 {
        font-size: 1rem;
    }
    
    .author-info p {
        font-size: 0.85rem;
    }
    
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.875rem 1rem;
    }
    
    .accordion-button i {
        font-size: 1.1rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* Button responsiveness */
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-sm {
        font-size: 0.8rem;
        padding: 0.35rem 0.875rem;
    }
}



/* ============================================================================
   Scroll to Top Button
   ============================================================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-primaryDark) 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 107, 208, 0.3);
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 107, 208, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top i {
    font-size: 1.5rem;
    line-height: 1;
}

/* Responsive adjustments for scroll button */
@media (max-width: 767px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top i {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
    
    .scroll-to-top i {
        font-size: 1.1rem;
    }
}

/* ============================================================================
   Dark Mode Support for Landing Page
   ============================================================================ */

/* Dark mode navbar styles */
[data-theme="dark"] .navbar.bg-white {
    background-color: var(--bg-sidebar) !important;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar-brand span {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .navbar-brand .text-primary {
    color: var(--bg-primary) !important;
}

[data-theme="dark"] .navbar-nav .nav-link {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .navbar-nav .nav-link:hover {
    color: var(--bg-primary) !important;
}

[data-theme="dark"] .navbar-toggler {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(228, 230, 235, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Dark mode toggle button styles */
[data-theme="dark"] .dark-mode-toggle {
    background-color: var(--bg-input) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 1000 !important;
}

[data-theme="dark"] .dark-mode-toggle:hover {
    background-color: var(--bg-card-hover) !important;
}

/* Light mode toggle button styles */
.dark-mode-toggle {
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 1000 !important;
    position: relative !important;
}

.dark-mode-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Dark mode body and sections */
[data-theme="dark"] body {
    background-color: var(--bg-body) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, var(--bg-body) 0%, var(--bg-card) 100%) !important;
    color: var(--text-primary) !important;
}

/* Hero section specific elements */
[data-theme="dark"] .hero-content {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .hero-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .hero-subtitle {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .hero-description {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .accent-bar {
    background-color: var(--bg-primary) !important;
}

[data-theme="dark"] .accent-bar-small {
    background-color: var(--bg-primaryLight) !important;
}

/* Hero statistics */
[data-theme="dark"] .hero-stats {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .hero-stats .col-md-4 {
    background-color: transparent !important;
}

[data-theme="dark"] .hero-stats .col-md-4:not(:last-child) {
    border-right-color: var(--border-color) !important;
}

[data-theme="dark"] .stat-item-horizontal {
    background-color: transparent !important;
    border: none !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .stat-content {
    background-color: transparent !important;
}

[data-theme="dark"] .stat-number-left {
    color: var(--bg-primary) !important;
}

[data-theme="dark"] .stat-label-left {
    color: var(--text-secondary) !important;
}

/* Hero carousel */
[data-theme="dark"] .hero-carousel {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .carousel-caption {
    background: linear-gradient(to top, rgba(18, 20, 23, 0.8) 0%, transparent 100%) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .carousel-caption h5 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .carousel-caption p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .carousel-indicators button {
    background-color: rgba(228, 230, 235, 0.5) !important;
}

[data-theme="dark"] .carousel-indicators button.active {
    background-color: var(--bg-primary) !important;
}

[data-theme="dark"] .hero-carousel .carousel-control-prev,
[data-theme="dark"] .hero-carousel .carousel-control-next {
    background-color: rgba(30, 34, 39, 0.9) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .hero-carousel .carousel-control-prev:hover,
[data-theme="dark"] .hero-carousel .carousel-control-next:hover {
    background-color: var(--bg-card) !important;
}

[data-theme="dark"] .services-section {
    background-color: var(--bg-body) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .features-section {
    background: linear-gradient(135deg, var(--bg-body) 0%, var(--bg-card) 100%) !important;
    color: var(--text-primary) !important;
}

/* Features section titles and subtitles */
[data-theme="dark"] .features-section .section-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .features-section .section-subtitle {
    color: var(--text-secondary) !important;
}

/* Feature list and items */
[data-theme="dark"] .feature-list {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .feature-item {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .feature-item h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .feature-item p {
    color: var(--text-secondary) !important;
}

/* Feature icon wrapper */
[data-theme="dark"] .feature-icon-wrapper {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-primaryDark) 100%) !important;
    border-color: var(--border-color) !important;
    color: white !important;
}

[data-theme="dark"] .feature-icon-wrapper i {
    color: white !important;
}

/* Feature content */
[data-theme="dark"] .feature-content {
    color: var(--text-primary) !important;
}

/* Feature image */
[data-theme="dark"] .feature-image {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .floating-icon {
    filter: brightness(0.9) !important;
}

[data-theme="dark"] .testimonials-section {
    background-color: var(--bg-body) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .faq-section {
    background-color: var(--bg-body) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .contact-section {
    background-color: var(--bg-body) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .footer {
    background-color: var(--bg-sidebar) !important;
    color: var(--text-primary) !important;
    border-top-color: var(--border-color) !important;
}

[data-theme="dark"] .footer-brand h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .footer-tagline {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .footer-description {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .footer-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .footer-title::after {
    background-color: var(--bg-primary) !important;
}

[data-theme="dark"] .footer-link {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .footer-link:hover {
    color: var(--bg-primary) !important;
}

[data-theme="dark"] .footer p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .social-link {
    background-color: var(--bg-primary) !important;
    color: white !important;
}

[data-theme="dark"] .social-link:hover {
    background-color: var(--bg-primaryLight) !important;
    color: white !important;
}

[data-theme="dark"] .contact-item i {
    color: var(--bg-primary) !important;
}

[data-theme="dark"] .contact-item strong {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .contact-item p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: var(--border-color) !important;
}

[data-theme="dark"] .footer-bottom p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .footer-bottom-links .separator {
    color: var(--border-color) !important;
}

/* Service cards */
[data-theme="dark"] .service-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .service-card:hover {
    background-color: var(--bg-card-hover) !important;
}

/* Feature cards */
[data-theme="dark"] .feature-item {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .feature-icon-wrapper {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-primaryDark) 100%) !important;
    border-color: var(--border-color) !important;
    color: white !important;
}

/* Testimonial cards */
[data-theme="dark"] .testimonial-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .testimonial-text {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .testimonial-author {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .author-info h5 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .author-info p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .author-avatar {
    color: var(--bg-primary) !important;
}

[data-theme="dark"] .testimonial-stars {
    color: #ffc107 !important;
}

/* Contact cards */
[data-theme="dark"] .contact-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .contact-card h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .contact-card p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .contact-icon {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-primaryDark) 100%) !important;
    color: white !important;
}

[data-theme="dark"] .contact-icon i {
    color: white !important;
}

/* FAQ accordion */
[data-theme="dark"] .accordion-item {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .accordion-button {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: var(--bg-card-hover) !important;
    color: var(--bg-primary) !important;
}

[data-theme="dark"] .accordion-body {
    background-color: var(--bg-card) !important;
    color: var(--text-secondary) !important;
}

/* CTA section */
[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-primaryDark) 100%) !important;
    color: white !important;
}

[data-theme="dark"] .cta-title {
    color: white !important;
}

[data-theme="dark"] .cta-description {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .cta-section .btn-light {
    background-color: white !important;
    color: var(--bg-primary) !important;
    border-color: white !important;
}

[data-theme="dark"] .cta-section .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: var(--bg-primaryDark) !important;
}

[data-theme="dark"] .cta-section .btn-outline-light {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="dark"] .cta-section .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: white !important;
    color: white !important;
}

/* Scroll to top button */
[data-theme="dark"] .scroll-to-top {
    background-color: var(--bg-primary) !important;
    color: white !important;
}

[data-theme="dark"] .scroll-to-top:hover {
    background-color: var(--bg-primaryDark) !important;
}

/* Additional responsive improvements */
@media (max-width: 480px) {
    /* Extra small mobile devices */
    .hero-section {
        padding: 70px 0 30px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Statistics responsive */
    .stat-number-left {
        font-size: 1.25rem;
    }
    
    .stat-label-left {
        font-size: 0.7rem;
    }
    
    /* Service cards */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .service-description {
        font-size: 0.85rem;
    }
    
    /* Feature items */
    .feature-item {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .feature-icon-wrapper i {
        font-size: 1.1rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem 1rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    /* Contact cards */
    .contact-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.25rem;
    }
    
    /* FAQ */
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .accordion-body {
        font-size: 0.85rem;
        padding: 1rem;
    }
    
    /* CTA section */
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-description {
        font-size: 0.9rem;
    }
    
    .cta-buttons .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Landscape mobile optimization */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        padding: 60px 0 30px;
    }
    
    .hero-carousel .carousel-item {
        height: 250px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets for mobile */
    .footer-link,
    .nav-link,
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-link {
        min-width: 44px;
        min-height: 44px;
    }
    
    .dark-mode-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-carousel .carousel-control-prev-icon,
    .hero-carousel .carousel-control-next-icon {
        background-size: 100%;
    }
}