:root {
  /* Light Mode Defaults */
  --bg-color: #f8fafc;
  --text-main: #0f172a;
  --text-secondary: #475569;
  
  --cyan: #0ea5e9;
  --purple: #8b5cf6;
  --gradient-primary: linear-gradient(135deg, var(--cyan), var(--purple));
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --navbar-bg: rgba(255, 255, 255, 0.85);
  
  --neon-card-bg: rgba(255, 255, 255, 0.8);
  --glow-cyan: rgba(14, 165, 233, 0.15);
  --glow-purple: rgba(139, 92, 246, 0.15);
  --footer-bg: rgba(241, 245, 249, 0.9);
  --timeline-line: rgba(0, 0, 0, 0.1);
  --placeholder-glow: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(139, 92, 246, 0.1));
  --btn-outline-hover: rgba(0, 0, 0, 0.05);
  --bg-circuit: rgba(0, 0, 0, 0.05);
  --social-icon-bg: rgba(0, 0, 0, 0.05);
  
  --font-family: 'Inter', sans-serif;
  --max-width: 1280px;
}

[data-theme="dark"] {
  --bg-color: #000000;
  --text-main: #ffffff;
  --text-secondary: #a0aab5;
  
  --cyan: #00f0ff;
  --purple: #8a2be2;
  --gradient-primary: linear-gradient(135deg, var(--cyan), var(--purple));
  
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --navbar-bg: rgba(0, 0, 0, 0.5);
  
  --neon-card-bg: rgba(10, 10, 10, 0.4);
  --glow-cyan: rgba(0, 240, 255, 0.15);
  --glow-purple: rgba(138, 43, 226, 0.15);
  --footer-bg: rgba(0, 0, 0, 0.8);
  --timeline-line: rgba(255, 255, 255, 0.08);
  --placeholder-glow: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(138, 43, 226, 0.05));
  --btn-outline-hover: rgba(255, 255, 255, 0.05);
  --bg-circuit: rgba(255, 255, 255, 0.02);
  --social-icon-bg: rgba(255, 255, 255, 0.03);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Background Effects */
.circuit-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-image: 
    linear-gradient(var(--bg-circuit) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-circuit) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  transition: background 0.3s;
}

.glow-orb.top-left {
  width: 400px;
  height: 400px;
  background: var(--glow-cyan);
  top: -100px;
  left: -100px;
}

.glow-orb.bottom-right {
  width: 500px;
  height: 500px;
  background: var(--glow-purple);
  bottom: -200px;
  right: -200px;
}

/* Typography elements */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Reusable Glass element */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  transition: background 0.3s, border-color 0.3s;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 64px; /* INCREASED LOGO SIZE */
  width: auto;
  border-radius: 6px;
}

.dark-logo {
  display: none;
}

[data-theme="dark"] .light-logo {
  display: none;
}

