/* ========================================
   مدينه العاب نور المقدادية - Styles
   ======================================== */

/* Base Styles */
:root {
    --primary: #6F4E37;      /* Coffee Brown - Professional */
    --primary-light: #8B6F5A;  /* Light Coffee Brown */
    --accent: #F59E0B;       /* Amber - Accent Color */
    --accent-light: #FBBF24; /* Light Amber */
    --dark: #1F2937;         /* Dark Gray */
    --dark-light: #374151;   /* Lighter Dark Gray */
    --text: #111827;         /* Text Color */
    --text-light: #6B7280;   /* Light Text */
    --bg-main: #fbf2d5;      /* Main Background */
    --white: #ffffff;        /* White */
    --success: #10B981;
    --danger: #EF4444;
    --border: #E5E7EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-main) !important;
    color: var(--text);
}

/* Override Tailwind colors - Only for specific sections */
.bg-gray-50 {
    background-color: var(--bg-main) !important;
}

.text-dark {
    color: var(--text) !important;
}

/* Navigation */
.nav-link {
    position: relative;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

/* Enhancements for Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
    color: var(--text);
    font-weight: 900;
}

h2 {
    font-size: 2.5rem;
    color: var(--text);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

h3 {
    color: var(--text);
    font-weight: 700;
}

/* Enhanced Sections */
section {
    transition: background-color 0.3s ease;
}

/* Navbar Enhancements */
.navbar-scrolled {
    background: rgba(251, 242, 213, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-ring {
    animation: pulse-ring 2s infinite;
}

/* Cards */
.game-card {
    transition: all 0.4s ease;
    border-radius: 15px;
    overflow: hidden;
    background: #f7e5ab;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(111, 78, 55, 0.2);
    border-color: #6F4E37;
}

.game-card img {
    transition: transform 0.5s ease;
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #A78BFA);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(111, 78, 55, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(111, 78, 55, 0.15), 0 5px 15px rgba(111, 78, 55, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #9CA3AF;
}

/* Gallery */
.gallery-item {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    background: #f7e5ab;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover {
    box-shadow: 0 20px 50px rgba(111, 78, 55, 0.2);
    transform: translateY(-5px);
}

.gallery-item img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1);
}

/* List Styles */
ul li {
    transition: all 0.3s ease;
    padding: 8px 0;
}

ul li:hover {
    padding-left: 8px;
    color: var(--primary);
    font-weight: 500;
}

/* Text Highlight */
strong, .emphasis {
    color: var(--primary);
    font-weight: 700;
}

/* Testimonials */
.testimonial-card {
    background: #f7e5ab;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

/* FAQ Accordion */
.faq-item {
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 20px 20px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #f7e5ab;
    border-radius: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slide-up 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Section Dividers */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Opening Hours */
.hours-card {
    background: linear-gradient(135deg, #667eea 0%, #6F4E37 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hours-item:last-child {
    border-bottom: none;
}

/* Contact Info Cards */
.contact-card {
    background: #f7e5ab;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

/* Social Links */
.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
}

.social-facebook { background: #1877F2; }
.social-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-whatsapp { background: #25D366; }
.social-youtube { background: #FF0000; }

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #20BA5C);
    border-radius: 50%;
    color: white;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.whatsapp-float a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-float a:hover::before {
    opacity: 1;
}

.whatsapp-float a:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* Newsletter */
.newsletter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8B5CF6, transparent);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B5CF6, #FFE66D);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Loading Animation */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 107, 53, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* AOS Custom */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Filter Buttons */
.filter-btn {
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

/* Print Styles */
@media print {
    .whatsapp-float,
    .no-print {
        display: none !important;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.hidden {
    display: none;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary);
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
/* ========== Enhanced Design Effects ========== */

/* Pricing Cards - Enhanced */
.pricing-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px !important;
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15) !important;
}

/* Enhanced Hover Effects */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::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.5s;
}

.nav-link:hover::before {
    left: 100%;
}

/* Card Hover Effects */
.game-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(111, 78, 55, 0.3);
}

.game-card img {
    transition: transform 0.6s ease;
}

.game-card:hover img {
    transform: scale(1.1);
}

/* Button Hover Effects */
.btn-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-hover::after {
    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: width 0.6s, height 0.6s;
}

.btn-hover:hover::after {
    width: 300px;
    height: 300px;
}

/* Image Hover Zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.15);
}

/* Glow Effect on Hover */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(111, 78, 55, 0.4);
}

/* Scale Hover Effect */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Border Animation */
.border-animate {
    position: relative;
}

.border-animate::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.border-animate:hover::after {
    width: 100%;
}

/* Float Animation Enhanced */
@keyframes float-enhanced {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-2deg); }
}

.animate-float-enhanced {
    animation: float-enhanced 4s ease-in-out infinite;
}

/* Pulse Glow */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(111, 78, 55, 0.4); }
    50% { box-shadow: 0 0 40px rgba(111, 78, 55, 0.6); }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #8B5CF6 0%, #FFE66D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Glow effect for buttons */
.btn-glow {
    position: relative;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6), 0 0 35px rgba(255, 230, 109, 0.3);
}

/* Enhanced shadow for cards */
.shadow-elevated {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(139, 92, 246, 0.1);
}

/* Smooth transitions */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Badge animations */
@keyframes badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.badge-animated {
    animation: badge-pulse 2s ease-in-out infinite;
}

/* Highlight effect */
.highlight-text {
    background: linear-gradient(120deg, #FFE66D 0%, #FFE66D 100%);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-weight: 600;
}

/* 3D card effect */
.card-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: rotateX(5deg) rotateY(-5deg);
}

/* Price highlight */
.price-badge {
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    border-radius: 15px;
    padding: 15px 25px;
    color: white;
    font-weight: 700;
    font-size: 1.3em;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* Button with ripple effect */
@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}