/* ========================================
   Xnet_Hub Website - Main Stylesheet
   ======================================== */

/* CSS Variables - থিম এবং রঙ সিস্টেম */
:root {
    /* Light Theme Colors - লাইট থিম রঙ */
    --primary-color: #2196f3; /* আপনার পছন্দের মূল রঙ */
    --primary-light: #64b5f6;
    --primary-dark: #1976d2;
    --primary-gradient: linear-gradient(135deg, #2196f3 0%, #21cbf3 100%);
    --secondary-gradient: linear-gradient(135deg, #2196f3 0%, #673ab7 100%);
    --accent-gradient: linear-gradient(135deg, #2196f3 0%, #00bcd4 100%);
    --success-gradient: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    --warning-gradient: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    
    /* Light Theme Backgrounds - লাইট থিম ব্যাকগ্রাউন্ড */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e3f2fd;
    --bg-card: #ffffff;
    --bg-overlay: rgba(255, 255, 255, 0.95);
    
    /* Light Theme Text - লাইট থিম টেক্সট */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --text-white: #ffffff;
    --text-dark: #1a1a1a;
    
    /* Light Theme Borders - লাইট থিম বর্ডার */
    --border-light: #e0e0e0;
    --border-medium: #cccccc;
    --border-dark: #999999;
    
    /* Shadows - ছায়া */
    --shadow-light: 0 2px 10px rgba(33, 150, 243, 0.1);
    --shadow-medium: 0 4px 20px rgba(33, 150, 243, 0.15);
    --shadow-heavy: 0 8px 30px rgba(33, 150, 243, 0.2);
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    /* Border Radius - বর্ডার রেডিয়াস */
    --border-radius: 12px;
    --border-radius-large: 20px;
    --border-radius-small: 8px;
    
    /* Transitions - ট্রানজিশন */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;
    
    /* Spacing - স্পেসিং */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
}

/* Dark Theme - ডার্ক থিম */
[data-theme="dark"] {
    /* Dark Theme Backgrounds - ডার্ক থিম ব্যাকগ্রাউন্ড */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #1e3a5f;
    --bg-card: #2d2d2d;
    --bg-overlay: rgba(26, 26, 26, 0.95);
    
    /* Dark Theme Text - ডার্ক থিম টেক্সট */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-light: #999999;
    --text-dark: #333333;
    
    /* Dark Theme Borders - ডার্ক থিম বর্ডার */
    --border-light: #404040;
    --border-medium: #555555;
    --border-dark: #666666;
    
    /* Dark Theme Shadows - ডার্ক থিম ছায়া */
    --shadow-light: 0 2px 10px rgba(33, 150, 243, 0.2);
    --shadow-medium: 0 4px 20px rgba(33, 150, 243, 0.25);
    --shadow-heavy: 0 8px 30px rgba(33, 150, 243, 0.3);
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* CSS Reset - CSS রিসেট */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles - বেস স্টাইল */
html {
    scroll-behavior: smooth; /* স্মুথ স্ক্রল */
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
    overflow-x: hidden; /* হরাইজন্টাল স্ক্রল বন্ধ */
}

/* Container - কন্টেইনার */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography - টাইপোগ্রাফি */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

/* Theme Toggle Button - থিম টগল বোতাম */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 140px;
    z-index: 1000;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

/* Language Selector - ভাষা নির্বাচক */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-selector select {
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.language-selector select:hover {
    box-shadow: var(--shadow-medium);
}

/* Navigation - নেভিগেশন */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hamburger Menu - হ্যামবার্গার মেনু */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section - হিরো সেকশন */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-text .highlight {
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--spacing-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

/* Buttons - বোতাম */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::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: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Section Headers - সেকশন হেডার */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section - সম্পর্কে সেকশন */
.about {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Products Preview Section - পণ্য প্রিভিউ সেকশন */
.products-preview {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-large);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.product-image {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.product-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-logo {
    transform: scale(1.1);
}

.product-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    text-align: center;
    font-weight: 600;
}

/* প্রতিটি অ্যাপের আলাদা কালার - Different colors for each app */
.product-card:nth-child(1) .product-content h3 {
    color: #2196f3; /* Xnet_Hub - আপনার পছন্দের রঙ */
}

.product-card:nth-child(2) .product-content h3 {
    color: #ff6b35; /* Xnet_Hub Rewards - কমলা */
}

.product-card:nth-child(3) .product-content h3 {
    color: #4caf50; /* Android_X - সবুজ */
}

.product-card:nth-child(4) .product-content h3 {
    color: #9c27b0; /* Android_Xp - বেগুনি */
}

.product-content p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.products-cta {
    text-align: center;
}

/* Vision Section - ভিশন সেকশন */
.vision {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-secondary);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.vision-card {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.vision-card:hover::before {
    opacity: 0.05;
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.vision-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 1.5rem;
    color: white;
    position: relative;
    z-index: 2;
}

.vision-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 2;
}

.vision-card p {
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

/* Call to Action Section - কল টু অ্যাকশন সেকশন */
.cta {
    padding: var(--spacing-xxl) 0;
    background: var(--primary-gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.cta p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer - ফুটার */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-dark);
    color: var(--text-light);
}

/* Animations - অ্যানিমেশন */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design - রেসপন্সিভ ডিজাইন */
@media (max-width: 768px) {
    /* Mobile Navigation - মোবাইল নেভিগেশন */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-overlay);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--spacing-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        border-top: 1px solid var(--border-light);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile Hero - মোবাইল হিরো */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Mobile About - মোবাইল সম্পর্কে */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    /* Mobile Products - মোবাইল পণ্য */
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Mobile Vision - মোবাইল ভিশন */
    .vision-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Mobile CTA - মোবাইল কল টু অ্যাকশন */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Mobile Footer - মোবাইল ফুটার */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    /* Mobile Theme Toggle - মোবাইল থিম টগল */
    .theme-toggle {
        top: 15px;
        right: 70px;
        width: 45px;
        height: 45px;
    }
    
    /* Mobile Language Selector - মোবাইল ভাষা নির্বাচক */
    .language-selector {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    /* Small Mobile Adjustments - ছোট মোবাইল সমন্বয় */
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .vision-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Print Styles - প্রিন্ট স্টাইল */
@media print {
    .navbar,
    .theme-toggle,
    .language-selector,
    .hero-buttons,
    .cta-buttons {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* High Contrast Mode - উচ্চ কনট্রাস্ট মোড */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --bg-primary: #ffffff;
        --bg-secondary: #f0f0f0;
        --border-light: #000000;
    }
    
    [data-theme="dark"] {
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --bg-primary: #000000;
        --bg-secondary: #1a1a1a;
        --border-light: #ffffff;
    }
}

/* Reduced Motion - কম গতি */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero::before,
    .cta::before {
        animation: none;
    }
}

/* Focus Styles - ফোকাস স্টাইল */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Selection Styles - নির্বাচন স্টাইল */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Scrollbar Styles - স্ক্রলবার স্টাইল */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
} 