/* =============================================== */
/* ১. গ্লোবাল স্টাইল (সার্বিক ডিজাইন)                */
/* =============================================== */
:root {
  /* Colors */
  --bx-primary: #3F38A2;
  --bx-accent: #9068FC;
  --bx-text: #111827;
  --bx-muted: #6B7280;
  --bx-white: #FFFFFF;
  --bx-bg: #F9FAFB;
  --bx-card: #FFFFFFCC;
  --bx-border: #E5E7EB;
  --star-color: #F59E0B;
  
  /* Layout */
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .12);
  --max-width: 1200px;
}

@font-face {
  font-family: 'Hind Siliguri';
  src: url('../Font/HindSiliguri-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'SolaimanLipi';
  src: url('../Font/SolaimanLipi-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  background: var(--bx-bg);
  color: var(--bx-text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-width); margin-inline: auto; padding: 12px; }

.section { padding: 72px 0; }
.section-title { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 10px; text-align: center; }
.section-lead { color: var(--bx-muted); margin: 0 auto 32px auto; text-align: center; max-width: 600px; }

/* =============================================== */
/* ২. বাটন ও কম্পোনেন্ট                            */
/* =============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: .2s;
  cursor: pointer;
}
.btn.primary { background: linear-gradient(135deg, var(--bx-primary), var(--bx-accent)); color: var(--bx-white); }
.btn.ghost { background: transparent; border-color: var(--bx-border); color: var(--bx-primary); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* =============================================== */
/* General Utility Classes                         */
/* =============================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body.no-scroll {
    overflow: hidden;
}

/* =============================================== */
/* ৩. হেডার (sections/header.php)                 */
/* =============================================== */


.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bx-border);
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* হেডারের টপ ও বটম প্যাডিং */
.site-header {
    padding-top: 0px;
    padding-bottom: 0px;
}
.site-header.scrolled {
    padding-top: 0px;
    padding-bottom: 0px;
}


/* On-Scroll Effect */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px_20px rgba(0, 0, 0, 0.06);
}

.nav-container { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 24px;
}

.brand { 
    display: flex; 
    align-items: center; 
    color: var(--bx-text);
    text-decoration: none;
}

.brand img { 
    height: 38px; 
    transition: height 0.3s ease;
}

.site-header.scrolled .brand img {
    height: 28px;
}

.main-menu { 
    display: flex; 
    gap: 28px; /* গ্যাপ কমানো হয়েছে */
    align-items: center; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}

.main-menu a { 
    position: relative;
    font-weight: 600; 
    color: var(--bx-text-secondary, #374151); 
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease; 
}

.main-menu a:hover { 
    color: var(--bx-primary); 
}

.main-menu a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--bx-accent);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.main-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.cta-button {
    display: block;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle svg {
    width: 28px;
    height: 28px;
    color: var(--bx-text);
}

.mobile-toggle .icon-close {
    display: none;
}


/* বাটনের সাইজ পরিবর্তনের জন্য ট্রানজিশন যুক্ত করা */
.cta-button {
    display: block;
    transition: font-size 0.3s ease, padding 0.3s ease;
}

/* স্ক্রল করলে বাটনটি ছোট হবে */
.site-header.scrolled .cta-button {
    font-size: 12px; /* মূল ফন্ট সাইজ থেকে ছোট */
    padding: 6px 14px; /* বাটনের প্যাডিং কমানো হয়েছে */
}

/* =============================================== */
/* রেসপন্সিভ মিডিয়া কোয়েরি (সংশোধিত ও সম্পূর্ণ)   */
/* =============================================== */
@media (max-width: 768px) {
    .primary-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid var(--bx-border);
        
        /* === crucial FIX STARTS HERE === */
        /* ডিফল্টভাবে মেনু লুকানো থাকবে এবং অ্যানিমেশনের জন্য প্রস্তুত হবে */
        /* এই কোডটুকু আপনার ফাইলে অনুপস্থিত ছিল */
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        /* === crucial FIX ENDS HERE === */
    }
    
    .site-header.nav-open .primary-navigation {
        /* মেনু খোলার পর এটি দৃশ্যমান হবে */
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    
    .main-menu {
        flex-direction: column;
        align-items: center;
        padding: 24px 0;
        gap: 20px;
    }

    .main-menu a {
        font-size: 18px;
    }

    .cta-button {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }
    
    .site-header.nav-open .mobile-toggle .icon-hamburger {
        display: none;
    }
    .site-header.nav-open .mobile-toggle .icon-close {
        display: block;
    }
}

/* =============================================== */
/* ৪. হিরো সেকশন (sections/hero-section.php)       */
/* =============================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero {
    background: linear-gradient(135deg, var(--bx-primary) 0%, #4B44BE 40%, var(--bx-accent) 100%);
    color: #F3F4F6;
    padding: 80px 0;
    overflow: hidden; /* Ensures animations don't overflow */
}

