/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-color: #050505;
  --bg-secondary: #0f1115;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --accent-primary: #3b82f6;
  /* Blueish/Purple for tech feeling */
  --accent-glow: rgba(59, 130, 246, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  /* Reduced spacing */
  --spacing-section: 60px;
  /* Reduced from 80px */
  --container-width: 1400px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.spacer {
  display: none;
  /* Hide explicit spacers as section padding is enough */
}

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

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

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

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

ul {
  list-style: none;
}

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

/* Typography */
h1 {
  font-size: 3.5rem;
  /* Reduced from 4.5rem */
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.5rem;
  /* Reduced from 3rem */
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h4,
h5,
h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.1;
}

.text-gradient {
  background: linear-gradient(90deg, #fff, #94a3b8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-gradient-text {
  background: linear-gradient(90deg, #60a5fa 0%, #60a5fa 45%, #c084fc 55%, #c084fc 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
  /* Clear header */
  position: relative;
}

.spacer {
  display: none;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  /* Reduced padding */
  transition: var(--transition);
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

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

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

.logo img {
  height: 90px;
  /* Increased from 48px to make it bigger */
  width: auto;
  border-radius: 4px;
  filter: contrast(1.15);
  /* Enhance text boldness/clarity */
}

.logo span {
  display: none;
  /* Hide text as requested */
}

.nav-toggle {
  display: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.8;
}

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

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: #fff;
  color: #000;
}

.btn-primary:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--glass-border);
  background: transparent;
  color: #fff;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Hero Section (Modeled after 'primary-hero') */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
}

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

.hero-text h1 {
  font-size: 3.5rem;
  /* Explicitly reduced here too just in case */
  margin-bottom: 1.5rem;
  line-height: 1.1;
  max-width: 800px;
}

.hero-text p {
  font-size: 1.1rem;
  /* Slightly smaller body text */
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

/* New Hero Visual Styles (Why DeepNxt Card) */
.hero-offerings-card {
  background: #0b1120;
  /* Dark blue/black from reference */
  border: 1px solid rgba(59, 130, 246, 0.2);
  /* Subtle blue border */
  border-radius: 12px;
  /* Rounded corners like reference */
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  /* Slightly wider */
  float: right;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-offering-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  align-items: center;
  /* Changed from flex-start to center for better alignment */
}

.hero-offering-item:last-child {
  margin-bottom: 0;
}

.offering-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  /* Rounded square */
  font-size: 1.75rem;
  flex-shrink: 0;
}

/* Icon specific backgrounds */
.icon-brain {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

/* Pink */
.icon-lock {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

/* Orange */
.icon-gear {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

/* Grey */
.icon-handshake {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

/* Yellow */

.offering-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: #fff;
  font-weight: 600;
}

.offering-text p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: #94a3b8;
  /* Muted text */
  line-height: 1.5;
}

.offering-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #fff;
}

.offering-text p {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Promo Banner (Centered Text) */
.promo-banner {
  text-align: center;
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 50%, transparent);
}

.promo-banner h2 {
  font-size: 3rem;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

@media (max-width: 992px) {
  .promo-banner h2 {
    font-size: 1.75rem;
    /* Reduced from 3rem */
    line-height: 1.3;
  }

  .promo-banner p {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

.promo-banner p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

#about {
  min-height: 100vh;
  /* Fill screen to hide next section */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon Tiles (Services) */
.icon-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.tile {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 3rem 2rem;
  border-radius: 1px;
  /* Lilly style is often sharp or slightly rounded, let's go sharp/minimal */
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
  /* Center align */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tile:hover {
  background: #141416;
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.tile-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  color: var(--accent-primary);
}

.tile h3 {
  font-size: 1.25rem;
  /* Reduced */
  margin-bottom: 1rem;
}

.tile p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  /* Reduced */
}

.tile-link {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tile-link::after {
  content: '→';
  transition: transform 0.2s;
}

.tile:hover .tile-link::after {
  transform: translateX(5px);
}

/* Media Carousel / Grid (Enterprise Journey) */
.media-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* 5 columns for sequential look */
  gap: 1.5rem;
}

.media-card {
  position: relative;
  cursor: pointer;
}

.media-card-img {
  height: 240px;
  /* Kept from white theme as requested */
  /* Fixed uniform height */
  width: 100%;
  object-fit: contain;
  /* Ensure full image is visible */
  border-radius: 8px;
  margin-bottom: 1rem;
  opacity: 1;
  transition: var(--transition);
  background-color: var(--bg-secondary);
  /* Dark theme bg */
  /* Light gray background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Dark theme border */
  /* Visible light border */
  padding: 1.5rem;
  /* Padding inside the box */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.media-card:hover .media-card-img {
  opacity: 1;
  transform: scale(1.02);
}

.media-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.media-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Split Section (Why Transform) */
.section {
  scroll-margin-top: 100px;
  /* Fix for anchor clicking cutting off content */
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  /* Give image more space */
  gap: 4rem;
  align-items: start;
  /* Align text to top */
}

.split-content h2 {
  font-size: 2.25rem;
  /* Slightly smaller */
  margin-bottom: 0.75rem;
  /* Drastically reduced from 2rem */
}

.split-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  /* Reduced from 2rem */
}

.comparison-box {
  background: var(--bg-secondary);
  padding: 0.75rem;
  /* Reduced from 1rem */
  border-left: 3px solid var(--accent-primary);
  margin-bottom: 0.5rem;
  /* Reduced from 1rem */
}

.comparison-box strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.split-image {
  height: 400px;
  /* Fixed height to match reference */
  border-radius: 12px;
  /* Rounded corners */
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  /* Match image background */
}

.split-image img {
  width: auto;
  height: 100%;
  object-fit: contain;
  /* Show full image */
  border-radius: 2px;
  filter: contrast(1.1);
}

/* Contact Specific Alignment */
#contact .split-section {
  align-items: start;
  /* Align text to top of form */
}

/* Form Section */
.form-container {
  background: var(--bg-secondary);
  padding: 1rem;
  /* Further reduced from 1.5rem */
  border: 1px solid var(--glass-border);
  width: 100%;
  max-width: 600px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  /* Further reduced gap */
  margin-bottom: 0.75rem;
  /* Further reduced margin */
}

.form-field {
  margin-bottom: 0.5rem;
  /* Added to control spacing if not in row */
}

.form-field label {
  display: block;
  margin-bottom: 0.2rem;
  /* Tighter label spacing */
  font-size: 0.8rem;
  /* Smaller label font */
  font-weight: 500;
  color: var(--text-secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.4rem 0.6rem;
  /* Reduced vertical padding */
  background: #000;
  border: 1px solid var(--glass-border);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  /* Smaller input font */
  border-radius: 2px;
  transition: var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent-primary);
  outline: none;
}

/* Make textarea smaller by default */
.form-field textarea {
  min-height: 50px;
  /* Force much smaller height */
  resize: vertical;
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 1rem 0;
  /* Minimal footer padding */
  margin-top: 1rem;
  background: #020202;
}

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

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a {
  margin-left: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: #fff;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
    /* Add specific padding for mobile hero */
  }

  /* Increase top padding for the first section to avoid overlap with fixed header in mobile */
  .hero {
    padding-top: 100px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
    /* Drastically reduced from 3rem */
  }

  /* Mobile Header Adjustments */
  .logo img {
    height: 50px;
    /* Smaller logo on mobile */
  }

  .nav-wrapper {
    padding: 0 1.5rem;
    /* Ensure space for hamburger */
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    z-index: 2000;
    position: absolute;
    /* Force positioning */
    right: 1.5rem;
    /* Align to right edge */
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle border to see bounding box */
    border-radius: 4px;
  }

  /* Ensure container has relative positioning for absolute child */
  .nav-wrapper {
    position: relative;
    padding: 0 1.5rem;
    justify-content: flex-start;
    /* Logo takes natural space */
  }

  /* Hide the Desktop CTA button on mobile to save space */
  .nav-cta-btn {
    display: none;
  }

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

  .hero-offerings-card {
    float: none;
    margin: 2rem auto 0;
  }

  .icon-tiles {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr;
    /* Stack vertically on small mobile */
  }

  /* Increase max height to prevent cropping, but keep aspect ratio */
  .media-card-img {
    height: auto;
    width: 100%;
    aspect-ratio: 16/9;
    max-height: none;
    /* Remove restrictive 250px cap */
    object-fit: contain;
    /* Ensure full image is visible, no cropping */
    background: transparent;
    /* Remove grey bg if image has transparency */
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split-content h2 {
    font-size: 1.8rem;
    /* Scale down heading from 2.25rem */
    line-height: 1.2;
  }

  /* Fix truncated images on mobile */
  .split-image {
    height: auto;
    /* Allow full image height */
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Maintain aspect ratio */
  }

  .split-image img {
    object-fit: cover;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: fixed;
    top: 90px;
    /* Below header */
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    /* Start slightly up */
    width: 90%;
    /* Don't cover full width */
    max-width: 400px;
    height: auto;
    /* Shrink to fit content */
    /* Shrink to fit content */
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 900;
    overflow-y: hidden;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }

  .nav-open .nav-links {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Removed duplicate nav-toggle */

  .hamburger {
    display: block !important;
    /* Force display */
    width: 28px;
    height: 3px;
    background: var(--accent-primary);
    /* Use bright accent color */
    position: relative;
    border-radius: 2px;
  }

  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--accent-primary);
    /* Use bright accent color */
    left: 0;
    transition: var(--transition);
    border-radius: 2px;
  }

  .hamburger::before {
    top: -8px;
  }

  .hamburger::after {
    top: 8px;
  }

  .nav-cta-btn {
    display: none;
  }
}

.nav-toggle {
  display: none;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  color: #000;
  padding: 1rem 2rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  z-index: 2000;
}

/* Why DeepNxt Section */
/* Why DeepNxt Section */
#why-deepnxt {
  align-items: center;
  /* Horizontally center the single card */
}

.why-deepnxt-card {
  background: #0b1120;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  /* Reduced from 4rem */
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
  max-width: 1200px;
  /* Optional: limit width if it feels too stretched */
  margin: 0 auto;
}

.why-header {
  margin-bottom: 2rem;
  /* Reduced from 3rem */
}

.why-header h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.why-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

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

.why-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-item .offering-icon {
  margin-bottom: 1.5rem;
  width: 64px;
  height: 64px;
  font-size: 2rem;
}

.why-item h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 992px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .why-deepnxt-card {
    padding: 2rem;
  }
}

/* Toast Notification */
.toast {
  visibility: hidden;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #fff;
  color: #000;
  padding: 1rem 2rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-weight: 500;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
}

.toast.show {
  visibility: visible;
  transform: translateY(0);
  opacity: 1;
}

/* --- FORCE MOBILE NAV VISIBILITY --- */
@media (max-width: 992px) {
  .nav-toggle {
    display: flex !important;
    position: absolute !important;
    top: 50% !important;
    /* Move to true vertical center of header */
    transform: translateY(-50%) !important;
    right: 1.5rem !important;
    width: 44px !important;
    height: 44px !important;
    background: transparent !important;
    z-index: 9999 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    align-items: center;
    justify-content: center;
  }

  .hamburger {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background: var(--accent-primary) !important;
    position: relative !important;
  }

  .hamburger::before,
  .hamburger::after {
    background: var(--accent-primary) !important;
    height: 2px !important;
  }
}