/* ============================================================
   CSS ফাইল: style.css
   এই ফাইলটি 'index.html'-এর সঙ্গে সংযুক্ত। 
   এখানে ওয়েবসাইটের সব ডিজাইন (রঙ, লেআউট, অ্যানিমেশন, রেস্পন্সিভ) কন্ট্রোল করা হয়।
   ============================================================ */

/* ============================================================
   ১. রুট ভেরিয়েবল (Root Variables) ও থিম (ডার্ক/লাইট):
   এখানে সব রঙ, সাইজ, শ্যাডো, গ্রেডিয়েন্ট ইত্যাদি সংরক্ষণ করা আছে।
   'data-theme' অ্যাট্রিবিউটের উপর ভিত্তি করে ডার্ক বা লাইট মোড সক্রিয় হয়।
   ============================================================ */

/* ----- ডিফল্ট থিম: ডার্ক মোড (Dark Mode) ----- */
:root,
[data-theme="dark"] {
    /* পেজের ব্যাকগ্রাউন্ড রঙ */
    --bg: #0a0a0f;
    
    /* স্বচ্ছ কার্ড/বক্সগুলোর ব্যাকগ্রাউন্ড (গ্লাসমরফিজমের জন্য) */
    --surface: rgba(18, 18, 26, 0.7);
    --surface2: rgba(26, 26, 38, 0.6);
    --card: rgba(22, 22, 34, 0.65);
    
    /* প্রধান রঙ (অ্যাকসেন্ট) ও তার শেড */
    --accent: #6c5ce7;        /* গভীর বেগুনি */
    --accent2: #a29bfe;       /* হালকা বেগুনি */
    --accent3: #fd79a8;       /* গোলাপি */
    
    /* টেক্সটের রঙ (শিরোনাম, বডি, সাবটেক্সট) */
    --text: #e2e2f0;          /* প্রধান টেক্সট */
    --text2: #a0a0c0;         /* মাধ্যমিক টেক্সট */
    --text3: #6b6b8a;         /* গৌণ/হালকা টেক্সট */
    
    /* বর্ডার ও গ্লো ইফেক্টের রঙ */
    --border: rgba(255, 255, 255, 0.08);
    --glow: rgba(108, 92, 231, 0.35);
    --glow-pink: rgba(253, 121, 168, 0.3);
    
    /* নেভিগেশন ব্যাকগ্রাউন্ড */
    --nav-bg: rgba(22, 22, 34, 0.75);
    
    /* মোডাল (পপ-আপ) ব্যাকগ্রাউন্ড */
    --modal-overlay: rgba(0, 0, 0, 0.5);
    --modal-bg: rgba(22, 22, 34, 0.85);
    
    /* আউটলাইন বাটনের টেক্সট রঙ */
    --btn-outline-text: var(--text);
    
    /* হিরো সেকশনের গ্রেডিয়েন্ট টেক্সট */
    --hero-gradient: linear-gradient(135deg, #fff 0%, var(--accent2) 50%, var(--accent3) 100%);
    
    /* সেকশন টাইটেলের গ্রেডিয়েন্ট */
    --section-title-gradient: linear-gradient(135deg, #fff, var(--accent2));
    
    /* কর্নার রাউন্ডনেস (বৃত্তাকার কোণ) */
    --radius: 28px;
    --radius-sm: 16px;
    
    /* ট্রানজিশন (অ্যানিমেশন সময় ও স্পিড) */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* গ্লাস ইফেক্টের জন্য ব্লার পরিমাণ */
    --blur-amount: 28px;
    
    /* প্লেসহোল্ডার ও অন্যান্য গৌণ রঙ */
    --placeholder-color: var(--text3);
    --footer-color: var(--text3);
    --stat-label-color: var(--text3);
    --contact-link-color: var(--accent2);
    --tag-link-color: #ffffff;
    
    /* মোবাইলে নেভ ব্যাকগ্রাউন্ড */
    --nav-bg-mobile: rgba(22, 22, 34, 0.92);
    
    /* কন্টাক্ট ফর্মের ফিল্ড ব্যাকগ্রাউন্ড */
    --contact-field-bg: #171624;
    --contact-field-focus-bg: #171624;
    
    /* কন্টাক্ট ফর্মের বর্ডার গ্রেডিয়েন্ট */
    --contact-border-gradient: linear-gradient(135deg, rgba(253, 121, 168, 0.52), rgba(162, 155, 254, 0.58), rgba(108, 92, 231, 0.50), rgba(6, 182, 212, 0.44));
}

/* ----- লাইট মোড (Light Mode) ----- */
[data-theme="light"] {
    /* লাইট মোডে ব্যাকগ্রাউন্ড হালকা ধূসর */
    --bg: #f5f7fa;
    --surface: rgba(255, 255, 255, 0.55);
    --surface2: rgba(240, 242, 245, 0.65);
    --card: rgba(255, 255, 255, 0.65);
    
    /* লাইট মোডে অ্যাকসেন্ট রঙ নীল টোনে */
    --accent: #1e40af;
    --accent2: #3b82f6;
    --accent3: #06b6d4;
    
    /* সব টেক্সট কালো (উচ্চ কনট্রাস্ট) */
    --text: #000000;
    --text2: #000000;
    --text3: #000000;
    
    --border: rgba(0, 0, 0, 0.08);
    --glow: rgba(37, 99, 235, 0.25);
    --glow-pink: rgba(6, 182, 212, 0.35);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --modal-overlay: rgba(15, 23, 42, 0.4);
    --modal-bg: rgba(255, 255, 255, 0.85);
    --btn-outline-text: #000000;
    
    /* লাইট মোডে গ্রেডিয়েন্ট */
    --hero-gradient: linear-gradient(135deg, #1e3a8a, #06b6d4);
    --section-title-gradient: linear-gradient(135deg, #1e3a8a, #0ea5e9);
    
    --blur-amount: 22px;
    --placeholder-color: #000000;
    --footer-color: #000000;
    --stat-label-color: #000000;
    --contact-link-color: #000000;
    --tag-link-color: #1e40af;
    --nav-bg-mobile: rgba(255, 255, 255, 0.92);
    --contact-field-bg: rgba(255, 255, 255, 0.82);
    --contact-field-focus-bg: rgba(255, 255, 255, 0.96);
    --contact-border-gradient: linear-gradient(135deg, #1e40af, #3b82f6, #06b6d4, #fd79a8);
}

/* ============================================================
   ২. গ্লোবাল রিসেট ও বেসিক স্টাইল (Global Reset & Base)
   সব এলিমেন্টের মার্জিন-প্যাডিং রিসেট, স্ক্রলবার কাস্টমাইজেশন,
   এবং বডির বেসিক ফন্ট ও ব্যাকগ্রাউন্ড সেট করা।
   ============================================================ */

/* সব এলিমেন্টের ডিফল্ট মার্জিন-প্যাডিং মুছে ফেলা */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;  /* বক্স সাইজিং বর্ডার-বক্স করা (প্যাডিং ও বর্ডার সাইজের মধ্যে গণনা হবে) */
}

/* HTML এলিমেন্টের জন্য স্ক্রল বিহেভিয়ার ও স্ক্রলবার কাস্টমাইজেশন */
html {
    scroll-behavior: smooth;          /* স্মুথ স্ক্রল */
    scrollbar-width: thin;             /* ফায়ারফক্সে পাতলা স্ক্রলবার */
    scrollbar-color: var(--accent) transparent;  /* ফায়ারফক্সে স্ক্রলবারের রঙ */
    overflow-x: hidden;               /* অনুভূমিক স্ক্রল না হওয়া */
}

/* ওয়েবকিট ব্রাউজারে (ক্রোম, এজ, সাফারি) স্ক্রলবার কাস্টমাইজেশন */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

/* বডি: পুরো পেজের ব্যাকগ্রাউন্ড, টেক্সট রঙ, ফন্ট ও ট্রানজিশন */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;  /* থিম পরিবর্তনে স্মুথ ট্রানজিশন */
}

/* ============================================================
   ৩. স্ক্রল প্রগ্রেস বার (Scroll Progress Bar)
   পেজের উপরে একটি সরু বার যা স্ক্রলের অগ্রগতি দেখায়।
   ============================================================ */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent3));
    z-index: 200;           /* অন্যান্য এলিমেন্টের উপরে থাকবে */
    width: 0%;
    border-radius: 0 3px 3px 0;
    transition: width 0.1s linear;
}