.hero-wrap { 
    display: grid; 
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 48px; 
    align-items: center; 
}

/* --- Animation Settings --- */
.hero-content > * {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}
.hero-badge { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.2s; }
.hero p { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.4s; }
.hero-kpis { animation-delay: 0.5s; }
.hero-art {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.5s forwards; /* Starts after text animation */
}

/* --- Content Styling --- */
.hero-badge { 
    display: inline-block; 
    padding: 6px 14px; 
    border: 1px solid rgba(255, 255, 255, 0.35); 
    border-radius: 999px; 
    color: #E8E9FF; 
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero h1 { 
    font-size: clamp(32px, 5vw, 52px); 
    line-height: 1.2; 
    margin: 0 0 16px; 
}

.hero p { 
    font-size: clamp(16px, 2.2vw, 18px); 
    color: #E8E9FF; 
    margin: 0 0 24px; 
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-kpis { 
    display: flex; 
    gap: 18px; 
    flex-wrap: wrap; 
    margin-top: 32px; 
}

.kpi { 
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px; 
    border-radius: 14px; 
    background: rgba(255, 255, 255, 0.12); 
    backdrop-filter: blur(8px); 
    border: 1px solid rgba(255, 255, 255, 0.25); 
    font-weight: 600;
}
.kpi svg {
    width: 20px;
    height: 20px;
    color: #c7d2fe;
}

.hero-art .device { 
    border-radius: 16px; 
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    padding: 18px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* --- Responsive styles for Hero Section --- */
@media (max-width: 992px) {
    .hero-wrap {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        text-align: center;
    }
    .hero-actions, .hero-kpis {
        justify-content: center;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-art {
        margin-top: 48px;
    }
}






/* =============================================== */
/* ৫. ক্লায়েন্ট বেল্ট (sections/clients-belt.php)     */
/* =============================================== */


.client-logos-belt { padding: 48px 0; }
.belt-viewport { position: relative; height: 80px; overflow: hidden; mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%); }
.belt-track { display: inline-flex; align-items: center; gap: 56px; padding-inline: 56px; height: 100%; animation: scroll-left 28s linear infinite; will-change: transform; }
.belt-viewport:hover .belt-track { animation-play-state: paused; }
.belt-track img { max-width: 150px; max-height: 60px; object-fit: contain; filter: grayscale(100%) contrast(105%); opacity: 0.85; transition: all .25s ease; }
.belt-track img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.04); }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }


/* ============================================================= */
/* ৬. সার্ভিস সেকশন (sections/services-section.php) - উন্নত সংস্করণ */
/* ============================================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    /* কার্ডগুলোতে 3D ইফেক্ট প্রয়োগ করার জন্য */
    perspective: 1000px; 
}

.service-card {
    background: var(--bx-white);
    border-radius: var(--radius);
    border: 1px solid var(--bx-border);
    text-decoration: none;
    display: block;
    position: relative; /* শাইন ইফেক্টের জন্য আবশ্যক */
    overflow: hidden;   /* শাইন ইফেক্টের জন্য আবশ্যক */
    
    /* সবচেয়ে গুরুত্বপূর্ণ অংশ: মসৃণ ট্রানজিশন */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card article {
    padding: 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* কন্টেন্টকে শাইন ইফেক্টের উপরে রাখার জন্য */
    position: relative;
    z-index: 2;
}

/* === ✨ হোভারের আগে আইকনের স্টাইল === */
.service-card .icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(63, 56, 162, 0.08), rgba(144, 104, 252, 0.12));
    color: var(--bx-primary);
    margin-bottom: 20px;
    transition: all 0.3s ease-out;
}

