/* ===================================
   SOFTABU - PROFESSIONAL STYLESHEET
   =================================== */

:root {
  --primary-color: #f97316;
  --primary-dark: #ea580c;
  --dark-bg: #0f172a;
  --dark-secondary: #1e293b;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-light: #e2e8f0;
  --border-color: #e2e8f0;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.15);
  --header-height: 72px;
  --container-padding: 24px;
}

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

/* বাগ ফিক্সড  */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
@media (max-width: 768px) {
  .nav-links {
    width: 100%;
    box-sizing: border-box;
  }
}

form#contactForm {
 grid-template-columns: 1fr;
    }
    form#contactForm > input,
    form#contactForm > select,
    form#contactForm > textarea,
    form#contactForm > button {
    width: 100%;
    min-width: unset;
}

section#contact {
  display: flex;
  justify-content: center;
  padding: 80px 0;
  margin: 0;
  box-sizing: border-box;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
}


  /* ================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text-primary);
  background: #f8fafc;
  line-height: 1.6;
  padding-top: var(--header-height);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  padding: 12px 0;
  background: #ffffff;
  z-index: 1100;
  transition: box-shadow 0.2s ease, padding 0.2s ease;
  display: flex;
  align-items: center;
}

header.scrolled {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

header.hidden { /* ensure no hide transform */
  transform: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

nav .logo {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  justify-content: flex-end;
}

.nav-links > div:first-child {
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover {
  color: var(--primary-color);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.lang-switch {
  display: flex;
  gap: 6px;
  border-left: 1px solid var(--border-color);
  padding-left: 20px;
}

.lang-switch button {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.lang-switch button:hover {
  border-color: var(--primary-color);
  background: #fff7ed;
  color: var(--primary-color);
}

.lang-switch button.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 60px 0 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.7;
}

.btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #f87e1f 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: white;
}

.btn-secondary:hover {
  background: #fff7ed;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.hero-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  animation: slideUp 0.6s ease 0.2s both;
}

.hero-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.hero-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================================
   MAIN CONTENT SECTIONS
   =================================== */

section {
  padding: 80px 0;
}

section.alternate {
  background: white;
}

h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 50px;
  /* max-width: 600px; */
}

/* ===================================
   GRID LAYOUT
   =================================== */

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

/* ===================================
   CARDS
   =================================== */

.card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  height: 50px;
  display: flex;
  align-items: center;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

.card-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color) 0%, #f87e1f 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 15px;
  width: fit-content;
}

/* ===================================
   FEATURES LIST
   =================================== */

.why-list {
  list-style: none;
  padding: 0;
}

.why-list li {
  padding: 20px 0;
  padding-left: 40px;
  position: relative;
  font-size: 1rem;
  line-height: 1.8;
  border-bottom: 1px solid var(--border-color);
}

.why-list li:last-child {
  border-bottom: none;
}

.why-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 20px;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.why-list strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ===================================
   CONTACT FORM
   =================================== */

.contact-form {
  max-width: 500px;
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

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

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===================================
   FOOTER
   =================================== */

footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
footer a {
  color: #f97316;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}
/* ===================================
   ANIMATIONS
   =================================== */

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.card {
  animation: slideUp 0.6s ease both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* ===================================
   LANGUAGE SWITCHING
   =================================== */

.en {
  display: none;
}

body[data-lang="en"] .pl {
  display: none;
}

body[data-lang="en"] .en {
  display: inline;
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */

@media (max-width: 768px) {
  nav {
    flex-direction: row;
    gap: 15px;
  }

  nav .logo {
    font-size: 1.2rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    flex: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 18px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    z-index: 1050;
  }

  .nav-links.active {
    max-height: 520px; /* enough for menu items */
  }

  .nav-links > div:first-child {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
  }

  nav a {
    font-size: 0.9rem;
    display: block;
  }

  .menu-toggle {
    display: flex;
    order: 2;
  }

  .lang-switch {
    display: none;
  }

  .nav-links.active .lang-switch {
    display: flex;
  }

  nav .logo {
    order: 1;
  }

  :root {
    --container-padding: 16px;
  }

  footer {
    padding: 24px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  section {
    padding: 50px 0;
  }

  h2 {
    font-size: 1.8rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 12px;
    --header-height: 56px;
  }

  header {
    padding: 12px 0;
  }

  nav .logo {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .nav-links .lang-switch {
    display: none;
  }

  .nav-links.active .lang-switch {
    display: flex;
  }

  footer {
    padding: 18px 0;
  }

  .container {
    padding: 0 16px;
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-center {
  text-align: center;
}

.text-white {
  color: white;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mb-50 {
  margin-bottom: 50px;
}

/* Header hide on scroll (override / small additions) */
header {
  /* ensure transform transition for hide/show */
  transition: transform 0.25s ease, box-shadow 0.3s ease, padding 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}

header.hidden {
  transform: translateY(-100%);
}

/* Ensure nav menu (mobile) visible when header hidden only if needed */
.nav-links {
  /* ...existing rules... */
}


form#contactForm {
  margin-left: auto;
  margin-right: auto;
}
