/* KourierPK.com Custom Styles */

/* Color Variables */
:root {
    --primary-color: #76c043;
    --secondary-color: #5a9034;
    --accent-color: #8bc653;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

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

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

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Header Styles */
.top-header {
    font-size: 0.9rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

/* Logo Styles */
.navbar-brand-logo {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(1.1);
}

.navbar-brand-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.footer-logo {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: brightness(1.1);
}



.login-logo {
    height: 80px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    margin-bottom: 20px;
}

/* Logo responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand-logo {
        height: 35px;
        max-width: 150px;
    }

    .footer-logo {
        height: 45px;
        max-width: 180px;
    }

    .login-logo {
        height: 60px;
        max-width: 200px;
    }

    .navbar-brand span {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand-logo {
        height: 30px;
        max-width: 120px;
    }

    .footer-logo {
        height: 40px;
        max-width: 150px;
    }

    .login-logo {
        height: 50px;
        max-width: 150px;
    }

    .navbar-brand span {
        font-size: 1rem;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Hero Section (Services & About Pages) */
.hero-section .breadcrumb {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.hero-section .breadcrumb-item + .breadcrumb-item::before {
    content: none;
}

.hero-section .breadcrumb-item a:hover {
    opacity: 1 !important;
    text-decoration: underline !important;
}



.hero-section .display-2 {
    font-weight: 800;
    text-transform: uppercase;
}

.hero-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 1000 100" fill="white" opacity="0.1"><polygon points="0,0 1000,100 1000,0"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Services Grid */
.service-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

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

.service-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-description {
    color: #666;
    line-height: 1.6;
}

/* Why Choose Us Section */
.why-choose-section {
    background: var(--light-color);
    padding: 80px 0;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Quote Form */
.quote-section {
    background: var(--primary-color);
    color: white;
    padding: 80px 0;
}

.quote-form {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.quote-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 5px;
    padding: 0.75rem;
}

.quote-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(118, 192, 67, 0.25);
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #666;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

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

/* Tracking Section */
.tracking-section {
    padding: 80px 0;
    background: var(--light-color);
}

.tracking-form {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tracking-result {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.status-pending { background: #ffc107; color: #000; }
.status-picked_up { background: #17a2b8; color: white; }
.status-in_transit { background: #007bff; color: white; }
.status-out_for_delivery { background: #fd7e14; color: white; }
.status-delivered { background: #28a745; color: white; }
.status-returned { background: #dc3545; color: white; }

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

footer h5, footer h6 {
    color: var(--primary-color) !important;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: var(--primary-color);
    transition: background 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }

    .service-content {
        padding: 1rem !important;
    }

    .service-image img {
        max-height: 200px !important;
    }

    .service-actions .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }

    /* Hero Section Mobile Styles (Services & About Pages) */
    .hero-section {
        min-height: 35vh !important;
        background-attachment: scroll !important;
    }

    .hero-section .display-2 {
        font-size: 2.5rem !important;
        letter-spacing: 1px !important;
    }

    .hero-section .breadcrumb {
        font-size: 1rem;
    }


    
    .cta-bar {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* About Page Specific Styles */

/* Gradient Icons */
.gradient-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.gradient-icon-white {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Hover Cards */
.hover-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

/* Stats Cards */
.stats-card {
    padding: 1.5rem;
    border-radius: 15px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.stats-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

/* Counter Animation */
.counter {
    font-weight: bold;
    font-size: inherit;
}

/* Stars Rating */
.stars {
    font-size: 1.1rem;
}

.stars i {
    margin-right: 2px;
}

/* Avatar Styles */
.avatar {
    font-size: 1.2rem;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Homepage Specific Styles */

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-background{
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

/* Responsive Carousel Styles */
#heroCarousel {
    height: 100vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

#heroCarousel .carousel-inner {
    height: 100%;
}

#heroCarousel .carousel-item {
    height: 100%;
    position: relative;
}

#heroCarousel .bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #f0f0f0;
    transition: opacity 0.3s ease;
}

#heroCarousel .bg-image:not([src]),
#heroCarousel .bg-image[src=""] {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

#heroCarousel .bg-image[src]:not([src=""]) {
    opacity: 1;
}

#heroCarousel .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    padding: 0;
    text-align: left;
}

#heroCarousel .carousel-caption h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 700;
    line-height: 1.2;
}

#heroCarousel .carousel-caption p {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-weight: 400;
}

#heroCarousel .carousel-caption .btn {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

#heroCarousel .carousel-caption .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.min-vh-75 {
    min-height: 75vh;
}

/* Carousel Controls */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(118, 192, 67, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 3;
}

#heroCarousel .carousel-control-prev {
    left: 20px;
}

#heroCarousel .carousel-control-next {
    right: 20px;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(118, 192, 67, 1);
    transform: translateY(-50%) scale(1.1);
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    width: 24px;
    height: 24px;
    background-size: 24px 24px;
}

/* Carousel Indicators */
#heroCarousel .carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
    z-index: 3;
}

#heroCarousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

#heroCarousel .carousel-indicators [data-bs-target].active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

/* Lazy Loading and Performance Optimization */
.bg-image.lazy {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    transition: opacity 0.3s ease;
}

.bg-image.lazy::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-color);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Touch/Swipe Feedback */
#heroCarousel.swiping {
    cursor: grabbing;
}

#heroCarousel.swiping .carousel-item {
    transition: none;
}

/* Accessibility Improvements */
#heroCarousel .carousel-control-prev:focus,
#heroCarousel .carousel-control-next:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

#heroCarousel .carousel-indicators [data-bs-target]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    #heroCarousel .carousel-item {
        transition: none;
    }

    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        transition: none;
    }

    #heroCarousel .carousel-indicators [data-bs-target] {
        transition: none;
    }
}

