/* Local Variables linked to Global */
:root {
    --primary-blue: var(--primary); 
    --dark-bg: var(--bg-dark);
    --card-bg: var(--bg-card);
}

/* 🔥 GLOBAL SAFETY FIX FOR HORIZONTAL SCROLL 🔥 */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

/* --- HERO SECTION FIXED (Responsive & Balanced) --- */
.hero-slider {
    /* Navbar height + breathing room */
    padding-top: 120px; 
    padding-bottom: 60px; 
    
    background: var(--dark-bg);
    
    /* Desktop Height */
    min-height: 60vh; 
    min-height: 550px;
    
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; /* Safety for AOS animations */
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

/* Left Side: Text */
.hero-text {
    width: 50%;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 15px;
    color: var(--text-white);
    font-weight: 700;
}

.hero-text p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 90%;
}

.highlight { 
    color: var(--primary); 
    position: relative;
    display: inline-block;
}
.highlight::after {
    content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 8px;
    background: rgba(59, 130, 246, 0.2); z-index: -1;
}

.btn-group {
    display: flex; gap: 15px; margin-top: 30px;
}

/* Right Side: Image Slider */
.hero-img-slider {
    width: 50%;
    height: 400px; 
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-slider .swiper { width: 100%; height: 100%; }
.hero-img-slider .swiper-slide {
    display: flex; align-items: center; justify-content: center; background: transparent;
}
.hero-img-slider img {
    width: 100%; height: auto; max-height: 100%; object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.15));
}

/* 🔥 MOBILE RESPONSIVE FIX (FINAL & TESTED) 🔥 */
@media (max-width: 991px) {
    /* 1. PARENT FIX: Flexbox bondho kora holo */
    .hero-slider {
        display: block; /* CRITICAL: Eita na thakle content kete jabe */
        height: auto;
        min-height: auto;
        padding-top: 130px; /* Navbar theke safe distance */
        padding-bottom: 60px;
        overflow: hidden; /* Scrollbar atkabe */
    }

    /* 2. INNER CONTAINER */
    .hero-flex { 
        display: block; /* Normal stacking behavior */
        width: 100%;
        padding: 0;
        margin: 0;
    }

    /* 3. TEXT SECTION (Centered & Safe) */
    .hero-text {
        width: 100%; 
        max-width: 100%;
        margin: 0 auto 50px auto; /* Slider theke gap */
        padding: 0 20px; /* Side padding */
        text-align: center;
        box-sizing: border-box;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 20px;
        width: 100%;
    }

    .hero-text p { 
        font-size: 1rem;
        margin: 0 auto 30px; 
        max-width: 100%; 
        padding: 0 5px;
    }
    
    /* 4. BUTTON GROUP (Clean Vertical Stack) */
    .btn-group { 
        display: flex;
        flex-direction: column; /* Niche niche ashbe */
        align-items: center;
        justify-content: center;
        gap: 15px;
        width: 100%;
        max-width: 320px; /* Button gulo jeno beshi spread na hoy */
        margin: 0 auto;
    }

    .btn {
        width: 100%; /* Full width clickable area */
        display: block;
        text-align: center;
        padding: 14px 0;
    }

    /* 5. SLIDER SECTION */
    .hero-img-slider {
        width: 100%; /* CHANGED: 100vw theke 100% kora holo jate scroll na hoy */
        height: 300px; 
        margin: 0 auto;
        display: block;
        overflow: hidden;
    }
}

/* --- COMMON SECTION STYLES --- */
/* Added overflow:hidden here to stop AOS animation scroll issues */
.section { 
    padding: 80px 0; 
    position: relative; 
    overflow: hidden; 
}

/* --- SERVICES SECTION --- */
.services-section { background: var(--bg-dark); }

.sec-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }

/* Mobile Header Fix */
@media (max-width: 768px) {
    .sec-header { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .sec-header div { margin-bottom: 10px; }
}

.view-all-btn {
    position: relative; padding: 10px 30px; color: var(--primary-blue);
    font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    border: 1px solid var(--primary-blue); border-radius: 50px; overflow: hidden;
    transition: 0.4s; z-index: 1; background: transparent;
}
.view-all-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: var(--primary-blue); transition: 0.4s; z-index: -1;
}
.view-all-btn:hover { color: white; box-shadow: 0 0 15px var(--primary-blue); }
.view-all-btn:hover::before { left: 0; }

.service-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px; margin-top: 50px;
}

