/* ========================================
   SA-Cognizance Design System
   Modern, professional styling with smooth animations
   ======================================== */

:root {
  /* Color palette */
  --primary: #0f62fe;
  --primary-dark: #0043ce;
  --primary-light: #4589ff;
  --secondary: #6f38c5;
  --accent: #0f62fe;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f6f8fc;
  --bg-tertiary: #eef2f9;
  
  --text-primary: #0f1724;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  
  --success: #059669;
  --success-bg: #d1fae5;
  --error: #dc2626;
  --error-bg: #fee2e2;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', monospace;
}

/* ========================================
   Base Styles
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 50%, #fafbfc 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure body has painted before showing animations */
body:not(.is-ready) * {
  animation-play-state: paused !important;
  transition: none !important;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 200ms ease;
}

a:hover {
  color: var(--primary-dark);
}

.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }
.text-center { text-align: center; }

/* ========================================
   Layout
   ======================================== */

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl);
}

main {
  flex: 1;
}

/* ========================================
   Header & Navigation
   ======================================== */

.topbar {
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  color: #fff;
  padding: var(--space-sm) 0;
  font-size: 0.875rem;
  box-shadow: var(--shadow-sm);
}

.topbar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.topbar a {
  color: #fff;
  text-decoration: underline;
  opacity: 0.9;
  transition: opacity 200ms;
}

.topbar a:hover {
  opacity: 1;
}

.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 20px rgba(16, 24, 40, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 300ms ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
  gap: var(--space-lg);
}

.site-header img {
  transition: transform 300ms ease;
}

.site-header img:hover {
  transform: scale(1.05);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-header nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 200ms ease;
  position: relative;
}

.site-header nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 300ms ease;
}

.site-header nav a:hover {
  color: var(--primary);
}

.site-header nav a:hover::after {
  width: 100%;
}

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

/* Mobile nav toggle */
#navToggle {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 200ms ease;
}

#navToggle:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
}

.mobile-nav {
  display: none;
  background: #fff;
  padding: var(--space-md);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  display: block;
}

.mobile-nav a {
  display: block;
  padding: var(--space-sm) 0;
  font-weight: 500;
}

/* ========================================
   Hero Section
   ======================================== */

.dense-hero {
  background: linear-gradient(135deg, #0f62fe 0%, #6f38c5 100%);
  color: #fff;
  padding: 1.25rem 0;
  position: relative;
  overflow: hidden;
}

.dense-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.dense-hero .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.dense-hero h1 {
  font-size: 2.75rem;
  margin: 0;
  color: #fff;
  line-height: 1.1;
  animation: slideInUp 600ms ease-out;
}

.dense-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin: 0;
  animation: slideInUp 600ms ease-out 100ms backwards;
}

.dense-hero .cta-compact {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInUp 600ms ease-out 200ms backwards;
}

.dense-hero .cta-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  color: var(--primary-dark);
}

/* ========================================
   Cards & Content Sections
   ======================================== */

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.services-list .svc {
  background: #fff;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
}

.services-list .svc:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.services-list .svc strong {
  display: block;
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.why-us {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.why-card {
  background: linear-gradient(135deg, #fff 0%, #f7fbff 100%);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 300ms ease;
  border: 1px solid var(--border-light);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.why-card > div:first-child {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

/* ========================================
   Forms
   ======================================== */

form {
  margin: var(--space-lg) 0;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: all 200ms ease;
  background: #fff;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.1);
}

input:hover, textarea:hover, select:hover {
  border-color: var(--primary-light);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button, .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  text-align: center;
}

button, .btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 98, 254, 0.3);
}

button:hover, .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 98, 254, 0.4);
}

button:active, .btn:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn.secondary:hover {
  background: var(--primary);
  color: #fff;
}

/* ========================================
   Tables & Lists
   ======================================== */

ul, ol {
  list-style: none;
}

ul li, ol li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
}

th, td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

tr:hover {
  background: var(--bg-secondary);
}

/* ========================================
   Map Styling
   ======================================== */

#map {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: box-shadow 300ms ease;
}

#map:hover {
  box-shadow: var(--shadow-xl);
}

/* ========================================
   Alerts & Notifications
   ======================================== */

#contactResult {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
  opacity: 0;
  transform: translateY(-8px);
  transition: all 400ms ease;
}

#contactResult.contact-success,
#contactResult.contact-error {
  opacity: 1;
  transform: translateY(0);
}

.contact-success {
  background: var(--success-bg);
  border: 2px solid var(--success);
  color: var(--success);
}

.contact-error {
  background: var(--error-bg);
  border: 2px solid var(--error);
  color: var(--error);
}