.service-card .icon svg {
    width: 28px;
    height: 28px;
}

/* === লেখার স্টাইল === */
.service-card h3 {
    margin: 0 0 10px 0;
    font-size: 21px;
    color: var(--bx-text);
    /* অ্যানিমেশন স্তরবিন্যাসের জন্য সামান্য দেরি */
    transition: color 0.3s ease-out 0.1s;
}

.service-card p {
    color: var(--bx-muted);
    margin: 0;
    line-height: 1.7;
    flex-grow: 1;
    /* অ্যানিমেশন স্তরবিন্যাসের জন্য সামান্য দেরি */
    transition: color 0.3s ease-out 0.15s;
}

.service-card-link {
    margin-top: 20px;
    color: var(--bx-primary);
    font-weight: 700;
    display: inline-block;
    transition: color 0.3s ease-out;
}


/* === 💎 নতুন শাইন/গ্লেজ ইফেক্ট === */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; /* শুরুতে বাম দিকে অদৃশ্য থাকবে */
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}


/* === ✨ চূড়ান্ত হোভার ইফেক্ট (হালকা 3D) === */
.service-card:hover {
    border-color: var(--bx-primary);
    /* 3D পার্সপেক্টিভ ইফেক্ট অনেক কমানো হয়েছে */
    transform: translateY(-8px) rotateX(2deg) rotateY(-1deg);
    box-shadow: 0 25px 50px rgba(63, 56, 162, 0.2);
}

.service-card:hover::before {
    left: 150%; /* হোভার করলে ডান দিকে চলে যাবে */
}

.service-card:hover .icon {
    transform: scale(1.1);
    background: var(--bx-primary);
    color: var(--bx-white);
    box-shadow: 0 10px 20px rgba(63, 56, 162, 0.3);
}

/* হোভারে লেখার রঙ পরিবর্তন হবে */
.service-card:hover h3,
.service-card:hover p {
    color: var(--bx-text); /* আপনি চাইলে সাদাও করতে পারেন: var(--bx-white) */
}

.service-card:hover .service-card-link {
    color: var(--bx-accent);
}


/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .services-grid {
        gap: 20px;
        perspective: none; /* মোবাইলে 3D ইফেক্ট বাদ দেওয়া যেতে পারে */
    }
    .service-card:hover {
         /* মোবাইলের জন্য সহজ হোভার ইফেক্ট */
        transform: translateY(-6px);
        box-shadow: 0 15px 30px rgba(63, 56, 162, 0.15);
    }
    .service-card article {
        padding: 24px;
    }
}

/* =============================================== */
/* ৭. টেস্টিমোনিয়াল (সম্পূর্ণ নতুন ডিজাইন)         */
/* =============================================== */

/* --- Base Styles --- */



/* --- Testimonial Section Styles --- */
.modern-testimonial-section {
    padding: 80px 0;
}

.testimonial-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonial-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: #E6FFFA;
    color: #2C7A7B;
    border: 1px solid #B2F5EA;
    border-radius: 999px;
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    margin-bottom: 16px;
}

.section-heading {
    font-size: 2.5rem; /* 40px */
    font-weight: 700;
    color: #1A202C;
    margin: 0 0 16px;
}

.section-heading .highlight-text {
    background-color: #FF6B6B;
    color: white;
    padding: 2px 12px;
    border-radius: 8px;
    /* Prevents the highlight from breaking lines oddly */
    white-space: nowrap; 
}