/* ============================================================
   ৪. পার্টিকেল ক্যানভাস (Particle Canvas)
   ব্যাকগ্রাউন্ডে থাকা ডায়নামিক পার্টিকেলের ক্যানভাস।
   ============================================================ */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;   /* মাউসের ইভেন্ট ব্লক করে না (নিচের কন্টেন্টে ক্লিক করা যাবে) */
    z-index: 0;             /* সব কন্টেন্টের পেছনে থাকবে */
    opacity: 0.5;
}

/* ============================================================
   ৫. কার্সর গ্লো ইফেক্ট (Cursor Glow)
   মাউসের চারপাশে একটি বড় আভা যা ফোকাস তৈরি করে।
   ============================================================ */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    pointer-events: none;   /* মাউস ইভেন্ট ব্লক করে না */
    z-index: 1;             /* পার্টিকেলের উপরে কিন্তু কন্টেন্টের নিচে */
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;             /* ডিফল্টভাবে লুকানো */
}
/* হোভার করলেই গ্লো দেখাবে (পারফরম্যান্সের জন্য) */
body:hover .cursor-glow {
    opacity: 1;
}

/* ============================================================
   ৬. মেইন র‍্যাপার (Main Wrapper)
   সব কন্টেন্টকে মাঝখানে সীমাবদ্ধ রাখে এবং অন্যান্য এলিমেন্টের তুলনায় উপরে রাখে।
   ============================================================ */
