/**
 * Gabara Home Page Widget - Styles
 *
 * Complete styling for video intro, positioned elements, info box,
 * 3D coin, clouds, fireflies, and dragon eyes
 *
 * @version 1.0.0
 */

/* ============================================
   BASE CONTAINER
   ============================================ */
.gabara-home-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Default, overridden by responsive control */
    overflow-x: hidden;
    overflow-y: auto;
    /* Allow vertical scrolling */
    background-repeat: no-repeat;
}

.gabara-home-content {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Default, overridden by responsive control */
    z-index: 1;
}

/* ============================================
   INTRO VIDEO - FULL COVER PAGE
   ============================================ */
.gabara-intro-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: #000;
    overflow: hidden;
}

.gabara-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gabara-video-player video,
.gabara-video-player iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    border: none;
}

/* Ensure video covers on mobile devices */
@media (max-width: 768px) {

    .gabara-video-player video,
    .gabara-video-player iframe {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.gabara-skip-button {
    position: absolute;
    bottom: 30px;
    right: 30px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .gabara-skip-button {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

.gabara-skip-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.gabara-skip-button.top-left {
    top: 30px;
    left: 30px;
}

.gabara-skip-button.top-center {
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.gabara-skip-button.top-right {
    top: 30px;
    right: 30px;
}

.gabara-skip-button.bottom-left {
    bottom: 30px;
    left: 30px;
}

.gabara-skip-button.bottom-center {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.gabara-skip-button.bottom-right {
    bottom: 30px;
    right: 30px;
}

/* ============================================
   POSITIONED IMAGES
   ============================================ */
.gabara-positioned-image {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
}

.gabara-positioned-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Entrance Animations */
.gabara-animated {
    opacity: 0;
    transition: all 0.8s ease;
}

.gabara-animated.gabara-animate-in {
    opacity: 1 !important;
}

.gabara-animated.fadeIn.gabara-animate-in {
    animation: fadeIn 0.8s ease forwards;
}

.gabara-animated.fadeInUp.gabara-animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

.gabara-animated.fadeInDown.gabara-animate-in {
    animation: fadeInDown 0.8s ease forwards;
}

.gabara-animated.fadeInLeft.gabara-animate-in {
    animation: fadeInLeft 0.8s ease forwards;
}

.gabara-animated.fadeInRight.gabara-animate-in {
    animation: fadeInRight 0.8s ease forwards;
}

.gabara-animated.zoomIn.gabara-animate-in {
    animation: zoomIn 0.8s ease forwards;
}

.gabara-animated.bounceIn.gabara-animate-in {
    animation: bounceIn 1s ease forwards;
}

.gabara-animated.rotateIn.gabara-animate-in {
    animation: rotateIn 0.8s ease forwards;
}

/* ============================================
   TEXT BLOCKS
   ============================================ */
.gabara-text-block {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    word-wrap: break-word;
}

.gabara-text-animated {
    opacity: 0;
    transition: all 0.8s ease;
}

.gabara-text-animated.gabara-animate-in {
    opacity: 1 !important;
}

.gabara-text-animated.fadeIn.gabara-animate-in {
    animation: fadeIn 0.8s ease forwards;
}

.gabara-text-animated.slideInLeft.gabara-animate-in {
    animation: slideInLeft 0.8s ease forwards;
}

.gabara-text-animated.slideInRight.gabara-animate-in {
    animation: slideInRight 0.8s ease forwards;
}

.gabara-text-animated.slideInUp.gabara-animate-in {
    animation: slideInUp 0.8s ease forwards;
}

.gabara-text-animated.slideInDown.gabara-animate-in {
    animation: slideInDown 0.8s ease forwards;
}

.gabara-text-animated.typewriter.gabara-animate-in {
    animation: typewriter 2s steps(40) forwards;
    overflow: hidden;
    white-space: nowrap;
}

/* ============================================
   NAVIGATION BUTTONS - ADVANCED CONTROLS
   ============================================ */
.gabara-nav-button {
    /* position, left, top, width, height set via inline styles for responsive control */
    /* padding, margin, border-radius, opacity, scale, z-index controlled by Elementor selectors */
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}

.gabara-nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gabara-nav-button-image {
    padding: 0;
    background: transparent;
    border: none;
    overflow: hidden;
}

.gabara-nav-button-image:hover {
    background: transparent;
    border: none;
}

.gabara-nav-button-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gabara-nav-button-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Navigation Button Text Overlays */
.gabara-nav-button-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.gabara-button-overlay-text {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    pointer-events: none;
}

.gabara-overlay-above {
    order: -1;
    margin-bottom: 10px;
}

.gabara-overlay-below {
    order: 1;
    margin-top: 10px;
}

.gabara-overlay-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

/* Floating Animations */
.gabara-floating {
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.gabara-floating-vertical {
    animation-name: gabaraFloatVertical;
    animation-duration: var(--float-speed, 3s);
}

.gabara-floating-horizontal {
    animation-name: gabaraFloatHorizontal;
    animation-duration: var(--float-speed, 3s);
}

.gabara-floating-diagonal {
    animation-name: gabaraFloatDiagonal;
    animation-duration: var(--float-speed, 3s);
}

.gabara-floating-rotate {
    animation-name: gabaraFloatRotate;
    animation-duration: var(--float-speed, 3s);
    animation-timing-function: linear;
    animation-direction: normal;
}

@keyframes gabaraFloatVertical {
    0% {
        transform: translate(-50%, -50%) translateY(0);
    }

    100% {
        transform: translate(-50%, -50%) translateY(calc(var(--float-distance, 20px) * -1));
    }
}

@keyframes gabaraFloatHorizontal {
    0% {
        transform: translate(-50%, -50%) translateX(0);
    }

    100% {
        transform: translate(-50%, -50%) translateX(var(--float-distance, 20px));
    }
}

@keyframes gabaraFloatDiagonal {
    0% {
        transform: translate(-50%, -50%) translate(0, 0);
    }

    100% {
        transform: translate(-50%, -50%) translate(var(--float-distance, 20px), calc(var(--float-distance, 20px) * -1));
    }
}

@keyframes gabaraFloatRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ============================================
   INFO BOX
   ============================================ */
.gabara-info-box {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 90;
    backdrop-filter: blur(10px);
}

.gabara-dragon-hands-container {
    position: absolute;
    top: 50%;
    left: 50%;
    /* transform handled by Elementor responsive selectors */
    z-index: 5;
    pointer-events: none;
    transition: all 0.3s ease;
}

.gabara-dragon-hands {
    display: block;
    max-width: 100%;
    height: auto;
    /* rotation handled by Elementor responsive selectors */
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.gabara-info-box-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 92;
}

.gabara-copy-section,
.gabara-contract-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gabara-copy-text,
.gabara-contract-display {
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
}

.gabara-contract-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gabara-contract-full {
    display: none;
}

.gabara-contract-short {
    display: inline;
}

.gabara-info-box-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.gabara-info-box-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gabara-copy-text-btn,
.gabara-copy-contract-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.gabara-copy-text-btn:hover,
.gabara-copy-contract-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gabara-copy-text-btn.gabara-copied,
.gabara-copy-contract-btn.gabara-copied {
    background: #4caf50;
}

.gabara-buy-button {
    background: #007bff;
    color: #fff;
}

.gabara-buy-button:hover {
    background: #0056b3;
}

.gabara-button-row {
    display: flex;
    gap: 10px;
}

/* ============================================
   3D COIN
   ============================================ */
.gabara-coin-container {
    position: fixed;
    /* Default, overridden by Elementor position type selector */
    perspective: 1000px;
    cursor: grab;
    z-index: 50;
}

.gabara-coin-container:active {
    cursor: grabbing;
}

.gabara-coin {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.gabara-coin-dragging {
    transition: none !important;
}

/* Coin edge/thickness for 3D depth */
.gabara-coin-edge {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform-style: preserve-3d;
}

.gabara-coin-edge-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0.9;
}

.gabara-coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Note: .gabara-coin-front and .gabara-coin-back transforms are set inline based on thickness */

/* Enhanced shadow with depth */
.gabara-coin.gabara-coin-shadow {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Enhanced metallic glow */
.gabara-coin.gabara-coin-glow .gabara-coin-face {
    box-shadow:
        0 0 30px rgba(255, 255, 255, 0.4),
        0 0 50px rgba(255, 215, 0, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.15),
        inset -10px -10px 20px rgba(0, 0, 0, 0.2),
        inset 10px 10px 20px rgba(255, 255, 255, 0.2);
}

/* Light shine effect */
.gabara-coin-shine {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg,
            transparent 0%,
            rgba(255, 255, 255, 0.6) 45%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0.6) 55%,
            transparent 100%);
    pointer-events: none;
    transform: translateZ(6px);
    opacity: 0;
    transition: opacity 0.3s;
}

.gabara-coin.gabara-coin-spinning .gabara-coin-shine {
    opacity: 1;
}

/* Motion blur on fast spin */
.gabara-coin.gabara-coin-fast-spin {
    filter: blur(2px);
}

/* Glow trail effect */
.gabara-coin-glow-trail {
    position: absolute;
    width: 120%;
    height: 120%;
    left: -10%;
    top: -10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: -1;
}

.gabara-coin-glow-trail.active {
    opacity: 1;
    animation: glowPulse 0.5s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* Particle effect container */
.gabara-coin-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.gabara-coin-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #ffd700, transparent);
    border-radius: 50%;
    opacity: 0;
    animation: particleFly 1s ease-out forwards;
}

@keyframes particleFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(var(--particle-x, 50px), var(--particle-y, 50px)) scale(0);
    }
}

/* ============================================
   CLOUDS CANVAS
   ============================================ */
.gabara-clouds-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 9998 !important;
}

/* ============================================
   FIREFLIES CANVAS
   ============================================ */
.gabara-fireflies-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 9999 !important;
}

/* ============================================
   BACKGROUND AUDIO SPEAKER
   ============================================ */
.gabara-audio-container {
    display: none;
}

.gabara-audio-speaker {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 0;
    background-color: transparent;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    transition: all 0.3s ease;
    z-index: 9990;
    padding: 0;
}

.gabara-audio-speaker:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px currentColor);
}

