/* Animation Classes */

/* Hero Title Lines Animation */
.hero__title-line {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero__title-line:nth-child(1) {
    animation-delay: 0.5s;
}

.hero__title-line:nth-child(2) {
    animation-delay: 1.3s;
}

.hero__title-line:nth-child(3) {
    animation-delay: 2.1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Subtitle Animation */
.hero__subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 3s;
}

/* Hero CTA Animation */
.hero__cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 3.6s;
}

/* Hero Floating Cards Levitation */
.hero__card {
    animation: float 6s ease-in-out infinite;
}

.hero__card--1 {
    animation-delay: 0s;
}

.hero__card--2 {
    animation-delay: 0.3s;
}

.hero__card--3 {
    animation-delay: 0.6s;
}

.hero__card--4 {
    animation-delay: 0.9s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(2deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(20px) rotate(-2deg);
    }
}

/* Fade In Up */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Fade In */
.fade-in {
    opacity: 0;
}

.fade-in.visible {
    opacity: 1;
    transition: opacity 0.6s ease;
}

/* Scale In */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Slide In Left */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Slide In Right */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Line Animation */
.line-animate {
    width: 0;
    transition: width 0.8s ease;
}

.line-animate.visible {
    width: 100%;
}

/* Text Reveal */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.text-reveal.visible span {
    transform: translateY(0);
}

/* Magnetic Button Effect */
.magnetic {
    transition: transform 0.3s ease;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 55, 40, 0.1);
}

/* Image Parallax */
.parallax-image {
    will-change: transform;
}

/* Progress Bar */
.progress-bar {
    width: 0;
    transition: width 0.3s ease;
}

/* Cursor States */
.cursor-hover {
    width: 60px !important;
    height: 60px !important;
    background-color: rgba(160, 120, 86, 0.1) !important;
}

.cursor-pointer {
    width: 15px !important;
    height: 15px !important;
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.bounce {
    animation: bounce 1s ease-in-out;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Glow Effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--color-accent), 0 0 10px var(--color-accent);
    }
    50% {
        box-shadow: 0 0 20px var(--color-accent), 0 0 30px var(--color-accent);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--color-accent);
    animation: typing 3s steps(40) 1s 1 normal both, blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--color-accent);
    }
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.active > *:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease 0.1s;
}

.stagger-children.active > *:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease 0.2s;
}

.stagger-children.active > *:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease 0.3s;
}

.stagger-children.active > *:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease 0.4s;
}

.stagger-children.active > *:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease 0.5s;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Hide scrollbar for clean look */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
