/*CSS*/
/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Make all images scale nicely on all screens */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== GLOBAL ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background-color: #ffffff;
  color: #111827;
  line-height: 1.6;
}

/* page width wrapper */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TOP NAVBAR ===== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  height: 90px;
  width: auto;
  margin-top: 50px;
  margin-left: -50px;
}

.brand-name {
  font-size: 1.70rem;
  font-weight: 700;
  color: #0b47a1;
  margin-left: -30px;
  margin-top: -3px; /* fixed from margin_top */
}

.brand-name .brand-rest {
  font-family: "Segoe UI", -apple-system, system-ui, sans-serif;
  font-size: 1.1em;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: #111827;
  font-weight: 500;
}

.nav-links a:hover {
  color: #0b47a1;
}

/* ========================================================= */
/* ===================== HERO SECTION ======================= */
/* ========================================================= */

.hero {
  position: relative;
  background-color: #021B3D;        /* dark banner */
  color: #ffffff;
  padding: 50px 0;                  /* reduced padding for elegance */
  min-height: 50vh;                 /* shorter, more balanced */
  overflow: hidden;                 /* ensures clean right image panel */
  scroll-margin-top: 150px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('assets/hero-brain-chip.png') center center / cover no-repeat;
  z-index: 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
  padding-left: 4%;
}

.hero-text {
  flex: 1.1;
  text-align: left;
  max-width: 520px;
  padding-left: 1%;
  margin-top: 10px;
}

.hero-text h1 {
  font-size: clamp(1.6rem, 1.8vw + 1rem, 2.3rem);
  font-weight: 450;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-author {
  margin-top: 22px;
  font-size: 0.95rem;
  opacity: 0.85;
}

.hero-image {
  flex: 0.9;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================================= */
/* =================== CONTENT SECTIONS ===================== */
/* ========================================================= */

main {
  padding-bottom: 60px;
}

.content-section {
  padding: 40px 32px;
  margin: 40px 32px;
  background-color: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.content-section.alt {
  background-color: #f9fbff;
}

#company.content-section {
  background-color: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

#company .split {
  align-items: center;
}

#company .image-col img {
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
}

#company .vega-star-mark {
  position: absolute;
  top: 18px;
  right: 24px;
  opacity: 0.18;
  width: 80px;
  pointer-events: none;
}

.content-section h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b47a1;
}

.content-section p {
  margin-bottom: 14px;
  font-size: 0.97rem;
}

.split {
  display: flex;
  align-items: center;
  gap: 40px;
}

.split.reverse {
  flex-direction: row-reverse;
}

.text-col,
.image-col {
  flex: 1;
}

.image-col img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.narrow {
  max-width: 100%;
}

.contact-line {
  margin-bottom: 8px;
}

.contact-line a {
  color: #0b47a1;
  text-decoration: none;
}

.contact-line a:hover {
  text-decoration: underline;
}

/* ========================================================= */
/* ============ TECHNOLOGY SECTION ========================== */
/* ========================================================= */

