/* Home Page Specific Styles */
.home-page {
    overflow-x: hidden;
}

/* Enhanced Header Carousel */
.header-carousel {
    position: relative;
    overflow: hidden;
}

.header-carousel .owl-carousel .owl-item {
    position: relative;
}

.header-carousel .carousel-item {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.header-carousel .carousel-item::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="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,133.3C672,139,768,181,864,181.3C960,181,1056,139,1152,128C1248,117,1344,139,1392,149.3L1440,160L1440,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 center;
    background-size: cover;
}

.carousel-text {
    position: relative;
    z-index: 2;
}

.carousel-text h1 {
    color: white;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 1s ease-out;
}

.carousel-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 1s ease-out 0.3s both;
}

.carousel-text .d-flex {
    animation: slideInLeft 1s ease-out 0.6s both;
}

.carousel-img {
    position: relative;
    z-index: 2;
    animation: slideInRight 1s ease-out 0.3s both;
}

.carousel-img img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.carousel-img img:hover {
    transform: scale(1.05);
}

/* Enhanced Buttons */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-enhanced:hover::before {
    left: 100%;
}

.btn-primary.btn-enhanced {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
}

.btn-secondary.btn-enhanced {
    background: linear-gradient(135deg, #6c757d, #495057);
    border: none;
}

/* Enhanced Stats/Facts Section */
.facts {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
}

.facts::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23007bff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.facts .shadow {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: white;
}

.facts .shadow:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.btn-lg-square {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007bff, #0056b3);
    transition: all 0.3s ease;
}

.btn-lg-square:hover {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.4);
}

.btn-lg-square i {
    font-size: 1.5rem;
}

/* Counter Animation Enhancement */
.counter-up {
    font-size: 3rem;
    font-weight: 700;
    color: #007bff;
    text-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* Enhanced About Section */
.img-border {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.img-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #007bff, transparent, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.img-border:hover::before {
    opacity: 0.1;
}

.img-border img {
    transition: transform 0.5s ease;
    border-radius: 20px;
}

.img-border:hover img {
    transform: scale(1.05);
}

.section-title {
    position: relative;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 25px;
    z-index: -1;
}

/* Enhanced Check Icons */
.fa-check-circle {
    background: linear-gradient(135deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(40, 167, 69, 0.3));
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 5%;
    animation-delay: 5s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 30%;
    left: 70%;
    animation-delay: 10s;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Modern Card Styles */
.modern-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.modern-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #007bff, #764ba2);
    color: white;
    font-size: 1.5rem;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .header-carousel .carousel-item {
        min-height: 400px;
        text-align: center;
    }
    
    .carousel-text h1 {
        font-size: 2rem;
    }
    
    .carousel-text p {
        font-size: 1rem;
    }
    
    .btn-enhanced {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .counter-up {
        font-size: 2rem;
    }
    
    .modern-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .carousel-text h1 {
        font-size: 1.5rem;
    }
    
    .facts .shadow {
        margin-bottom: 20px;
    }
    
    .btn-lg-square {
        width: 50px;
        height: 50px;
    }
    
    .btn-lg-square i {
        font-size: 1.2rem;
    }
}

/* Animation Keyframes */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .modern-card {
        background: #2d3748;
        color: white;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .section-title {
        color: white;
    }
    
    .facts {
        background: linear-gradient(135deg, #2d3748, #4a5568);
    }
}