/* =========================================
   DESIGN SYSTEM & VARIABLES
   ========================================= */
:root {
  /* Colors - Enterprise Dark Theme */
  --bg-body: #020617; /* Slate 950 */
  --bg-card: rgba(15, 23, 42, 0.6); /* Slate 900 transparent */
  --bg-card-hover: rgba(30, 41, 59, 0.8); /* Slate 800 transparent */
  
  --text-main: #f8fafc; /* Slate 50 */
  --text-muted: #94a3b8; /* Slate 400 */
  --text-accent: #818cf8; /* Indigo 400 */

  --primary: #4f46e5; /* Indigo 600 */
  --primary-hover: #4338ca; /* Indigo 700 */
  --primary-glow: rgba(79, 70, 229, 0.4);

  --border-light: rgba(148, 163, 184, 0.1);
  --border-highlight: rgba(129, 140, 248, 0.3);

  /* Gradients */
  --gradient-main: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-dark: linear-gradient(to bottom, #0f172a, #020617);
  
  /* Spacing & Layout */
  --container-width: 1200px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* =========================================
   RESET & GLOBAL
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative;
}

.text-center { text-align: center; }
.highlight { 
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

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

.btn-outline:hover {
  border-color: var(--text-main);
  color: var(--text-main);
  background: rgba(255,255,255,0.05);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* =========================================
   HEADER & NAV
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  padding: 0.5rem 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--gradient-main);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav a:hover {
  color: var(--text-main);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: 0.3s;
}

/* Mobile Nav */
.nav-mobile {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--bg-body);
  display: flex; /* controlled by JS usually but basic default */
  flex-direction: column;
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  transform: translateY(-150%);
  transition: transform 0.3s ease;
  z-index: 900;
}

.nav-mobile.active {
  transform: translateY(0);
}

.nav-mobile a {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
}

.nav-mobile-cta {
  margin-top: 1rem;
  text-align: center;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  border: none !important;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  padding: 140px 0 80px;
  background: 
    radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(124, 58, 237, 0.15) 0%, transparent 25%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.badge-pill {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: 99px;
  font-size: 0.8rem;
  color: var(--text-accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-sidebar {
  position: relative;
}

.hero-sidebar::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-sidebar {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.05);
}

.stat-card strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: white;
}

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

.divider {
  height: 1px;
  background: var(--border-light);
  margin: 1.5rem 0;
}

.stat-row {
  display: flex;
  justify-content: space-between;
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* =========================================
   GENERIC SECTIONS
   ========================================= */
.section {
  padding: 80px 0;
}

.section-dark {
  background: #0B0F1F; /* Slightly lighter than body */
}

.section-darker {
  background: #01040f; /* Even darker */
}

.section-header {
  margin-bottom: 3rem;
}

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

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

.section-title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.w-line {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

/* =========================================
   WHO WE ARE
   ========================================= */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-layout.rev .content-block {
  order: 2;
}

.content-block p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

.content-block strong {
  color: white;
}

.feature-grid-mini {
  display: grid;
  gap: 1.5rem;
}

.feature-item {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateX(5px);
  border-color: var(--border-highlight);
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: white;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* =========================================
   METHODOLOGY (Process)
   ========================================= */
.section-process {
  background: linear-gradient(to bottom, var(--bg-body), #0f172a);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  position: relative;
  padding: 2rem;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.step:hover {
  background: rgba(255,255,255,0.04);
  transform: translateY(-5px);
}

.step-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  position: absolute;
  top: 10px;
  right: 20px;
}

.step h3 {
  margin-top: 1rem;
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
}

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

/* =========================================
   SOLUTIONS
   ========================================= */
.solutions-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.solution-card.featured {
  border-color: var(--primary);
  background: linear-gradient(to bottom right, rgba(79, 70, 229, 0.1), var(--bg-card));
}

.solution-card:hover {
  transform: translateY(-5px);
  border-color: var(--text-accent);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.solution-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.solution-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.solution-card ul {
  list-style: none;
}

.solution-card ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.solution-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.price-ref {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =========================================
   PARTNERSHIPS
   ========================================= */
.section-highlight {
  background: linear-gradient(90deg, #0f172a 0%, #1e1b4b 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.label-callout {
  color: #fbbf24;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.check-list li {
  margin-bottom: 1rem;
  padding-left: 1.8rem;
  position: relative;
  color: var(--text-muted);
}

.check-list li strong {
  color: white;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981; /* Emerald 500 */
  font-weight: bold;
}

.partnership-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.p-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.05);
  padding: 2rem;
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  font-weight: 600;
  border: 1px dashed rgba(255,255,255,0.2);
}

.p-plus, .p-equals {
  color: var(--text-muted);
}

.p-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* =========================================
   PORTFOLIO
   ========================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.project-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.project-content .tag {
  color: var(--text-accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.project-content .desc {
  color: var(--text-muted);
  font-size: 1rem;
}

.project-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 2.5rem;
  background: rgba(0,0,0,0.2);
  align-items: center;
}

.project-gallery img {
  height: 200px;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.project-gallery img:hover {
  transform: scale(1.05);
  z-index: 2;
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.t-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  position: relative;
}

.t-card::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: 10px;
  left: 20px;
  color: rgba(255,255,255,0.05);
  font-family: serif;
}

.t-card p {
  color: #cbd5e1;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.t-author strong {
  display: block;
  color: white;
  font-size: 0.95rem;
}

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

/* =========================================
   CTA SECTION & FOOTER
   ========================================= */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-container {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, rgba(2, 6, 23, 0) 70%);
  padding: 3rem;
  border-radius: var(--radius-lg);
}

.cta-container h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-buttons {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-direct {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.phone-link {
  color: white;
  margin-left: 0.5rem;
  border-bottom: 1px dotted white;
}

.footer {
  border-top: 1px solid var(--border-light);
  padding: 60px 0 20px;
  background: #000205;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col.links a {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 { font-size: 2.5rem; }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .split-layout.rev .content-block { order: 0; }
  
  .project-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  
  .btn-sm { display: none; } /* Hide header button on mobile, use menu */
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .p-card {
    flex-direction: column;
    text-align: center;
  }

  .stat-row {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
}