.section-subheading {
    font-size: 1.125rem; /* 18px */
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Testimonial Grid & Card Styles --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 1.25rem; /* 20px */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.card-quote {
    font-size: 3rem; /* 48px */
    font-weight: 700;
    color: #E2E8F0;
    line-height: 1;
    margin-bottom: 15px;
}

.card-text {
    font-size: 1rem; /* 16px */
    color: #718096;
    line-height: 1.7;
    margin: 0 0 25px 0;
    flex-grow: 1; /* Ensures card heights are consistent */
}

.card-text .text-highlight {
    background-color: #F1F5F9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #1A202C;
    font-weight: 500;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto; /* Pushes author to the bottom */
}

.author-logo {
    height: 40px;
    max-width: 80px;
    object-fit: contain;
}

.author-details {
    text-align: left;
}

.author-name {
    font-size: 1rem; /* 16px */
    font-weight: 600;
    margin: 0;
    color: #1A202C;
}

.author-title {
    font-size: 0.875rem; /* 14px */
    margin: 0;
    color: #718096;
}

/* --- Responsive Design --- */

/* For Tablets */
@media (max-width: 992px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-heading {
        font-size: 2.25rem; /* 36px */
    }
}

/* For Mobile Phones */
@media (max-width: 768px) {
    .modern-testimonial-section {
        padding: 60px 0;
    }
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .section-heading {
        font-size: 1.875rem; /* 30px */
    }
    .section-subheading {
        font-size: 1rem; /* 16px */
    }
}

/* =============================================== */
/* ৯. ফুটার (sections/footer.php) - উন্নত সংস্করণ   */
/* =============================================== */

.site-footer {
  /* --- কালার ও ব্যাকগ্রাউন্ড --- */
  background-color: #1a1a1a; /* গাঢ় ক্লাসিক ব্যাকগ্রাউন্ড */
  color: #ffffff;           /* সাধারণ টেক্সটের রঙ (হালকা ধূসর) */
  
  /* --- প্যাডিং ও ফন্ট --- */
  padding: 60px 20px 30px 20px; /* উপরে ৬০px, ডানে-বামে ২০px, নিচে ৩০px */
  font-family: Solaimanlipi, sans-serif; /* একটি সহজবোধ্য ফন্ট */
  line-height: 1.6;               /* লাইন হাইট, পড়তে সুবিধা হবে */
}

.footer-grid {
  display: grid;
  /* ডেস্কটপের জন্য ৪ কলাম */
  grid-template-columns: repeat(4, 1fr); 
  gap: 30px; /* কলামের মধ্যে সুন্দর গ্যাপ */
  
  max-width: 1200px; /* কন্টেন্ট যেন বেশি ছড়িয়ে না যায় */
  margin: 0 auto;    /* সম্পূর্ণ গ্রিডকে সেন্টারে আনতে */
  
  /* --- বর্ডার --- */
  padding-bottom: 30px;
  margin-bottom: 30px; 
  border-bottom: 1px solid #333333; /* হালকা ও সফট একটি বর্ডার */
}

.footer-col .col-title {
  color: #ab73ff;           /* শিরোনামের রঙ (সাদা) */
  font-weight: 700;
  font-size: 1.1rem;        /* শিরোনাম একটু বড় করা হলো */
  margin: 0 0 20px 0;       /* শিরোনামের নিচে গ্যাপ */
}

.footer-col .col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;                /* লিঙ্কগুলির মধ্যে গ্যাপ */
}

/* ফুটারের সকল লিঙ্ক স্টাইল */
.footer-col a {
  color: #ffffff;           /* লিঙ্কের রঙ (সাধারণ টেক্সটের মতোই) */
  text-decoration: none;    /* আন্ডারলাইন সরানো হলো */
  transition: color 0.3s ease; /* হোভার ইফেক্ট স্মুথ করার জন্য */
}

/* মাউস নিলে (হোভার) ইফেক্ট */
.footer-col a:hover {
  color: #ff9d00;           /* অ্যাকসেন্ট রঙ (সুন্দর নীল) */
  text-decoration: underline; /* হোভারে আন্ডারলাইন দেখা যাবে */
}

.copyright {
  text-align: center;
  padding-top: 0;           /* উপরে বর্ডার থাকায় এখানে প্যাডিং দরকার নেই */
  font-size: 0.9rem;
  color: #ffffff;          /* কপিরাইট টেক্সট আরও হালকা */
}

/* =============================================== */
/* রেসপন্সিভ ডিজাইন (মোবাইল ও ট্যাবলেটের জন্য)       */
/* =============================================== */

