/* ==============================
   VARIABLES
============================== */
:root {
  --bg: #070923;
  --card: #0f1724;
  --muted: #9aa3c7;
  --accent: #6ea8ff;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.02);
  --radius: 14px;
  --ease: cubic-bezier(.2,.9,.3,1);
}

/* ==============================
   GLOBAL RESET
============================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Inter', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, #0b0f1f 100%);
  color: #e6eefc;
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 72px;
}

/* ==============================
   NAVBAR
============================== */
.navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1200px;
  padding: 10px 18px;
  border-radius: 12px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(9,10,22,0.6), rgba(9,10,22,0.25));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 1200;
  box-shadow: 0 6px 30px rgba(2,6,23,0.6);
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar .brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.06);
}

.navbar .brand h4 {
  font-size: 16px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--accent);
  background: rgba(110,168,255,0.06);
}

.nav-cta {
  background: linear-gradient(90deg, var(--accent), #8bd7ff);
  color: #041028;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.nav-cta:hover {
  transform: translateY(-2px);
}

/* ==============================
   HERO SECTION
============================== */

.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 70vh;
  text-align: center;
  overflow: hidden;
  gap:calc(10px + 1vw);
}

.hero-content, .btn-primary-hero {
  position: relative;
  z-index: 2; /* above the SVG */
}

.graph-background {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%; 
  z-index: 1;
  opacity: 0.3;
}

#stock-graph {
  width: 100%;
  height: 100%; /* full height of hero */
}

.actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

a, .btn, .nav-cta, .team-member .social-links i, .report-item {
  cursor: pointer; 
}

.btn-primary, .btn-primary-hero {
  background: linear-gradient(90deg, var(--accent), #8bd7ff);
  color: #041028;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
}

.hero-card {
  background: linear-gradient(180deg, var(--card), rgba(15,23,36,0.8));
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(3,8,20,0.6);
  height: 320px;
  overflow: hidden;
}

/* ==============================
   OVERVIEW SECTION
============================== */
.overview {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.overview h2 {
  color: var(--accent);
  font-size: 32px;
  margin-bottom: 18px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.overview-item {
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(3,8,20,0.45);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  text-align: center;
}

.overview-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(2,6,23,0.6);
}

.overview-item .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(110,168,255,0.12), rgba(143,114,255,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
}

.overview-item h3 {
  color: #e6eefc;
  margin-bottom: 8px;
}

.overview-item p {
  font-size: 14px;
  color: var(--muted);
}

/* ==============================
   TEAM SECTION
============================== */
.team {
  max-width: 1200px;
  margin: 48px auto;
  padding: 20px;
}

.team h2 {
  color: var(--accent);
  margin-bottom: 20px;
}

.team-photo {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 24px;
  object-fit: cover;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.team-member, .supervisor-div {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.35s var(--ease);
}

.team-member:hover {
  transform: translateY(-6px);
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.04);
}

.team-member h3 {
  margin: 12px 0 6px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.social-links a {
  color: var(--muted);
  font-size: 18px;
}

.social-links a:hover {
  color: var(--accent);
}

/* ==============================
   SUPERVISOR
============================== */
.supervisor {
  max-width: 1200px;
  margin: 48px auto;
  padding: 20px;
}

.supervisor h2 {
  color: var(--accent);
  margin-bottom: 20px;
}


.supervisor img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.04);
  margin-bottom: 12px;
}

/* ==============================
   REPORTS
============================== */
.reports {
  max-width: 1200px;
  margin: 48px auto;
  padding: 20px;
}

.reports h2 {
  color: var(--accent);
  margin-bottom: 20px;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}

.report-item {
  background: var(--card);
  padding: 14px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: transform 0.3s var(--ease);
}

.report-item:hover {
  transform: translateY(-6px);
}

/* ==============================
   GALLERY
============================== */

.gallery {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.gallery h2 {
  color: var(--accent);
  margin-bottom: 20px;
}


.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

/* ==============================
   LOGS
============================== */
.logs {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.logs h2 {
  color: var(--accent);
  margin-bottom: 20px;
}

.logs h3 {
  margin-top: 12px;
  margin-bottom: 12px;
}

.team-logs-grid, .logs-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.logbook {
  background: var(--card);
  padding: 12px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}

/* ==============================
   VIDEO
============================== */

.video {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.video iframe {
  width: 100%;
  max-width: 800px;
  height: 450px;
  border-radius: 16px;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.video h2 {
  color: var(--accent);
  margin-bottom: 20px;
}

/* ==============================
   CONTACT
============================== */

.contact {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.contact a {
  color: var(--accent);
  text-decoration: none;
}

.contact h2 {
  color: var(--accent);
  margin-bottom: 20px;
}

.contact a:hover {
  text-decoration: underline;
}

/* ==============================
   FOOTER
============================== */
footer {
  max-width: 1200px;
  margin: 40px auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

footer img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

/* ==============================
   REVEAL ANIMATION
============================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ==============================
   MEDIA QUERIES
============================== */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px;
  }

  .overview-grid, .team-grid, .reports-grid, .gallery-grid, .team-logs-grid, .logs-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 640px) {
  .navbar {
    left: 10px;
    transform: none;
    width: calc(100% - 20px);
  }

  body {
    padding-top: 84px;
  }

  .overview-grid, .team-grid, .reports-grid, .gallery-grid, .team-logs-grid, .logs-grid {
    grid-template-columns: 1fr;
  }

  .hero-left p.lead {
    max-width: 100%;
  }
}
