/* 1. Global Reset & Theme Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    list-style: none;
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

/* Dark and Light Variables */
:root {
    /* Dark Theme (Default) */
    --bg-main: #0b0f19;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --glass-bg: rgba(11, 15, 25, 0.7);
    --glass-border: rgba(255, 255, 255, 0.06);
    --accent-blue: #0071e3;
    --accent-gradient: linear-gradient(135deg, #0071e3, #6366f1);
    --nav-btn-bg: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
    /* Light Theme (Apple White) */
    --bg-main: #f5f5f7;
    --text-main: #1d1d1f;
    --text-muted: #6e6e73;
    --glass-bg: rgba(245, 245, 247, 0.7);
    --glass-border: rgba(0, 0, 0, 0.06);
    --nav-btn-bg: rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
}

/* 2. Fixed Navbar Layout */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Typography & Links */
.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.logo span {
    color: #6366f1;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Actions (Theme Switcher + Premium Button) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
}

.theme-btn:hover {
    background: var(--nav-btn-bg);
}

/* Hide Icons based on theme */
[data-theme="light"] .sun-icon { display: none; }
body.dark-theme .moon-icon { display: none; }

.btn-nav {
    background: var(--text-main);
    color: var(--bg-main);
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn-nav:hover {
    transform: scale(1.03);
}
/* ==========================================
   3. Hero Section Styles (Apple & Stripe)
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 80px 24px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    top: 10%;
    right: 10%;
    z-index: -1;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    background: var(--nav-btn-bg);
    border: 1px solid var(--glass-border);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6366f1;
    display: inline-block;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #0071e3, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
}

.btn-hero-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.5);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
}

.btn-hero-secondary:hover {
    background: var(--nav-btn-bg);
    transform: translateY(-3px);
}

.glass-card-hero {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: floatAnimation 6s ease-in-out infinite;
}

.card-header-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.card-body-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-price {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.card-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.btn-card-action {
    display: block;
    text-align: center;
    background: var(--text-main);
    color: var(--bg-main);
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
}

.btn-card-action:hover { transform: scale(1.02); }

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ==========================================
   4. About Section Styles (Bento Grid)
   ========================================== */
.about-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-tag {
    color: #6366f1;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    line-height: 1.2;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Apple Style Bento Grid for Statistics */
.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
}

.glass-cardHighlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(0, 113, 227, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.05);
}

.stat-box h3 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-box:hover {
    transform: translateY(-5px);
}

/* Responsive Styles for Both Sections */
@media (max-width: 968px) {
    .hero-container, .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; }
    .hero-subtitle { margin: 0 auto 30px auto; }
    .hero-cta-group { justify-content: center; }
    .about-stats-grid { gap: 16px; }
}
/* ==========================================
   5. Skills Section Styles
   ========================================== */
.skills-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Apple Style Tab Switcher Buttons */
.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    background: var(--nav-btn-bg);
    padding: 6px;
    border-radius: 16px;
    max-width: 450px;
    margin: 0 auto 50px auto;
    border: 1px solid var(--glass-border);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    width: 50%;
}

.tab-btn.active {
    background: var(--text-main);
    color: var(--bg-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Tab Content Visibility Logic */
.tab-content {
    display: none; /* সব ট্যাব কনটেন্ট ডিফল্টভাবে হাইড থাকবে */
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block; /* শুধুমাত্র একটিভ ক্লাসের কন্টেন্ট শো করবে */
}

/* Skills Layout & Glassmorphic Progress Bars */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skill-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.progress-line {
    height: 6px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

/* Dynamic Filling bar */
.progress-line span {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: var(--accent-gradient);
    border-radius: 10px;
}

/* Simple Smooth Fade In Keyframe */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* এটি কার্ড দুটিকে পাশাপাশি আনবে */
    gap: 32px;
    max-width: 950px;
    margin: 0 auto;
}
/* ==========================================
   7. Portfolio Section Styles
   ========================================== */
.portfolio-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Filter Controls Layout */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--text-main);
    color: var(--bg-main);
    border-color: var(--text-main);
}

/* Portfolio Responsive Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.portfolio-item {
    border-radius: 24px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-img-wrapper {
    position: relative;
    width: 100%;
    height: 320px; /* ইমেজের স্ট্যান্ডার্ড প্রফেশনাল হাইট */
    cursor: pointer;
}

/* Placeholder Gradients for beautiful fallback until you insert actual images */
.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 20px;
}

.graphic-gradient { background: linear-gradient(135deg, #1e2640 0%, #0d111d 100%); }
.tech-gradient { background: linear-gradient(135deg, #162a45 0%, #0a101d 100%); }
.social-gradient { background: linear-gradient(135deg, #2c1b4d 0%, #0f0a1c 100%); }
.dark-gradient { background: linear-gradient(135deg, #252525 0%, #121212 100%); }

/* Glassmorphic Smooth Overlay Effects */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-img-wrapper:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.portfolio-img-wrapper:hover .overlay-content h3,
.portfolio-img-wrapper:hover .overlay-content p {
    transform: translateY(0);
}

/* Portfolio Filter Hide/Show Animation Classes */
.portfolio-item.hide {
    display: none;
}

.portfolio-item.show {
    animation: fadeInPortfolio 0.4s ease forwards;
}

@keyframes fadeInPortfolio {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .portfolio-img-wrapper {
        height: 250px;
    }
}
/* ==========================================
   8. Contact & Footer Section Styles
   ========================================== */
.contact-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    max-width: 1050px;
    margin: 0 auto;
}

/* Contact Info Box Card */
.contact-info-box {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-info-box h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.info-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.info-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
    font-size: 0.95rem;
}

.info-icon {
    font-size: 1.2rem;
}

/* Premium Form Elements */
.contact-form-wrapper {
    padding: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

/* Styling Dropdown/Select Options for Dark Mode Compatibility */
.form-group select option {
    background: #0d111d; /* Fallback for clean dark theme dropdown */
    color: #fff;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Premium Footer Styles */
.premium-footer {
    padding: 60px 24px 40px 24px;
    background: rgba(10, 10, 12, 0.4);
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 40px;
}

.footer-credo {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 450px;
}

.footer-divider {
    border: none;
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 24px;
}

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--text-main);
}

/* Responsive Grid Fixes */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}