.service-card {
    background: rgba(21, 27, 43, 0.6); backdrop-filter: blur(10px);
    padding: 40px 30px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden; cursor: pointer; z-index: 1;
}
.service-card::before {
    content: ""; position: absolute; inset: 0; border-radius: 16px; padding: 2px;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.5; transition: 0.4s;
}
.service-card:hover {
    transform: translateY(-10px) scale(1.02); background: rgba(21, 27, 43, 0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); border-color: rgba(59, 130, 246, 0.5);
}
.service-card:hover::before { opacity: 1; background: linear-gradient(45deg, var(--primary-blue), #06b6d4); }

.icon-box {
    width: 70px; height: 70px; background: rgba(59, 130, 246, 0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
    color: var(--primary-blue); margin-bottom: 25px; transition: 0.4s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.service-card:hover .icon-box {
    background: var(--primary-blue); color: white; transform: rotateY(180deg);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6); border-color: var(--primary-blue);
}
.service-card:hover .icon-box i { transform: rotateY(-180deg); }

.service-card h3 { color: white; font-size: 1.4rem; margin-bottom: 15px; font-weight: 600; }
.service-card p { color: #94a3b8; font-size: 0.95rem; line-height: 1.6; transition: 0.3s; }
.service-card:hover p { color: #cbd5e1; }

/* --- MULTI-STEP FORM --- */
/* Added overflow:hidden explicitly here too */
.form-section { padding: 100px 0; background: var(--dark-bg); position: relative; overflow: hidden; }
.form-wrapper { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 40px; }

.form-content-left {
    flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 300px;
}
.form-content-left h2 {
    font-size: 2.5rem; margin-bottom: 15px; color: white; white-space: nowrap;
}
.form-content-left p {
    color: var(--text-gray); margin-bottom: 30px; font-size: 1rem; line-height: 1.6; max-width: 90%;
}
.consultancy-img {
    width: 100%; flex-grow: 1; min-height: 300px;
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05);
}
.consultancy-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: 0.5s; }

.form-container {
    flex: 1; min-width: 320px; background: var(--card-bg); padding: 40px;
    border-radius: 20px; border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    display: flex; flex-direction: column; justify-content: center;
}

.step-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.step-indicators { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 0 20px; }
.step-circle {
    width: 35px; height: 35px; background: rgba(255,255,255,0.05); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-gray); font-weight: bold; font-size: 0.9rem; transition: 0.3s;
}
.step-circle.active { background: var(--primary-blue); color: white; box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
.step-line { flex: 1; height: 2px; background: rgba(255,255,255,0.05); margin: 0 10px; }
.step-labels {
    display: flex; justify-content: space-between; padding: 0 5px;
    font-size: 0.75rem; color: var(--text-gray); text-transform: uppercase; letter-spacing: 1px;
}

.form-step { display: none; animation: fadeIn 0.4s ease-in-out; }
.form-step.active { display: block; }
.form-step h3 { color: white; margin-bottom: 20px; font-size: 1.2rem; }

.input-group {
    background: rgba(15, 23, 42, 0.5); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 14px 18px; margin-bottom: 15px;
    display: flex; align-items: center; gap: 12px; transition: 0.3s;
}
.input-group:focus-within { border-color: var(--primary-blue); background: rgba(15, 23, 42, 0.8); }
.input-group i { color: var(--text-gray); transition: 0.3s; }
.input-group:focus-within i { color: var(--primary-blue); }
.input-group input, .input-group textarea {
    width: 100%; background: transparent; border: none; outline: none; 
    color: white; font-size: 0.95rem; font-family: 'Poppins', sans-serif;
}

.btn-row { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.btn-primary.w-100 { width: 100%; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 991px) {
    .form-wrapper { flex-direction: column; }
    .form-content-left h2 { white-space: normal; font-size: 2.2rem; }
    .consultancy-img { height: 250px; flex-grow: 0; }
}

/* --- TRUST STRIP --- */
.trust-strip {
    padding: 60px 0; background: #0b1324; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center; position: relative; z-index: 2; margin-top: -2px;
}
.trust-strip h3 {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px;
    color: #64748b; margin-bottom: 40px; font-weight: 600;
}
.trust-grid {
    display: flex; justify-content: center; align-items: center; gap: 60px; flex-wrap: wrap;
}
.trust-item {
    font-size: 1.8rem; font-weight: 700; color: #475569; display: flex; align-items: center;
    gap: 12px; transition: 0.3s; cursor: pointer; user-select: none; opacity: 0.8;
}
.trust-item.google:hover { color: #4285F4; opacity: 1; transform: translateY(-3px); }
.trust-item.trustpilot:hover { color: #00b67a; opacity: 1; transform: translateY(-3px); }
.trust-item.facebook:hover { color: #1877F2; opacity: 1; transform: translateY(-3px); }
.trust-item.linkedin:hover { color: #0077b5; opacity: 1; transform: translateY(-3px); }

/* --- CLIENT LOGOS --- */
.client-section { padding-top: 50px; padding-bottom: 60px; background: var(--dark-bg); overflow: hidden; }
.client-logo-slide { display: flex; align-items: center; justify-content: center; height: 100px; }
.client-logo-slide img {
    max-width: 140px; max-height: 80px; width: auto; height: auto; object-fit: contain;
    transition: transform 0.3s ease;
}
.client-logo-slide:hover img { transform: scale(1.1); }

/* --- VIDEO SECTION --- */
.video-section { background: var(--bg-dark); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.video-thumb {
    position: relative; cursor: pointer; border-radius: 12px; overflow: hidden;
    aspect-ratio: 16/9; background: #000;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s; }
.play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60px; height: 60px; background: var(--primary-blue);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.5rem; transition: 0.3s; box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}
.video-thumb:hover img { transform: scale(1.05); opacity: 0.5; }
.video-thumb:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); }

/* Modal */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.9);
}
.modal-content { position: relative; margin: 10% auto; width: 80%; max-width: 800px; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.close-modal {
    position: absolute; right: -40px; top: -40px; color: white;
    font-size: 40px; cursor: pointer;
}

/* --- BLOG CARD STYLING --- */
.blog-section { background: var(--bg-dark); }

.blog-grid {
    display: grid;
    /* ✅ change: auto-fit সরিয়ে fixed 3 column করা হলো */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: #050505; 
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
    height: 100%; 
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: var(--primary-blue);
}

.blog-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #111; /* Loading Placeholder Color */
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: 0.3s;
}

.blog-card:hover .blog-title {
    color: var(--primary-blue);
}

.blog-date {
    font-size: 0.85rem;
    color: #94a3b8; /* Muted Text */
    display: block;
    margin-top: auto;
}

/* Skeleton Loading Animation */
.skeleton-card {
    height: 350px;
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 12px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =========================================
   NEW BUTTON STYLE (Recent Works Look)
   ========================================= */
.btn-style-recent {
    border: 2px solid rgba(255, 255, 255, 0.8); /* সাদা বর্ডার */
    color: #ffffff;
    padding: 12px 35px;
    border-radius: 50px; /* পিল শেপ (Round) */
    font-weight: 500;
    font-size: 0.95rem;
    background: transparent;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* আইকন এবং টেক্সটের মাঝে গ্যাপ */
    text-transform: capitalize;
}

.btn-style-recent:hover {
    background: #ffffff;
    color: var(--bg-dark); /* হোভার করলে টেক্সট কালো/ডার্ক হবে */
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2); /* সাদা গ্লো */
}

/* আইকন কালার ফিক্স (হোভার করলে আইকনও ডার্ক হবে) */
.btn-style-recent:hover i {
    color: var(--bg-dark);
}

/* আগের .view-all-btn স্টাইল ওভাররাইড করার জন্য */
.sec-header .btn-style-recent {
    margin-left: auto; /* ডান পাশে রাখবে */
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (1 Column) */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-hero h1 { font-size: 2.5rem; }
}


/* =========================================
   SHOWREEL VIDEO SECTION (FULL WIDTH)
   ========================================= */
.showreel-section {
    padding: 0; /* কোনো প্যাডিং থাকবে না */
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 80px; /* নিচের সেকশনের সাথে গ্যাপ */
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.showreel-wrapper {
    position: relative;
    width: 100%;
    height: 600px; /* ভিডিওর হাইট একটু বাড়ানো হলো যাতে সিনেমাটিক লাগে */
    overflow: hidden;
    background: #000;
}

.showreel-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ভিডিও পুরো স্ক্রিন কভার করবে */
    display: block;
    opacity: 0.7; /* টেক্সট যাতে ফুটে ওঠে তাই ভিডিও একটু ডার্ক */
}

/* ভিডিওর ওপরের টেক্সট */
.reel-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: rgba(0,0,0,0.3); /* শ্যাডো ওভারলে */
}

.reel-overlay h2 {
    font-size: 4rem; /* ফন্ট সাইজ বড় করা হলো */
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.6);
    max-width: 90%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .showreel-wrapper {
        height: 350px; /* মোবাইলে হাইট কম */
    }
    .reel-overlay h2 {
        font-size: 2rem;
    }
}




/* =========================================
   BIGGER SECTION TITLES (UPDATED)
   ========================================= */

/* Desktop View */
.sec-header h2 {
    font-size: 2rem; /* আগে ডিফল্ট ছিল, এখন অনেক বড় (56px) করা হলো */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Mobile View (Responsive) */
@media (max-width: 768px) {
    .sec-header h2 {
        font-size: 1.5rem; /* মোবাইলের জন্য সাইজ একটু কমিয়ে অ্যাডজাস্ট করা হলো */
    }
}