/* CSS Variables - Pastel Neo-Brutalist Corporate Design System */
:root {
  /* Primary Colors - Pastel Palette */
  --primary-color: #8B7CF6;
  --primary-light: #C4B5FD;
  --primary-dark: #6D28D9;
  --secondary-color: #06D6A0;
  --secondary-light: #A7F3D0;
  --secondary-dark: #047857;
  
  /* Accent Colors */
  --accent-pink: #F472B6;
  --accent-yellow: #FDE047;
  --accent-orange: #FB923C;
  --accent-blue: #60A5FA;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #F8FAFC;
  --gray: #64748B;
  --dark-gray: #334155;
  --black: #0F172A;
  
  /* Background Colors */
  --bg-primary: #FEFEFE;
  --bg-secondary: #F1F5F9;
  --bg-accent: #EDE9FE;
  
  /* Text Colors */
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-orange) 100%);
  --gradient-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3));
  
  /* Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Rubik', sans-serif;
  
  /* Shadows - Neo-Brutalist */
  --shadow-small: 4px 4px 0px var(--primary-color);
  --shadow-medium: 6px 6px 0px var(--primary-color);
  --shadow-large: 8px 8px 0px var(--primary-color);
  --shadow-hover: 2px 2px 0px var(--primary-color);
  
  /* Borders */
  --border-width: 3px;
  --border-color: var(--black);
  --border-radius: 8px;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.25rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.125rem); }

p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-medium);
  transition: var(--transition-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-container:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

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

/* Buttons - Global Styles */
.btn,
button,
input[type='submit'],
.button {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-neo,
.button {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-medium);
}

.btn-neo:hover,
.button:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-large);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--primary-color);
}

.btn-light:hover {
  background: var(--light-gray);
  color: var(--primary-dark);
}

/* Read More Links */
.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 2px;
}

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

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

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

/* Cards - Global Styles */
.card,
.item,
.testimonial,
.team-member,
.product-card {
  background: var(--white);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  padding: var(--space-md);
  transition: var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover,
.item:hover,
.testimonial:hover,
.team-member:hover,
.product-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-large);
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.card-image {
  width: 100%;
  margin-bottom: var(--space-sm);
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image .image-container {
  width: 100%;
  height: 200px;
  margin: 0 auto;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section {
  padding: var(--space-xl) 0;
}

.section-title {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.title-underline {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 0 auto var(--space-lg);
  border-radius: 2px;
}

/* Header & Navigation */
.header-section {
  position: relative;
  z-index: 1000;
}

.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-small);
  padding: var(--space-sm) 0;
}

.navbar-brand .brand-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.brand-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-item {
  color: var(--text-primary);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
}

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

.navbar-burger {
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::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;
  width: 100%;
}

.hero-title {
  color: var(--text-white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: var(--space-sm);
}

.hero-subtitle {
  color: var(--text-white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: var(--space-md);
}

.hero-description {
  color: var(--text-white);
  font-size: 1.1rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Mission Section */
.mission-section {
  background: var(--bg-secondary);
}

.mission-content {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Portfolio Section */
.portfolio-section {
  background: var(--bg-primary);
}

.portfolio-card {
  background: var(--white);
  transition: var(--transition-medium);
  height: 100%;
}

.portfolio-card:hover {
  background: var(--bg-accent);
}

.portfolio-card .card-image {
  height: 250px;
  margin-bottom: var(--space-sm);
}

.portfolio-card .card-image .image-container {
  height: 100%;
}

/* Timeline Styles for Projects */
.projects-section {
  background: var(--bg-accent);
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-lg);
  width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: 55%;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
  margin-right: 0;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border: var(--border-width) solid var(--border-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  background: var(--white);
  padding: var(--space-md);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  transition: var(--transition-medium);
}

.timeline-content:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
}

/* Resources Section */
.resources-section {
  background: var(--bg-secondary);
}

.resource-card {
  text-align: center;
  height: 100%;
  border: var(--border-width) solid var(--accent-blue);
  box-shadow: 4px 4px 0px var(--accent-blue);
}

.resource-card:hover {
  box-shadow: 8px 8px 0px var(--accent-blue);
  border-color: var(--accent-blue);
}

/* Sustainability Section */
.sustainability-section {
  background: var(--bg-primary);
}

.sustainability-content {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Insights Section */
.insights-section {
  background: var(--bg-accent);
}

.insights-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.slider-container {
  overflow: hidden;
  border-radius: var(--border-radius);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-large);
  background: var(--white);
}

.slide {
  display: none;
  padding: var(--space-lg);
  animation: slideIn 0.5s ease-in-out;
}

.slide.active {
  display: block;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.slider-btn {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: var(--border-width) solid var(--border-color);
  background: var(--light-gray);
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-btn.active,
.slider-btn:hover {
  background: var(--primary-color);
  transform: scale(1.2);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Media Section */
.media-section {
  background: var(--bg-secondary);
}

.media-gallery .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-medium);
  transition: var(--transition-medium);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-gallery .gallery-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-large);
}

.media-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.media-gallery .gallery-item:hover img {
  transform: scale(1.1);
}

/* Research Section */
.research-section {
  background: var(--bg-primary);
}

.research-content {
  font-size: 1.1rem;
  line-height: 1.7;
}

.research-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
  background: var(--white);
  border: var(--border-width) solid var(--accent-yellow);
  border-radius: var(--border-radius);
  box-shadow: 4px 4px 0px var(--accent-yellow);
  transition: var(--transition-medium);
}

.stat-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px var(--accent-yellow);
}

.stat-item .title {
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
}

/* Careers Section */
.careers-section {
  background: var(--bg-accent);
}

.careers-content {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Contact Section */
.contact-section {
  background: var(--bg-secondary);
}

.contact-form-container {
  background: var(--white);
  padding: var(--space-lg);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-large);
}

.contact-form .field {
  margin-bottom: var(--space-md);
}

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

.contact-form .input,
.contact-form .textarea {
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-sm);
  font-family: var(--font-body);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-small);
}

