/* ===== CSS VARIABLES ===== */
:root {
  /* Futuristic Monochromatic Color Scheme */
  --primary-color: #00d4ff;
  --primary-dark: #0099cc;
  --primary-light: #33ddff;
  --secondary-color: #0a0a0a;
  --secondary-light: #1a1a1a;
  --accent-color: #66e6ff;
  --accent-dark: #4dd9ff;
  
  /* Neutral Colors */
  --white: #ffffff;
  --black: #000000;
  --gray-light: #f5f5f5;
  --gray-medium: #cccccc;
  --gray-dark: #666666;
  --text-dark: #2c2c2c;
  --text-light: #666666;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  --gradient-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  --gradient-hero: linear-gradient(135deg, rgba(0,212,255,0.1) 0%, rgba(10,10,10,0.8) 100%);
  
  /* Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Rubik', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;
  
  /* Shadows */
  --shadow-light: 0 2px 10px rgba(0,212,255,0.1);
  --shadow-medium: 0 8px 30px rgba(0,212,255,0.15);
  --shadow-heavy: 0 15px 50px rgba(0,212,255,0.2);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

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

.title.is-1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.title.is-2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.title.is-4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

.subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  opacity: 0.9;
}

/* ===== GLOBAL BUTTON STYLES ===== */
.btn,
.button,
input[type='submit'],
button {
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-medium);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.01em;
}

.btn::before,
.button::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-medium);
}

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

.btn-modern,
.button.btn-modern {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
}

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

.button.is-primary:hover,
.btn.is-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.button.is-outlined {
  background: transparent;
  border: 2px solid currentColor;
}

.button.is-outlined.is-white {
  color: var(--white);
  border-color: var(--white);
}

.button.is-outlined:hover {
  background: currentColor;
  color: var(--white);
  transform: translateY(-2px);
}

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

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

.columns {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.column {
  padding: 0 0.75rem;
  flex: 1;
}

.column.is-half {
  width: 50%;
  flex: none;
}

.column.is-one-third {
  width: 33.333%;
  flex: none;
}

.column.is-two-thirds {
  width: 66.667%;
  flex: none;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,212,255,0.1);
  transition: all var(--transition-medium);
}

.navbar {
  padding: var(--spacing-sm) 0;
}

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

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all var(--transition-medium);
  transform: translateX(-50%);
}

.nav-link:hover::before {
  width: 80%;
}

.nav-link:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  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-xl) 0;
}

.hero-content {
  animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content .title {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.hero-content .subtitle {
  color: var(--white);
  margin-bottom: var(--spacing-lg);
  font-size: 1.2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
  animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.stat-widget {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-medium);
}

.stat-widget:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  display: block;
  margin-bottom: var(--spacing-xs);
}

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

/* ===== MISSION SECTION ===== */
.mission-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-medium);
}

.feature-item:hover {
  transform: translateX(10px);
  background: rgba(0,212,255,0.1);
}

.feature-icon {
  font-size: 1.5rem;
}

/* ===== FEATURES SECTION ===== */
.has-background-light {
  background-color: var(--gray-light);
}

.feature-card {
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

/* ===== INNOVATION SECTION ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

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

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

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

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

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

.timeline-content {
  background: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  position: relative;
}

.timeline-content:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-medium);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -20px;
  border-left-color: var(--white);
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -20px;
  border-right-color: var(--white);
}

/* ===== RESEARCH SECTION ===== */
.research-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-sm);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== EXTERNAL RESOURCES SECTION ===== */
.resource-card {
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.resource-card .card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.external-links {
  margin-top: var(--spacing-md);
}

/* ===== GALLERY SECTION ===== */
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-medium);
  margin-bottom: var(--spacing-md);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover {
  transform: scale(1.02);
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-md);
  opacity: 0;
  transition: all var(--transition-medium);
}

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

/* ===== CONTACT SECTION ===== */
.contact-form-container {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
}

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

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

.input,
.textarea,
.select select {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--gray-medium);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  transition: all var(--transition-fast);
  background: var(--white);
}

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

.contact-info {
  padding: var(--spacing-lg);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--gray-light);
  border-radius: var(--radius-sm);
}

.contact-detail .icon {
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

/* ===== FOOTER ===== */
.footer {
  padding: var(--spacing-xl) 0 var(--spacing-md);
  background: var(--secondary-color);
}

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

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

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

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

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

.social-links a {
  color: var(--gray-medium);
  text-decoration: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255,255,255,0.1);
}

.social-links a:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.footer-divider {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: var(--spacing-lg) 0;
}

/* ===== IMAGE CONTAINERS ===== */
.image-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-medium);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-container:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-heavy);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .image-container {
  height: 250px;
  margin: 0 auto;
}

/* ===== CARDS ===== */
.card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: all var(--transition-medium);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

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

/* ===== ANIMATIONS ===== */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ===== UTILITY CLASSES ===== */
.has-text-centered {
  text-align: center;
}

.has-text-white {
  color: var(--white);
}

.has-text-dark {
  color: var(--text-dark);
}

.has-text-light {
  color: var(--text-light);
}

.has-text-primary {
  color: var(--primary-color);
}

.mb-6 {
  margin-bottom: var(--spacing-xl);
}

.mb-4 {
  margin-bottom: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-md);
}

.is-fullwidth {
  width: 100%;
}

.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

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

.success-content {
  text-align: center;
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-heavy);
  max-width: 500px;
  width: 100%;
}

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

.content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

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

.content-container p,
.content-container li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

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

/* ===== READ MORE LINKS ===== */
.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
  position: relative;
  display: inline-block;
}

.read-more::after {
  content: ' →';
  transition: all var(--transition-fast);
}

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

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    text-align: left;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-marker {
    left: 30px;
  }
  
  .timeline-content::before {
    left: -20px !important;
    right: auto !important;
    border-right-color: var(--white) !important;
    border-left-color: transparent !important;
  }
}

@media (max-width: 768px) {
  .columns {
    flex-direction: column;
  }
  
  .column.is-half,
  .column.is-one-third,
  .column.is-two-thirds {
    width: 100%;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: var(--spacing-lg);
  }
  
  .mission-features {
    gap: var(--spacing-xs);
  }
  
  .feature-item {
    padding: var(--spacing-sm);
  }
  
  .contact-form-container,
  .contact-info {
    padding: var(--spacing-md);
  }
  
  .research-stats {
    grid-template-columns: 1fr;
  }
  
  .social-links {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .parallax-bg {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-xs);
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
  
  .title.is-1 {
    font-size: 2rem;
  }
  
  .title.is-2 {
    font-size: 1.75rem;
  }
  
  .btn-modern,
  .button.btn-modern {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .navbar {
    padding: var(--spacing-xs) 0;
  }
  
  .hero {
    min-height: 80vh;
  }
  
  .stat-widget {
    padding: var(--spacing-sm);
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .timeline-content {
    padding: var(--spacing-sm);
  }
  
  .gallery-item {
    height: 200px;
  }
  
  .image-container {
    height: 250px;
  }
}

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

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  :root {
    --shadow-light: 0 2px 10px rgba(0,0,0,0.3);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.4);
    --shadow-heavy: 0 15px 50px rgba(0,0,0,0.5);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .footer,
  .btn,
  .button {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  * {
    color: black !important;
    background: white !important;
  }
}