/* ট্যাবলেট ভিউ (যখন স্ক্রিন ৭৬৮px এর কম) */
@media (max-width: 768px) {
  .footer-grid {
    /* ৪ কলামের বদলে ২ কলাম দেখানো হবে */
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
}

/* মোবাইল ভিউ (যখন স্ক্রিন ৫৫০px এর কম) */
@media (max-width: 550px) {
  .footer-grid {
    /* ২ কলামের বদলে ১ কলাম দেখানো হবে */
    grid-template-columns: 1fr; 
    gap: 30px;
  }
  .footer-col {
    /* মোবাইলে কন্টেন্ট সেন্টারে দেখতে ভালো লাগবে */
    text-align: center; 
  }
  .site-footer {
     padding-top: 40px;
     padding-bottom: 20px;
  }
}

/* =============================================== */
/* ১০. রেসপন্সিভ ডিজাইন                           */
/* =============================================== */
@media (max-width: 900px) {
  .main-menu, .nav .btn.primary { display: none; }
  .mobile-toggle { display: inline-flex; }
  .hero-wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons, .hero-kpis { justify-content: center; }
  .hero-art { margin-top: 32px; }
  .t-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-group { grid-column: span 12; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =============================================== */
/* ১১. ফ্লোটিং হোয়াটসঅ্যাপ বাটন                     */
/* =============================================== */
.whatsapp-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform .2s ease;
}
.whatsapp-fab:hover { transform: scale(1.1); }



/* ======================================================= */
/* ১২. আমরা কেন সেরা সেকশন (সম্পূর্ণ এবং ফাইনাল CSS)      */
/* ======================================================= */

/* --- অ্যানিমেশনের মূল ফ্রেম (নিচ থেকে উপরে আসা) --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- মূল সেকশনের ডিজাইন --- */
.why-us-light-theme {
    background-color: #f9fafb;
    padding: 80px 20px; /* মোবাইলের জন্য প্যাডিং */
    overflow: hidden; /* অ্যানিমেশন যেন বাইরে না যায় */
}

/* --- কেন্দ্রীয় শিরোনাম এবং ভূমিকা --- */
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px; /* নিচের কন্টেন্ট থেকে দূরত্ব */
    
    /* অ্যানিমেশন প্রয়োগ */
    opacity: 0; /* অ্যানিমেশনের শুরুতে অদৃশ্য থাকবে */
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.section-header .section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.section-header .section-lead {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.7;
}

/* --- ফিচার এবং ছবির গ্রিড --- */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr; /* মোবাইল ও ট্যাবলেটে এক কলাম */
    gap: 50px;
    align-items: center;
}

/* --- ফিচার লিস্ট --- */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    
    /* অ্যানিমেশন প্রয়োগ */
    opacity: 0; /* অ্যানিমেশনের শুরুতে অদৃশ্য থাকবে */
}

.features-list .icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e7ff;
    color: #3730a3;
    border-radius: 12px;
}

.features-list .icon svg {
    width: 28px;
    height: 28px;
}

.features-list h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 5px;
}

.features-list p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* --- প্রতিটি ফিচার আইটেমের জন্য আলাদা অ্যানিমেশন ডিলে --- */
.features-list li:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}
.features-list li:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}
.features-list li:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

