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

:root {
  --color-primary: #0D9488;
  --color-primary-light: #14B8A6;
  --color-primary-dark: #0F766E;
  --color-accent: #22D3EE;
  --color-accent-warm: #FBBF24;
  --color-dark: #0F172A;
  --color-dark-muted: #1E293B;
  --color-surface: #F0FDFA;
  --color-surface-alt: #ECFDF5;
  --color-text: #1E293B;
  --color-text-muted: #64748B;
  --color-white: #FFFFFF;
  
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  --gradient-hero: linear-gradient(135deg, #0F172A 0%, #134E4A 50%, #0D9488 100%);
  --gradient-card: linear-gradient(180deg, rgba(13, 148, 136, 0.05) 0%, rgba(13, 148, 136, 0.1) 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

/* Navigation */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Cards */
.tech-card {
  background: var(--color-white);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.4s ease;
  border: 1px solid rgba(13, 148, 136, 0.1);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(13, 148, 136, 0.15);
}

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

/* Feature Icons */
.feature-icon {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
  color: var(--color-primary);
  overflow: hidden;
  flex-shrink: 0;
}

/* Section styling */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  color: var(--color-primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.section-label svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  flex-shrink: 0;
}

/* SVG sizing - force constraints */
svg {
  flex-shrink: 0;
  max-width: 100%;
  height: auto;
}

/* Override for icon SVGs */
.tech-card .feature-icon svg,
.feature-icon svg {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
}

.tech-card a svg,
a svg[viewBox="0 0 24 24"] {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
}

.section-label svg,
.section-header svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
}

nav svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

/* Generic icon sizing for common patterns */
[class*="w-4"] svg,
[class*="w-5"] svg,
[class*="w-6"] svg,
[class*="w-7"] svg,
[class*="w-8"] svg {
  width: inherit;
  height: inherit;
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(34, 211, 238, 0.3); }
  50% { box-shadow: 0 0 60px rgba(34, 211, 238, 0.5); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Stats */
.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Page Hero */
.page-hero {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: var(--gradient-glow);
  pointer-events: none;
}

/* Footer */
.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

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