.main-wrapper {
    position: relative;
    z-index: 2;             /* পার্টিকেল ও কার্সর গ্লোর উপরে */
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 28px 60px;
    overflow-x: hidden;
}

/* ============================================================
   ৭. গ্লাসমরফিজম ক্লাস (Glassmorphism)
   'glass' ক্লাস যুক্ত এলিমেন্টগুলো স্বচ্ছ, ব্লারযুক্ত ও বর্ডারযুক্ত হয়।
   ============================================================ */
.glass,
.stat-card,
.profile-card,
.info-card,
.project-card,
.timeline-content,
.modal-box {
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

/* ============================================================
   ৮. থিম টগল বাটন (Theme Toggle Button)
   ডান নিচের কোণায় ভাসমান বাটন, ডার্ক/লাইট সুইচ করে।
   ============================================================ */
.theme-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 250;
    background: var(--card);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0;           /* টেক্সট লুকানো */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: var(--text);
    border: 1px solid var(--border);
    transition: var(--transition);
    /* ব্রাউজারের ডিফল্ট স্টাইল ওভাররাইড */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);        /* হার্ডওয়্যার অ্যাক্সিলারেশন */
    backface-visibility: hidden;
    contain: paint;
    overflow: hidden;
    padding: 0;
    line-height: 1;
}
.theme-toggle svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* হোভার এফেক্ট */
.theme-toggle:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 30px var(--glow);
    transform: translateZ(0) scale(1.08);
}

/* ============================================================
   ৯. ফ্লোটিং নেভিগেশন বার (Floating Navigation Bar)
   উপরের দিকে ভেসে থাকা মেনু, স্ক্রল করলে রঙ পরিবর্তন হয়।
   ============================================================ */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: var(--nav-bg);
    border: 1px solid var(--border);
    border-radius: 60px;
    padding: 8px 14px;
    display: flex;
    gap: 4px;
    align-items: center;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s;
    flex-wrap: nowrap;
    max-width: 92vw;
    overflow-x: auto;       /* ছোট স্ক্রিনে হরাইজন্টাল স্ক্রল */
    scrollbar-width: none;  /* ফায়ারফক্সে স্ক্রলবার লুকানো */
}
.floating-nav::-webkit-scrollbar {
    display: none;          /* ক্রোমে স্ক্রলবার লুকানো */
}
/* নেভ স্ক্রল করলে গ্লো ইফেক্ট আসে (জাভাস্ক্রিপ্ট 'scrolled' ক্লাস যোগ করে) */
.floating-nav.scrolled {
    border-color: var(--accent);
    box-shadow: 0 12px 50px var(--glow);
}
.floating-nav a {
    text-decoration: none;
    color: var(--text2);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;    /* লাইন ব্রেক না হওয়া */
}
.floating-nav a:hover,
.floating-nav a.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 24px var(--glow);
}

/* ============================================================
   ১০. হিরো সেকশন (Hero Section)
   প্রথম অংশ: প্রোফাইল ছবি, নাম, পরিচয় ও বাটন।
   ============================================================ */
