/* Modern AI-Themed Hero Carousel Styles */
section.hero-carousel,
.hero-carousel {
    position: relative !important;
    height: 100vh !important;
    min-height: 800px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 30%, #16213e 70%, #0f3460 100%) !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}

.hero-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.hero-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(0, 255, 255, 0.03) 101px, rgba(0, 255, 255, 0.03) 102px),
        repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(147, 51, 234, 0.03) 101px, rgba(147, 51, 234, 0.03) 102px);
    z-index: 1;
    animation: gridMove 20s linear infinite;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 3;
}

.carousel-slide.prev {
    transform: translateX(-50px);
}

.carousel-slide.next {
    transform: translateX(50px);
}

/* Hero Content Layout */
.hero-carousel .hero-container,
.carousel-slide .hero-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 5rem !important;
    align-items: center !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 3rem !important;
    height: 100% !important;
    background: none !important;
}

.hero-carousel .hero-content,
.carousel-slide .hero-content {
    color: white !important;
    z-index: 4;
}

.hero-carousel .hero-title,
.carousel-slide .hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin-bottom: 2rem !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: -0.02em !important;
    color: white !important;
}

.hero-carousel .hero-description,
.carousel-slide .hero-description {
    font-size: 1.3rem !important;
    line-height: 1.7 !important;
    margin-bottom: 3rem !important;
    opacity: 0.95 !important;
    font-weight: 400 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    max-width: 500px !important;
    color: white !important;
}

.hero-carousel .hero-buttons,
.carousel-slide .hero-buttons {
    display: flex !important;
    gap: 1.5rem !important;
    flex-wrap: wrap !important;
}

.hero-carousel .hero-buttons .btn,
.carousel-slide .hero-buttons .btn {
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    transition: all 0.4s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.hero-carousel .hero-buttons .btn-primary,
.carousel-slide .hero-buttons .btn-primary {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.9), rgba(59, 130, 246, 0.9)) !important;
    color: #0f0f23 !important;
    border: 2px solid transparent !important;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3) !important;
}

.hero-carousel .hero-buttons .btn-primary:hover,
.carousel-slide .hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 1), rgba(59, 130, 246, 1)) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.4), 0 0 30px rgba(0, 255, 255, 0.3) !important;
}

.hero-carousel .hero-buttons .btn-secondary,
.carousel-slide .hero-buttons .btn-secondary {
    background: transparent !important;
    color: rgba(0, 255, 255, 0.9) !important;
    border: 2px solid rgba(0, 255, 255, 0.6) !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2) !important;
}

.hero-carousel .hero-buttons .btn-secondary:hover,
.carousel-slide .hero-buttons .btn-secondary:hover {
    background: rgba(0, 255, 255, 0.1) !important;
    transform: translateY(-3px) !important;
    border-color: rgba(0, 255, 255, 1) !important;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.4) !important;
    color: rgba(0, 255, 255, 1) !important;
}

/* Hero Visual Section */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    position: relative;
}

/* AI-themed icon visuals for each slide */
.hero-visual .main-icon {
    font-size: 12rem;
    color: rgba(0, 255, 255, 0.9);
    text-shadow:
        0 0 20px rgba(0, 255, 255, 0.8),
        0 0 40px rgba(0, 255, 255, 0.6),
        0 0 60px rgba(0, 255, 255, 0.4);
    animation: iconFloat 6s ease-in-out infinite, iconGlow 3s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.5));
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

/* Enhanced AI Brain Visual for main slide */
.ai-brain {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brain-core {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(147, 51, 234, 0.15));
    border: 3px solid rgba(0, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: neuralPulse 3s ease-in-out infinite;
    backdrop-filter: blur(15px);
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.3),
        0 0 60px rgba(147, 51, 234, 0.2),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    position: relative;
}

