/* ==========================================================================
   MARKETING MIND HUB - RESPONSIVE DESIGN SYSTEM
   Brand Colors: Primary (#006D6F), Secondary (#FF6A21), Surface (#FFFFFF), Text (#1F2937)
   ========================================================================== */

:root {
  --primary: #006d6f;
  --primary-hover: #005153;
  --secondary: #ff6a21;
  --secondary-hover: #e0530d;
  --bg: #f8fafc;
  --bg-tint: #f1f5f9;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: rgba(226, 232, 240, 0.9);
  --glow: rgba(255, 106, 33, 0.12);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg: #090d16;
  --bg-tint: #0f172a;
  --surface: #131b2e;
  --surface-glass: rgba(19, 27, 46, 0.88);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --glow: rgba(0, 109, 111, 0.25);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family:
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

body {
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* Scroll Progress */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1001;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
}

/* Loader */
.loader-wrapper {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.loader-wrapper.fade-out {
  opacity: 0;
  pointer-events: none;
}

.pulse-spinner {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary);
  animation: pulseGlow 1.2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
    box-shadow: 0 0 0 0 rgba(255, 106, 33, 0.7);
  }
  70% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 0 20px rgba(255, 106, 33, 0);
  }
  100% {
    transform: scale(0.8);
    opacity: 0.5;
    box-shadow: 0 0 0 0 rgba(255, 106, 33, 0);
  }
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
  position: relative;
}

.dark-tint-bg {
  background-color: var(--bg-tint);
}

.page-hero {
  padding: 160px 0 90px;
  text-align: center;
  background: radial-gradient(
    circle at 50% 10%,
    var(--glow) 0%,
    transparent 70%
  );
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  max-width: 950px;
  margin: 0 auto 20px;
}

.highlight-text {
  color: var(--secondary);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 760px;
  margin: 0 auto 36px;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust-badges {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-trust-badges i {
  color: var(--primary);
  margin-right: 6px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(0, 109, 111, 0.12);
  color: var(--primary);
  border: 1px solid rgba(0, 109, 111, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

[data-theme="dark"] .badge {
  color: var(--secondary);
  background: rgba(255, 106, 33, 0.12);
  border-color: rgba(255, 106, 33, 0.2);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 109, 111, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 109, 111, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(255, 106, 33, 0.3);
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 106, 33, 0.4);
}

.btn-outline {
  border: 2px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 109, 111, 0.05);
}

.btn-whatsapp-cta {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
}

.btn-whatsapp-cta:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.header.scrolled {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  transform: rotate(15deg) scale(1.05);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: var(--transition);
}

/* Wincible Style Animated Cards */
.wincible-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.wincible-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.wincible-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.wincible-card:hover::before {
  opacity: 1;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  background: rgba(0, 109, 111, 0.08);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.wincible-card:hover .service-icon-box {
  background: var(--secondary);
  color: #ffffff;
  transform: scale(1.1) rotate(-5deg);
}

/* Counters */
.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.counter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.counter-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 8px;
}

.counter-label {
  color: var(--text-muted);
  font-weight: 600;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.feature-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}

.check-item i {
  color: var(--primary);
}

.glow-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 700;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* Process Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
  transition: var(--transition);
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary);
}

.process-step {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.25;
  margin-bottom: 12px;
}

/* Portfolio Cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.portfolio-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.portfolio-img {
  height: 240px;
  overflow: hidden;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-img img {
  transform: scale(1.08);
}

.portfolio-info {
  padding: 24px;
}

.portfolio-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Pricing Grid & Currency Toggle */
.currency-toggle-wrapper {
  display: inline-flex;
  background: var(--surface);
  padding: 6px;
  border-radius: 50px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.currency-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.currency-btn.active {
  background: var(--primary);
  color: #ffffff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 32px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--secondary);
  box-shadow: var(--shadow-lg);
}

.pricing-card:hover {
  transform: translateY(-8px);
}

.badge-popular {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--secondary);
  color: #fff;
  border: none;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin: 16px 0;
}

.pricing-list li {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.check-icon {
  color: var(--primary);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.stars {
  color: #ffb800;
  margin-bottom: 16px;
}

.client-meta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

.client-meta strong {
  color: var(--text);
}

.client-meta span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  padding: 22px 28px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 28px;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 28px 24px;
}

/* CTA Section */
.cta-box {
  background: linear-gradient(135deg, var(--primary), #004d4e);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  font-size: 2.5rem;
  font-weight: 800;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 58px;
  height: 58px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
}

.whatsapp-tooltip {
  position: absolute;
  left: 70px;
  background: var(--text);
  color: var(--bg);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 99;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .counters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: var(--surface);
    flex-direction: column;
    padding: 40px 24px;
    transition: var(--transition);
    border-left: 1px solid var(--border);
  }
  .nav-menu.active {
    right: 0;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .counters-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .header-btn {
    display: none;
  }
  .feature-checklist {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   Contact Form Fixes
   ========================================== */

/* Wrapper and Layout Reset */
.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

/* Form Grid System */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

/* Full Width Fields (Service & Message) */
.form-group.full {
  grid-column: span 2;
}

/* Individual Form Field Grouping */
.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* Label Styling Fix */
.form-group label {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff; /* প্রয়োজনে টেক্সট কালার অ্যাডজাস্ট করুন */
  text-align: left;
}

/* Input, Select & Textarea Controls */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100% !important;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: #ffffff;
  color: #111111;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  display: block;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Mobile Responsive Fix */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: span 1;
  }
}

/* ==========================================
   Portfolio Page Layout Fixes
   ========================================== */

/* Active Link Highlight */
.nav-menu .nav-link[href="portfolio.html"] {
  color: var(--secondary, #00c88c);
}

/* Portfolio Filters Alignment */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  width: 100%;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--secondary, #00c88c);
  color: #ffffff;
  border-color: var(--secondary, #00c88c);
  box-shadow: 0 4px 15px rgba(0, 200, 140, 0.3);
}

/* Portfolio Grid System */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  width: 100%;
}

/* Portfolio Card Design */
.portfolio-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 200, 140, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Portfolio Image Handling */
.portfolio-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

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

.portfolio-card:hover .portfolio-img img {
  transform: scale(1.08);
}

/* Portfolio Info Section */
.portfolio-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portfolio-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

/* Filtering JS Animation support */
.portfolio-card.hide {
  display: none !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}
