/* ==========================================================================
   FLUTTER COSMIC DARK THEME VARIABLES & BASE STYLES
   ========================================================================== */
:root {
  --kAccentGoldBright: #E0CA0F;
  --kAccentGold: #A38C0A;
  --kSilver: #CFCFCE;
  --kNearBlack: #0B0B0B;
  --textDarkOnLight: #262626;
  --backgroundBase: #FAFAF9;
  
  --kCosmicBgTop: #0F1020;
  --kCosmicBgBottom: #0B0B14;
  --kCosmicCardBg: #1E1F35;
  --kCosmicIconBg: #2B2C48;

  --font-family-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-family-primary);
  background: linear-gradient(135deg, var(--kCosmicBgTop) 0%, #15162B 50%, var(--kCosmicBgBottom) 100%);
  color: #EDEDEC;
  overflow-x: hidden;
}

/* Starfield canvas overlay */
#starfieldCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   SUBTLE ANIMATED BACKGROUND EFFECTS (Cell Core Pulse & DNA Rotation)
   ========================================================================== */
.bio-animation-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pulsing-cell-core {
  position: absolute;
  top: 20%;
  right: 15%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 202, 15, 0.12) 0%, rgba(15, 16, 32, 0) 70%);
  animation: pulseCore 8s ease-in-out infinite alternate;
}

.slow-dna-helix {
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 40%;
  border: 1px dashed rgba(207, 207, 206, 0.15);
  animation: rotateDNA 25s linear infinite;
}

@keyframes pulseCore {
  0% { transform: scale(0.85); opacity: 0.3; }
  100% { transform: scale(1.25); opacity: 0.7; }
}

@keyframes rotateDNA {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ==========================================================================
   PAGE LAYOUT & CONTAINER STRUCTURE
   ========================================================================== */
.page-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header */
.site-header {
  padding: 40px 0 20px 0;
}

.header-inner {
  display: flex;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  border-radius: 4px;
}

.brand-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-silver {
  color: var(--kSilver);
}

.logo-gold {
  color: var(--kAccentGoldBright);
}

/* Hero Section */
.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  width: 100%;
  align-items: center;
}

/* Hero Left Content */
.hero-content {
  display: flex;
  flex-direction: column;
}

.main-headline {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(224, 202, 15, 0.2);
}

.sub-headline {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--kAccentGoldBright);
  margin-bottom: 40px;
}

.contact-card {
  background: var(--kCosmicCardBg);
  border: 1px solid rgba(207, 207, 206, 0.12);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.contact-item {
  margin-bottom: 18px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.item-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--kSilver);
  margin-bottom: 4px;
}

.item-value {
  font-size: 1.05rem;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

a.item-value:hover {
  color: var(--kAccentGoldBright);
}

/* Hero Right Media (16:9 Rotating Slider) */
.hero-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Enforces 16:9 Aspect Ratio */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(224, 202, 15, 0.15);
  border: 1px solid rgba(224, 202, 15, 0.2);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--kCosmicIconBg);
  border: 1px solid var(--kSilver);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--kAccentGoldBright);
  border-color: var(--kAccentGoldBright);
  transform: scale(1.2);
  box-shadow: 0 0 8px var(--kAccentGoldBright);
}

/* Footer */
.site-footer {
  padding: 30px 0;
  border-top: 1px solid rgba(207, 207, 206, 0.1);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--kSilver);
}

.footer-links a {
  color: var(--kSilver);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-separator {
  margin: 0 10px;
  opacity: 0.4;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .main-headline {
    font-size: 2.5rem;
  }

  .sub-headline {
    font-size: 1.8rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