/* ========================================
   Loading States
   ======================================== */

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(15, 98, 254, 0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0;
  margin-top: var(--space-2xl);
}

.site-footer a {
  color: var(--text-secondary);
  transition: color 200ms;
}

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

/* ========================================
   Animations
   ======================================== */

@keyframes slideInUp {
  from {
    /* opacity: 100; */
    /* transform: translateY(20px); */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.animate-in {
  animation: slideInUp 600ms ease-out;
}

.fade-in {
  animation: fadeIn 600ms ease-out;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Prevent horizontal overflow globally */
html {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

/* Prevent overflow on media elements */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* Large Desktop - 1440px+ */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
  
  .inner {
    max-width: 1400px;
  }
}

/* Desktop - 1024px to 1200px */
@media (max-width: 1200px) and (min-width: 1025px) {
  .inner {
    max-width: 1000px;
  }
  
  .innovation-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* Tablet Landscape - iPad Pro, Surface Pro (1024px) */
@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  
  .inner {
    padding: 0 var(--space-lg);
    max-width: 960px;
  }
  
  .container {
    padding: var(--space-lg);
  }
  
  .dense-hero .inner {
    gap: var(--space-xl);
  }
  
  .dense-hero h1 {
    font-size: 2.25rem;
  }
  
  .innovation-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .robotics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Portrait - iPad Air (820px-912px) */
@media (max-width: 912px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .site-header {
    padding: 12px 0;
    background: #fff;
  }
  
  .site-header .inner {
    padding: 0 16px;
  }
  
  .site-header nav {
    display: flex;
    gap: var(--space-md);
  }
  
  .site-header nav a {
    font-size: 0.8rem;
  }
  
  .dense-hero {
    padding: 1rem 0;
  }
  
  .dense-hero h1 {
    font-size: 2rem;
  }
  
  .dense-hero .hero-subtitle {
    font-size: 1.05rem;
  }
  
  .innovation-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Tablet Portrait & Mobile Landscape (768px) */
@media (max-width: 800px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  body {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .inner {
    padding: 0 var(--space-md);
  }
  
  .container {
    padding: var(--space-md);
  }
  
  /* Header Mobile */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
  }
  
  .site-header .inner {
    padding: 0 var(--space-sm);
  }
  
  .site-header nav {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
  }
  
  .site-header nav a {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }
  
  .site-header nav a.cta {
    padding: 0.4rem 0.8rem;
  }
  
  #navToggle {
    display: none;
  }
  
  /* Hero Section Mobile */
  .dense-hero {
    padding: 1rem 0;
  }
  
  .dense-hero .inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }
  
  .dense-hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  .dense-hero .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  /* Innovation Cards - 2 columns on tablet */
  .innovation-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .innovation-card {
    padding: 1rem;
  }
  
  .innovation-icon {
    font-size: 2rem;
  }
  
  .innovation-card-title {
    font-size: 1rem;
  }
  
  .innovation-card-desc {
    font-size: 0.85rem;
  }
  
  /* Services Grid */
  .services-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Why Us Grid */
  .why-us {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  /* Robotics Grid */
  .robotics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  #map {
    height: 300px;
  }
}

/* Mobile Portrait - Small Screens (480px) */
@media (max-width: 480px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }
  
  body {
    font-size: 14px;
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }
  
  .inner {
    padding: 0 12px;
  }
  
  .container {
    padding: 12px;
  }
  
  /* Header Ultra Compact */
  .site-header .inner {
    padding: 0 8px;
  }
  
  .site-header img {
    height: 42px;
  }
  
  .site-header nav {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
  }
  
  .site-header nav a {
    font-size: 0.65rem;
    padding: 0.35rem 0.5rem;
  }
  
  .site-header nav a.cta {
    padding: 0.35rem 0.6rem;
  }
  
  .logo h1 {
    font-size: 1.3rem;
  }
  
  /* Hero Section Mobile Portrait */
  .dense-hero {
    padding: 0.75rem 0;
  }
  
  .dense-hero h1 {
    font-size: 1.4rem;
    line-height: 1.3;
  }
  
  .dense-hero .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .cta-compact {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }
  
  /* All Innovation Cards - Single Column */
  .innovation-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }
  
  .innovation-card {
    padding: 0.875rem;
  }
  
  .innovation-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .innovation-card-title {
    font-size: 0.95rem;
  }
  
  .innovation-card-desc {
    font-size: 0.8rem;
  }
  
  /* Why Us - Single Column */
  .why-us {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }
  
  /* Robotics - Single Column */
  .robotics-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }
  
  /* Services - Already Single Column */
  .services-list {
    gap: 0.875rem;
  }
  
  /* Map Height */
  #map {
    height: 250px;
  }
  
  /* Buttons and CTAs */
  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Extra Small Mobile - iPhone SE, older devices (375px) */