.hero {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 100vh;       /* পুরো ভিউপোর্ট জুড়ে থাকবে */
    padding-top: 80px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* প্রোফাইল ছবির র‍্যাপার (অ্যানিমেটেড বর্ডার ও গ্লো) */
.hero-avatar-wrap {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 4px solid transparent;
    background-color: var(--bg);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    /* মাল্টি-রঙের ঘূর্ণায়মান বর্ডার */
    background-image: linear-gradient(var(--bg), var(--bg)), linear-gradient(45deg, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #8b5cf6);
    box-shadow: 0 0 60px var(--glow), 0 0 120px var(--glow-pink);
    cursor: pointer;
    transition: transform 0.5s;
    flex-shrink: 0;
}
.hero-avatar-wrap:hover {
    transform: scale(1.06);
}
.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    animation: float 3s ease-in-out infinite;  /* উপরে-নিচে ভাসা */
}
/* ফ্লোট অ্যানিমেশন */
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* ডান পাশের টেক্সট এলাকা */
.hero-right {
    flex: 1 1 300px;
    max-width: 550px;
}

/* ব্যাজ/ট্যাগ */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--accent2);
    margin-bottom: 20px;
    backdrop-filter: blur(16px);
}

/* নামের শিরোনাম - গ্রেডিয়েন্ট টেক্সট */
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}
.hero h2 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text2);
    margin-bottom: 25px;
}
.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================================
   ১১. বাটন (Buttons)
   দুই ধরণের বাটন: প্রাইমারি (ভর্তি) ও আউটলাইন (খালি)।
   ============================================================ */
.btn {
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 30px var(--glow);
    border-radius: 50px;
}
.btn-primary:hover {
    background: var(--accent2);
    box-shadow: 0 14px 40px var(--glow);
    transform: translateY(-3px);
}
.btn-outline {
    background: transparent;
    color: var(--btn-outline-text);
    border: 2px solid var(--border);
    border-radius: 50px;
}
.btn-outline:hover {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
    box-shadow: 0 8px 25px var(--glow);
    transform: translateY(-3px);
}

/* ============================================================
   ১২. স্ক্রল ইন্ডিকেটর (Scroll Indicator)
   হিরোর নিচে 'scroll' লেখা ও তীর চিহ্ন যা নিচে স্ক্রল করতে উৎসাহিত করে।
   ============================================================ */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text3);
    font-size: 0.75rem;
    animation: bounceDown 2s ease infinite;  /* উপরে-নিচে লাফানো */
    cursor: pointer;
}
.scroll-indicator svg {
    width: 20px;
    height: 20px;
    stroke: var(--text3);
    stroke-width: 2;
    fill: none;
}
@keyframes bounceDown {
    0%,
    100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 12px);
    }
}
@keyframes bounceDownMobile {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* ============================================================
   ১৩. স্ট্যাটস রো (Stats Row)
   প্রজেক্ট সংখ্যা, শেখার সময়, ভিজিটর কাউন্ট দেখায়।
   ============================================================ */
.stats-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px 0 50px;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 30px;
    text-align: center;
    min-width: 120px;
    flex: 1 1 120px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 35px var(--glow);
    transform: translateY(-5px);
}
.stat-card .stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--stat-label-color);
    margin-top: 6px;
}

