/* ==========================================================================
   STARTUP 360D - DESIGN SYSTEM
   Ultra-Premium Architectural & Atmanirbhar Startup Consultancy Platform
   ========================================================================== */

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

:root {
  /* Brand Palette - Deep Green (#174D38), Rich Brown (#4D1717), Cool Gray (#CBCBCB), Off-White (#F2F2F2) */
  --bg-dark-base: #0c241b;
  --bg-dark-card: #133327;
  --bg-dark-card-hover: #174d38;
  --bg-paper: #F2F2F2;
  --bg-paper-subtle: #EDEDED;
  
  --brand-navy: #174D38;
  --brand-navy-deep: #0C241B;
  --brand-navy-light: #23644B;
  --brand-slate: #5C6661;
  --brand-slate-light: #CBCBCB;
  
  --brand-emerald: #174D38;
  --brand-emerald-bright: #23694E;
  --brand-emerald-dark: #0F3325;
  --brand-emerald-glow: rgba(23, 77, 56, 0.2);
  
  --brand-cyan: #4D1717;
  --brand-cyan-bright: #6B2323;
  --brand-cyan-glow: rgba(77, 23, 23, 0.2);
  
  --brand-gray: #CBCBCB;
  --brand-brown: #4D1717;
  --brand-gold: #c2831e;
  --brand-coral: #4D1717;
  
  /* Glassmorphism & Borders */
  --glass-bg-dark: rgba(12, 36, 27, 0.85);
  --glass-border-dark: rgba(203, 203, 203, 0.15);
  --glass-border-emerald: rgba(23, 77, 56, 0.35);
  --glass-bg-light: rgba(255, 255, 255, 0.9);
  --glass-border-light: rgba(203, 203, 203, 0.6);
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-hand: 'Instrument Serif', cursive, serif;
}

/* Base Resets & Smooth Scroll */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--brand-navy);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: #ffffff;
}

/* Selection */
::selection {
  background: rgba(16, 185, 129, 0.25);
  color: #065f46;
}

/* Typography Helpers */
.font-display {
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.font-serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.font-mono-code {
  font-family: var(--font-mono);
}

/* Custom Gradients */
.gradient-360d {
  background: linear-gradient(135deg, #174D38 0%, #4D1717 100%);
}

.gradient-text-emerald-cyan {
  background: linear-gradient(135deg, #174D38 0%, #4D1717 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold-coral {
  background: linear-gradient(90deg, #174D38 0%, #4D1717 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-radial-mesh {
  background: radial-gradient(75% 65% at 50% -10%, #DCE6E1 0%, #F2F2F2 45%, #FFFFFF 100%);
}

.dark-radial-mesh {
  background: radial-gradient(65% 55% at 50% 0%, #174D38 0%, #0C241B 100%);
}

/* Engineering Technical Grid Background */
.tech-grid-pattern {
  background-image: 
    linear-gradient(rgba(23, 77, 56, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 77, 56, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.tech-grid-dark {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Glassmorphism Containers */
.glass-island {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.18);
  box-shadow: 0 10px 30px -10px rgba(11, 31, 46, 0.08);
}

.glass-island-dark {
  background: rgba(11, 21, 34, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5);
}

/* Interactive Card Spotlight Effect */
.spotlight-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(11, 31, 46, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, -100px);
  left: var(--mouse-x, -100px);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle closest-side, rgba(16, 185, 129, 0.12), transparent);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

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

.spotlight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 16px 36px -12px rgba(11, 31, 46, 0.12);
}

/* Dark Spotlight Card */
.spotlight-card-dark {
  position: relative;
  background-color: var(--bg-dark-card);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}

.spotlight-card-dark::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, -100px);
  left: var(--mouse-x, -100px);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle closest-side, rgba(6, 182, 212, 0.18), transparent);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.spotlight-card-dark:hover::before {
  opacity: 1;
}

.spotlight-card-dark:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

/* Magnetic Button Physics */
.magnetic-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.magnetic-btn .arrow-bubble {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.magnetic-btn:hover .arrow-bubble {
  transform: scale(1.1) rotate(45deg);
}

/* Drawing Bounding Box Animation */
.draw-box {
  position: relative;
  display: inline-block;
}

.draw-box .line-t {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: #174D38;
  transform-origin: left;
  animation: drawX 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.draw-box .line-r {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.5px;
  height: 100%;
  background: #174D38;
  transform-origin: top;
  animation: drawY 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  transform: scaleY(0);
}

.draw-box .line-b {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2.5px;
  background: #174D38;
  transform-origin: right;
  animation: drawX 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  transform: scaleX(0);
}

.draw-box .line-l {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5px;
  height: 100%;
  background: #174D38;
  transform-origin: bottom;
  animation: drawY 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  transform: scaleY(0);
}

@keyframes drawX {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes drawY {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* S-Curve Roadmap Animation */
.roadmap-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.roadmap-path.active {
  stroke-dashoffset: 0;
}

/* Pulse animation for node dots */
@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.3;
  }
}

.node-pulse {
  animation: pulseGlow 2.5s infinite ease-in-out;
}

/* Infinite Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
}

.marquee-content {
  display: flex;
  gap: 3rem;
  animation: scrollMarquee 35s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Custom Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: #e2e8f0;
  outline: none;
  transition: background 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #174D38;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(23, 77, 56, 0.5);
  border: 3px solid #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 18px rgba(23, 77, 56, 0.75);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .draw-box {
    padding: 0.25rem 0.5rem;
  }
}
