/* ===== Base Styles ===== */
:root {
    --primary-color: #6c5ce7;
    --primary-dark: #5649c0;
    --secondary-color: #00cec9;
    --dark-color: #0f0f1a;
    --darker-color: #0a0a12;
    --light-color: #f5f6fa;
    --gray-color: #a4b0be;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #d63031;
    --font-main: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-color);
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.dark-section {
    background-color: var(--darker-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--light-color);
}

.section-title .highlight {
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

/* ===== Navigation ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1100;
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(108, 92, 231, 0.2);
}

#navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* make sure page content not hidden under fixed navbar */
body {
  padding-top: 75px; /* আপনার navbar এর height অনুযায়ী adjust করুন */
}

/* ensure page content not hidden under fixed navbar */
body {
  padding-top: 75px; /* navbar height অনুযায়ী মান adjust করতে পারেন */
}

/* make sure navbar always on top */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
}

/* Add this AFTER your existing .logo styles */
.logo a {
    color: inherit; /* Inherits color from .logo */
    text-decoration: none; /* Removes underline */
    display: inline-block; /* Better spacing */
    transition: var(--transition); /* Smooth color change */
}

.logo a:hover {
    color: var(--primary-color); /* Your highlight color */
}

/* This likely exists already - just verify it's there */
.logo .highlight {
    color: var(--primary-color);
}

.logo .highlight {
    color: var(--primary-color);
}

#navbar ul {
    display: flex;
    list-style: none;
}

#navbar ul li {
    margin-left: 30px;
}

#navbar ul li a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

#navbar ul li a:hover {
    color: var(--primary-color);
}

#navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

#navbar ul li a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero Section ===== */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--darker-color) 0%, var(--dark-color) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--light-color);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.cta-button {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    font-size: 1rem;
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.cta-button.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.6);
}

.cta-button.secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cta-button.secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(108, 92, 231, 0.1) 0%, rgba(15, 15, 26, 0.9) 70%);
    z-index: 1;
}

/* ===== About Section ===== */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-color);
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-photo {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: translateY(-5px);
}

/* Optional frame effect (add if you want the decorative frame) */
.photo-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 25px;
    top: 15px;
    left: 15px;
    z-index: -1;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Add these new styles right after the About section */
.about-image:hover .photo-frame {
    opacity: 0.7;
    top: 10px;
    left: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-photo {
        max-width: 300px;
    }
}

/* ===== Channels Section ===== */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.channel-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.channel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.2);
    border-color: var(--primary-color);
}

.channel-card.coming-soon {
    opacity: 0.7;
    filter: grayscale(50%);
}

.channel-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.channel-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.channel-card h3 {
    font-size: 1.3rem;
    color: var(--light-color);
}

.channel-card .stats {
    margin-bottom: 20px;
}

.channel-card .stats p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    color: var(--gray-color);
}

.channel-card .stats i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 15px;
}

.subscribe-btn i {
    margin-right: 8px;
}

.subscribe-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

    /* ===== Gaming Section ===== */
    .game-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
        margin-top: 50px;
    }

/* Home game slider */
.game-slider-wrapper {
  overflow: hidden;
  width: 100%;
  margin-top: 30px;
}
.game-slider {
  display: flex;
  gap: 20px;
  transition: transform 0.6s ease;
  will-change: transform;
  align-items: stretch;
}
.game-slide {
  min-width: calc((100% - 40px) / 3);
  background-color: rgba(255,255,255,0.04);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.game-slide img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display:block;
}
.game-slide .game-card-content {
  padding: 12px;
  text-align:center;
}
@media (max-width: 900px) {
  .game-slide { min-width: calc((100% - 20px) / 2); }
}
@media (max-width: 520px) {
  .game-slide { min-width: 100%; }
}


    .game-card {
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: var(--border-radius);
        overflow: hidden;
        transition: var(--transition);
        border: 1px solid rgba(255, 255, 255, 0.1);
        cursor: pointer;
        text-decoration: none; /* Ensure links don't have underlines */
        color: inherit; /* Inherit text color */
    }

    .game-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(108, 92, 231, 0.2);
        border-color: var(--primary-color);
    }

    .game-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        display: block; /* Remove extra space below image */
    }

    .game-card-content {
        padding: 20px;
        text-align: center;
    }

    .game-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: var(--light-color);
    }

    .game-card p {
        font-size: 0.9rem;
        color: var(--gray-color);
    }

    /* Responsive adjustments for Gaming Section */
    @media (max-width: 768px) {
        .game-grid {
            grid-template-columns: 1fr;
        }
    }