/* ============================================================
   ১৪. সেকশন টাইটেল (Section Title)
   প্রতিটি সেকশনের শিরোনাম, দুই পাশে লাইন ও গ্রেডিয়েন্ট টেক্সট।
   ============================================================ */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin: 60px 0 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.section-title span {
    background: var(--section-title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* দুই পাশের লাইন */
.section-title::after,
.section-title::before {
    content: '';
    flex: 0 0 40px;
    height: 2px;
    border-radius: 2px;
}
.section-title::before {
    background: var(--accent3);
}
.section-title::after {
    background: var(--accent);
}

/* ============================================================
   ১৫. প্রোফাইল কার্ড (Profile Card)
   বিস্তারিত পরিচয়, ছবি ও সোশ্যাল লিংক।
   ============================================================ */
.profile-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px 30px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
    transition: var(--transition);
}
.profile-card:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}
.profile-card .pfp-sm {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    flex-shrink: 0;
}
.profile-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
}
.profile-info .sub {
    color: var(--accent2);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.profile-info .bio {
    color: var(--text2);
    font-size: 0.95rem;
}

/* যোগাযোগের লিংকগুলো */
.contact-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--contact-link-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--surface2);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.contact-links a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 15px var(--glow);
}
.icon-sm {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ============================================================
   ১৬. গ্রিড সিস্টেম (Grid 2 Columns)
   দুই কলামের গ্রিড লেআউট, যা ছোট স্ক্রিনে এক কলামে পরিণত হয়।
   ============================================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* ============================================================
   ১৭. ইনফো কার্ড (Info Card)
   শিক্ষা, অবস্থান, দক্ষতা ইত্যাদি দেখানোর জন্য ছোট কার্ড।
   ============================================================ */
.info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 22px;
    transition: var(--transition);
}
.info-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}
/* যে কার্ডে ক্লিক করা যায়, তার জন্য কার্সর পয়েন্টার */
.info-card.clickable-card {
    cursor: pointer;
}
.info-card h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent2);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.info-card h4 svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent2);
    fill: none;
    stroke-width: 2;
}
.info-card p,
.info-card li {
    color: var(--text2);
    font-size: 0.9rem;
}
.info-card ul {
    list-style: none;
    padding: 0;
}
.info-card ul li {
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
}
.info-card ul li:last-child {
    border-bottom: none;
}

/* ============================================================
   ১৮. স্কিল বার (Skill Bars)
   দক্ষতার শতাংশ দেখানোর জন্য অ্যানিমেটেড বার।
   ============================================================ */
.skill-bar-wrap {
    margin-bottom: 16px;
}
.skill-bar-wrap .skill-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text2);
    margin-bottom: 6px;
}
.skill-bar {
    height: 8px;
    background: var(--surface2);
    border-radius: 10px;
    overflow: hidden;
}
.skill-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent), var(--accent3));
    width: 0%;               /* জাভাস্ক্রিপ্ট ডাইনামিক্যালি পরিবর্তন করবে */
    transition: width 1.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================================
   ১৯. টাইমলাইন (Timeline)
   যাত্রাপথ দেখানোর জন্য লাইন ও ডটসহ টাইমলাইন।
   ============================================================ */
.timeline-wrapper {
    position: relative;
    margin: 40px 0;
}
/* মাঝখানের উল্লম্ব লাইন */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent3), var(--accent));
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 0;
}
/* প্রতিটি টাইমলাইন আইটেম */
.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 40px;
    z-index: 1;
    opacity: 0;                 /* ডিফল্ট লুকানো (অ্যানিমেশন পরে দেখাবে) */
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* যখন দৃশ্যমান হবে (জাভাস্ক্রিপ্ট 'visible' ক্লাস যোগ করবে) */
.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}
/* বাম ও ডান পাশে আইটেম সাজানো */
.timeline-item:nth-child(odd) {
    flex-direction: row;
    justify-content: flex-start;
    padding-right: calc(50% + 30px);
}
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    justify-content: flex-start;
    padding-left: calc(50% + 30px);
}
/* টাইমলাইন কন্টেন্ট বক্স */
.timeline-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    max-width: 320px;
    width: 100%;
    transition: var(--transition);
}
.timeline-content:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}
.timeline-year {
    font-weight: 700;
    color: var(--accent2);
    font-size: 0.9rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.timeline-year svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent2);
    fill: none;
    stroke-width: 2;
}
/* লাইনে ডট (বৃত্ত) */
.timeline-dot {
    position: absolute;
    top: 20px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 20px var(--glow);
    z-index: 2;
}
.timeline-item:nth-child(odd) .timeline-dot {
    right: calc(50% - 7px);
}
.timeline-item:nth-child(even) .timeline-dot {
    left: calc(50% - 7px);
}

/* ============================================================
   ২০. প্রজেক্ট কার্ড (Project Cards)
   প্রজেক্টের নাম, বিবরণ ও লিংক দেখানো কার্ড।
   ============================================================ */
