/* Landing Page SIMTARU - Custom CSS with Tailwind */
:root {
    --primary-gradient: linear-gradient(135deg, #87CEEB 0%, #4682B4 50%, #1E3A8A 100%);
    --card-shadow: 0 10px 30px rgba(0,0,0,0.2);
    --hover-transform: translateY(-10px);
}

/* Custom animations for Tailwind */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Dark footer styling */
footer {
    background: rgba(0, 0, 0, 0.95) !important;
}

/* 3D Carousel Styles - Tailwind Compatible */
.carousel-3d-item {
    position: absolute;
    width: 650px;
    height: 500px;
    left: 50%;
    margin-left: -300px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
}

.carousel-3d-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.carousel-3d-item .card-content {
    padding: 25px;
    height: calc(100% - 320px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.carousel-3d-item h3 {
    color: #1E3A8A;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.carousel-3d-item p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
    max-width: 95%;
}

.carousel-3d-item .btn-primary {
    background: linear-gradient(45deg, #4682B4, #87CEEB);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.carousel-3d-item .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(70,130,180,0.4);
}

/* Carousel positions */
.carousel-3d-item.active {
    transform: translateZ(0) scale(1);
    opacity: 1;
}

.carousel-3d-item.prev {
    transform: translateX(-350px) translateZ(-200px) rotateY(25deg);
    opacity: 0.7;
}

.carousel-3d-item.next {
    transform: translateX(350px) translateZ(-200px) rotateY(-25deg);
    opacity: 0.7;
}

.carousel-3d-item.prev-prev {
    transform: translateX(-750px) translateZ(-300px) rotateY(35deg);
    opacity: 0.4;
}

.carousel-3d-item.next-next {
    transform: translateX(750px) translateZ(-300px) rotateY(-35deg);
    opacity: 0.4;
}

.carousel-3d-item.hidden {
    opacity: 0;
    transform: translateZ(-400px);
}

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

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .carousel-3d-container {
        height: 400px;
        margin: 30px auto;
        perspective: 1000px;
    }

    .carousel-3d {
        width: 320px;
        height: 350px;
    }

    .carousel-3d-item {
        width: 320px;
        height: 350px;
        margin-left: -160px;
    }

    .carousel-3d-item img {
        height: 200px;
    }

    .carousel-3d-item .card-content {
        height: calc(100% - 200px);
        padding: 15px;
    }

    .carousel-3d-item h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .carousel-3d-item p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .carousel-nav.prev-btn {
        left: 5%;
    }

    .carousel-nav.next-btn {
        right: 5%;
    }

    .carousel-3d-item.prev {
        transform: translateX(-180px) translateZ(-150px) rotateY(25deg);
    }

    .carousel-3d-item.next {
        transform: translateX(180px) translateZ(-150px) rotateY(-25deg);
    }

    .carousel-3d-item.prev-prev {
        transform: translateX(-280px) translateZ(-200px) rotateY(35deg);
    }

    .carousel-3d-item.next-next {
        transform: translateX(280px) translateZ(-200px) rotateY(-35deg);
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .carousel-3d-container {
        height: 500px;
        perspective: 1400px;
    }

    .carousel-3d {
        width: 500px;
        height: 450px;
    }

    .carousel-3d-item {
        width: 500px;
        height: 450px;
        margin-left: -250px;
    }

    .carousel-3d-item img {
        height: 280px;
    }

    .carousel-3d-item .card-content {
        height: calc(100% - 280px);
        padding: 20px;
    }

    .carousel-3d-item h3 {
        font-size: 1.4rem;
    }

    .carousel-3d-item p {
        font-size: 0.95rem;
    }

    .carousel-3d-item.prev {
        transform: translateX(-300px) translateZ(-200px) rotateY(25deg);
    }

    .carousel-3d-item.next {
        transform: translateX(300px) translateZ(-200px) rotateY(-25deg);
    }

    .carousel-3d-item.prev-prev {
        transform: translateX(-500px) translateZ(-300px) rotateY(35deg);
    }

    .carousel-3d-item.next-next {
        transform: translateX(500px) translateZ(-300px) rotateY(-35deg);
    }
}