/* Wenstech Theme Variables */
:root {
    --wens-blue: #00f2fe;
    --wens-purple: #7928ca;
    --wens-pink: #ff2d75;
    --wens-dark: #0f0f1a;
    --wens-light: #ffffff;
    --wens-glass: rgba(255, 255, 255, 0.15);
}

/* Glassmorphism */
.glass-card {
    background: var(--wens-glass);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 150px;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.2);
    border-color: var(--wens-pink);
}

/* Carousel Section */
.carousel-section {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 0;
}

.carousel-section .carousel-item {
    height: 70vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
}

.carousel-section .carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: transform 0.5s ease;
}

.carousel-section .carousel-item.active .carousel-img {
    transform: scale(1.02);
}

.carousel-section .carousel-caption {
    z-index: 2;
    height: 100%;
    width: 100%;
    padding: 30px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-section .carousel-content {
    max-width: 600px;
}

.carousel-section .carousel-caption h3 {
    font-family: 'Arial', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 0 8px var(--wens-blue);
}

.carousel-section .carousel-caption p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.carousel-section .btn-wens {
    background: linear-gradient(45deg, var(--wens-blue), var(--wens-purple));
    border: none;
}

.carousel-section .btn-wens:hover {
    background: linear-gradient(45deg, var(--wens-purple), var(--wens-pink));
    box-shadow: 0 0 12px var(--wens-pink);
}

.carousel-section .carousel-control-prev,
.carousel-section .carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--wens-blue);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.carousel-section .carousel-control-prev:hover,
.carousel-section .carousel-control-next:hover {
    background: var(--wens-pink);
    opacity: 1;
}

.carousel-section .carousel-indicators {
    bottom: 10px;
}

.carousel-section .carousel-indicators button {
    width: 6px;
    height: 6px;
    background: var(--wens-light);
    border-radius: 50%;
    opacity: 0.6;
    margin: 0 4px;
    border: none;
}

.carousel-section .carousel-indicators .active {
    background: var(--wens-pink);
    opacity: 1;
}

/* Fact Section */
.fact-section {
    background: linear-gradient(180deg, var(--wens-dark), rgba(25, 25, 40, 0.9));
}

.fact-section .fact-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: visible !important;
}

.fact-section .fact-card h1 {
    font-family: 'Arial', sans-serif;
    font-size: 2.5rem;
    text-shadow: 0 0 6px var(--wens-blue);
    display: inline-flex;
    align-items: baseline;
}

.fact-section .fact-card h5 {
    font-size: 0.9rem;
    min-height: 3em;
    color: var(--wens-light);
    margin: 0;
}

/* About Section */
.about-section {
    background: var(--wens-dark);
}

.about-section .about-images {
    position: relative;
    margin-bottom: 20px;
    height: 300px;
}

.about-section .about-img-main,
.about-section .about-img-overlay {
    width: 70%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    position: absolute;
    transition: transform 0.5s ease;
}

.about-section .about-img-main {
    left: 0;
    top: 0;
    transform: translateZ(15px);
    z-index: 1;
}

.about-section .about-img-overlay {
    right: 0;
    top: 50px;
    transform: translateZ(30px);
    z-index: 2;
}

.about-section .about-images:hover .about-img-main {
    transform: translateZ(25px) rotateY(4deg);
}

.about-section .about-images:hover .about-img-overlay {
    transform: translateZ(40px) rotateY(-4deg);
}

.about-section h1 {
    font-family: 'Arial', sans-serif;
    font-size: 2rem;
    text-shadow: 0 0 6px var(--wens-blue);
}

.about-section p {
    color: var(--wens-light);
    font-size: 1rem;
}

/* Services Section */
.services-section {
    background: var(--wens-dark);
}

.services-section h1 {
    font-family: 'Arial', sans-serif;
    font-size: 2rem;
}

.services-section .services-card {
    overflow: hidden;
}

.services-section .service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.services-section .services-card:hover .service-img {
    transform: scale(1.08);
}

.services-section .services-content h4 {
    font-family: 'Arial', sans-serif;
    color: var(--wens-light);
    font-size: 1.25rem;
}