@media (max-width: 375px) {
  body {
    font-size: 14px;
  }
  
  .site-header {
    background: #fff;
  }
  
  .site-header .inner {
    padding: 0 6px;
  }
  
  .site-header img {
    height: 38px;
  }
  
  .site-header nav {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
  }
  
  .site-header nav a {
    font-size: 0.6rem;
    padding: 0.3rem 0.4rem;
  }
  
  .site-header nav a.cta {
    padding: 0.3rem 0.5rem;
  }
  
  .dense-hero h1 {
    font-size: 1.3rem;
  }
  
  .dense-hero .hero-subtitle {
    font-size: 0.85rem;
  }
  
  .innovation-card {
    padding: 0.75rem;
  }
  
  .cta-compact {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* Tiny Mobile - Old devices (320px) */
@media (max-width: 320px) {
  body {
    font-size: 13px;
  }
  
  .site-header {
    background: #fff;
  }
  
  .site-header .inner {
    padding: 0 4px;
  }
  
  .site-header img {
    height: 34px;
  }
  
  .site-header nav {
    display: flex;
    gap: 0.2rem;
    flex-wrap: wrap;
  }
  
  .site-header nav a {
    font-size: 0.55rem;
    padding: 0.25rem 0.35rem;
  }
  
  .site-header nav a.cta {
    padding: 0.25rem 0.4rem;
  }
  
  .dense-hero h1 {
    font-size: 1.2rem;
  }
  
  .dense-hero .hero-subtitle {
    font-size: 0.8rem;
  }
  
  .innovation-card {
    padding: 0.625rem;
  }
}

/* ========================================
   Utilities
   ======================================== */

/* Hero Section Components */
.hero-content {
  text-align: center;
  margin-bottom: 0;
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-cta-wrapper {
  margin-top: 0.25rem;
}

.innovation-section {
  margin-top: 0.75rem;
}

.innovation-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

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

.innovation-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 1.25rem;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.innovation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.innovation-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.innovation-card-title {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.innovation-card-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

/* Robotics Section */
.robotics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.robotics-card {
  padding: 1.25rem;
  border-radius: 10px;
  border: 2px solid;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.robotics-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.robotics-card-icon {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.robotics-card-title {
  margin: 0.35rem 0;
  font-size: 1.1rem;
}

.robotics-card-desc {
  color: #475569;
  line-height: 1.5;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.robotics-card-list {
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.6;
  padding-left: 1rem;
  margin: 0.75rem 0 0 0;
}

/* Future Innovations */
.future-innovations-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.future-card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  border: 2px solid;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.future-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.future-card-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.future-card-icon {
  font-size: 2rem;
}

.future-card-title {
  margin: 0.5rem 0 0 0;
  font-size: 1rem;
}

.future-card-desc {
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0.5rem 0;
}

.future-card-badge {
  margin-top: 0.75rem;
  text-align: center;
}

.status-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Tech Stack Section */
.tech-stack {
  background: linear-gradient(90deg, #0f62fe 0%, #6f38c5 100%);
  color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 2rem;
  box-shadow: 0 6px 16px rgba(15, 98, 254, 0.2);
}

.tech-stack-title {
  color: #fff;
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tech-stack-category {
  font-size: 0.95rem;
}

.tech-stack-items {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 10px;
}

.cta-title {
  color: #0f62fe;
  margin: 0 0 0.75rem 0;
  font-size: 1.15rem;
}

.cta-description {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(90deg, #0f62fe 0%, #6f38c5 100%);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(15, 98, 254, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 98, 254, 0.4);
}

/* Timeline Section */
.timeline-section {
  background: linear-gradient(135deg, #0f62fe 0%, #6f38c5 100%);
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
  color: #fff;
  text-align: center;
  box-shadow: 0 6px 20px rgba(15, 98, 254, 0.2);
}

.timeline-title {
  color: #fff;
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
}

.timeline-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.timeline-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.timeline-period {
  font-size: 1.5rem;
  font-weight: 700;
}

.timeline-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.timeline-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.timeline-info {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* Section Headers */
.section-title {
  margin-top: 2.5rem;
  color: #0f62fe;
  font-size: 1.75rem;
  text-align: center;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments for new classes */
@media (max-width: 800px) {
  .innovation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .robotics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .future-innovations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .innovation-grid,
  .robotics-grid,
  .future-innovations-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-stack-grid {
    grid-template-columns: 1fr;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
