/* ===========================
   DRAGON CHARACTER STYLING & ANIMATIONS
   =========================== */

/* Dragon Container */
.dragon-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dragon Character */
.dragon-character {
    width: 100%;
    height: auto;
    max-width: 450px;
    animation: dragonFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(255, 107, 53, 0.2));
    transition: transform 0.3s ease;
    will-change: transform;
}

.dragon-character:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Greeting Bubbles */
.greeting-bubble {
    position: absolute;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 15px 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    font-size: 1.8rem;
    font-weight: bold;
    color: #FF6B35;
    animation: bubbleFloat 4s ease-in-out infinite;
    border: 3px solid rgba(255, 107, 53, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.greeting-bubble:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.3);
}

.greeting-bubble span {
    display: block;
    animation: textPulse 2s ease-in-out infinite;
}

/* Arabic Greeting Position */
.greeting-arabic {
    top: 15%;
    right: 5%;
    animation-delay: 0.5s;
    font-family: 'Tajawal', sans-serif;
    /* Use Tajawal font for Arabic text */
}

/* Chinese Greeting Position */
.greeting-chinese {
    bottom: 20%;
    left: 8%;
    animation-delay: 1s;
    background: linear-gradient(135deg, #FFD166 0%, #FFE699 100%);
    color: #D93025;
    border-color: rgba(217, 48, 37, 0.3);
}

/* Floating Stars */
.floating-star {
    position: absolute;
    font-size: 2rem;
    animation: starFloat 5s ease-in-out infinite;
    opacity: 0.7;
    filter: drop-shadow(0 0 10px rgba(255, 209, 102, 0.5));
    will-change: transform, opacity;
}

.star-1 {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.star-2 {
    top: 30%;
    right: 12%;
    animation-delay: 1.5s;
    font-size: 1.5rem;
}

.star-3 {
    bottom: 15%;
    right: 20%;
    animation-delay: 3s;
    font-size: 1.8rem;
}

/* ===========================
   ANIMATIONS
   =========================== */

/* Dragon Float Animation */
@keyframes dragonFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(-2deg);
    }

    50% {
        transform: translateY(0px) rotate(0deg);
    }

    75% {
        transform: translateY(-10px) rotate(2deg);
    }
}

/* Bubble Float Animation */
@keyframes bubbleFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Text Pulse Animation */
@keyframes textPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Star Float Animation */
@keyframes starFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }

    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 1;
    }

    50% {
        transform: translateY(0px) rotate(180deg);
        opacity: 0.7;
    }

    75% {
        transform: translateY(-15px) rotate(270deg);
        opacity: 0.9;
    }
}

/* ===========================
   DARK MODE SUPPORT
   =========================== */

[data-theme="dark"] .greeting-bubble {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(248, 249, 250, 0.05) 100%);
    backdrop-filter: blur(20px);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .greeting-chinese {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.2) 0%, rgba(255, 230, 153, 0.1) 100%);
    border-color: rgba(217, 48, 37, 0.4);
}

[data-theme="dark"] .dragon-character {
    filter: drop-shadow(0 10px 30px rgba(255, 107, 53, 0.4));
}

[data-theme="dark"] .floating-star {
    filter: drop-shadow(0 0 15px rgba(255, 209, 102, 0.8));
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablets */
@media (max-width: 768px) {
    .dragon-container {
        max-width: 500px;
        height: 400px;
    }

    .dragon-character {
        max-width: 350px;
    }

    .greeting-bubble {
        padding: 12px 20px;
        font-size: 1.4rem;
    }

    .greeting-arabic {
        top: 10%;
        right: 2%;
    }

    .greeting-chinese {
        bottom: 15%;
        left: 5%;
    }

    .floating-star {
        font-size: 1.5rem;
    }

    .star-2 {
        font-size: 1.2rem;
    }

    .star-3 {
        font-size: 1.4rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .dragon-container {
        max-width: 100%;
        height: 350px;
    }

    .dragon-character {
        max-width: 280px;
    }

    .greeting-bubble {
        padding: 10px 16px;
        font-size: 1.2rem;
        border-width: 2px;
    }

    .greeting-arabic {
        top: 8%;
        right: 0%;
    }

    .greeting-chinese {
        bottom: 12%;
        left: 2%;
    }

    .floating-star {
        font-size: 1.2rem;
    }

    .star-1 {
        top: 8%;
        left: 10%;
    }

    .star-2 {
        font-size: 1rem;
        top: 25%;
    }

    .star-3 {
        font-size: 1.1rem;
        bottom: 10%;
    }
}

/* Extra Small Mobile */
@media (max-width: 380px) {
    .dragon-container {
        height: 300px;
    }

    .dragon-character {
        max-width: 240px;
    }

    .greeting-bubble {
        padding: 8px 12px;
        font-size: 1rem;
    }

    .floating-star {
        font-size: 1rem;
    }
}