.gabara-audio-speaker.muted {
    opacity: 0.5;
}

.speaker-icon-image {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gabara-audio-speaker .speaker-icon-themed {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: inherit;
}

/* ============================================
   DRAGON EYES
   ============================================ */
/* ============================================
   DRAGON EYES - ADVANCED CONTROLS
   ============================================ */
.gabara-dragon-eye-container {
    /* position, left, top, width, height, z-index set via inline styles for responsive control */
    position: absolute;
    z-index: 80;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.gabara-dragon-eye-container.gabara-eye-visible {
    opacity: 1;
    pointer-events: auto;
}

.gabara-dragon-eye-container.gabara-eye-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Pulsing glow animation */
.gabara-dragon-eye-container.gabara-eye-pulse {
    animation: eyePulse 2s ease-in-out infinite;
}

@keyframes eyePulse {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.5);
    }
}

/* Image/GIF eyes */
.gabara-eye-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gabara-eye-image-wrapper:hover {
    transform: scale(1.1);
}

.gabara-eye-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* CSS Drawn eyes */
.gabara-eye-circle {
    width: 100%;
    height: 100%;
    border-radius: 45% 55% 50% 50% / 55% 60% 40% 45%;
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.gabara-eye-circle:hover {
    transform: scale(1.1);
}

.gabara-dragon-eye {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    display: none;
    pointer-events: none;
}

.gabara-dragon-eye.active {
    display: block;
}

.gabara-eye-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 45% 55% 50% 50% / 55% 60% 40% 45%;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 60%, #000000 100%);
    box-shadow:
        inset 0 4px 12px rgba(0, 0, 0, 0.9),
        inset 0 -3px 8px rgba(255, 255, 255, 0.05),
        inset -3px 0 8px rgba(0, 0, 0, 0.5),
        inset 3px 0 8px rgba(0, 0, 0, 0.5);
}