.tech-top {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.vucl-col {
  flex: 0.9;
  display: flex;
  justify-content: center;
}

/* container for all pillars */
.pillars-wide {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* each row of pillars */
.pillars-row {
  display: flex;
  flex-wrap: wrap;          /* allow wrapping instead of forcing one line */
  gap: 28px;
  align-items: stretch;
}

/* individual pillar card */
.pillar-box {
  flex: 1 1 260px;          /* grow, shrink, base width ~260px */
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  /* removed fixed min-height + transition so height can grow naturally */
}

.pillar-box h3 {
  color: #0b47a1;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pillar-box p {
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.45;
}

/* hidden details area */
.pillar-more {
  display: none;
  margin-top: 6px;
}

/* when JS adds .expanded, show the extra text */
.pillar-box.expanded .pillar-more {
  display: block;
}

.pillar-toggle {
  margin-top: 10px;
  padding: 4px 0;
  border: none;
  background: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: #0b47a1;
  cursor: pointer;
}

.pillar-toggle:hover {
  text-decoration: underline;
}

/* ========================================================= */
/* ====================== FOOTER =========================== */
/* ========================================================= */

.footer {
  padding: 20px 0 24px;
  background-color: #0b47a1;   /* VegaSemi blue */
  color: #ffffff;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  border-top: none;            /* remove thin line */
}

/* ========================================================= */
/* === SCROLL OFFSET FOR STICKY HEADER (ADDED FIX) ========= */
/* ========================================================= */

#company,
#technology,
#news,
#contact {
  scroll-margin-top: 140px;
}

/* ========================================================= */
/* ===================== RESPONSIVE ======================== */
/* ========================================================= */

@media (max-width: 900px) {
  .hero {
    padding: 60px 0 50px;
    min-height: auto;
  }

  .hero::before {
    width: 100%;
    opacity: 0.22;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding-left: 0;
  }

  .hero-text {
    max-width: 100%;
    padding: 0 20px 0 0;
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  #company.content-section {
    padding: 32px 20px;
  }

  #company .split {
    flex-direction: column;
  }

  /* stack tech text + diagram vertically */
  .tech-top {
    flex-direction: column;
    gap: 30px;
  }

  .vucl-col {
    justify-content: flex-start;
  }

  /* stack pillars: one per row, full width */
  .pillars-wide {
    gap: 20px;
  }

  .pillars-row {
    flex-direction: column;
  }

  .pillar-box {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding: 10px 0 14px;
    gap: 10px;
  }

  .nav-links {
    gap: 18px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 50px 0 40px;
  }

  .hero-text h1 {
    font-size: 1.7rem;
  }

  .content-section {
    padding: 32px 18px;
    margin: 30px 0;
  }

  #technology .vucl-chart {
    max-width: 220px;
  }
}

/* ========================================================= */
/* ============== V-UCL ANIMATION ========================== */
/* ========================================================= */

.vucl-wrapper {
  margin-top: 20px;
}

.vucl-chart {
  position: relative;
  max-width: 260px;
  margin: 0 auto;
}

.vucl-base {
  width: 100%;
  display: block;
}

.vucl-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.0) 55%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: vucl-sweep 3s ease-in-out infinite;
}

/* UPDATED PULSE: grows to boundary then compresses back */
.vucl-pulse {
  position: absolute;
  inset: 0;                      /* fill the V-UCL container */
  border-radius: 50%;
  border: 2px solid rgba(24, 119, 242, 0.85);
  background: radial-gradient(circle,
    rgba(24, 119, 242, 0.30) 0%,
    rgba(24, 119, 242, 0.10) 45%,
    rgba(24, 119, 242, 0.00) 70%);
  pointer-events: none;
  transform-origin: center center;
  animation: vucl-pulse 2.4s ease-in-out infinite;
}

@keyframes vucl-sweep {
  0% { transform: rotate(0deg) scale(0.96); opacity: 0.7; }
  50% { transform: rotate(180deg) scale(1.05); opacity: 0.35; }
  100% { transform: rotate(360deg) scale(0.96); opacity: 0.7; }
}

/* breathing-style pulse: grow to boundary, shrink back */
@keyframes vucl-pulse {
  0% {
    transform: scale(0.65);
    opacity: 0.25;
  }
  50% {
    transform: scale(1);
    opacity: 0.75;
  }
  100% {
    transform: scale(0.65);
    opacity: 0.25;
  }
}

/* Align images in COMPANY and TECHNOLOGY sections */
#company .split,
#technology .tech-top {
  align-items: center;        /* vertically center */
}

/* Optional: make both image columns consistent */
#company .image-col img,
#technology .vucl-col .vucl-chart {
  display: block;
  margin: 0 auto;             /* horizontally center */
}

/* Increase image presence in COMPANY section */
#company .image-col img {
  max-width: 420px;
  width: 100%;
}

/* Increase image presence in TECHNOLOGY V-UCL diagram */
#technology .vucl-chart {
  max-width: 420px;
}

/* === Align spacing for all major sections === */
#company.content-section,
#technology.content-section,
#news.content-section,
#contact.content-section {
  margin-top: 60px;      /* consistent spacing */
  margin-bottom: 60px;
}

/* Remove extra spacing from the general rule */
.content-section {
  margin: 0 auto 60px auto;
}

/* EvoNexus logo sizing + alignment */
.evonexus-logo {
  height: 38px;      /* perfect size to match VegaSemi text */
  width: auto;
  margin-top: 8px;   /* aligns vertically with VegaSemi */
  opacity: 0.95;     /* optional premium feel */
}

.evonexus-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
