/* ===== ROOT VARIABLES ===== */
:root {
  /* Primary Colors - Monochromatic Scheme */
  --color-primary: #1a1a1a;
  --color-primary-light: #2d2d2d;
  --color-primary-lighter: #404040;
  --color-secondary: #f8f9fa;
  --color-secondary-dark: #e9ecef;
  --color-secondary-darker: #dee2e6;
  
  /* Accent Colors */
  --color-accent: #007bff;
  --color-accent-light: #66b3ff;
  --color-accent-dark: #0056b3;
  --color-accent-darker: #003d82;
  
  /* Text Colors */
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #6c757d;
  --color-text-muted: #adb5bd;
  --color-text-white: #ffffff;
  
  /* Background Colors */
  --color-bg-white: #ffffff;
  --color-bg-light: #f8f9fa;
  --color-bg-dark: #1a1a1a;
  --color-bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  --color-bg-overlay: rgba(0, 0, 0, 0.5);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  --gradient-accent: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
  
  /* Shadows and Effects */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-volumetric: 0 8px 32px rgba(0, 0, 0, 0.12);
  
  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-backdrop: blur(10px);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;
  
  /* Typography */
  --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Archivo Black', 'Roboto', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-offcanvas: 1050;
  --z-tooltip: 1060;
}

/* ===== RESET AND BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

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: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
  font-weight: 400;
  color: var(--color-text-secondary);
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* ===== GLOBAL BUTTON STYLES ===== */
.btn, button, input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transform: translateY(0);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-normal);
}

.btn:hover::before {
  left: 100%;
}

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

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

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-text-white);
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-text-white);
}

.btn-secondary {
  background: var(--color-bg-white);
  color: var(--color-text-primary);
  border: 2px solid var(--color-secondary-darker);
}

.btn-secondary:hover {
  background: var(--color-secondary);
  border-color: var(--color-accent);
  color: var(--color-text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-white);
  border: 2px solid var(--color-text-white);
}

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.py-1 { padding: var(--spacing-xs) 0; }
.py-2 { padding: var(--spacing-sm) 0; }
.py-3 { padding: var(--spacing-md) 0; }
.py-4 { padding: var(--spacing-lg) 0; }
.py-5 { padding: var(--spacing-xl) 0; }

.px-1 { padding: 0 var(--spacing-xs); }
.px-2 { padding: 0 var(--spacing-sm); }
.px-3 { padding: 0 var(--spacing-md); }
.px-4 { padding: 0 var(--spacing-lg); }
.px-5 { padding: 0 var(--spacing-xl); }

/* ===== CONTAINER STYLES ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-sm);
}

/* ===== HEADER/NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--spacing-sm) 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: var(--color-bg-white);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-xs) 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.navbar-brand:hover {
  color: var(--color-accent);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
}

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

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

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--color-secondary-dark);
}

/* ===== HERO SECTION ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-text-white);
  padding: var(--spacing-md);
  max-width: 900px;
}

.hero-content h1 {
  color: var(--color-text-white);
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: heroTitleSlide 1s ease-out;
}

.hero-content p {
  color: var(--color-text-white);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: heroTextSlide 1s ease-out 0.3s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  animation: heroButtonsSlide 1s ease-out 0.6s both;
}

@keyframes heroTitleSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* ===== SECTION STYLES ===== */
section {
  padding: var(--spacing-xxl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

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

/* ===== ABOUT SECTION ===== */
#about {
  background: var(--color-bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-text {
  padding: var(--spacing-md);
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-volumetric);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform var(--transition-slow);
}

.about-image:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-weight: 600;
  color: var(--color-text-primary);
}

/* ===== SERVICES/RESEARCH SECTION ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.service-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-volumetric);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-image {
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.service-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.service-title {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

.service-description {
  flex-grow: 1;
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.read-more-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
}

.read-more-link::after {
  content: '→';
  transition: transform var(--transition-normal);
}

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

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

/* ===== TIMELINE STYLES ===== */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

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

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

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-md);
  position: relative;
  width: calc(50% - 30px);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: calc(50% + 30px);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: calc(50% + 30px);
}

/* ===== GALLERY SECTION ===== */
#gallery {
  background: var(--color-bg-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-volumetric);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: var(--color-text-white);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 2;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ===== NEWS SECTION ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.news-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.news-image {
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.news-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xs);
}