.contact-form .input:focus,
.contact-form .textarea:focus {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-medium);
  outline: none;
}

.contact-info {
  padding: var(--space-md);
}

.info-item {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: var(--white);
  border: var(--border-width) solid var(--accent-pink);
  border-radius: var(--border-radius);
  box-shadow: 4px 4px 0px var(--accent-pink);
}

/* Footer */
.footer-section {
  background: var(--dark-gray);
  color: var(--text-white);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-brand {
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
}

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

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

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(3px);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.social-links a {
  color: var(--text-light);
  padding: var(--space-xs);
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  text-decoration: none;
  font-weight: 500;
}

.social-links a:hover {
  color: var(--primary-light);
  background: rgba(139, 124, 246, 0.1);
  transform: translateX(5px);
}

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

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.modal.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: var(--white);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-large);
  max-width: 500px;
  width: 90%;
}

.modal-card-head,
.modal-card-foot {
  padding: var(--space-md);
  border-bottom: var(--border-width) solid var(--border-color);
}

.modal-card-foot {
  border-bottom: none;
  border-top: var(--border-width) solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

.modal-card-body {
  padding: var(--space-lg);
}

.modal-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

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

.success-content {
  background: var(--white);
  padding: var(--space-xl);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-large);
  max-width: 500px;
}

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

.legal-content {
  background: var(--white);
  padding: var(--space-xl);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  margin-bottom: var(--space-lg);
}

.legal-content h2 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-md);
}

.legal-content h3 {
  color: var(--text-primary);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

/* Parallax Effects */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.animate-bounce-in {
  animation: bounceIn 0.8s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

/* Responsive Design */
@media (max-width: 1024px) {
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 30px;
    margin-right: 0;
    text-align: left;
  }
  
  .timeline-container::before {
    left: 15px;
  }
  
  .timeline-marker {
    left: 15px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
  }
  
  .parallax {
    background-attachment: scroll;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-buttons .button {
    width: 100%;
    justify-content: center;
  }
  
  .research-stats {
    grid-template-columns: 1fr;
  }
  
  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .modal-card {
    width: 95%;
    margin: var(--space-sm);
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .section {
    padding: var(--space-lg) 0;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
  }
  
  .btn,
  .button {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
  }
  
  .card,
  .item,
  .testimonial,
  .team-member,
  .product-card {
    padding: var(--space-md);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* Performance Optimizations */
.image-container img,
.gallery-item img {
  will-change: transform;
}

.btn,
.button,
.card,
.timeline-content {
  will-change: transform, box-shadow;
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000FF;
    --secondary-color: #008000;
    --text-primary: #000000;
    --text-secondary: #000000;
    --border-color: #000000;
  }
  
  .btn,
  .button {
    border-width: 2px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer-section,
  .contact-section,
  .hero-buttons,
  .btn,
  .button {
    display: none !important;
  }
  
  .hero-section {
    background: none !important;
    color: black !important;
  }
  
  * {
    box-shadow: none !important;
  }
}