/* =========================================================
   SR Repair & Service - Optimized CSS
   Author: SR Team | Version: 3.2 (Final Stable Fix)
   ========================================================= */

/* GLOBAL RESET, VARIABLES, UTILITIES */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background-color: #fff; color: #333; line-height: 1.6; position: relative; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
:root { --primary-color: #000000; --secondary-color: #FF6600; --text-color: #333; --white-color: #fff; --card-bg: #f7f9fc; --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08); --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.15); }

/* PRELOADER */
.preloader { position: fixed; inset: 0; background: #fff; z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 1; visibility: visible; transition: opacity 0.5s ease-out, visibility 0.5s ease-out; }
.preloader-content img { width: 100px; animation: pulse 1s infinite alternate; }
@keyframes pulse { from { transform: scale(0.9); } to { transform: scale(1); } }
.preloader-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* HEADER */
.header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%; background-color: var(--white-color); position: fixed; width: 100%; z-index: 1001; box-shadow: var(--shadow-light); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; }
.logo span { font-size: 1.25rem; font-weight: 700; color: var(--primary-color); }
.nav-menu ul { list-style: none; display: flex; gap: 2rem; }
.nav-menu a { position: relative; text-decoration: none; color: var(--primary-color); font-size: 1rem; font-weight: 600; padding: 5px 0; transition: color 0.3s ease; }
.nav-menu a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background-color: var(--secondary-color); transition: width 0.3s ease; }
.nav-menu a:hover { color: var(--secondary-color); }
.nav-menu a:hover::after { width: 100%; }
.hamburger-menu, .close-menu { display: none; background: none; border: none; cursor: pointer; z-index: 1002; }

/* ========================================================= */
/* HERO SECTION - ফাইনাল এবং ১০০% কার্যকরী কোড */
/* ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white-color);
  position: relative; /* কন্টেইনারকে relative করা হয়েছে */
  overflow: hidden;
  padding: 0 20px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
              url("../media/hero-bg.gif") center/cover no-repeat; /* আপনার ব্যাকগ্রাউন্ড ইমেজ */
}

#particles-js {
  position: absolute; /* particles div-কে absolute করা হয়েছে */
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1; /* এটিকে পেছনে রাখা হয়েছে */
}

.hero-content { 
  position: relative; /* এটিকে z-index দেওয়ার জন্য relative রাখা হয়েছে */
  z-index: 2; /* particles-এর উপরে রাখার জন্য */
  max-width: 900px; 
  transform: translateY(20px); 
  opacity: 0; 
  animation: fadeInSlideUp 1.2s forwards 0.5s; 
}

@keyframes fadeInSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
}

.hero-content p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-top: 1rem;
  font-weight: 300;
  letter-spacing: 1px;
}

@keyframes fadeInSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
}

.hero-content p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-top: 1rem;
  font-weight: 300;
  letter-spacing: 1px;
}

@keyframes fadeInSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
}

.hero-content p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-top: 1rem;
  font-weight: 300;
  letter-spacing: 1px;
}
/* ========================================================= */
/* HERO SECTION - কোড শেষ */
/* ========================================================= */

/* GENERAL SECTIONS */
section { padding: 6rem 5%; text-align: center; position: relative; overflow: hidden; }
h2 { font-size: clamp(2rem, 5vw, 2.5rem); font-weight: 700; margin-bottom: 3rem; color: var(--primary-color); line-height: 1.2; }
h2::after { content: ''; display: block; width: 80px; height: 4px; background-color: var(--secondary-color); margin: 15px auto 0; }