[data-theme="dark"] .dark-logo {
  display: block;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Theme Switcher */
.theme-switch {
  display: flex;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  align-items: center;
}

.theme-switch input {
  display: none;
}

.theme-switch label {
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
  user-select: none;
}

.theme-switch input:checked + label {
  background: var(--gradient-primary);
  color: white; /* optional */
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px var(--glow-purple);
}

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

.btn-primary .arrow {
  margin-left: 8px;
  transition: transform 0.2s;
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

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

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

.btn-outline {
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}

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

/* Header / Hero */
.hero {
  padding: 180px 30px 100px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 100vh;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

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

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}

.image-wrapper {
  padding: 16px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.image-wrapper::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--gradient-primary);
  z-index: -1;
  border-radius: 22px;
  opacity: 0.5;
  filter: blur(10px);
}

.image-wrapper img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  display: block;
  clip-path: inset(0 0 16% 0);
  margin-bottom: -16%;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Sections */
.section {
  padding: 120px 30px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 60px;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Service Grid */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.neon-card {
  background: var(--neon-card-bg);
  backdrop-filter: blur(12px);
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.neon-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 16px;
  padding: 1px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
  transition: opacity 0.4s;
}

.neon-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px var(--glow-purple);
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.neon-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.neon-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.label-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.label-product {
  color: var(--cyan);
  border-color: rgba(14, 165, 233, 0.4);
}

.label-service {
  color: var(--purple);
  border-color: rgba(139, 92, 246, 0.4);
}

[data-theme="dark"] .label-product {
  border-color: rgba(0, 240, 255, 0.4);
}

[data-theme="dark"] .label-service {
  border-color: rgba(138, 43, 226, 0.4);
}

/* Products Gallery */
.horizontal-scroll-wrapper {
  margin: 0;
  padding: 0;
  overflow: visible;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  width: 100%;
}

.product-item {
  width: 100%;
  max-width: none;
}

.product-image {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 16/9;
  position: relative;
  transition: transform 0.4s;
}

.product-image:hover {
  transform: scale(1.02);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-glow {
  background: var(--placeholder-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon {
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.product-info h4 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.product-info p {
  color: var(--text-secondary);
}

/* Timeline / Journey */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 2px;
  height: 100%;
  background: var(--timeline-line);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 40px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  top: 20px;
  width: 16px;
  height: 16px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--cyan);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

.timeline-content {
  padding: 30px;
  position: relative;
}

.step-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--timeline-line);
  position: absolute;
  top: 10px;
  right: 20px;
}

.timeline-item:nth-child(even) .step-num {
  left: 20px;
  right: auto;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Ascendiz-style Rounded Section Overlays */
.rounded-section {
  width: 100%;
  position: relative;
  border-radius: 80px 80px 0 0;
  margin-top: 80px;
  padding-top: 40px;
  z-index: 2;
  transition: all 0.3s ease;
}

.rounded-section.level-1 {
  background: var(--glass-bg);
  box-shadow: 0 -20px 50px rgba(0,0,0,0.03);
}

.rounded-section.level-2 {
  background: var(--footer-bg);
  box-shadow: 0 -20px 50px rgba(0,0,0,0.03);
  margin-top: -40px; /* pull it up to overlap level 1 */
}

/* Make actual inner sections have less top padding since wrapper has some */
.rounded-section .section {
  padding-top: 60px;
}

[data-theme="dark"] .rounded-section.level-1 {
  background: rgba(20, 20, 25, 0.8);
  box-shadow: 0 -20px 50px rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.05);
}

[data-theme="dark"] .rounded-section.level-2 {
  background: var(--footer-bg);
  box-shadow: 0 -20px 50px rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 50px 30px;
  background: var(--footer-bg);
  transition: background 0.3s ease;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-left {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 60px;
}

.link-column h4 {
  margin-bottom: 16px;
  font-weight: 600;
}

.link-column a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.link-column a:hover {
  color: var(--cyan);
}

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

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--social-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

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

/* Responsive */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 140px;
  }
  
  .hero-subtitle {
    margin: 0 auto 40px;
  }
  
  .hero-actions {
    justify-content: center;
  }

  .timeline::before {
    left: 40px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 80px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-item:nth-child(odd) {
    left: 0;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-dot {
    left: 32px !important;
  }

  .step-num {
    right: 20px !important;
    left: auto !important;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 20px;
    justify-content: space-between;
  }
  
  .brand {
    max-width: 55%;
    flex-shrink: 1;
  }

  .nav-links {
    flex-shrink: 0;
    justify-content: flex-end;
  }

  .nav-links > a:not(.btn) {
    display: none;
  }
  
  .brand-logo {
    height: auto;
    max-height: 44px;
    max-width: 100%;
    object-fit: contain;
  }
  
  .theme-switch {
    display: flex !important;
    transform: scale(0.9);
    transform-origin: right center;
    margin-right: -10px;
  }

  .theme-switch label {
    padding: 8px 10px;
  }
  
  .btn.btn-outline {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 80px 20px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .neon-card {
    padding: 30px 20px;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-dot {
    left: 12px !important;
  }
  
  .timeline-item {
    padding-left: 60px !important;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .footer-content {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .nav-links > a.btn {
    display: none;
  }
  
  .nav-container {
    padding: 0 15px;
  }
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
