/* ===========================================
   MANUAL EFFECTS CSS - Tanpa Plugin
   =========================================== */

/* ===========================================
   1. CUSTOM SLIDER MANUAL
   =========================================== */

.manual-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #0A0B0F;
}

.manual-slider-container {
    display: flex;
    width: 400%; /* 4 slides = 400% */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.manual-slide {
    width: 25%; /* 100% / 4 slides */
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.manual-slide:nth-child(1) {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/banners/1.jpg');
}

.manual-slide:nth-child(2) {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/banners/2.jpg');
}

.manual-slide:nth-child(3) {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/banners/3.jpg');
}

.manual-slide:nth-child(4) {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/banners/4.jpg');
}

.manual-slide-content {
    max-width: 600px;
    padding: 20px;
}

.manual-slide-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: slideInUp 0.8s ease-out;
}

.manual-slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.manual-slide-content .mil-btn {
    animation: slideInUp 0.8s ease-out 0.4s both;
}

/* Slider Navigation */
.manual-slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.manual-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.manual-slider-dot.active {
    background: #D30000;
    transform: scale(1.2);
}

/* Slider Arrows */
.manual-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(211,0,0,0.8);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.manual-slider-arrow:hover {
    background: #D30000;
    transform: translateY(-50%) scale(1.1);
}

.manual-slider-prev {
    left: 20px;
}

.manual-slider-next {
    right: 20px;
}

/* ===========================================
   2. ANIMATION EFFECTS
   =========================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===========================================
   3. HOVER EFFECTS
   =========================================== */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(211,0,0,0.5);
}

.hover-slide {
    position: relative;
    overflow: hidden;
}

.hover-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(211,0,0,0.3), transparent);
    transition: left 0.5s ease;
}

.hover-slide:hover::before {
    left: 100%;
}

/* ===========================================
   4. LOADING EFFECTS
   =========================================== */

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(211,0,0,0.3);
    border-top: 4px solid #D30000;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

.loading-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D30000;
    animation: pulse 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

/* ===========================================
   5. PARALLAX EFFECT
   =========================================== */

.parallax-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('../img/banners/5.jpg');
    background-size: cover;
    background-position: center;
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

.parallax-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 40px;
    border-radius: 10px;
}

/* ===========================================
   6. MODAL EFFECT
   =========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: bounceIn 0.5s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #D30000;
}

/* ===========================================
   7. TOOLTIP EFFECT
   =========================================== */

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* ===========================================
   8. PROGRESS BAR
   =========================================== */

.progress-container {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #D30000, #ff4444);
    border-radius: 10px;
    width: 0%;
    transition: width 1s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ===========================================
   9. CARD FLIP EFFECT
   =========================================== */

.flip-card {
    width: 300px;
    height: 200px;
    perspective: 1000px;
    margin: 20px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.flip-card-front {
    background: linear-gradient(45deg, #D30000, #ff4444);
}

.flip-card-back {
    background: linear-gradient(45deg, #333, #666);
    transform: rotateY(180deg);
}

/* ===========================================
   10. RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
    .manual-slider {
        height: 300px;
    }
    
    .manual-slide-content h2 {
        font-size: 2rem;
    }
    
    .manual-slide-content p {
        font-size: 1rem;
    }
    
    .manual-slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .flip-card {
        width: 250px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .manual-slider {
        height: 250px;
    }
    
    .manual-slide-content h2 {
        font-size: 1.5rem;
    }
    
    .manual-slider-nav {
        bottom: 15px;
    }
    
    .manual-slider-dot {
        width: 8px;
        height: 8px;
    }
} 