/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

.animate-left, .animate-right, .animate-footer {
    opacity: 0;
}

.fade-in-left {
    opacity: 0;
    animation: fadeInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-right {
    opacity: 0;
    animation: fadeInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

/* Slider: Using opacity instead of display none for transitions */
.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* Typing cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    margin-left: 2px;
    color: #dc2b2f;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Curve Divider */
.curve-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 30;
}

.curve-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

@media (min-width: 768px) {
    .curve-divider svg {
        height: 100px;
    }
}

.curve-divider .shape-fill {
    fill: #FFFFFF;
}

/* Parallax Style */
.parallax-bg {
    background-image: url('../img/mula3.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@supports (-webkit-touch-callout: none) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

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

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