.gabara-eye-iris {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55%;
    height: 65%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 100, 100, 0.9) 0%, transparent 50%),
        radial-gradient(circle at 30% 30%, #ff6644 0%, #ff3333 20%, #cc0000 50%, #990000 80%, #660000 100%);
    box-shadow:
        inset 0 0 20px rgba(255, 50, 0, 0.6),
        inset 0 0 8px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 0, 0, 0.3);
    transition: transform 0.2s ease-out;
    position: relative;
}

/* Add iris texture/pattern */
.gabara-eye-iris::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle at 50% 50%,
            transparent 0%,
            rgba(0, 0, 0, 0.1) 2%,
            transparent 4%,
            transparent 8%);
    opacity: 0.6;
}

/* Add iris rim */
.gabara-eye-iris::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
}

.gabara-eye-pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8%;
    height: 70%;
    border-radius: 40%;
    background: linear-gradient(to right, #000000, #0a0a0a, #000000);
    box-shadow:
        0 0 15px rgba(0, 0, 0, 1),
        inset 0 0 8px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.8);
    transition: transform 0.1s ease-out;
    z-index: 10;
}

/* Pupil highlight for depth */
.gabara-eye-pupil::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 20%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(80, 80, 80, 0.3), transparent);
}

.gabara-eye-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.4), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Eye surface reflection/shine */
.gabara-dragon-eye::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 35%;
    height: 30%;
    background: radial-gradient(ellipse at 30% 30%,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 30%,
            transparent 70%);
    border-radius: 50%;
    transform: rotate(-30deg);
    pointer-events: none;
    z-index: 15;
    filter: blur(2px);
}

