/* CSS Variables for Theme */
:root {
  /* Primary Colors - Monochromatic Blue Scheme */
  --primary-color: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-lighter: #60a5fa;
  --primary-dark: #1e40af;
  --primary-darker: #172554;
  
  /* Accent Colors */
  --accent-color: #06b6d4;
  --accent-light: #22d3ee;
  --accent-dark: #0891b2;
  
  /* Grayscale */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Background Colors */
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --bg-tertiary: var(--gray-100);
  --bg-dark: var(--gray-900);
  
  /* Text Colors */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-700);
  --text-muted: var(--gray-500);
  --text-light: var(--gray-400);
  --text-white: var(--white);
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Borders & Shadows */
  --border-radius: 1rem;
  --border-radius-sm: 0.5rem;
  --border-radius-lg: 1.5rem;
  
  /* Neumorphic Shadows */
  --shadow-neumorphic: 
    12px 12px 24px rgba(30, 58, 138, 0.15),
    -12px -12px 24px rgba(255, 255, 255, 0.8);
  --shadow-neumorphic-inset: 
    inset 8px 8px 16px rgba(30, 58, 138, 0.1),
    inset -8px -8px 16px rgba(255, 255, 255, 0.9);
  --shadow-neumorphic-hover: 
    16px 16px 32px rgba(30, 58, 138, 0.2),
    -16px -16px 32px rgba(255, 255, 255, 0.9);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(6, 182, 212, 0.6) 100%);
  
  /* Animation */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.title {
  font-family: var(--font-heading) !important;
}

.subtitle {
  font-family: var(--font-body) !important;
  font-weight: 500;
}

/* Section Titles */
.section-title {
  position: relative;
  margin-bottom: var(--spacing-xxl);
  color: var(--text-primary);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Neumorphic Components */
.neumorphic-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-neumorphic);
  padding: var(--spacing-lg);
  border: none;
  transition: all var(--transition-normal);
}

.neumorphic-card:hover {
  box-shadow: var(--shadow-neumorphic-hover);
  transform: translateY(-5px);
}

.neumorphic-button {
  background: var(--bg-primary);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-neumorphic);
  padding: var(--spacing-md) var(--spacing-xl);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-color);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.neumorphic-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left var(--transition-normal);
  z-index: -1;
}

.neumorphic-button:hover {
  color: var(--white);
  box-shadow: var(--shadow-neumorphic-inset);
  transform: translateY(2px);
}

.neumorphic-button:hover::before {
  left: 0;
}

.neumorphic-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: var(--shadow-neumorphic);
}

/* Form Elements */
.neumorphic-input,
.neumorphic-textarea,
.neumorphic-select select {
  background: var(--bg-primary);
  border: none;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-neumorphic-inset);
  padding: var(--spacing-md);
  font-family: var(--font-body);
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.neumorphic-input:focus,
.neumorphic-textarea:focus,
.neumorphic-select select:focus {
  outline: none;
  box-shadow: 
    var(--shadow-neumorphic-inset),
    0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Global Button Styles */
.btn,
button,
.button,
input[type="submit"] {
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius-sm);
  color: var(--white);
  padding: var(--spacing-md) var(--spacing-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn:hover,
button:hover,
.button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
  color: var(--white);
}

.btn:active,
button:active,
.button:active,
input[type="submit"]:active {
  transform: translateY(0);
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.3);
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.1);
  transition: all var(--transition-normal);
  z-index: 1000;
}

.navbar-brand strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-item {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.navbar-item:hover {
  color: var(--primary-color);
}

.navbar-item:hover::after {
  width: 80%;
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: var(--spacing-xxl) 0;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: slideInDown 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: var(--spacing-lg);
  color: var(--white) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: slideInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--white) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: slideInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
}

.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--spacing-lg) 0;
  z-index: 2;
}

.stat-widget {
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Sections */
.section {
  padding: var(--spacing-xxl) 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--bg-secondary);
}

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

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-xl);
}



.timeline-marker {
  position: absolute;
  left: -26px;
  top: 1rem;
}

.timeline-content {
  margin-left: var(--spacing-lg);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

/* Innovation Gallery */
.innovation-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-md);
}

.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--spacing-sm);
}

/* Research Content */
.research-content {
  text-align: center;
}

.research-content img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-lg);
}

/* Methodology Steps */
.methodology-step {
  text-align: center;
  height: 100%;
  position: relative;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-md);
}

/* Card Components */
.card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-normal);
  background: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-neumorphic-hover);
}

.card-image {
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Case Study Stats */
.case-study-stats {
  height: 100%;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--gray-200);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-item .stat-number {
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Resources Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.resource-item {
  text-align: center;
  padding: var(--spacing-xl);
}

/* Awards */
.award-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-xl);
}

.award-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-lg);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing-xl);
}

.field {
  margin-bottom: var(--spacing-lg);
}

.label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.social-links a {
  color: var(--text-light);
  text-decoration: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--gray-600);
  transition: all var(--transition-fast);
  font-weight: 500;
}

.social-links a:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
  background: rgba(34, 211, 238, 0.1);
  transform: translateY(-2px);
}

.footer-divider {
  border: none;
  height: 1px;
  background: var(--gray-600);
  margin: var(--spacing-lg) 0;
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--white);
}

.success-content {
  text-align: center;
  padding: var(--spacing-xxl);
}

/* Privacy & Terms Pages */
.content-page {
  padding-top: 100px;
  min-height: 100vh;
}

.content-page .container {
  max-width: 800px;
}

/* Read More Links */
.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-top: var(--spacing-md);
  transition: all var(--transition-fast);
}

.read-more:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.read-more::after {
  content: '→';
  margin-left: var(--spacing-xs);
  transition: transform var(--transition-fast);
}

.read-more:hover::after {
  transform: translateX(3px);
}

/* Animations */
@keyframes slideInDown {
  from {
    transform: translate3d(0, -100%, 0);
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translate3d(0, 100%, 0);
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

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

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

/* Floating Animation for Cards */
.neumorphic-card {
  animation: float 6s ease-in-out infinite;
}

.neumorphic-card:nth-child(2n) {
  animation-delay: 1s;
}

.neumorphic-card:nth-child(3n) {
  animation-delay: 2s;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-stats {
    position: relative;
    margin-top: var(--spacing-xl);
  }
  
  .hero {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .timeline {
    padding-left: 1rem;
  }
  
  .timeline::before {
    left: 8px;
  }
  
  .timeline-marker {
    left: -1rem;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .innovation-gallery {
    margin-top: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .neumorphic-card {
    padding: var(--spacing-md);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-buttons .button {
    width: 100%;
    max-width: 300px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero {
    background-attachment: scroll;
  }
}

/* Focus States */
.button:focus,
.neumorphic-button:focus,
.navbar-item:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .hero-stats,
  .footer {
    display: none;
  }
  
  .hero {
    background: none;
    color: black;
  }
  
  .section {
    break-inside: avoid;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --shadow-neumorphic: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-neumorphic-hover: 0 6px 12px rgba(0, 0, 0, 0.4);
  }
}