/* --- ছবির কন্টেইনার এবং হোভার ইফেক্ট --- */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* অ্যানিমেশন প্রয়োগ */
    opacity: 0; /* অ্যানিমেশনের শুরুতে অদৃশ্য থাকবে */
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.image-container img {
    max-width: 80%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-container:hover img {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* =============================================== */
/* --- রেসপন্সিভ ডিজাইন (ডেস্কটপ) --- */
/* =============================================== */
@media (min-width: 992px) {
    .why-us-light-theme {
        padding: 120px 0; /* ডেস্কটপে আরও বেশি স্পেস */
    }
    .why-us-grid {
        grid-template-columns: 1.1fr 0.9fr; /* টেক্সট অংশকে একটু বেশি জায়গা */
    }
}

/* =============================================== */
/* --- ব্লগ সেকশন (গ্লোবাল স্টাইল সহ) --- */
/* =============================================== */

/* এই ক্লাসটি আপনার .section ক্লাসের সাথেই ব্যবহার করুন, যেমন: <section class="section blog-section"> */
.blog-section .container {
  /* কন্টেইনারের কন্টেন্ট অর্গানাইজ করার জন্য */
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* হেডার এবং কার্ড গ্রিডের মধ্যে স্পেস */
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* ছোট স্ক্রিনে যেন ভেঙ্গে না যায় */
  gap: 1rem;
}

.blog-header .title-part .subtitle {
  font-size: 1rem;
  color: var(--bx-primary); /* আপনার গ্লোবাল ভেরিয়েবল */
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-header .title-part .main-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--bx-text); /* আপনার গ্লোবাল ভেরিয়েবল */
  margin: 0;
}

/* এই বাটনটি .view-more-btn নামে বা আপনার গ্লোবাল বাটন ক্লাস নামেও হতে পারে */
.blog-header .view-more-btn {
  background-color: var(--bx-primary);
  color: var(--bx-white);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.blog-header .view-more-btn:hover,
.blog-header .view-more-btn:focus {
  background-color: var(--bx-accent); /* হোভারের জন্য Accent কালার ব্যবহার */
  transform: translateY(-2px);
}

.blog-header .view-more-btn:focus-visible {
  outline: none;
  border-color: var(--bx-accent);
  box-shadow: 0 0 0 3px var(--bx-border);
}

.blog-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background-color: var(--bx-card); /* আপনার গ্লোবাল কার্ড ভেরিয়েবল (স্বচ্ছ) */
  backdrop-filter: blur(10px); /* একটি প্রিমিয়াম গ্লাসমর্ফিজম ইফেক্ট */
  border: 1px solid var(--bx-border);
  border-radius: var(--radius); /* আপনার গ্লোবাল ভেরিয়েবল */
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* var(--shadow) এর চেয়ে হালকা শ্যাডো */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow); /* হোভারে আপনার গ্লোবাল প্রিমিয়াম শ্যাডো */
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* কার্ডের উচ্চতা সমান রাখতে সাহায্য করবে */
}

.blog-card .category {
  font-size: 0.875rem;
  color: var(--bx-muted); /* আপনার গ্লোবাল ভেরিয়েবল */
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.blog-card .post-title {
  font-size: 1.25rem;
  font-weight: 700; /* গ্লোবাল ফন্ট লোড অনুযায়ী Bold (700) */
  color: var(--bx-text);
  margin-bottom: 1rem;
  line-height: 1.5;
  /* টাইটেল লিঙ্ক হলে: */
  /* transition: color 0.3s ease; */
}
/* .blog-card .post-title a:hover { color: var(--bx-primary); } */

.blog-card .read-more-link {
  font-size: 1rem;
  color: var(--bx-primary);
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto; /* লিঙ্কটিকে কার্ডের নিচে পাঠাবে */
}

.blog-card .read-more-link:hover {
  color: var(--bx-accent); /* হোভারের জন্য Accent কালার */
}

/* =============================================== */
/* --- রেসপন্সিভ ডিজাইন --- */
/* =============================================== */

@media (max-width: 1024px) {
  .blog-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-header .title-part .main-title {
    font-size: 1.75rem;
  }

  .blog-cards-container {
    grid-template-columns: 1fr;
  }
}

/* =============================================== */
/* ১৩. পোর্টফোলিও সেকশন (হোমপেইজ) - Responsive  */
/* =============================================== */

.portfolio-grid-home {
    display: grid;
    /* ডেস্কটপের জন্য ৩ কলামের গ্রিড */
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.portfolio-card {
    display: block;
    background: var(--bx-white);
    border-radius: var(--radius);
    border: 1px solid var(--bx-border);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-card img {
    width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card-content {
    padding: 20px;
}

.portfolio-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--bx-text);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--bx-primary);
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-actions {
    text-align: center;
    margin-top: 40px;
}

/* === রেসপন্সিভ ডিজাইন === */

/* ট্যাবলেট ভিউ (992px এর নিচে) */
@media (max-width: 992px) {
    .portfolio-grid-home {
        /* ট্যাবলেটের জন্য ২ কলাম */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* মোবাইল ভিউ (768px এর নিচে) */
@media (max-width: 768px) {
    .portfolio-grid-home {
        /* মোবাইলের জন্য ১ কলাম */
        grid-template-columns: 1fr;
    }
}