.services-section .services-content p {
    color: var(--wens-light);
    font-size: 0.9rem;
}

.services-section .btn-wens {
    background: linear-gradient(45deg, var(--wens-blue), var(--wens-purple));
}

.services-section .btn-wens:hover {
    background: linear-gradient(45deg, var(--wens-purple), var(--wens-pink));
    box-shadow: 0 0 12px var(--wens-pink);
}

/* Testimonial Section */
.testimonial-section {
    background: none;
}

.testimonial-section h1 {
    font-family: 'Arial', sans-serif;
    font-size: 2rem;
}

.testimonial-section .testimonial-card {
    border: none;
    flex: 0 0 calc(33.333% - 20px); /* 3 cards on large screens */
    max-width: calc(33.333% - 20px);
    margin: 0 10px;
    box-sizing: border-box;
}

.testimonial-section .testimonial-img img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid var(--wens-blue);
}

.testimonial-section .testimonial-card h4 {
    font-family: 'Arial', sans-serif;
    font-size: 1.1rem;
}

.testimonial-section .testimonial-card p {
    color: var(--wens-light);
    font-size: 0.9rem;
}

.custom-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.carousel-track {
    display: flex;
    width: max-content; /* Allow track to expand for continuous loop */
    animation: scroll 20s linear infinite; /* Continuous scrolling */
}

.carousel-track:hover {
    animation-play-state: paused; /* Pause on hover */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2)); /* Move half the track for seamless loop */
    }
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--wens-blue);
    border-radius: 50%;
    border: none;
    color: var(--wens-light);
    font-size: 20px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--wens-pink);
    opacity: 1;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Back to Top */
.back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    animation: pulse 2s infinite;
}

.back-to-top:hover {
    background: var(--wens-pink);
    box-shadow: 0 0 12px var(--wens-pink);
}

/* Responsive Design */
@media (max-width: 992px) {
    .carousel-section .carousel-item {
        height: 60vh;
    }

    .carousel-section .carousel-caption h3 {
        font-size: 2rem;
    }

    .carousel-section .carousel-caption p {
        font-size: 1rem;
    }

    .about-section .about-images {
        height: 300px; /* Increased to accommodate larger image height */
    }

    .about-section .about-img-main,
    .about-section .about-img-overlay {
        width: 100%;
        height: 250px; /* Increased from 200px */
    }

    .about-section .about-img-overlay {
        display: none;
    }

    .testimonial-section .testimonial-card {
        flex: 0 0 calc(50% - 20px); /* 2 cards on medium screens */
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .carousel-section .carousel-item {
        height: 50vh;
    }

    .carousel-section .carousel-caption h3 {
        font-size: 1.5rem;
    }

    .fact-section .fact-card h1 {
        font-size: 2rem;
    }

    .about-section h1 {
        font-size: 1.5rem;
    }

    .about-section .about-images {
        margin-bottom: 30px;
        height: 270px; /* Increased to accommodate larger image height */
    }

    .about-section .about-img-main {
        width: 100%;
        height: 220px; /* Increased from 200px */
    }

    .services-section h1,
    .testimonial-section h1 {
        font-size: 1.5rem;
    }

    .testimonial-section .testimonial-card {
        flex: 0 0 calc(100% - 20px); /* 1 card on small screens */
        max-width: calc(100% - 20px);
    }

    .carousel-prev,
    .carousel-next {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 16px;
    }

    .custom-carousel {
        padding: 0 40px;
    }
}

@media (max-width: 576px) {
    .carousel-section .carousel-item {
        height: 40vh;
    }

    .carousel-section .carousel-caption h3 {
        font-size: 1.2rem;
    }

    .carousel-section .carousel-caption p {
        font-size: 0.9rem;
    }

    .fact-section .fact-card h1 {
        font-size: 1.5rem;
    }

    .about-section .about-images {
        height: 230px; /* Increased to accommodate larger image height */
    }

    .about-section .about-img-main {
        width: 100%;
        height: 180px; /* Increased from 150px */
    }

    .carousel-prev,
    .carousel-next {
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 14px;
    }

    .custom-carousel {
        padding: 0 30px;
    }
}