/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
  --color-bg: #050507;
  --color-surface: #0f0f12;
  --color-surface-glass: rgba(15, 15, 18, 0.65);
  --color-border: rgba(0, 255, 130, 0.15);
  --color-border-hover: rgba(0, 255, 130, 0.45);
  --color-text: #e8e8ec;
  --color-text-muted: #8a8f98;
  --color-accent: #00ff88;
  --color-accent-glow: rgba(0, 255, 136, 0.3);
  --color-silver: #c0c5ce;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ============================================
   UTILITIES & REUSABLE COMPONENTS
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 64px;
}

.section-header.center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(0, 255, 136, 0.05);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.text-accent {
  color: var(--color-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #00cc6a 100%);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.45);
}

.btn-full {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-icon {
  color: var(--color-accent);
  font-size: 1.8rem;
  line-height: 1;
}

.logo-accent {
  color: var(--color-accent);
}

.nav-list {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-silver);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
  box-shadow: 0 0 8px var(--color-accent);
}

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1100;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-text);
  position: absolute;
  left: 6px;
  transition: var(--transition);
}

.hamburger {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger::before {
  content: '';
  top: -8px;
  left: 0;
}

.hamburger::after {
  content: '';
  top: 8px;
  left: 0;
}

.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #111118 0%, #050507 100%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(5,5,7,0.9) 80%);
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 800px;
  padding-top: 80px;
}

.hero-tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  display: inline-block;
  border-left: 3px solid var(--color-accent);
  padding-left: 12px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 0 40px rgba(0, 255, 136, 0.15);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0% { opacity: 0; transform: translateY(-10px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: var(--color-bg);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.about-content strong {
  color: var(--color-text);
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(30%) contrast(110%);
  transition: filter 0.5s;
}

.about-image-wrapper:hover .about-image {
  filter: grayscale(0%) contrast(100%);
}

.image-glow {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(45deg, var(--color-accent), transparent, var(--color-accent));
  z-index: -1;
  opacity: 0.3;
  filter: blur(10px);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  text-shadow: 0 0 15px var(--color-accent-glow);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* ============================================
   PROGRAMS SECTION
   ============================================ */
.programs {
  background: linear-gradient(180deg, var(--color-bg) 0%, #08080c 100%);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.program-card {
  perspective: 1000px;
}

.card-glass {
  background: var(--color-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 28px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(0, 255, 136, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.program-card:hover .card-glass::before {
  opacity: 1;
}

.program-card:hover .card-glass {
  transform: translateY(-6px);
  border-color: var(--color-border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 136, 0.1);
}

.card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  margin-bottom: 24px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   LAB SECTION
   ============================================ */
.lab {
  background: var(--color-bg);
  position: relative;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.lab-card {
  background: var(--color-surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.lab-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--color-border-hover);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lab-image-box {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.lab-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.lab-card:hover .lab-image {
  transform: scale(1.08);
}

.lab-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--color-border);
}

.lab-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lab-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.lab-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: 16px;
}

.lab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.75rem;
  color: var(--color-silver);
  background: rgba(192, 197, 206, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(192, 197, 206, 0.2);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  background: linear-gradient(180deg, #08080c 0%, var(--color-bg) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--color-surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--color-border-hover);
  transform: translateX(5px);
}

.info-icon {
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 255, 136, 0.08);
  color: var(--color-accent);
  border: 1px solid var(--color-border);
}

.info-card h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  color: var(--color-silver);
}

.info-card a,
.info-card address {
  color: var(--color-text);
  font-style: normal;
  transition: color 0.3s;
}

.info-card a:hover {
  color: var(--color-accent);
}

.contact-form {
  background: var(--color-surface-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-silver);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

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

.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--color-accent);
  min-height: 1.4em;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #020203;
  border-top: 1px solid var(--color-border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--color-text-muted);
  margin-top: 16px;
  max-width: 300px;
  font-size: 0.95rem;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: var(--color-silver);
}

.footer-links a {
  display: block;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  font-size: 0.95rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lab-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: rgba(5, 5, 7, 0.97);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  
  .nav-list.open {
    transform: translateX(0);
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero-content {
    padding-top: 100px;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image-wrapper {
    order: -1;
  }
  
  .programs-grid,
  .lab-grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 70px 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .btn {
    width: 100%;
  }
}