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

/* -----------------------------
   BASE STYLES
------------------------------ */
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(
    180deg,
    #cfe5ff 0%,   /* richer sky blue */
    #ded4ff 50%,  /* richer lavender */
    #f0d6ff 100%  /* richer pastel purple */
  );
  color: #1a1a1a;
  line-height: 1.6;
}

/* -----------------------------
   CSS VARIABLES (EGGHEAD THEME)
------------------------------ */
:root {
  --egghead-accent: #6f7cff;
  --egghead-glow: rgba(111, 124, 255, 0.35);
}

/* -----------------------------
   GLOBAL TEXT
------------------------------ */
p {
  max-width: 700px;
  margin: auto;
}

/* -----------------------------
   NAVBAR
------------------------------ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.logo {
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--egghead-accent);
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  color: #333;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--egghead-accent);
  transition: width 0.3s ease;
}

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

/* -----------------------------
   SECTIONS & PANELS
------------------------------ */
.section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 40px auto;
}

.section:nth-child(even) .panel {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6),
    rgba(240, 245, 255, 0.6)
  );
}

.panel {
  background: linear-gradient(
    180deg,
    rgba(255, 246, 238, 0.78), /* warm top */
    rgba(245, 248, 255, 0.75)  /* cool bottom */
  );
  border-radius: 32px;
  padding: 60px 30px;
  border: 2px solid rgba(180, 140, 110, 0.55); /* warm border */
}

.panel:hover {
  box-shadow: 0 30px 60px rgba(225, 170, 110, 0.15);
}


.section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

#home .panel {
  background: rgba(255, 255, 255, 0.78);
  margin-bottom: 100px;
}

#experiments .panel {
  background: rgba(245, 248, 255, 0.8); /* bluish */
  margin-bottom: 100px;
  margin-top: -160px;
}

#tech .panel {
  background: rgba(248, 245, 255, 0.8); /* purplish */
  margin-bottom: 100px;
}

#contact .panel {
  background: linear-gradient(
    180deg,
    rgba(235, 225, 240, 0.92)  /* slightly darker bottom */
    rgba(245, 230, 220, 0.92), /* warmer & darker top */
  );
  border: 2px solid rgba(160, 110, 90, 0.55);
}

#contact .panel {
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    padding-bottom: 120px;
}


.section h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  text-align: center;
  position: relative;
}

/* Divider UNDER heading, OUTSIDE panel flow */
.section h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--egghead-accent);
  border-radius: 999px;
  margin: 10px auto 0;
}


/* -----------------------------
   HOME
------------------------------ */
.home {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
 /* justify-content: center;*/
  align-items: center;
  text-align: center;
}

.home h1 {
  font-size: 3rem;
  color: var(--egghead-accent);
  margin-bottom: 10px;
  text-shadow: 0 0 8px rgba(0, 188, 212, 0.25);
}

.home p {
  max-width: 600px;
  margin: auto;
  opacity: 0.8;
}

/* -----------------------------
   SYSTEM STATUS
------------------------------ */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 10px 18px;
  border: 2ps solid rgba(110, 120, 255, 0.35);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  margin: 0 auto 30px;
  margin-top: -60px;
  animation: float 3s ease-in-out infinite;
}

.status .dot {
  width: 10px;
  height: 10px;
  background: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e676;
  animation: pulse 1.5s infinite;
}

.status .text {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* -----------------------------
   CARDS
------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  
}

.card {
  background: linear-gradient(
    180deg,
    #fffaf5 0%,   /* very soft warm white */
    #f7f9ff 100%  /* cool white bottom */
  );
  padding: 30px;
  border-radius: 24px;
  text-align: center;
  border: 1.5px solid rgba(110, 120, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;       /* 👈 hand cursor */
  user-select: none;
}


.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 70px rgba(255, 170, 90, 0.15);
}

.card.active-card {
  background: linear-gradient(
    180deg,
    #ffe9d6,
    #f7f9ff
  );
  box-shadow: 0 25px 60px rgba(255, 170, 100, 0.35);
}


[data-reactive] {
  transition: box-shadow 0.25s ease;
}

/* -----------------------------
   CONTACT
------------------------------ */
#contact p {
  text-align: center;
  font-size: 1.1rem;
}

/* -----------------------------
   FOOTER
------------------------------ */
.footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* -----------------------------
   PARTICLES BACKGROUND
------------------------------ */
.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.particles span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.35); /* soft white */
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
  animation: drift 28s linear infinite;
}


.particles span:nth-child(1) { left: 8%;  animation-duration: 26s; width: 8px;  height: 8px; }
.particles span:nth-child(2) { left: 20%; animation-duration: 30s; width: 12px; height: 12px; }
.particles span:nth-child(3) { left: 35%; animation-duration: 24s; width: 9px;  height: 9px; }
.particles span:nth-child(4) { left: 50%; animation-duration: 32s; width: 14px; height: 14px; }
.particles span:nth-child(5) { left: 65%; animation-duration: 28s; width: 10px; height: 10px; }
.particles span:nth-child(6) { left: 80%; animation-duration: 34s; width: 13px; height: 13px; }
.particles span:nth-child(7) { left: 92%; animation-duration: 27s; width: 9px;  height: 9px; }


/* -----------------------------
   ANIMATIONS
------------------------------ */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

@keyframes drift {
  from { transform: translateY(100vh); }
  to { transform: translateY(-10vh); }
}

/* -----------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 768px) {
  .section {
    padding: 60px 16px;
  }

  .status {
    font-size: 0.85rem;
  }

 /*/ .card {
    cursor: pointer;
  user-select: none;
    padding: 24px;
  }/*/

  .nav-links {
    display: none;
  }

  .home h1 {
    font-size: 2.4rem;
  }
  
  .mode-btn {
  margin-left: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid var(--egghead-accent);
  background: transparent;
  color: var(--egghead-accent);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mode-btn:hover {
  background: var(--egghead-accent);
  color: white;
}

/* -------- ACTIVE LAB MODE -------- */

body.active-lab {
  background: linear-gradient(
    180deg,
    #c9d8ff 0%,
    #e0d0ff 50%,
    #ffd6e8 100%
  );
}

body.active-lab .panel {
  border-color: rgba(255, 150, 120, 0.6);
}

body.active-lab .card {
  box-shadow: 0 20px 50px rgba(255, 160, 120, 0.25);
}

body.active-lab .status {
  background: rgba(255, 220, 200, 0.95);
}

  
}
