
body {
    padding-top: 7%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes bounceGentle {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

body {
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

.font-display {
    font-family: "Playfair Display", serif;
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover Effects */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Parallax Container */
.parallax-container {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    perspective: 1px;
}

.parallax-element {
    position: absolute;
    transform-style: preserve-3d;
}

.parallax-back {
    transform: translateZ(-1px) scale(2);
}

.parallax-mid {
    transform: translateZ(-0.5px) scale(1.5);
}

/* Interactive Elements */
.interactive-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.interactive-card:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #2563eb, #c19b4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated Background */
.animated-bg {
    background: linear-gradient(-45deg, #f8fafc, #e2e8f0, #f1f5f9, #ffffff);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2563eb, #c19b4e);
    border-radius: 10px;
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: "";
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        content: "";
    }

    25% {
        content: ".";
    }

    50% {
        content: "..";
    }

    75% {
        content: "...";
    }

    100% {
        content: "";
    }
}

/* Micro Interactions */
.btn-elegant {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-elegant::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;
}

.btn-elegant:hover::before {
    left: 100%;
}

/* Text Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    animation: textReveal 0.6s ease forwards;
}

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

/* Mobile Responsive Animations */
@media (max-width: 768px) {
    .parallax-back,
    .parallax-mid {
        transform: none;
    }
}

.card-flip {
    perspective: 1000px;
}
.card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.card-flip:hover .card-flip-inner {
    transform: rotateY(180deg);
}
.card-flip-front,
.card-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0.5rem;
}
.card-flip-back {
    transform: rotateY(180deg);
}
.gradient-text {
    background: linear-gradient(45deg, #5d5cde, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.parallax {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}
.neon-glow {
    box-shadow: 0 0 20px rgba(93, 92, 222, 0.3);
    transition: all 0.3s ease;
}
.neon-glow:hover {
    box-shadow: 0 0 40px rgba(93, 92, 222, 0.6);
    transform: translateY(-5px);
}
.typewriter {
         overflow: hidden;
        /* Ensures the content is not shown until the animation begins */
        border-right: 0.15em solid #5d5cde;
        /* The typewriter cursor */
        white-space: nowrap;
        /* Keeps the content on a single line */
        animation: typing 4s steps(55, end), blink-caret 0.75s step-end infinite;
        /* The duration now matches the text length */
}
 @keyframes blink-caret {

        from,
        to {
            border-color: transparent;
        }

        50% {
            border-color: #5d5cde;
        }
    }


.floating-particles::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(93,92,222,0.3)"><animate attributeName="opacity" values="0;1;0" dur="2s" repeatCount="indefinite"/></circle><circle cx="80" cy="40" r="1" fill="rgba(184,134,11,0.4)"><animate attributeName="opacity" values="0;1;0" dur="3s" repeatCount="indefinite"/></circle><circle cx="40" cy="80" r="1.5" fill="rgba(93,92,222,0.2)"><animate attributeName="opacity" values="0;1;0" dur="2.5s" repeatCount="indefinite"/></circle></svg>')
        repeat;
    pointer-events: none;
    animation: float 20s linear infinite;
}

.text-gold {
    --tw-text-opacity: 1;
    color: rgb(184 134 11 / var(--tw-text-opacity, 1));
}

.hover\:bg-gold:hover {
    /* --tw-bg-opacity: 1; */
    background-color: rgb(184 134 11 / var(--tw-bg-opacity, 1));
}

.hover\:scale-105:hover {
    --tw-scale-x: 1.05;
    --tw-scale-y: 1.05;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* Animation Keyframes */
@keyframes glow {
    0% {
        box-shadow: 0 0 10px rgba(93, 92, 222, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(93, 92, 222, 0.8);
    }
    100% {
        box-shadow: 0 0 10px rgba(93, 92, 222, 0.5);
    }
}

/* The CSS Class you provided */
.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.font-bold {
    font-weight: 700;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-brown {
    --tw-text-opacity: 1;
    color: rgb(139 69 19 / var(--tw-text-opacity, 1));
}

.bg-primary {
   --tw-bg-opacity: 1;
    background-color: rgb(93 92 222 / var(--tw-bg-opacity, 1));
}

/* Footer Animations */
.footer-fade-in {
    animation: fadeIn 1.2s ease-out;
}

.footer-section {
    animation: slideUp 0.8s ease-out;
    animation-fill-mode: both;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.footer-link {
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(135deg, #b8860b, #ffd700);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-link:hover {
    transform: translateX(5px);
}

/* Contact Info Icons Animation */
.contact-icon {
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-icon:hover {
    transform: rotate(15deg) scale(1.2);
    color: #b8860b;
}

/* Social Icons Animations */
.social-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(184, 134, 11, 0.3), transparent);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.social-icon:hover::before {
    transform: translateX(100%) rotate(45deg);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    background: rgba(184, 134, 11, 0.1);
    box-shadow: 0 10px 20px rgba(184, 134, 11, 0.3);
}

/* Floating Buttons Enhanced */
.floating-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float 3s ease-in-out infinite;
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.floating-btn:hover::before {
    width: 200%;
    height: 200%;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    animation-play-state: paused;
}

.whatsapp-btn:hover {
    box-shadow: 0 15px 30px rgba(34, 197, 94, 0.4);
}

.phone-btn:hover {
    box-shadow: 0 15px 30px rgba(93, 92, 222, 0.4);
}

/* Pulse Effect for Important Elements */
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(184, 134, 11, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(184, 134, 11, 0.8), 0 0 30px rgba(184, 134, 11, 0.4);
    }
}

/* Modal Animations */
.modal-overlay {
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Success Icon Animation */
.success-icon {
    animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Bounce Animation */
@keyframes bounce-gentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-bounce-gentle {
    animation: bounce-gentle 2s ease-in-out infinite;
}

/* Stagger Animation for Footer Links */
.footer-nav li {
    animation: slideRight 0.5s ease-out;
    animation-fill-mode: both;
}

.footer-nav li:nth-child(1) { animation-delay: 0.1s; }
.footer-nav li:nth-child(2) { animation-delay: 0.15s; }
.footer-nav li:nth-child(3) { animation-delay: 0.2s; }
.footer-nav li:nth-child(4) { animation-delay: 0.25s; }

/* Hover Effect for Footer Background */
.footer-bg {
    position: relative;
    overflow: hidden;
}

.footer-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(184, 134, 11, 0.05),
        transparent
    );
    transition: left 3s ease;
}

.footer-bg:hover::before {
    left: 100%;
}

/* Copyright Text Animation */
.copyright-text {
    animation: fadeIn 1s ease-out 1s both;
    position: relative;
}

.copyright-text::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.5), transparent);
    animation: expandWidth 1.5s ease-out 1.2s both;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100px; }
}

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.btn-ripple:active::after {
    width: 200px;
    height: 200px;
}

/* Scroll Reveal Animation */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    animation: revealUp 0.8s ease-out;
}

/* تحسينات للغة العربية في الفوتر */
.rtl-grid {
    direction: rtl;
}

.rtl-text {
    text-align: right;
}

.rtl-list {
    text-align: right;
    padding-right: 0;
}

.rtl-link {
    text-align: right;
    display: block;
    width: 100%;
}

.rtl-contact-item {
    text-align: right;
    direction: rtl;
}

/* تحسين hover effects للعربية */
.rtl-link.footer-link::after {
    right: 0;
    left: auto;
}

.rtl-link.footer-link:hover::after {
    width: 100%;
}

.rtl-link.footer-link:hover {
    transform: translateX(-5px);
}

/* تحسين محاذاة العناصر في القوائم */
.rtl-list li {
    text-align: right;
}

/* تحسين الأيقونات في الوضع العربي */
.rtl-contact-item .contact-icon {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* تحسين الاستجابة للهواتف */
@media (max-width: 768px) {
    .rtl-text {
        text-align: right;
    }
    
    .rtl-list {
        text-align: right;
    }
    
    .footer-section.rtl-text h4,
    .footer-section.rtl-text h3,
    .footer-section.rtl-text p {
        text-align: right;
    }
}

/* تأكد من أن النص يبدأ من اليمين في الوضع العربي */
[dir="rtl"] .footer-section {
    text-align: right;
}

[dir="rtl"] .footer-nav {
    text-align: right;
}

[dir="rtl"] .footer-link {
    text-align: right;
    justify-content: flex-end;
}