/* CARDS GRID, BUTTONS, ABOUT, STATS, FOOTER */
.services-grid, .repair-grid, .steps-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.service-card, .repair-card, .step-card { background-color: var(--card-bg); padding: 2rem 1.5rem; border-radius: 15px; box-shadow: var(--shadow-light); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover, .repair-card:hover, .step-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-heavy); }
.service-card img, .repair-card img, .step-card img { height: 120px; margin: 0 auto 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.call-now-btn { background-color: var(--secondary-color); color: var(--white-color); border: none; padding: 1rem 2.5rem; border-radius: 50px; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 3rem; transition: transform 0.3s ease, background-color 0.3s ease; text-transform: uppercase; }
.call-now-btn:hover { background-color: #e65c00; transform: scale(1.05); }
.about-us { display: flex; flex-wrap: wrap; align-items: center; text-align: left; gap: 4rem; }
.about-image { flex: 1 1 400px; }
.about-image img { width: 100%; border-radius: 15px; box-shadow: var(--shadow-heavy); }
.about-content { flex: 1 1 500px; }
.about-content ul { list-style: none; margin-top: 1.5rem; }
.about-content li { margin-bottom: 0.8rem; padding-left: 30px; position: relative; font-size: 1rem; }
.about-content li i { color: var(--secondary-color); position: absolute; left: 0; top: 5px; font-size: 1.1rem; }
.stats { background-color: var(--primary-color); color: var(--white-color); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; padding: 6rem 5%; }
.stat-item h3 { font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 700; color: var(--secondary-color); }
footer { background-color: #000000; color: #a0a0a0; padding: 4rem 5% 2rem; text-align: center; font-size: 0.9rem; }
.footer-contact h3 { color: var(--white-color); }
.copyright { border-top: 1px solid #333; padding-top: 2rem; margin-top: 2rem; }

/* SCROLL ANIMATIONS */
.fade-in, .reveal-up, .reveal-left, .reveal-right { opacity: 0; transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.visible { opacity: 1; transform: translate(0, 0) !important; }

/* OVERLAY & MOBILE MENU */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; }
.overlay.active { opacity: 1; visibility: visible; }
@media (max-width: 992px) { .about-us { gap: 2rem; flex-direction: column; text-align: center; } .about-content { text-align: left; } }
@media (max-width: 768px) {
  section { padding: 4rem 5%; } h2 { margin-bottom: 2rem; } .stats { grid-template-columns: 1fr 1fr; } .hamburger-menu { display: block; font-size: 1.8rem; color: var(--primary-color); }
  .nav-menu { position: fixed; top: 0; left: -100%; width: 280px; height: 100%; background: var(--primary-color); padding-top: 5rem; box-shadow: 2px 0 15px rgba(0,0,0,.3); transition: left .4s cubic-bezier(0.68, -0.55, 0.27, 1.55); z-index: 1002; display: flex; flex-direction: column; align-items: center; }
  .nav-menu.active { left: 0; } .nav-menu ul { flex-direction: column; text-align: center; gap: 2.5rem; width: 100%; } .nav-menu a { color: #fff; font-size: 1.2rem; } .close-menu { display: block; color: #fff; position: absolute; top: 1rem; right: 1.5rem; font-size: 2rem; }
}
@media (max-width: 480px) { .logo span { font-size: 1rem; } .logo img { height: 35px; } .hero-content h1 { line-height: 1.4; } .stats { grid-template-columns: 1fr; gap: 3rem; } .call-now-btn { width: 100%; padding: 1rem; } }








/* ========================================================= */
/* PROJECTS & BRANDS SECTIONS STYLES */
/* ========================================================= */

/* General Container for new sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: inherit;
}

.projects-showcase h2::after,
.brands-we-repair h2::after {
    display: none;
}

/* --- Projects Showcase Section --- */
.projects-showcase {
    padding: 6rem 5%;
    background-color: #3a5b92; 
    background-image: linear-gradient(rgba(45, 68, 114, 0.85), rgba(45, 68, 114, 0.85)), url('https://i.imgur.com/example.jpg'); /* আপনার ব্যাকগ্রাউন্ড ইমেজ দিন */
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

.projects-slider .swiper-slide {
    border-radius: 10px;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.projects-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.projects-slider .swiper-slide:hover img {
    transform: scale(1.05);
}

.projects-showcase .swiper-button-next,
.projects-showcase .swiper-button-prev {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.projects-showcase .swiper-button-next:after,
.projects-showcase .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}
.projects-showcase .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}
.projects-showcase .swiper-pagination-bullet-active {
    background: var(--secondary-color);
    opacity: 1;
}

/* --- Brands We Repair Section --- */
.brands-we-repair {
    padding: 6rem 5%;
    background-color: #f7f9fc;
    text-align: center;
}

.brands-we-repair .section-title {
    color: var(--primary-color);
}

.logo-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.logo-slider .swiper-slide img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;

    transition: all 0.3s ease;
}

.logo-slider .swiper-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================================= */
/* FLOATING ACTION BUTTON (FAB) STYLES - আপডেটেড */
/* ========================================================= */
.floating-contact-widget {
    position: fixed;
    bottom: 120px;
    right: 25px;
    z-index: 1000;
    cursor: grab;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fab-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    transform: scaleY(0);
    transform-origin: bottom center;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.floating-contact-widget.active .fab-options {
    transform: scaleY(1);
    opacity: 1;
}

.fab-option {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.fab-option:hover {
    transform: scale(1.1);
}

/* বিভিন্ন বাটনের জন্য ভিন্ন রঙ */
.fab-option.call-btn { background-color: #007bff; }
.fab-option.messenger-btn { background-color: #0084ff; }
.fab-option.mail-btn { background-color: #c71610; }


.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366; /* WhatsApp Green */
    color: #fff;
    border: none;
    font-size: 2rem; /* আইকন বড় করার জন্য */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
    position: relative; /* আইকন পরিবর্তনের জন্য */
    overflow: hidden; /* আইকন পরিবর্তনের জন্য */
}

.fab-main i {
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.fab-main .close-icon {
    transform: translateY(100%);
    opacity: 0;
}

.floating-contact-widget.active .fab-main {
    background-color: #f44336; /* খোলার পর লাল রঙ */
    transform: rotate(360deg);
}

.floating-contact-widget.active .fab-main .open-icon {
    transform: translateY(-100%);
    opacity: 0;
}

.floating-contact-widget.active .fab-main .close-icon {
    transform: translateY(0);
    opacity: 1;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    .floating-contact-widget {
        bottom: 120px;
        right: 28px;
    }
    .fab-option { width: 50px; height: 50px; font-size: 1.3rem;}
    .fab-main { width: 55px; height: 55px; font-size: 1.8rem;}
}