/* Secondary reflection */
.gabara-dragon-eye::after {
    content: '';
    position: absolute;
    top: 60%;
    right: 25%;
    width: 20%;
    height: 15%;
    background: radial-gradient(ellipse,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 15;
    filter: blur(1px);
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -30%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -70%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate(-70%, -50%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate(-30%, -50%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }

    70% {
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-200deg) scale(0);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes eyeGlow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

/* Iris subtle breathing animation */
@keyframes irisBreathing {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.03);
    }
}

/* Pupil dilation animation */
@keyframes pupilDilation {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(0.95);
    }
}

/* Add subtle animations to make eye feel alive */
.gabara-dragon-eye.active .gabara-eye-iris {
    animation: irisBreathing 4s ease-in-out infinite;
}

.gabara-dragon-eye.active .gabara-eye-pupil {
    animation: pupilDilation 3s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {

    .gabara-skip-button,
    .gabara-nav-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .gabara-info-box {
        padding: 20px;
        max-width: 90%;
    }

    .gabara-contract-short {
        font-size: 12px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .gabara-skip-button {
        padding: 8px 16px;
        font-size: 13px;
    }

    .gabara-skip-button.top-left,
    .gabara-skip-button.bottom-left {
        left: 15px;
    }

    .gabara-skip-button.top-right,
    .gabara-skip-button.bottom-right {
        right: 15px;
    }

    .gabara-skip-button.top-left,
    .gabara-skip-button.top-center,
    .gabara-skip-button.top-right {
        top: 15px;
    }

    .gabara-skip-button.bottom-left,
    .gabara-skip-button.bottom-center,
    .gabara-skip-button.bottom-right {
        bottom: 15px;
    }

    .gabara-nav-button {
        padding: 8px 16px;
        font-size: 13px;
    }

    .gabara-nav-top {
        top: 15px;
    }

    .gabara-nav-bottom {
        bottom: 15px;
    }

    .gabara-nav-middle {
        right: 15px;
    }

    .gabara-info-box {
        padding: 15px;
        font-size: 13px;
    }

    .gabara-info-box-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .gabara-button-row {
        flex-direction: column;
    }

    .gabara-positioned-image {
        max-width: 90vw !important;
    }

    .gabara-text-block {
        max-width: 90vw !important;
        font-size: 14px !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .gabara-contract-full {
        display: none !important;
    }

    .gabara-copy-text,
    .gabara-contract-display {
        font-size: 11px;
        padding: 8px;
    }

    .gabara-info-box-button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ============================================
   ELEMENTOR EDITOR FIXES
   ============================================ */
.elementor-editor-active .gabara-intro-video-container {
    position: relative;
    height: 400px;
}

.elementor-editor-active .gabara-home-page {
    min-height: 600px;
}

/* ============================================
   UTILITIES
   ============================================ */
.gabara-hidden {
    display: none !important;
}

.gabara-no-pointer-events {
    pointer-events: none;
}

.gabara-full-pointer-events {
    pointer-events: all;
}

/* Loading State */
.gabara-home-page.gabara-loading {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gabara-home-page.gabara-loaded {
    opacity: 1;
}

/* ============================================
   MOUSE EFFECTS
   ============================================ */
.gabara-mouse-effect-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.gabara-mouse-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.gabara-mouse-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.08s ease-out;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform-origin: center center;
}

/* Glow effect */
.gabara-mouse-effect-container[data-effect-type="glow"] .gabara-mouse-glow {
    box-shadow: 0 0 var(--blur) var(--color);
    background: radial-gradient(circle, var(--color), transparent 70%);
}

/* Spotlight effect */
.gabara-mouse-effect-container[data-effect-type="spotlight"] .gabara-mouse-glow {
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    mix-blend-mode: multiply;
}

/* Ripple effect */
.gabara-mouse-effect-container[data-effect-type="ripple"] .gabara-mouse-glow {
    border: 3px solid var(--color);
    background: transparent;
    animation: rippleExpand 1s ease-out infinite;
}

@keyframes rippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Flashlight effect */
.gabara-mouse-effect-container[data-effect-type="flashlight"] .gabara-mouse-glow {
    background: radial-gradient(circle at center,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(255, 255, 255, 0.4) 20%,
            rgba(255, 255, 255, 0.15) 40%,
            rgba(255, 255, 255, 0.05) 60%,
            transparent 80%);
    mix-blend-mode: screen;
    filter: blur(8px);
    transition: opacity 0.15s ease, transform 0.08s ease;
}

.gabara-mouse-effect-container[data-effect-type="flashlight"] .gabara-mouse-glow.hovering {
    filter: blur(5px);
    opacity: 1 !important;
}

/* Magnetic field effect */
.gabara-mouse-effect-container[data-effect-type="magnetic"] .gabara-mouse-glow {
    background: conic-gradient(from 0deg, var(--color), transparent, var(--color));
    animation: magneticRotate 3s linear infinite;
}

@keyframes magneticRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Hover state enhancement */
.gabara-mouse-glow.hovering {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile hide */
@media (max-width: 768px) {
    .gabara-mouse-effect-container[data-disable-mobile="yes"] {
        display: none;
    }
}

/* ============================================
   DANGLING ROPE
   ============================================ */
.gabara-dangling-rope {
    position: fixed;
    pointer-events: none;
    z-index: 50;
}

.gabara-rope-canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    transform: translate(-50%, 0);
}

.gabara-rope-image {
    position: absolute;
    pointer-events: all;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    object-fit: contain;
    transform-origin: top center;
    transition: filter 0.3s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10;
}

.gabara-rope-image:active {
    cursor: grabbing;
}

.gabara-rope-image.gabara-rope-shadow {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)) drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.gabara-rope-image:hover:not(.gabara-rope-shadow) {
    filter: brightness(1.1);
}

.gabara-rope-image.gabara-rope-shadow:hover {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)) drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3)) brightness(1.1);
}