/* ==========================================================================
   PRIMESOFTWARE - Master Enterprise CSS Design System (Enhanced)
   Website: PRIMESOFTWARESOLUTION.ORG
   ========================================================================== */

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

:root {
  /* Color Palette */
  --primary: #0066FF;
  --primary-hover: #0052CC;
  --primary-dark: #0038A8;
  --primary-light: #EBF3FF;
  --accent: #00D2FF;
  --accent-purple: #7000FF;
  --secondary: #0F172A;
  --dark-bg: #070A12;
  --dark-surface: #0F1629;
  --dark-border: rgba(255, 255, 255, 0.12);
  --surface: #FFFFFF;
  --surface-alt: #F8FAFC;
  --surface-card: #FFFFFF;
  
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;
  
  /* Status Colors */
  --success: #10B981;
  --warning: #F59E0B;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #0066FF 0%, #00D2FF 100%);
  --grad-accent: linear-gradient(135deg, #7000FF 0%, #0066FF 100%);
  --grad-dark: linear-gradient(135deg, #070A12 0%, #0F1629 100%);
  --grad-hero: radial-gradient(circle at 70% 30%, #002B66 0%, #070A12 70%);
  --grad-glow: radial-gradient(600px circle at var(--x, 50%) var(--y, 50%), rgba(0, 210, 255, 0.15), transparent 40%);
  --grad-card-hover: linear-gradient(180deg, rgba(0, 102, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);

  /* Typography */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing */
  --container-max: 1280px;
  --section-padding: 100px 20px;
  
  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 32px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(0, 102, 255, 0.18);
  --shadow-glow: 0 0 30px rgba(0, 210, 255, 0.25);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

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

ul {
  list-style: none;
}

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

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Header Typography */
.section-title-wrap {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

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

.badge-dark {
  background: rgba(0, 210, 255, 0.12);
  color: var(--accent);
  border-color: rgba(0, 210, 255, 0.3);
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-title-light {
  color: #FFFFFF;
}

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

.section-subtitle-light {
  color: var(--text-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #FFFFFF;
  box-shadow: 0 10px 25px -5px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -5px rgba(0, 102, 255, 0.55);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-white {
  background: #FFFFFF;
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background: #F1F5F9;
  color: var(--primary);
  transform: translateY(-2px);
}

/* Header Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 2px 0;
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo-link img {
  height: 48px;
  width: auto;
}

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

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 8px 0;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-primary);
  border-radius: 2px;
}

/* Dropdown */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  width: 290px;
  background: #FFFFFF;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 14px;
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border-color);
  animation: fadeInDown 0.25s ease forwards;
}

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

.nav-item-dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-item {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 170px 0 110px 0;
  background: var(--grad-hero);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-content h1 span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 38px;
  max-width: 620px;
  line-height: 1.65;
}

.hero-tags {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.hero-tag-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--accent);
  font-family: var(--font-mono);
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.hero-image-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.hero-floating-badge {
  position: absolute;
  bottom: 25px;
  left: 25px;
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--dark-border);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Partner Ticker */
.ticker-section {
  background: #FFFFFF;
  padding: 30px 0;
  border-bottom: 1px solid var(--border-color);
}

.ticker-wrap {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
  opacity: 0.7;
  filter: grayscale(100%);
  flex-wrap: wrap;
}

.ticker-item {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* Stats Bar */
.stats-bar {
  background: #FFFFFF;
  margin-top: -50px;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.stat-item h3 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.stat-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Services Grid */
.services-section {
  padding: var(--section-padding);
}

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

.service-card {
  background: var(--surface-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

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

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 28px;
  border: 1px solid rgba(0, 102, 255, 0.15);
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 14px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tech-tag {
  background: var(--surface-alt);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.service-link {
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.service-link:hover {
  gap: 12px;
}

/* Process Steps Timeline */
.process-section {
  padding: var(--section-padding);
  background: #FFFFFF;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 40px;
}

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

.step-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(0, 102, 255, 0.15);
  font-family: var(--font-mono);
  position: absolute;
  top: 15px;
  right: 20px;
}

.process-step h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Tech Matrix Tabs */
.tech-matrix-section {
  padding: var(--section-padding);
  background: var(--dark-bg);
  color: #FFFFFF;
}

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

.matrix-tab {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--dark-border);
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.matrix-tab.active, .matrix-tab:hover {
  background: var(--grad-primary);
  color: #FFFFFF;
  border-color: transparent;
}

.matrix-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.tech-item-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dark-border);
  padding: 22px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: #FFFFFF;
  transition: var(--transition);
}

.tech-item-box:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  background: rgba(0, 210, 255, 0.08);
}

/* ROI Estimator Widget */
.roi-section {
  padding: var(--section-padding);
}

.roi-card {
  background: var(--dark-surface);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--dark-border);
}

.roi-controls {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.range-slider-wrap label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 10px;
}

.range-slider {
  width: 100%;
  accent-color: var(--accent);
}

.roi-display {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-border);
  padding: 40px;
  border-radius: var(--radius-md);
  text-align: center;
}

.roi-display h4 {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.roi-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* Detailed Case Studies Grid */
.case-studies-section {
  padding: var(--section-padding);
  background: #FFFFFF;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 35px;
}

.case-card {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.case-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.case-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.case-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.case-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.case-metrics-row {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.metric-box h5 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.metric-box p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Global Locations */
.presence-section {
  padding: var(--section-padding);
  background: var(--dark-bg);
  color: #FFFFFF;
}

.location-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.location-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dark-border);
  padding: 30px;
  border-radius: var(--radius-md);
  text-align: left;
  transition: var(--transition);
}

.location-card:hover {
  border-color: var(--accent);
  background: rgba(0, 210, 255, 0.06);
}

.location-card h4 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 700;
}

.location-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-section {
  padding: var(--section-padding);
}

.faq-accordion {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-header {
  padding: 22px 28px;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-header:hover {
  color: var(--primary);
}

.faq-body {
  padding: 0 28px 24px 28px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  display: none;
}

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

.faq-item.active .faq-body {
  display: block;
}

.faq-toggle-icon {
  font-size: 0.9rem;
  transition: var(--transition);
}

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

/* Forms */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--secondary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  outline: none;
  background: #FFFFFF;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.12);
}

/* Footer */
.footer {
  background: var(--secondary);
  color: #FFFFFF;
  padding: 90px 0 35px 0;
}

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

.footer-brand p {
  color: var(--text-light);
  margin-top: 18px;
  font-size: 0.92rem;
  max-width: 360px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 22px;
  color: #FFFFFF;
}

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

.footer-links a {
  color: var(--text-light);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--accent);
}

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

/* Responsive Rules */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin: 0 auto 38px auto; }
  .hero-btns { justify-content: center; }
  .hero-tags { justify-content: center; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .roi-card { grid-template-columns: 1fr; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
  .mobile-toggle span { width: 26px; height: 3px; background: var(--secondary); border-radius: 2px; }
  .nav-menu {
    position: fixed;
    top: 84px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 84px);
    background: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 35px;
    transition: var(--transition);
  }
  .nav-menu.open { left: 0; }
  .dropdown-menu { position: static; box-shadow: none; border: none; display: none; padding-left: 15px; width: 100%; }
  .nav-item-dropdown.active .dropdown-menu { display: flex; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 2.1rem; }
  .hero-content h1 { font-size: 2.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}