.hero-main-icon {
    font-size: 12rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.hero-icon-container {
    position: relative;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
img{
    padding: 0;
    margin: 0;
    width: 100%;
    height: 800px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.floating-box {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    animation: floatAround 8s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-box.box-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-box.box-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-box.box-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.hero-tracking {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

/* Services Section */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background-position: center;
    background-size: cover;
    
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}


.service-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Why Best Section */
.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-number {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.stat-item {
    padding: 2rem 1rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Quote Section */
.quote-form {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-control-lg, .form-select-lg {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control-lg:focus, .form-select-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(118, 192, 67, 0.25);
}

/* Testimonials */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Newsletter Section */
.newsletter-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
    border-right: none;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes floatAround {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -10px) rotate(90deg); }
    50% { transform: translate(-5px, -20px) rotate(180deg); }
    75% { transform: translate(-10px, 5px) rotate(270deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.scroll-indicator {
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1 !important;
}

/* Responsive Carousel Styles */

/* Tablet and smaller screens */
@media (max-width: 992px) {
    #heroCarousel {
        height: 80vh;
        min-height: 450px;
    }

    #heroCarousel .carousel-caption h1 {
        font-size: 2.5rem;
    }

    #heroCarousel .carousel-caption p {
        font-size: 1.1rem;
    }

    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 50px;
        height: 50px;
    }

    #heroCarousel .carousel-control-prev {
        left: 15px;
    }

    #heroCarousel .carousel-control-next {
        right: 15px;
    }

    #heroCarousel .carousel-control-prev-icon,
    #heroCarousel .carousel-control-next-icon {
        width: 20px;
        height: 20px;
        background-size: 20px 20px;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    #heroCarousel {
        height: 70vh;
        min-height: 400px;
    }

    #heroCarousel .carousel-caption {
        background: rgba(0, 0, 0, 0.6);
        padding: 20px 0;
    }

    #heroCarousel .carousel-caption h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    #heroCarousel .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    #heroCarousel .carousel-caption .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 45px;
        height: 45px;
        background: rgba(118, 192, 67, 0.9);
    }

    #heroCarousel .carousel-control-prev {
        left: 10px;
    }

    #heroCarousel .carousel-control-next {
        right: 10px;
    }

    #heroCarousel .carousel-control-prev-icon,
    #heroCarousel .carousel-control-next-icon {
        width: 18px;
        height: 18px;
        background-size: 18px 18px;
    }

    #heroCarousel .carousel-indicators {
        bottom: 20px;
    }

    #heroCarousel .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

/* Small mobile screens */
@media (max-width: 576px) {
    #heroCarousel {
        height: 60vh;
        min-height: 350px;
    }

    #heroCarousel .carousel-caption h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    #heroCarousel .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    #heroCarousel .carousel-caption .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    #heroCarousel .carousel-control-prev {
        left: 8px;
    }

    #heroCarousel .carousel-control-next {
        right: 8px;
    }

    #heroCarousel .carousel-control-prev-icon,
    #heroCarousel .carousel-control-next-icon {
        width: 16px;
        height: 16px;
        background-size: 16px 16px;
    }

    #heroCarousel .carousel-indicators {
        bottom: 15px;
    }

    #heroCarousel .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    #heroCarousel {
        height: 50vh;
        min-height: 300px;
    }

    #heroCarousel .carousel-caption h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    #heroCarousel .carousel-caption p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #heroCarousel .carousel-caption .btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.75rem !important;
    }

    .lead {
        font-size: 1.125rem !important;
    }

    .stats-card {
        margin-bottom: 1rem;
    }

    .hover-card:hover {
        transform: none;
    }

    .hero-main-icon {
        font-size: 8rem;
    }

    .floating-box {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cta-buttons .btn {
        margin-bottom: 0.5rem;
    }
}
