/* ==========================================================================
   Texora — Textile Business Management App Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design System & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Light Theme Colors */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --secondary: #0f172a;
  --accent: #10b981;
  --accent-light: #ecfdf5;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.8);

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  scroll-behavior: smooth;
}

/* Dark Theme Colors */
html[data-theme="dark"] {
  --bg-main: #090d16;
  --bg-card: #131b2e;
  --bg-nav: rgba(9, 13, 22, 0.85);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --border-color: #1e293b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);

  --primary-light: rgba(37, 99, 235, 0.15);
  --accent-light: rgba(16, 185, 129, 0.15);
}

/* --------------------------------------------------------------------------
   2. General Reset & Typography
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* --------------------------------------------------------------------------
   3. Reusable UI Components & Layouts
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--secondary);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-dark:hover {
  background-color: #1e293b;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

html[data-theme="dark"] .btn-dark {
  background-color: #1e293b;
}

html[data-theme="dark"] .btn-dark:hover {
  background-color: #334155;
}

/* Section Header styling */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px auto;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 18px;
}

/* Badge Pill */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

/* --------------------------------------------------------------------------
   4. Navigation & Header
   -------------------------------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background-color: transparent;
  border-bottom: 1px solid transparent;
}

header.sticky {
  background-color: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

header:not(.sticky) {
  padding: 20px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--text-main);
}

.brand-icon-t {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.brand-name-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

header .brand-name-img {
  height: 44px;
}

footer .brand-name-img {
  background-color: #ffffff;
  padding: 6px 16px;
  border-radius: 8px;
  height: 36px;
  width: auto;
}

.brand .accent {
  color: var(--primary);
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

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

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

.theme-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-btn:hover {
  background-color: var(--border-color);
  transform: scale(1.05);
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 22px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding: 160px 0 100px 0;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at 10% 20%, var(--primary-light) 0%, transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-text h1 {
  font-size: 54px;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero-text h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Glow Decoration behind Hero Image */
.hero-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0) 70%);
  z-index: -1;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   6. Trusted Features Section
   -------------------------------------------------------------------------- */
.features-section {
  padding: 100px 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 36px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.2);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background-color: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.feature-bullets {
  list-style: none;
}

