/* ==========================================================================
   FLEXOM INDIA PVT LTD - CORE DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand Colors inspired by Flexom banner */
  --primary: #D34826;
  --primary-dark: #B33617;
  --primary-light: #E7603B;
  --primary-glow: rgba(211, 72, 38, 0.35);
  --primary-subtle: rgba(211, 72, 38, 0.08);

  --secondary: #1E2530;
  --secondary-light: #2A3342;
  --secondary-dark: #12161D;

  --accent-amber: #F59E0B;
  --accent-cyan: #06B6D4;
  --accent-green: #10B981;

  /* Neutral tones */
  --bg-dark: #0D1017;
  --bg-dark-card: #151A22;
  --bg-dark-glass: rgba(21, 26, 34, 0.75);
  --bg-light: #FBF8F5;
  --bg-light-surface: #FFFFFF;
  --bg-light-subtle: #F3ECE5;

  --text-main: #1C232E;
  --text-muted: #5E6977;
  --text-light: #FFFFFF;
  --text-light-muted: #9CA3AF;

  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-primary: rgba(211, 72, 38, 0.3);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(211, 72, 38, 0.15);
  --shadow-glow: 0 0 35px rgba(211, 72, 38, 0.4);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Selection */
::selection {
  background: var(--primary);
  color: #fff;
}

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

.container-fluid {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--secondary-dark);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

/* Badge & Tag */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-primary {
  background: rgba(211, 72, 38, 0.12);
  color: var(--primary);
  border: 1px solid rgba(211, 72, 38, 0.25);
}

.badge-dark {
  background: var(--secondary-dark);
  color: #fff;
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(211, 72, 38, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(211, 72, 38, 0.4);
  color: #fff;
}

.btn-secondary {
  background: var(--secondary);
  color: #FFFFFF;
}

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

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-subtle);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.btn-outline-white:hover {
  background: #FFFFFF;
  color: var(--secondary-dark);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-glow:hover::after {
  opacity: 1;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(251, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-gear {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(211, 72, 38, 0.35);
  position: relative;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--secondary-dark);
  letter-spacing: -0.03em;
  line-height: 1;
}

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

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--secondary);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

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

.nav-badge-3d {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 800;
  margin-left: 4px;
  vertical-align: middle;
}

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

.phone-quick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary-dark);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.04);
}

.phone-quick:hover {
  background: var(--primary-subtle);
  color: var(--primary);
}

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

.mobile-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--secondary-dark);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 1100;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary-dark);
}

.drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-link {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary);
}

.drawer-link.active, .drawer-link:hover {
  color: var(--primary);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-section {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 40px 0 60px;
  background: radial-gradient(circle at 80% 20%, rgba(211, 72, 38, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(30, 37, 48, 0.05) 0%, transparent 50%),
              var(--bg-light);
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-tag {
  margin-bottom: 20px;
}

.hero-title {
  margin-bottom: 20px;
  line-height: 1.12;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

/* Hero Key Pillars */
.hero-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pillar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.pillar-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary-dark);
}

.pillar-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* 3D Canvas Stage */
.hero-3d-stage {
  position: relative;
  width: 100%;
  height: 560px;
  background: linear-gradient(145deg, #161B24 0%, #0F131A 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.hero-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* 3D HUD Controls */
.stage-hud {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}

.hud-badge {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.stage-controls {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 22, 30, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.stage-btn {
  background: transparent;
  border: none;
  color: #D1D5DB;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.stage-btn.active, .stage-btn:hover {
  background: var(--primary);
  color: #fff;
}

.stage-instructions {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   GLOBAL SECTION STYLES
   ========================================================================== */

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

.section-dark {
  background: var(--secondary-dark);
  color: #FFFFFF;
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: #FFFFFF;
}

.section-dark p {
  color: var(--text-light-muted);
}

.section-subtle {
  background: var(--bg-light-subtle);
}

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

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-tag {
  margin-bottom: 14px;
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
}

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

.site-footer {
  background: var(--secondary-dark);
  color: #FFFFFF;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand p {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  margin: 18px 0 24px;
  max-width: 340px;
}

.footer-tagline-box {
  background: rgba(211, 72, 38, 0.15);
  border-left: 3px solid var(--primary);
  padding: 10px 16px;
  border-radius: 4px;
  color: #F87171;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--primary);
}

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

.footer-links a {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-light-muted);
  font-size: 0.95rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--primary);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-light-muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

/* Floating WhatsApp / Action Bar */
.floating-actions {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.float-btn-whatsapp {
  background: #25D366;
}

.float-btn-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}

.float-btn-top {
  background: var(--secondary);
  opacity: 0;
  pointer-events: none;
}

.float-btn-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.float-btn-top:hover {
  background: var(--primary);
  transform: translateY(-4px);
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-3d-stage {
    height: 480px;
  }

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

@media (max-width: 768px) {
  .nav-menu, .nav-actions .phone-quick {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

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

  .hero-3d-stage {
    height: 380px;
  }

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

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