.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px 22px;
    transition: var(--transition);
    cursor: default;
    position: relative;
}
/* যে কার্ডে URL আছে, তার জন্য পয়েন্টার কার্সর */
.project-card[data-url] {
    cursor: pointer;
}
.project-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}
.project-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    pointer-events: none;   /* ক্লিক ইভেন্ট প্যারেন্টে যাবে */
}
.project-title svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent2);
    fill: none;
    stroke-width: 2;
}
/* ট্যাগ/ব্যাজ */
.project-card .tag {
    display: inline-block;
    background: var(--surface2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-top: 8px;
}
.project-card .tag a {
    color: var(--tag-link-color) !important;
    text-decoration: none;
}
.project-card .tag.no-link {
    color: var(--tag-link-color);
}

/* ============================================================
   ২১. স্ট্যাগার অ্যানিমেশন (Stagger Animation)
   এলিমেন্টগুলো একে একে ফেড ইন হবে। জাভাস্ক্রিপ্ট 'show' ক্লাস যোগ করে।
   ============================================================ */
.stagger-item {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   ২২. কন্টাক্ট ফর্ম (Contact Form)
   নাম, ইমেইল, বার্তা ও সাবমিট বাটন সহ ফর্ম।
   ============================================================ */
#contact {
    position: relative;
    padding-top: 18px;
}
#contact .section-title {
    margin-bottom: 58px;
}
.contact-form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 1.05fr) minmax(220px, 1.05fr) minmax(300px, 1fr) auto;
    gap: 4px;
    align-items: end;
    max-width: 1230px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
/* ইনপুট ও টেক্সটএরিয়া ফিল্ড */
.contact-form input,
.contact-form textarea {
    background: linear-gradient(var(--contact-field-bg), var(--contact-field-bg)) padding-box, var(--contact-border-gradient) border-box;
    border: 1.5px solid transparent;
    border-radius: 20px;
    padding: 18px 24px;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    resize: vertical;
    transition: var(--transition);
    outline: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    min-height: 74px;
}
/* প্লেসহোল্ডার স্টাইল */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    font-family: 'JetBrains Mono', monospace;
    color: var(--placeholder-color);
    opacity: 1;
    font-weight: 400;
}
.contact-form textarea {
    min-height: 164px;
    max-height: 164px;
    transform: translateY(-28px);   /* অন্যান্য ফিল্ডের সাথে সারিবদ্ধ করতে */
}
/* ফোকাস ইফেক্ট */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: transparent;
    background: linear-gradient(var(--contact-field-focus-bg), var(--contact-field-focus-bg)) padding-box, var(--contact-border-gradient) border-box;
    box-shadow: 0 0 0 1px rgba(162, 155, 254, 0.18), 0 0 18px rgba(108, 92, 231, 0.22), 0 0 26px rgba(253, 121, 168, 0.10);
}
/* সাবমিট বাটন */
.contact-form button {
    align-self: center;
    justify-content: center;
    border-radius: 50px;
    min-width: 240px;
    min-height: 66px;
    white-space: nowrap;
    box-shadow: 0 18px 54px var(--glow);
    transform: translateY(10px);
}

/* ============================================================
   ২৩. ফুটার (Footer)
   কপিরাইট ও অন্যান্য তথ্য।
   ============================================================ */