.feature-bullets li {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.feature-bullets li i {
  color: var(--accent);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   7. How It Works Section
   -------------------------------------------------------------------------- */
.how-it-works-section {
  padding: 100px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

/* Step Card */
.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  transition: var(--transition);
  z-index: 2;
}

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

.step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.step-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Connecting Line between steps (desktop only) */
.steps-line {
  position: absolute;
  top: 56px;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

/* --------------------------------------------------------------------------
   8. Screenshots Section (Gallery with live mockups)
   -------------------------------------------------------------------------- */
.screenshots-section {
  padding: 100px 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.gallery-tab {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.gallery-tab:hover {
  background-color: var(--border-color);
  color: var(--text-main);
}

.gallery-tab.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.gallery-display-panel {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-browser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background-color: var(--bg-card);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: #cbd5e1;
}

.browser-dot:nth-child(1) {
  background-color: #ef4444;
}

.browser-dot:nth-child(2) {
  background-color: #f59e0b;
}

.browser-dot:nth-child(3) {
  background-color: #22c55e;
}

.browser-address {
  width: 50%;
  background-color: var(--bg-main);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-view-content {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.gallery-view-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* UI Mockups rendering with high styling details */
.screenshot-mockup-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.ui-mockup-placeholder {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-height: 420px;
  padding: 24px;
}

/* Specially designed interactive sections for tabs */
.dashboard-mockup-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  min-height: 380px;
}

.mockup-sidebar {
  background-color: var(--bg-main);
  border-radius: var(--radius-sm);
  padding: 16px;
  border-right: 1px solid var(--border-color);
}

.mockup-logo {
  font-weight: 800;
  margin-bottom: 24px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-nav-item {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.mockup-nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.mockup-main {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mockup-widget-card {
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.mockup-widget-card label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.mockup-widget-card strong {
  display: block;
  font-size: 18px;
  margin-top: 4px;
}

.mockup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.mockup-table th,
.mockup-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.mockup-table th {
  background-color: var(--bg-main);
  color: var(--text-muted);
}

.mockup-pill {
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
}

.mockup-pill.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--accent);
}

.mockup-pill.warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

/* Specific details for worker mockups */
.worker-mockup-layout {
  max-width: 320px;
  margin: 0 auto;
  border: 4px solid var(--border-color);
  border-radius: 24px;
  padding: 16px;
  background-color: var(--bg-card);
}

.worker-phone-header {
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.worker-profile-summary {
  text-align: center;
  margin-bottom: 20px;
}

.worker-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 8px auto;
}

.worker-stat-box {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
  text-align: center;
}

/* Calendar widget details */
.calendar-widget {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
}

.calendar-header {
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 8px;
  text-align: center;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 10px;
}

.calendar-day-dot {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.calendar-day-dot.present {
  background-color: var(--accent);
  color: white;
}

.calendar-day-dot.absent {
  background-color: #ef4444;
  color: white;
}

/* --------------------------------------------------------------------------
   9. Why Choose Texora Section
   -------------------------------------------------------------------------- */
.why-choose-section {
  padding: 100px 0;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.why-check {
  font-size: 20px;
  color: var(--accent);
  margin-top: 2px;
}

.why-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.why-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   10. Statistics Section
   -------------------------------------------------------------------------- */
.stats-section {
  background-color: var(--secondary);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item h3 {
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  letter-spacing: -1px;
}

.stat-item p {
  color: #94a3b8;
  font-weight: 500;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   11. Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials-section {
  padding: 100px 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.testimonial-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.testimonial-quote {
  font-size: 15px;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
}

.testimonial-quote::before {
  content: '“';
  font-size: 60px;
  color: var(--primary);
  opacity: 0.15;
  position: absolute;
  top: -24px;
  left: -16px;
  line-height: 1;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.testimonial-user h4 {
  font-size: 15px;
  margin-bottom: 2px;
}

.testimonial-user p {
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. FAQ Section (Accordion)
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 100px 0;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  user-select: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text-main);
}

.faq-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  /* Big enough for text */
  padding-bottom: 20px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   13. Contact Section
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 100px 0;
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.contact-info h2 {
  font-size: 36px;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 32px;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.info-item h4 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.info-item p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0;
}

.contact-form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-main);
  transition: var(--transition);
  font-size: 14px;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
footer {
  background-color: var(--secondary);
  color: #94a3b8;
  padding: 80px 0 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .brand {
  color: #ffffff;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 16px;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-column h4 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column ul a {
  font-size: 14px;
}

.footer-column ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   15. Scroll Animations Classes (Intersection Observer triggers)
   -------------------------------------------------------------------------- */
.scroll-animate {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up {
  transform: translateY(30px);
}

.fade-in-left {
  transform: translateX(-30px);
}

.fade-in-right {
  transform: translateX(30px);
}

.zoom-in {
  transform: scale(0.95);
}

.scroll-animate.animated {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Toast styling */
.texora-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  max-width: 420px;
}

.texora-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.texora-toast.hide {
  transform: translateY(20px);
  opacity: 0;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-icon {
  color: var(--accent);
  font-size: 18px;
}

.toast-message {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}

.toast-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
}

.toast-close-btn:hover {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   16. Media Queries & Responsiveness
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 44px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .steps-line {
    display: none;
    /* Hide line when grid wraps */
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  header:not(.sticky) {
    padding: 16px 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-right-group {
    display: none;
    /* Can be handled via JS toggle or simple menu */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--shadow-lg);
  }

  .nav-right-group.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
  }

  .nav-right {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
  }

  .hero {
    padding: 120px 0 60px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text p {
    margin: 0 auto 32px auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 36px;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}