.news-title {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

.news-excerpt {
  flex-grow: 1;
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

/* ===== ACCORDION STYLES ===== */
.accordion-item {
  border: none;
  margin-bottom: var(--spacing-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.accordion-header {
  background: var(--color-bg-white);
  cursor: pointer;
  transition: background var(--transition-normal);
  border: none;
  padding: var(--spacing-md);
}

.accordion-header:hover {
  background: var(--color-secondary);
}

.accordion-header h3 {
  display: flex;
  justify-content: between;
  align-items: center;
  margin: 0;
}

.accordion-icon {
  transition: transform var(--transition-normal);
  font-weight: 300;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  background: var(--color-bg-white);
  border-top: 1px solid var(--color-secondary-dark);
  padding: var(--spacing-md);
  display: none;
}

.accordion-item.active .accordion-content {
  display: block;
  animation: accordionSlide 0.3s ease-out;
}

@keyframes accordionSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== CONTACT SECTION ===== */
#contact {
  background: var(--color-bg-light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.contact-form {
  background: var(--color-bg-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-volumetric);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-secondary-dark);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all var(--transition-normal);
  background: var(--color-bg-white);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-control::placeholder {
  color: var(--color-text-muted);
}

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

.contact-info {
  background: var(--color-bg-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: background var(--transition-normal);
}

.contact-item:hover {
  background: var(--color-secondary);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-top: 0.25rem;
}

.contact-details h4 {
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-primary);
}

.contact-details p {
  color: var(--color-text-secondary);
  margin: 0;
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--spacing-md);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* ===== FOOTER ===== */
footer {
  background: var(--gradient-primary);
  color: var(--color-text-white);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
  color: var(--color-text-white);
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-normal);
  display: inline-block;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent-light);
  transition: width var(--transition-normal);
}

.footer-links a:hover {
  color: var(--color-text-white);
}

.footer-links a:hover::after {
  width: 100%;
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 50%;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
  background: var(--color-accent);
  color: var(--color-text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== CARDS AND COMPONENTS ===== */
.card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  text-align: center;
  width: 100%;
}

.card-title {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

.card-text {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Team Members, Products, etc. */
.item, .testimonial, .team-member, .product-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.item:hover, .testimonial:hover, .team-member:hover, .product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-volumetric);
}

.item img, .testimonial img, .team-member img, .product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin: 0 auto;
}

/* ===== PROGRESS BARS ===== */
.progress-container {
  margin: var(--spacing-md) 0;
}

.progress-label {
  display: flex;
  justify-content: between;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.progress {
  width: 100%;
  height: 8px;
  background: var(--color-secondary-dark);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 4px;
  transition: width 2s ease-in-out;
  width: 0;
}

/* ===== SCROLL-DEPENDENT ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== SUCCESS PAGE STYLES ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light);
  padding: var(--spacing-md);
}

.success-content {
  text-align: center;
  background: var(--color-bg-white);
  padding: var(--spacing-xxl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-volumetric);
  max-width: 600px;
}

.success-icon {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: var(--spacing-md);
}

/* ===== PRIVACY & TERMS PAGES ===== */
.legal-page {
  padding-top: 100px;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xl);
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.legal-content h1 {
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-primary);
}

.legal-content h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  color: var(--color-text-primary);
}

.legal-content p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.legal-content ul, .legal-content ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-md);
}

.legal-content li {
  margin-bottom: var(--spacing-xs);
  line-height: 1.6;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  /* Navigation */
  .navbar-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu.active {
    display: flex;
  }
  
  /* Hero */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  /* About */
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .about-image {
    transform: none;
  }
  
  /* Timeline */
  .timeline-container::before {
    left: 20px;
  }
  
  .timeline-marker {
    left: 20px;
    transform: translateX(-50%);
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
    margin-right: 0 !important;
  }
  
  /* Contact */
  .contact-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-sm);
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  /* Spacing */
  section {
    padding: var(--spacing-xl) 0;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  /* Cards */
  .service-card, .news-card {
    margin-bottom: var(--spacing-md);
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  /* Contact */
  .contact-form, .contact-info {
    padding: var(--spacing-lg);
  }
  
  /* Buttons */
  .btn {
    width: 100%;
    margin-bottom: var(--spacing-xs);
  }
  
  .hero-buttons .btn {
    width: auto;
    min-width: 200px;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
* {
  will-change: auto;
}

.card:hover,
.service-card:hover,
.news-card:hover,
.gallery-item:hover,
.btn:hover {
  will-change: transform;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .hero-buttons,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    color: #000 !important;
    background: #fff !important;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg-white: #1a1a1a;
    --color-bg-light: #2d2d2d;
    --color-text-primary: #ffffff;
    --color-text-secondary: #b0b0b0;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.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;
}

/* Focus styles for keyboard navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (forced-colors: active) {
  .btn {
    border: 1px solid ButtonText;
  }
  
  .card {
    border: 1px solid CanvasText;
  }
}