.footer {
    text-align: center;
    color: var(--footer-color);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ============================================================
   ২৪. মোডাল (Modal / Pop-up)
   প্রজেক্ট ভিজিট ও লোকেশন ভিউয়ের জন্য পপ-আপ উইন্ডো।
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-overlay);
    backdrop-filter: blur(12px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;    /* লুকানো থাকলে ক্লিক করা যায় না */
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-box {
    background: var(--modal-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
}
.modal-box p {
    margin-bottom: 20px;
    color: var(--text2);
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.modal-buttons .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: 50px;
}

/* ============================================================
   ২৫. লিকুইড ব্লব (Liquid Blob)
   হিরো সেকশনের পেছনে ঘুরতে থাকা রঙিন আভা (ডেকোরেশন)।
   ============================================================ */
.liquid-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
    border-radius: 40% 60% 60% 40% / 30% 30% 70% 70%;
    animation: morphBlob 12s linear infinite alternate;
    transform: translate(-50%, -50%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}
@keyframes morphBlob {
    0% {
        border-radius: 40% 60% 60% 40% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 60% 40% 40% 60% / 60% 70% 30% 40%;
    }
    50% {
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
    75% {
        border-radius: 30% 70% 70% 30% / 40% 40% 60% 60%;
    }
    100% {
        border-radius: 40% 60% 60% 40% / 30% 30% 70% 70%;
    }
}

/* ============================================================
   ২৬. রেস্পন্সিভ ডিজাইন (Responsive Design)
   মোবাইল ও ট্যাবলেট ডিভাইসের জন্য স্টাইল ওভাররাইড।
   ============================================================ */

/* ----- ৭৬৮px-এর নিচে (ট্যাবলেট ও বড় মোবাইল) ----- */
@media (max-width: 768px) {
    .main-wrapper {
        padding: 16px 14px 40px;
    }
    .hero {
        flex-direction: column;
        min-height: auto;
        padding: 100px 0 42px;
        gap: 22px;
    }
    .hero-avatar-wrap {
        width: 170px;
        height: 170px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero h2 {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }
    .hero-cta {
        gap: 10px;
    }
    .hero-cta .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    /* মোবাইলে নেভ বার ছোট ও স্ক্রলযোগ্য */
    .floating-nav {
        top: 12px;
        padding: 6px 8px;
        gap: 2px;
        border-radius: 40px;
        max-width: 96vw;
        justify-content: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        background: var(--nav-bg-mobile);
    }
    .floating-nav a {
        font-size: 0.7rem;
        padding: 6px 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .floating-nav a.active {
        background: var(--accent);
        color: #fff;
    }
    .stats-row {
        gap: 12px;
        margin: 12px 0 30px;
    }
    .stat-card {
        padding: 16px 20px;
        min-width: 80px;
        flex: 1 1 80px;
    }
    .stat-card .stat-number {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 1.4rem;
        margin: 40px 0 25px;
        gap: 10px;
    }
    .section-title::after,
    .section-title::before {
        flex: 0 0 20px;
    }
    .grid-2 {
        grid-template-columns: 1fr;   /* এক কলামে পরিণত */
        gap: 16px;
    }
    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 18px;
    }
    .profile-card .pfp-sm {
        width: 70px;
        height: 70px;
    }
    .contact-links {
        justify-content: center;
    }
    .contact-links a {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    .info-card {
        padding: 18px 16px;
    }
    /* টাইমলাইন মোবাইলে বাম পাশে শিফট */
    .timeline-line {
        left: 20px;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 44px;
        padding-right: 0;
        justify-content: flex-start;
    }
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 13px;
        right: auto;
        top: 16px;
        width: 12px;
        height: 12px;
    }
    .timeline-content {
        max-width: 100%;
        padding: 14px 16px;
    }
    .timeline-year {
        font-size: 0.8rem;
    }
    .project-card {
        padding: 18px 16px;
    }
    .theme-toggle {
        width: 44px;
        height: 44px;
        bottom: 16px;
        right: 16px;
    }
    .theme-toggle svg {
        width: 22px;
        height: 22px;
    }
    #contact .section-title {
        margin-bottom: 24px;
    }
    /* কন্টাক্ট ফর্ম মোবাইলে এক কলামে */
    .contact-form {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0;
        border-radius: 0;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 0.85rem;
        padding: 12px 14px;
        min-height: 50px;
        border-width: 1.25px;
    }
    .contact-form textarea {
        min-height: 96px;
        max-height: 140px;
        transform: none;
    }
    .contact-form button {
        min-height: 52px;
        width: 100%;
        min-width: 0;
        transform: none;
    }
    .footer {
        font-size: 0.75rem;
        padding: 20px 0;
        margin-top: 30px;
    }
    /* স্ক্রল ইন্ডিকেটর স্ট্যাটিক */
    .scroll-indicator {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        display: flex;
        margin: 4px auto -4px;
        animation: bounceDownMobile 2s ease infinite;
        font-size: 0.7rem;
    }
    .cursor-glow {
        display: none;   /* মোবাইলে কার্সার গ্লো লুকানো (পারফরম্যান্স) */
    }
}

/* ----- ৪৮০px-এর নিচে (ছোট মোবাইল) ----- */
@media (max-width: 480px) {
    .hero-avatar-wrap {
        width: 140px;
        height: 140px;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero h2 {
        font-size: 0.8rem;
    }
    .floating-nav a {
        font-size: 0.6rem;
        padding: 4px 8px;
    }
    .stat-card .stat-number {
        font-size: 1.4rem;
    }
    .stat-card {
        padding: 12px 14px;
    }
}