/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #e6edf3;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #30363d;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #e6edf3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffd700;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn-login, .btn-register {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login {
    background: transparent;
    color: #e6edf3;
    border: 2px solid #30363d;
}

.btn-login:hover {
    border-color: #58a6ff;
    color: #58a6ff;
}

.btn-register {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.crown {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #8b949e;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #e6edf3;
    border: 2px solid #30363d;
}

.btn-secondary:hover {
    border-color: #58a6ff;
    color: #58a6ff;
}

/* Game Cards Preview */
.hero-image {
    margin-top: 3rem;
}

.game-cards-preview {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.game-card {
    background: linear-gradient(135deg, #1c2128, #161b22);
    border: 2px solid #30363d;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    min-width: 200px;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
}

.game-card.vip-card {
    border-color: #ffd700;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.game-card.vip-card:hover {
    border-color: #ffed4e;
}

.game-image {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.vip-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #e6edf3;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: rgba(22, 27, 34, 0.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, #1c2128, #161b22);
    border: 2px solid #30363d;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #ffd700;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.feature-card p {
    color: #8b949e;
    line-height: 1.6;
}

/* Download Note */
.download-note {
    background: linear-gradient(135deg, #1c2128, #161b22);
    border: 2px solid #30363d;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 0;
}

.download-note p {
    color: #8b949e;
    margin: 0;
    line-height: 1.6;
}

.download-note strong {
    color: #ffd700;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: linear-gradient(135deg, #1c2128, #161b22);
    border: 2px solid #30363d;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
}

.pricing-card.featured {
    border-color: #ffd700;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    border-color: #ffed4e;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e6edf3;
}

.price {
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.2rem;
    color: #8b949e;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #ffd700;
}

.period {
    font-size: 1rem;
    color: #8b949e;
}

.savings {
    background: linear-gradient(135deg, #238636, #2ea043);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    text-align: right;
}

.features-list li {
    padding: 0.5rem 0;
    color: #e6edf3;
}

.btn-pricing {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #238636, #2ea043);
    color: white;
}

.btn-pricing:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(35, 134, 54, 0.3);
}

.btn-pricing.featured {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.btn-pricing.featured:hover {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

/* Games Section */
.games {
    padding: 80px 0;
    background: rgba(22, 27, 34, 0.5);
}

.games-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #30363d;
    background: transparent;
    color: #e6edf3;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #ffd700;
    color: #ffd700;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.game-item {
    background: linear-gradient(135deg, #1c2128, #161b22);
    border: 2px solid #30363d;
    border-radius: 15px;
    padding: 1rem; /* Reduced padding */
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; /* Ensure content respects border-radius */
}

.game-item:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
}

.game-item.vip {
    border-color: #ffd700;
}

.game-item.vip:hover {
    border-color: #ffed4e;
}

.game-item.locked {
    opacity: 0.6;
    filter: grayscale(100%);
}

.game-image-container {
    width: 100%;
    height: 150px; /* Adjust as needed */
    overflow: hidden;
    border-radius: 13px; /* Slightly less than game-item to fit inside */
    margin-bottom: 1rem;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block; /* Remove extra space below image */
}

.game-item:hover .game-image {
    transform: scale(1.05);
}

.game-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #e6edf3;
}

.game-status {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
}

.game-status.free {
    background: linear-gradient(135deg, #238636, #2ea043);
    color: white;
}

.game-status.vip {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.lock-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.5rem;
    color: #ffd700;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.contact-info p {
    color: #8b949e;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #1c2128, #161b22);
    border: 2px solid #30363d;
    border-radius: 12px;
    text-decoration: none;
    color: #e6edf3;
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: #ffd700;
    transform: translateX(-5px);
}

.contact-method .icon {
    font-size: 1.5rem;
}

.contact-form {
    background: linear-gradient(135deg, #1c2128, #161b22);
    border: 2px solid #30363d;
    border-radius: 20px;
    padding: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #30363d;
    border-radius: 8px;
    background: #0d1117;
    color: #e6edf3;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #58a6ff;
}

/* Footer */
.footer {
    background: #0d1117;
    border-top: 1px solid #30363d;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    color: #8b949e;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #8b949e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1c2128, #161b22);
    border: 2px solid #30363d;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    border-color: #ffd700;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #30363d;
    color: #8b949e;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1c2128, #161b22);
    margin: 10% auto;
    padding: 2rem;
    border: 2px solid #30363d;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #8b949e;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #e6edf3;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #ffd700;
}

.modal-content input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #30363d;
    border-radius: 8px;
    background: #0d1117;
    color: #e6edf3;
    font-family: inherit;
}

.modal-content input:focus {
    outline: none;
    border-color: #58a6ff;
}

.modal-content p {
    text-align: center;
    margin-top: 1rem;
    color: #8b949e;
}

.modal-content a {
    color: #ffd700;
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

.modal-links {
    text-align: center;
    margin-top: 1rem;
}

.modal-links p {
    margin: 0.5rem 0;
    color: #8b949e;
}

.modal-links a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.modal-links a:hover {
    color: #ffed4e;
    text-decoration: underline;
}

.modal-links a[style*="color: #f39c12"] {
    color: #f39c12 !important;
}

.modal-links a[style*="color: #f39c12"]:hover {
    color: #e67e22 !important;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #30363d;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #ffd700;
}

.payment-method img {
    height: 30px;
    width: auto;
}

.payment-method .icon {
    font-size: 1.5rem;
}

.selected-plan {
    background: linear-gradient(135deg, #238636, #2ea043);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0d1117;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #58a6ff;
}
