/* =============================================
   VOGUE HOTEL SUPREME BODRUM - ANIMATIONS
   ============================================= */

/* ===================== TYPEWRITER EFFECT ===================== */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--secondary);
    animation: blink 0.8s step-end infinite;
    margin-left: 2px;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===================== FLOATING ANIMATION ===================== */
.float-animation {
    animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===================== PULSE CTA ===================== */
.pulse-animation {
    animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(201, 169, 110, 0); }
}

/* ===================== SHIMMER EFFECT ===================== */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: shimmerSlide 3s ease-in-out infinite;
}

@keyframes shimmerSlide {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* ===================== CARD HOVER EFFECTS ===================== */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ===================== IMAGE REVEAL ===================== */
.reveal-img {
    position: relative;
    overflow: hidden;
}

.reveal-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 1;
    transform-origin: right;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-img.revealed::before {
    transform: scaleX(0);
}

/* ===================== TEXT GRADIENT ANIMATION ===================== */
.gradient-text {
    background: linear-gradient(135deg, var(--secondary), var(--accent-light), var(--secondary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* ===================== STAGGER CHILDREN ===================== */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.7s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.8s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== PARALLAX MOUSE ===================== */
.parallax-mouse {
    transition: transform 0.2s ease-out;
}

/* ===================== BORDER ANIMATION ===================== */
.animated-border {
    position: relative;
}

.animated-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.4s ease, left 0.4s ease;
}

.animated-border:hover::after {
    width: 100%;
    left: 0;
}

/* ===================== ROTATE ON HOVER ===================== */
.rotate-hover {
    transition: transform 0.6s ease;
}

.rotate-hover:hover {
    transform: rotate(360deg);
}

/* ===================== SCALE ANIMATION ===================== */
.scale-in {
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), 
                opacity 0.6s ease;
}

.scale-in.visible {
    transform: scale(1);
    opacity: 1;
}

/* ===================== COUNTER ANIMATION ===================== */
.counter-animate {
    display: inline-block;
    transition: all 0.3s ease;
}

/* ===================== RIBBON / BADGE ===================== */
.ribbon-animation {
    animation: ribbonWave 2s ease-in-out infinite;
}

@keyframes ribbonWave {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

/* ===================== GLOW EFFECT ===================== */
.glow-effect {
    transition: box-shadow 0.4s ease;
}

.glow-effect:hover {
    box-shadow: 0 0 30px rgba(201, 169, 110, 0.3),
                0 0 60px rgba(201, 169, 110, 0.15);
}

/* ===================== UNDERLINE ANIMATION ===================== */
.underline-animation {
    display: inline;
    background-image: linear-gradient(var(--secondary), var(--secondary));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.4s ease;
}

.underline-animation:hover {
    background-size: 100% 2px;
}

/* ===================== WAVE DIVIDER ===================== */
.wave-divider {
    position: relative;
}

.wave-divider::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23faf8f5' d='M0,30 C240,60 480,0 720,30 C960,60 1200,0 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat center bottom;
    background-size: cover;
}

/* ===================== ICON BOUNCE ===================== */
.icon-bounce:hover i {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-4px); }
}

/* ===================== SMOOTH TRANSITIONS FOR SECTIONS ===================== */
[data-aos] {
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* ===================== MAGNETIC BUTTON EFFECT ===================== */
.magnetic-btn {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.magnetic-btn:hover {
    transform: translate(var(--x, 0), var(--y, 0));
}
