/* =========================================
   Global Styles
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { 
    background-color: #0b1120; 
    color: #e2e8f0; 
    line-height: 1.5; /* লাইন স্পেসিং একটু কমানো হলো */
    font-size: 15px; /* পুরো ওয়েবসাইটের ডিফল্ট ফন্ট সাইজ একটু ছোট করা হলো */
    -webkit-text-size-adjust: 100%; 
width: 100%;
}
.highlight { color: #00d4ff; }
/* Smart Glassmorphism Navbar & Hamburger Menu */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(11, 17, 32, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: 0.5px; z-index: 1001;}
.logo-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #00d4ff; box-shadow: 0 0 10px rgba(0, 212, 255, 0.5); background-color: #0b1120; }
.logo span { color: #00d4ff; }

/* ডেস্কটপ মেনু */
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { color: #e2e8f0; text-decoration: none; font-weight: 500; font-size: 1rem; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #00d4ff; text-shadow: 0 0 8px rgba(0, 212, 255, 0.5); }

/* হ্যামবার্গার আইকন */
.hamburger { 
    display: none; /* কম্পিউটারে লুকানো থাকবে */
    cursor: pointer; 
    flex-direction: column; 
    gap: 5px; 
    z-index: 1001;
}
.hamburger span { display: block; width: 25px; height: 3px; background-color: #00d4ff; border-radius: 3px; transition: all 0.3s ease; }
/* =========================================
   Buttons
   ========================================= */
.btn { display: inline-block; padding: 12px 25px; background: #00d4ff; color: #0b1120; text-decoration: none; border-radius: 50px; font-weight: 700; transition: 0.3s; border: 2px solid #00d4ff; cursor: pointer; font-size: 1rem; text-align: center; }
.btn:hover { background: transparent; color: #00d4ff; }
.btn-outline { background: transparent; color: #00d4ff; }
.btn-outline:hover { background: #00d4ff; color: #0b1120; }

/* =========================================
   Home, About, Services, Contact (আগের মতোই)
   ========================================= */
.hero { display: flex; align-items: center; justify-content: space-between; min-height: 85vh; padding: 40px 8%; gap: 40px; }
.hero-image img { width: 300px; height: 300px; object-fit: cover; border-radius: 50%; border: 4px solid #00d4ff; box-shadow: 0 0 30px rgba(0, 212, 255, 0.3); }
.hero-content h1 { font-size: 3rem; color: #fff; line-height: 1.2; margin-bottom: 10px; }
.hero-content h2 { font-size: 1.4rem; color: #94a3b8; margin-bottom: 20px; font-weight: 500; }
.hero-content p { font-size: 1rem; color: #cbd5e1; margin-bottom: 30px; max-width: 500px; }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }

.about-section { padding: 40px 5%; min-height: 85vh; display: flex; justify-content: center; align-items: center; }
.about-container { display: flex; align-items: center; justify-content: space-between; gap: 30px; max-width: 1000px; width: 100%; background: #111827; padding: 30px; border-radius: 20px; border: 1px solid #1e293b; flex-wrap: wrap;}
.about-image img { width: 100%; max-width: 280px; height: auto; aspect-ratio: 3/4; object-fit: cover; border-radius: 15px; border: 3px solid #00d4ff; }
.about-content { flex: 1; min-width: 280px;}
.about-content h2 { font-size: 2.2rem; color: #fff; margin-bottom: 5px; }
.about-content h3 { font-size: 1.2rem; color: #94a3b8; margin-bottom: 15px; }
.info-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; margin-top: 15px; }
.info-item { display: flex; align-items: center; gap: 10px; background: #1e293b; padding: 10px 15px; border-radius: 10px; border-left: 4px solid #00d4ff; font-size: 0.9rem;}
.info-item a { color: #94a3b8; text-decoration: none; }
.info-item a:hover { color: #00d4ff; }
.skills h4 { color: #fff; margin-bottom: 10px; margin-top: 15px;}
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tags span { background: #0f172a; color: #00d4ff; padding: 5px 12px; border-radius: 5px; font-size: 0.8rem; border: 1px solid #334155; }

.services-section { padding: 60px 5%; text-align: center; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 1000px; margin: 40px auto 0; }
.service-card { background: #111827; padding: 30px 20px; border-radius: 15px; border: 1px solid #1e293b; transition: 0.3s; }
.service-card:hover { border-color: #00d4ff; transform: translateY(-5px); }
.service-card .icon { font-size: 2.5rem; margin-bottom: 15px; }
.service-card h3 { color: #fff; margin-bottom: 10px; font-size: 1.2rem; }
.service-card p { color: #94a3b8; font-size: 0.9rem; }

.contact-section { padding: 60px 5%; display: flex; justify-content: center; align-items: center; min-height: 85vh; }
.contact-container { background: #111827; padding: 40px 30px; border-radius: 20px; max-width: 600px; width: 100%; border: 1px solid #1e293b; text-align: center;}
.contact-container h2 { font-size: 2.2rem; color: #fff; margin-bottom: 10px; }
.contact-container p { color: #94a3b8; margin-bottom: 25px; font-size: 0.95rem; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; color: #cbd5e1; margin-bottom: 5px; font-size: 0.9rem; font-weight: 500;}
.form-group input, .form-group textarea { width: 100%; padding: 12px; background: #0b1120; border: 1px solid #334155; border-radius: 8px; color: #fff; font-family: 'Poppins', sans-serif; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: #00d4ff; }
.form-group textarea { resize: vertical; height: 100px; }

/* =========================================
   Games Dashboard
   ========================================= */
.games-dashboard { padding: 30px 5%; max-width: 1000px; margin: 0 auto; }
.dash-header { text-align: center; margin-bottom: 30px; }
.dash-header h2 { color: #fff; font-size: 2.2rem; margin-bottom: 10px; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.game-card-modern { background: linear-gradient(145deg, #111827, #1f2937); border-radius: 20px; padding: 20px; border: 1px solid #334155; position: relative; transition: all 0.4s ease; display: flex; flex-direction: column; justify-content: space-between;}
.game-card-modern:hover { transform: translateY(-8px); border-color: #00d4ff; box-shadow: 0 15px 30px rgba(0, 212, 255, 0.15); }
.game-thumb { width: 100%; height: 120px; border-radius: 12px; background: #0b1120; display: flex; justify-content: center; align-items: center; font-size: 4rem; margin-bottom: 15px; border: 1px solid #1e293b;}
.game-info h3 { color: #fff; font-size: 1.3rem; margin-bottom: 5px; }
.game-info p { color: #94a3b8; font-size: 0.85rem; margin-bottom: 15px; }
.badge { position: absolute; top: -10px; right: 15px; padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: bold; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.3);}
.badge.new { background: #10b981; }
.badge.popular { background: #ef4444; }
.badge.player { background: #8b5cf6; }
.play-card-btn { width: 100%; background: #6d28d9; color: #fff; padding: 10px; border-radius: 10px; text-decoration: none; font-weight: bold; border: none; cursor: pointer; transition: 0.3s; font-size: 1rem; text-align: center; display: block;}
.play-card-btn:hover { background: #00d4ff; color: #0b1120; }

/* Tic Tac Toe Board */
.ttt-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 300px; margin: 20px auto; }
.ttt-cell { width: 100%; aspect-ratio: 1/1; background: #0b1120; border: 2px solid #334155; font-size: 3rem; color: #00d4ff; display: flex; justify-content: center; align-items: center; cursor: pointer; border-radius: 10px; transition: 0.2s; font-family: 'Poppins', sans-serif;}
.ttt-cell:hover { border-color: #00d4ff; background: #1e293b; }

/* Victory Modal */
.victory-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(11, 17, 32, 0.95); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.victory-modal.active { opacity: 1; pointer-events: auto; }
.victory-content { background: #111827; padding: 40px 30px; border-radius: 20px; border: 2px solid #00d4ff; text-align: center; box-shadow: 0 0 40px rgba(0, 212, 255, 0.4); transform: scale(0.8); transition: transform 0.4s ease; max-width: 90%; width: 350px;}
.victory-modal.active .victory-content { transform: scale(1); }
.victory-content h2 { color: #00d4ff; font-size: 2rem; margin-bottom: 10px; }
.victory-content p { color: #fff; font-size: 1.2rem; margin-bottom: 20px; }
/* =========================================
   Compact Footer Fix
   ========================================= */
footer {
    background: #050810;
    border-top: 1px solid #1e293b;
    padding: 15px 5% 10px; /* প্যাডিং কমানো হয়েছে */
    margin-top: 20px;
    font-size: 0.75rem; /* ফন্ট ছোট করা হয়েছে */
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    text-align: left;
}

.footer-brand { flex: 1; min-width: 200px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #00d4ff; margin-bottom: 5px; }
.footer-brand h3 { color: #fff; font-size: 1rem; margin-bottom: 2px; }

/* ফয়সাল রাজার নিচের লেখাটি লুকিয়ে ফেলা হচ্ছে (যাতে ফুটার ছোট হয়) */
.footer-brand .tagline { 
    display: none; 
}

.footer-brand p { color: #94a3b8; font-size: 0.75rem; max-width: 220px; line-height: 1.3; }

.footer-links { flex: 1; min-width: 120px; }
.footer-links h4, .footer-social h4 { color: #fff; margin-bottom: 8px; font-size: 0.9rem; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 4px; }
.footer-links ul a { color: #94a3b8; text-decoration: none; font-size: 0.75rem; display: flex; align-items: center; gap: 6px; transition: 0.3s; }
.footer-links ul a:hover { color: #00d4ff; }
.footer-links ul a svg { width: 12px; height: 12px; }

.footer-social { flex: 1; min-width: 160px; }

/* সোশ্যাল আইকন (৪টি একসাথে বসার জন্য) */
.social-icons { 
    display: flex; 
    gap: 6px; 
    flex-wrap: nowrap; /* আইকন নিচে নামবে না */
    margin-bottom: 10px; 
}

.social-icons a { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 32px; /* সাইজ ছোট করা হয়েছে যাতে ৪টি একসাথে বসে */
    height: 32px; 
    background: #1e293b; 
    color: #00d4ff; 
    border-radius: 6px; 
    text-decoration: none; 
    transition: 0.3s; 
    border: 1px solid #334155;
}

.social-icons a:hover { 
    background: #00d4ff; 
    color: #0b1120; 
    transform: translateY(-2px);
}

.social-icons a svg { 
    width: 16px; 
    height: 16px; 
}

/* কল বাটন */
.call-btn {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 5px;
    background: #10b981; 
    color: #fff; 
    padding: 0 12px;
    height: 32px; /* আইকনের সমান সাইজ */
    border-radius: 6px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 0.8rem;
    transition: 0.3s;
    width: 100%; /* পুরো জায়গা নেবে */
}

.call-btn:hover { 
    background: #059669; 
    transform: translateY(-2px);
}

/* কপিরাইট */
.footer-bottom {
    text-align: center; 
    margin-top: 15px; 
    padding-top: 10px;
    border-top: 1px solid #1e293b; 
    color: #64748b; 
    font-size: 0.7rem;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 5px;
}
.dev-text { color: #00d4ff; font-weight: 600; }

/* মোবাইল রেসপন্সিভ */
@media (max-width: 768px) {
    .footer-container { flex-direction: column; text-align: center; gap: 15px; }
    .footer-brand p { margin: 0 auto; }
    .footer-links ul a { justify-content: center; }
    .social-icons { justify-content: center; }
    .call-btn { width: auto; padding: 0 20px; }
    .footer-bottom { flex-direction: column; justify-content: center; }
}

/* =========================================
   Mobile Responsive
   ========================================= */
@media (max-width: 768px) {
    /* পাশাপাশি স্ক্রল বন্ধ করতে */
    html, body {
        overflow-x: hidden !important;
        width: 100%;
    }

    /* মোবাইলে হ্যামবার্গার আইকন দেখা যাবে */
    .hamburger { 
        display: flex !important; 
    }
    
    /* মেনুটি শুরুতে স্ক্রিনের বাইরে ডানদিকে লুকিয়ে থাকবে */
    .nav-links {
        position: fixed;
        top: 0; 
        right: -100%; /* এখানে -100% থাকা বাধ্যতামূলক */
        width: 70%; 
        height: 100vh;
        background: rgba(11, 17, 32, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 999;
        pointer-events: none; /* এটি নিশ্চিত করবে যেন মেনু বন্ধ থাকলে স্ক্রিনে টাচ না লাগে */
    }
    
    /* মেনু ওপেন হলে তা ডানদিকে চলে আসবে */
    .nav-links.active { 
        right: 0; 
        pointer-events: auto; /* মেনু ওপেন হলে টাচ কাজ করবে */
    }
    
    .nav-links a { font-size: 1.2rem; }

    /* হ্যামবার্গার আইকন ক্লিক করলে X হয়ে যাওয়ার অ্যানিমেশন */
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
    .hero { flex-direction: column-reverse; text-align: center; padding: 30px 5%; gap: 20px; }
    .hero-content p { margin: 0 auto 20px auto; }
    .hero-btns { justify-content: center; }
    .hero-image img { width: 220px; height: 220px; }
    .hero-content h1 { font-size: 2.2rem; }
    
    .about-container { flex-direction: column; padding: 20px; text-align: center;}
    .about-image img { max-width: 200px;}
    .info-item { text-align: left; }
    
    .contact-container { padding: 25px 15px; }
    
/* নতুন কমপ্যাক্ট মোবাইল ফুটার */
.footer-container { 
    flex-direction: row; /* পাশাপাশি সাজানোর জন্য */
    flex-wrap: wrap; 
    justify-content: space-between; 
    text-align: left; 
    gap: 15px; 
}
.footer-brand { flex: 100%; text-align: center; margin-bottom: 10px; } /* লোগো ও নাম উপরে মাঝখানে */
.footer-brand img { width: 35px; height: 35px; }
.footer-brand h3 { font-size: 1.1rem; margin-bottom: 5px; }
.footer-brand p { font-size: 0.8rem; max-width: 100%; }

.footer-links { flex: 1; min-width: 140px; } /* কুইক লিংক বাম দিকে */
.footer-links h4 { font-size: 0.95rem; margin-bottom: 10px; }
.footer-links ul li { margin-bottom: 5px; }
.footer-links ul a { font-size: 0.8rem; }

.footer-social { flex: 1; min-width: 120px; text-align: right; } /* সোশ্যাল মিডিয়া ডান দিকে */
.footer-social h4 { font-size: 0.95rem; margin-bottom: 10px; }
.social-icons { display: flex; gap: 8px; justify-content: flex-end; }
.social-icons a { width: 42px; height: 42px; font-size: 0.9rem; }

footer { padding: 25px 5% 15px; }
.footer-bottom { margin-top: 20px; padding-top: 10px; font-size: 0.75rem; }

.ctrl-btn {
    width: 70px; 
    height: 70px; 
    font-size: 2rem; 
    background: #1e293b; 
    color: #00d4ff; 
    border: 2px solid #00d4ff; 
    border-radius: 15px; 
    cursor: pointer; 
    user-select: none;
    transition: 0.1s;
}
.ctrl-btn:active { 
    background: #00d4ff; 
    color: #0b1120; 
    transform: scale(0.95); 
}