.brain-core i {
    font-size: 5rem;
    color: rgba(0, 255, 255, 0.9);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.neural-ring {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.neural-ring:nth-child(1) {
    width: 220px;
    height: 220px;
    border-image: linear-gradient(45deg, rgba(0, 255, 255, 0.6), rgba(147, 51, 234, 0.3), rgba(0, 255, 255, 0.6)) 1;
    animation-duration: 15s;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.neural-ring:nth-child(2) {
    width: 280px;
    height: 280px;
    border-image: linear-gradient(45deg, rgba(147, 51, 234, 0.6), rgba(0, 255, 255, 0.3), rgba(147, 51, 234, 0.6)) 1;
    animation-duration: 20s;
    animation-direction: reverse;
    box-shadow: 0 0 25px rgba(147, 51, 234, 0.2);
}

.neural-ring:nth-child(3) {
    width: 350px;
    height: 350px;
    border-image: linear-gradient(45deg, rgba(0, 255, 255, 0.4), rgba(147, 51, 234, 0.4), rgba(0, 255, 255, 0.4)) 1;
    animation-duration: 25s;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

/* AI Network Connections */
.neural-connection {
    position: absolute;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 255, 255, 0.8) 20%,
        rgba(147, 51, 234, 0.8) 80%,
        transparent 100%);
    height: 2px;
    animation: dataFlow 4s ease-in-out infinite;
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.neural-connection:nth-child(4) {
    top: 30%;
    left: 20%;
    width: 60%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.neural-connection:nth-child(5) {
    top: 70%;
    left: 20%;
    width: 60%;
    transform: rotate(-45deg);
    animation-delay: 1s;
}

.neural-connection:nth-child(6) {
    top: 50%;
    left: 10%;
    width: 80%;
    animation-delay: 2s;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 3rem;
    z-index: 5;
    pointer-events: none;
}

.carousel-btn {
    width: 60px;
    height: 60px;
    border: none;
    background: rgba(0, 255, 255, 0.1);
    color: rgba(0, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.carousel-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.4), 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 255, 255, 0.6);
}

.carousel-btn i {
    font-size: 1.4rem;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 5;
}

.indicator {
    width: 15px;
    height: 15px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator.active {
    background: white;
    transform: scale(1.3);
}

.indicator.active::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

/* Animations */
@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

@keyframes neuralPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 30px rgba(0, 255, 255, 0.3),
            0 0 60px rgba(147, 51, 234, 0.2),
            inset 0 0 30px rgba(0, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow:
            0 0 40px rgba(0, 255, 255, 0.5),
            0 0 80px rgba(147, 51, 234, 0.3),
            inset 0 0 40px rgba(0, 255, 255, 0.2);
    }
}

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

@keyframes iconGlow {
    0% {
        text-shadow:
            0 0 20px rgba(0, 255, 255, 0.8),
            0 0 40px rgba(0, 255, 255, 0.6),
            0 0 60px rgba(0, 255, 255, 0.4);
    }
    100% {
        text-shadow:
            0 0 30px rgba(0, 255, 255, 1),
            0 0 60px rgba(0, 255, 255, 0.8),
            0 0 90px rgba(0, 255, 255, 0.6);
    }
}

@keyframes dataFlow {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    20% {
        transform: scaleX(0.5);
        opacity: 1;
    }
    80% {
        transform: scaleX(1);
        opacity: 1;
    }
    100% {
        transform: scaleX(0);
        opacity: 0;
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-carousel,
    section.hero-carousel {
        min-height: 700px !important;
    }

    .hero-carousel .hero-container,
    .carousel-slide .hero-container {
        gap: 4rem !important;
        padding: 0 2.5rem !important;
    }

    .hero-carousel .hero-title,
    .carousel-slide .hero-title {
        font-size: clamp(2.8rem, 4.5vw, 4rem) !important;
    }

    .hero-visual {
        height: 450px;
    }

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

    .ai-brain {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 1024px) {
    .hero-carousel,
    section.hero-carousel {
        min-height: 650px !important;
    }

    .hero-carousel .hero-container,
    .carousel-slide .hero-container {
        gap: 3rem !important;
        padding: 0 2rem !important;
    }

    .hero-carousel .hero-title,
    .carousel-slide .hero-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem) !important;
    }

    .hero-carousel .hero-description,
    .carousel-slide .hero-description {
        font-size: 1.2rem !important;
    }

    .hero-visual {
        height: 400px;
    }

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

    .ai-brain {
        width: 300px;
        height: 300px;
    }

    .brain-core {
        width: 150px;
        height: 150px;
    }

    .brain-core i {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel,
    section.hero-carousel {
        height: auto !important;
        min-height: 100vh !important;
        padding: 80px 0 40px !important;
    }

    .hero-carousel .hero-container,
    .carousel-slide .hero-container {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        text-align: center !important;
        padding: 2rem 1.5rem !important;
    }

    .hero-carousel .hero-content,
    .carousel-slide .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        height: 280px;
        margin: 0 auto;
    }

    .hero-carousel .hero-title,
    .carousel-slide .hero-title {
        font-size: 2.3rem !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-carousel .hero-description,
    .carousel-slide .hero-description {
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-carousel .hero-buttons,
    .carousel-slide .hero-buttons {
        justify-content: center !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .hero-carousel .hero-buttons .btn,
    .carousel-slide .hero-buttons .btn {
        width: 100% !important;
        max-width: 300px !important;
        justify-content: center !important;
        padding: 0.9rem 2rem !important;
        font-size: 1rem !important;
    }

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

    .ai-brain {
        width: 220px;
        height: 220px;
    }

    .brain-core {
        width: 110px;
        height: 110px;
    }

    .brain-core i {
        font-size: 2.8rem;
    }

    .neural-ring:nth-child(1) {
        width: 160px;
        height: 160px;
    }

    .neural-ring:nth-child(2) {
        width: 190px;
        height: 190px;
    }

    .neural-ring:nth-child(3) {
        width: 220px;
        height: 220px;
    }

    .carousel-controls {
        padding: 0 1.5rem;
        top: 45%;
    }

    .carousel-btn {
        width: 48px;
        height: 48px;
    }

    .carousel-btn i {
        font-size: 1.2rem;
    }

    .carousel-indicators {
        bottom: 2rem;
        gap: 0.8rem;
    }

    .indicator {
        width: 12px;
        height: 12px;
    }

    .hero-visual::before {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 640px) {
    .hero-carousel,
    section.hero-carousel {
        min-height: 100vh !important;
        padding: 70px 0 30px !important;
    }

    .hero-carousel .hero-container,
    .carousel-slide .hero-container {
        gap: 2rem !important;
        padding: 1.5rem 1rem !important;
    }

    .hero-carousel .hero-title,
    .carousel-slide .hero-title {
        font-size: 2rem !important;
        margin-bottom: 1.2rem !important;
    }

    .hero-carousel .hero-description,
    .carousel-slide .hero-description {
        font-size: 1rem !important;
        margin-bottom: 1.8rem !important;
        line-height: 1.6 !important;
    }

    .hero-visual {
        height: 240px;
    }

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

    .ai-brain {
        width: 180px;
        height: 180px;
    }

    .brain-core {
        width: 90px;
        height: 90px;
    }

    .brain-core i {
        font-size: 2.2rem;
    }

    .carousel-controls {
        padding: 0 1rem;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
    }

    .carousel-btn i {
        font-size: 1.1rem;
    }

    .hero-visual::before {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero-carousel,
    section.hero-carousel {
        min-height: 100vh !important;
        padding: 60px 0 30px !important;
    }

    .hero-carousel .hero-container,
    .carousel-slide .hero-container {
        padding: 1.2rem 1rem !important;
        gap: 1.5rem !important;
    }

    .hero-carousel .hero-title,
    .carousel-slide .hero-title {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.2 !important;
    }

    .hero-carousel .hero-description,
    .carousel-slide .hero-description {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-carousel .hero-buttons .btn,
    .carousel-slide .hero-buttons .btn {
        padding: 0.8rem 1.8rem !important;
        font-size: 0.95rem !important;
        max-width: 260px !important;
    }

    .hero-visual {
        height: 200px;
    }

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

    .ai-brain {
        width: 160px;
        height: 160px;
    }

    .brain-core {
        width: 80px;
        height: 80px;
    }

    .brain-core i {
        font-size: 2rem;
    }

    .neural-ring:nth-child(1) {
        width: 120px;
        height: 120px;
    }

    .neural-ring:nth-child(2) {
        width: 140px;
        height: 140px;
    }

    .neural-ring:nth-child(3) {
        width: 160px;
        height: 160px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn i {
        font-size: 1rem;
    }

    .carousel-indicators {
        bottom: 1.5rem;
        gap: 0.6rem;
    }

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

    .hero-visual::before {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 375px) {
    .hero-carousel .hero-title,
    .carousel-slide .hero-title {
        font-size: 1.6rem !important;
    }

    .hero-carousel .hero-description,
    .carousel-slide .hero-description {
        font-size: 0.9rem !important;
    }

    .hero-carousel .hero-buttons .btn,
    .carousel-slide .hero-buttons .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
        max-width: 240px !important;
    }

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