/* ===== Achievements Section ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.2);
    border-color: var(--primary-color);
}

.stat-card .counter {
    font-size: 2.5rem; /* Slightly smaller than before */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--font-secondary); /* Consider a more readable font */
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-card .counter {
        font-size: 2rem;
    }
}
/* ===== Fan Showcase Section ===== */
.fan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.fan-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.2);
    border-color: var(--primary-color);
}

.fan-card iframe {
    width: 100%;
    height: 200px;
    border: none;
}

.fan-card p {
    padding: 15px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ===== Recent Videos Section ===== */
.video-carousel {
    position: relative;
    margin-top: 50px;
}

.video-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 20px;
    padding: 20px 0;
}

.video-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.video-wrapper iframe {
    min-width: 300px;
    height: 200px;
    border-radius: var(--border-radius);
    border: none;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.carousel-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

#prev {
    left: -25px;
}

#next {
    right: -25px;
}

/* ===== Support Section ===== */
.support-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.support-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.2);
    border-color: var(--primary-color);
}

.support-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.support-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--light-color);
}

.support-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.upi-code {
    background-color: rgba(108, 92, 231, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.upi-code p {
    margin-bottom: 10px;
    color: var(--gray-color);
}

/* UPI ID Styles */
.upi-id {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(108, 92, 231, 0.2);
    padding: 12px 15px;
    border-radius: var(--border-radius);
    margin: 10px 0;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(108, 92, 231, 0.3);
}

.upi-id:hover {
    background-color: rgba(108, 92, 231, 0.3);
    border-color: var(--primary-color);
}

.upi-id span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    word-break: break-all;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    transition: var(--transition);
}

.copy-btn:hover {
    transform: scale(1.1);
    color: white;
}

.copy-message {
    color: var(--success-color);
    font-size: 0.9rem;
    height: 1rem;
    text-align: center;
    margin-top: 5px;
    transition: var(--transition);
    opacity: 0;
}

.copy-message.show {
    opacity: 1;
}

/* ===== Contact Section ===== */
.contact-content {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.contact-form {
    flex: 1;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light-color);
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.info-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.2);
    border-color: var(--primary-color);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--light-color);
}

.info-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.info-card a:hover {
    text-decoration: underline;
}

/* ===== Footer ===== */
footer {
    background-color: var(--darker-color);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-color);
}

.footer-logo p {
    color: var(--gray-color);
    margin-top: 10px;
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.3rem;
    color: var(--light-color);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--gray-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ===== Particles Background ===== */
#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-1000px) translateX(200px);
        opacity: 0;
    }
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 50px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    #navbar ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--darker-color);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: var(--shadow);
    }
    
    #navbar ul.show {
        display: flex;
    }
    
    #navbar ul li {
        margin: 0;
        padding: 10px 20px;
    }
    
    #navbar ul li a {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    #prev {
        left: -20px;
    }
    
    #next {
        right: -20px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .channel-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .video-wrapper iframe {
        min-width: 280px;
        height: 180px;
    }
}
footer {
  position: relative;
  z-index: 20;
}

/* FORCE header/footer visibility for games.html */
#navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 4000 !important;   /* navbar সর্বোচ্চে রাখুন */
  display: block !important;
}

body {
  padding-top: 90px !important; /* navbar উচ্চতা অনুযায়ী adjust করুন */
}

/* footer কে দেখাতে নিচু কিন্তু উপরের overlay গুলোর নিচে না রাখুন */
footer {
  position: relative !important;
  z-index: 3000 !important;
  display: block !important;
}

/* যেগুলো পুরো পেজ কভার করতে পারে তাদের relative করে নিচে নামান */
.game-fullscreen,
.game-iframe-wrapper,
.ad-modal,
#game-container,
.games-embed,
iframe.fullscreen,
iframe.game-frame {
  position: relative !important;
  z-index: 1 !important;
  top: auto !important;
  left: auto !important;
  height: auto !important;
}

/* safety: যদি কেউ display:none দিয়ে লুকিয়ে থাকে তখনও দেখাবে */
#navbar, footer {
  visibility: visible !important;
  opacity: 1 !important;
}

/* FORCE header/footer visibility for games.html */
#navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 4000 !important;
  display: block !important;
}

body {
  padding-top: 90px !important;
}

footer {
  position: relative !important;
  z-index: 3000 !important;
  display: block !important;
}

.game-fullscreen,
.game-iframe-wrapper,
.ad-modal,
#game-container,
.games-embed,
iframe.fullscreen,
iframe.game-frame {
  position: relative !important;
  z-index: 1 !important;
  top: auto !important;
  left: auto !important;
  height: auto !important;
}

#navbar, footer {
  visibility: visible !important;
  opacity: 1 !important;
}
