/* ========================================
   SUZOSKY - Animations Stylesheet
   Smooth & Elegant Micro-interactions
   ======================================== */

/* ========================================
   1. PAGE LOAD ANIMATIONS
   ======================================== */

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   2. SCROLL REVEAL ANIMATIONS
   ======================================== */

[data-animate] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-up"] {
    transform: translateY(30px);
}

[data-animate="fade-down"] {
    transform: translateY(-30px);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate="scale-in"] {
    transform: scale(0.95);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Stagger animations for groups */
[data-animate-delay="1"] {
    transition-delay: 0.1s;
}

[data-animate-delay="2"] {
    transition-delay: 0.2s;
}

[data-animate-delay="3"] {
    transition-delay: 0.3s;
}

[data-animate-delay="4"] {
    transition-delay: 0.4s;
}

[data-animate-delay="5"] {
    transition-delay: 0.5s;
}

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

/* Smooth Scale */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Lift Effect */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Shine Effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s ease;
}

.shine-effect:hover::before {
    left: 100%;
}

/* ========================================
   4. LOADING ANIMATIONS
   ======================================== */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.spin {
    animation: spin 1s linear infinite;
}

/* Skeleton Loading */
@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* ========================================
   5. HERO ANIMATIONS
   ======================================== */

/* Hero Title Letter Animation */
@keyframes letterFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero__title.animated .letter {
    display: inline-block;
    animation: letterFloat 3s ease-in-out infinite;
}

.hero__title.animated .letter:nth-child(1) { animation-delay: 0s; }
.hero__title.animated .letter:nth-child(2) { animation-delay: 0.1s; }
.hero__title.animated .letter:nth-child(3) { animation-delay: 0.2s; }
.hero__title.animated .letter:nth-child(4) { animation-delay: 0.3s; }
.hero__title.animated .letter:nth-child(5) { animation-delay: 0.4s; }
.hero__title.animated .letter:nth-child(6) { animation-delay: 0.5s; }

/* Parallax Effect */
.parallax {
    transition: transform 0.1s ease-out;
}

/* ========================================
   6. SERVICE CARD ANIMATIONS
   ======================================== */

.service-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Hover Image Zoom */
.service-card__image {
    position: relative;
    overflow: hidden;
}

.service-card__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.service-card:hover .service-card__image::before {
    transform: scale(1.1);
}

/* Badge Float Animation */
@keyframes badgeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.service-card__badge {
    animation: badgeFloat 2s ease-in-out infinite;
}

/* Feature Tags Appear */
.feature-tag {
    animation: scaleIn 0.4s ease-out backwards;
}

.service-card:hover .feature-tag:nth-child(1) {
    animation-delay: 0s;
}

.service-card:hover .feature-tag:nth-child(2) {
    animation-delay: 0.05s;
}

.service-card:hover .feature-tag:nth-child(3) {
    animation-delay: 0.1s;
}

/* ========================================
   7. NAVIGATION ANIMATIONS
   ======================================== */

/* Nav Slide In */
.nav {
    animation: fadeInDown 0.6s ease-out;
}

/* Link Underline Animation */
@keyframes underlineExpand {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.nav__link::after {
    transform-origin: left;
    transform: scaleX(0);
}

.nav__link:hover::after {
    animation: underlineExpand 0.3s ease-out forwards;
}

/* ========================================
   8. SCROLL PROGRESS INDICATOR
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ========================================
   9. BUTTON ANIMATIONS
   ======================================== */

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.btn-pulse {
    animation: buttonPulse 2s infinite;
}

/* Ripple Effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
}

/* ========================================
   10. TEXT ANIMATIONS
   ======================================== */

/* Gradient Text Animation */
@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text {
    background: linear-gradient(
        90deg,
        var(--color-primary),
        var(--color-accent),
        var(--color-primary)
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 3s ease infinite;
}

/* Typing Effect */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.typing-effect {
    overflow: hidden;
    border-right: 2px solid var(--color-accent);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end),
               blink 0.75s step-end infinite;
}

/* ========================================
   11. MODAL ANIMATIONS
   ======================================== */

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

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

.modal-backdrop {
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   12. SMOOTH SCROLL BEHAVIOR
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ========================================
   13. ACCESSIBILITY - REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   14. PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* GPU Acceleration for Smooth Animations */
.gpu-accelerate {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Will-change for Better Performance */
.service-card,
.nav,
.hero__content {
    will-change: transform;
}

/* ========================================
   15. ENTRANCE ANIMATIONS
   ======================================== */

.entrance-1 {
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.entrance-2 {
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.entrance-3 {
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.entrance-4 {
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.entrance-5 {
    animation: fadeInUp 0.6s ease-out 0.5s backwards;
}
