/* ============================================
   FINAL DESIGN FIXES - CUP CODE STUDIO
   Complete Design Overhaul - 2025
   Fixes all design issues and conflicts
============================================ */

/* ============================================
   OVERRIDE PROBLEMATIC STYLES
============================================ */

/* Fix body background */
body {
    background: #FAFAFA !important;
    color: #1a1a1a !important;
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    line-height: 1.7 !important;
}

/* ============================================
   FIX HEADER & NAVBAR
============================================ */
.header {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

.navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 2rem !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

.nav-brand {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

.logo {
    height: 45px !important;
    width: auto !important;
    transition: transform 0.3s ease !important;
}

.logo:hover {
    transform: scale(1.05) !important;
}

.brand-text {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #76AD3F !important;
}

.nav-menu {
    display: flex !important;
    list-style: none !important;
    gap: 1.5rem !important;
    align-items: center !important;
    flex: 1 !important;
    justify-content: center !important;
    margin: 0 2rem !important;
}

.nav-link {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #333333 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.nav-link:hover {
    background: rgba(118, 173, 63, 0.1) !important;
    color: #76AD3F !important;
}

.nav-link.active {
    background: rgba(118, 173, 63, 0.15) !important;
    color: #76AD3F !important;
}

.lang-switcher {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-left: auto !important;
}

.lang-btn {
    background: #F5F5F5 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #333333 !important;
}

.lang-btn:hover {
    background: #76AD3F !important;
    color: white !important;
    border-color: #76AD3F !important;
}

/* ============================================
   FIX HERO SECTIONS
============================================ */
.hero {
    min-height: 70vh !important;
    display: flex !important;
    align-items: center !important;
    padding: 4rem 2rem !important;
    background: linear-gradient(135deg, 
        rgba(118, 173, 63, 0.03) 0%, 
        rgba(255, 255, 255, 0.97) 100%) !important;
    position: relative !important;
}

.hero-content {
    max-width: 900px !important;
    margin: 0 auto !important;
    z-index: 2 !important;
    position: relative !important;
}

.hero-title {
    font-size: 3rem !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
}

.hero-subtitle {
    font-size: 1.3rem !important;
    color: #666666 !important;
    margin-bottom: 2rem !important;
    line-height: 1.7 !important;
}

.hero-cta {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}

/* ============================================
   FIX BUTTONS
============================================ */
.btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, #76AD3F 0%, #5C8B2F 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(118, 173, 63, 0.3) !important;
}

.btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(118, 173, 63, 0.4) !important;
}

.btn-outline {
    background: transparent !important;
    border: 2px solid #76AD3F !important;
    color: #76AD3F !important;
}

.btn-outline:hover {
    background: #76AD3F !important;
    color: white !important;
    transform: translateY(-3px) !important;
}

.btn-sm {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
}

/* ============================================
   FIX CARDS
============================================ */
.project-card,
.game-card,
.app-card,
.service-card,
.feature-card {
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    height: 100% !important;
}

.project-card:hover,
.game-card:hover,
.app-card:hover,
.service-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
    border-color: #76AD3F !important;
}

/* Card Images */
.project-image,
.game-image,
.app-image,
.card-image {
    width: 100% !important;
    height: 220px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%) !important;
    position: relative !important;
}

.project-image img,
.game-image img,
.app-image img,
.card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.project-card:hover .project-image img,
.game-card:hover .game-image img,
.app-card:hover .app-image img {
    transform: scale(1.1) !important;
}

/* Card Content */
.project-content,
.game-content,
.app-content,
.card-content {
    padding: 1.5rem !important;
}

.project-content h3,
.game-content h3,
.app-content h3,
.card-title {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 1rem !important;
}

.project-content p,
.game-content p,
.app-content p,
.card-description {
    color: #666666 !important;
    line-height: 1.7 !important;
    margin-bottom: 1rem !important;
}

/* Badges */
.project-badge,
.game-badge,
.badge {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    backdrop-filter: blur(10px) !important;
    z-index: 10 !important;
}

.badge-available,
.game-badge.available {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
    color: white !important;
}

.badge-coming-soon,
.game-badge.coming-soon {
    background: linear-gradient(135deg, #FFB300 0%, #FF6F00 100%) !important;
    color: white !important;
}

.badge-ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

/* ============================================
   FIX SECTIONS
============================================ */
.section-padding {
    padding: 4rem 2rem !important;
}

.section-header {
    text-align: center !important;
    margin-bottom: 3rem !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.section-title {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin-bottom: 1rem !important;
    position: relative !important;
    display: inline-block !important;
}

.section-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80px !important;
    height: 4px !important;
    background: linear-gradient(90deg, transparent, #76AD3F, transparent) !important;
    border-radius: 2px !important;
}

.section-subtitle {
    font-size: 1.2rem !important;
    color: #666666 !important;
    line-height: 1.7 !important;
}

/* ============================================
   FIX GRID LAYOUTS
============================================ */
.projects-grid,
.games-grid,
.apps-grid,
.services-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    margin: 2rem 0 !important;
}

/* ============================================
   FIX FOOTER
============================================ */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    color: white !important;
    padding: 3rem 2rem 2rem !important;
    margin-top: 4rem !important;
}

.footer-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 2rem !important;
    max-width: 1400px !important;
    margin: 0 auto 2rem !important;
}

.footer-section h3 {
    font-size: 1.2rem !important;
    margin-bottom: 1rem !important;
    color: #A8D28F !important;
}

.footer-section ul {
    list-style: none !important;
    padding: 0 !important;
}

.footer-section ul li {
    margin-bottom: 0.8rem !important;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.footer-section ul li a:hover {
    color: #A8D28F !important;
    transform: translateX(5px) !important;
    display: inline-block !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 1.5rem !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ============================================
   FIX TYPOGRAPHY
============================================ */
h1 {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    line-height: 1.2 !important;
}

h2 {
    font-size: 2.3rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.3 !important;
}

h3 {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.3 !important;
}

p {
    line-height: 1.7 !important;
    color: #666666 !important;
    margin-bottom: 1rem !important;
}

/* ============================================
   FIX RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem !important;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    .hero {
        min-height: 60vh !important;
        padding: 3rem 1rem !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .section-padding {
        padding: 3rem 1rem !important;
    }
    
    .section-title {
        font-size: 1.9rem !important;
    }
    
    .projects-grid,
    .games-grid,
    .apps-grid,
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .section-title {
        font-size: 1.7rem !important;
    }
    
    .btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ============================================
   FIX CONTAINER
============================================ */
.container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem !important;
    }
}

/* ============================================
   FIX FORMS
============================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100% !important;
    padding: 0.9rem !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    transition: all 0.3s ease !important;
    background: white !important;
    color: #1a1a1a !important;
}

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: #76AD3F !important;
    box-shadow: 0 0 0 4px rgba(118, 173, 63, 0.1) !important;
}

/* ============================================
   FIX LINKS
============================================ */
a {
    color: #76AD3F !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

a:hover {
    color: #5C8B2F !important;
}

/* ============================================
   UTILITY FIXES
============================================ */
.text-center {
    text-align: center !important;
}

.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
