/* ============================================
   SECTIONS.CSS — All 8 section layouts
   ============================================ */

/* ── Shared section padding (nav offset) ── */
.section-wrapper {
  padding-top: calc(var(--section-pad) + 56px);
}

/* ══════════════════════════════════════════
   SECTION 1 — HERO
   ══════════════════════════════════════════ */
#section-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-text {}

.hero-os-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  color: var(--green-dim);
  margin-bottom: 1rem;
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--green);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-shadow: 0 0 20px var(--green-glow), 0 0 60px rgba(0,255,65,0.2);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--amber);
  letter-spacing: 0.12em;
  margin-top: 0.6rem;
  text-shadow: 0 0 10px rgba(255,179,0,0.4);
}

.hero-bio {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--grey-light);
  line-height: 1.8;
  margin-top: 1.5rem;
  max-width: 520px;
  border-left: 2px solid var(--green-dim);
  padding-left: 1rem;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-primary {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  padding: 10px 24px;
  background: var(--green);
  color: var(--bg);
  border: 2px solid var(--green);
  cursor: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: transparent;
  color: var(--green);
  box-shadow: 0 0 14px var(--green-glow);
}

.btn-secondary {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  padding: 10px 24px;
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green-dim);
  cursor: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.btn-secondary:hover {
  border-color: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
}

/* Profile photo flip card */
.hero-photo-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  perspective: 800px;
  flex-shrink: 0;
}

.hero-photo-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: photoFlop 6s ease-in-out infinite;
  border-radius: 50%;
}

@keyframes photoFlop {
  0%,40%   { transform: rotateY(0deg); }
  50%,90%  { transform: rotateY(180deg); }
  100%     { transform: rotateY(0deg); }
}

.hero-photo-front,
.hero-photo-back {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  border: 2px solid var(--green);
  box-shadow: 0 0 20px var(--green-glow);
  overflow: hidden;
  background: rgba(0,255,65,0.05);
  display: flex; align-items: center; justify-content: center;
}

.hero-photo-back {
  transform: rotateY(180deg);
  border-color: var(--amber);
  box-shadow: 0 0 20px rgba(255,179,0,0.3);
  background: rgba(255,179,0,0.05);
}

.hero-photo-front img,
.hero-photo-back img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.photo-placeholder-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--green-dim);
  text-align: center;
  padding: 1rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--green-dim);
  letter-spacing: 0.15em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-hint::after {
  content: '▼';
  font-size: 0.7rem;
}

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(-6px); }
}

/* ══════════════════════════════════════════
   SECTION 2 — ABOUT ME
   ══════════════════════════════════════════ */
#section-about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1000px;
  margin: 2rem auto 0;
}

.about-bio-block {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--grey-light);
}

.about-bio-block .terminal-prompt::before {
  content: '> ';
  color: var(--c2);
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  border-left: 2px solid var(--c2);
  padding-left: 1rem;
}

.detail-label {
  color: var(--c2);
  min-width: 90px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.detail-val { color: var(--grey-light); }

.about-fun-facts {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid rgba(0,229,255,0.2);
  background: rgba(0,229,255,0.03);
}

.fun-facts-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--c2);
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}

/* ══════════════════════════════════════════
   SECTION 3 — CSS & WEB PROJECTS
   ══════════════════════════════════════════ */
#section-css .section-intro {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--grey-light);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════
   SECTION 4 — SIMULATIONS & CIRCUITS
   ══════════════════════════════════════════ */
#section-sims .sim-note {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--amber);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  opacity: 0.7;
}

/* ══════════════════════════════════════════
   SECTION 5 — HACKATHONS
   ══════════════════════════════════════════ */
#section-hackathons .hackathon-timeline {
  position: relative;
  margin-top: 2.5rem;
  padding-left: 2rem;
}

#section-hackathons .hackathon-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--c5), transparent);
}

.hackathon-entry {
  position: relative;
  margin-bottom: 3rem;
}

.hackathon-entry::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 6px;
  width: 10px; height: 10px;
  background: var(--c5);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,215,0,0.6);
}

.hackathon-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hackathon-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c5);
}

.hackathon-result {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border: 1px solid var(--c5);
  color: var(--c5);
  white-space: nowrap;
}

.hackathon-meta {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--grey-light);
  margin-top: 4px;
}

.hackathon-desc {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--grey-light);
  margin-top: 0.6rem;
  line-height: 1.7;
}

/* Image gallery for hackathon entries */
.hackathon-gallery {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.hackathon-gallery .img-slot {
  width: 120px; height: 80px;
  background: rgba(255,215,0,0.04);
  border: 1px dashed rgba(255,215,0,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--grey);
  letter-spacing: 0.08em;
  overflow: hidden;
  flex-shrink: 0;
}

.hackathon-gallery .img-slot img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ══════════════════════════════════════════
   SECTION 6 — GO-KART & PHYSICAL BUILDS
   ══════════════════════════════════════════ */
#section-gokart .build-note {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--c6);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  opacity: 0.7;
}

/* ══════════════════════════════════════════
   SECTION 7 — SKILLS & TOOLS
   ══════════════════════════════════════════ */
#section-skills .skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
  max-width: 1000px;
}

.skills-group-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--c7);
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(68,136,255,0.2);
}

.skill-item {
  margin-bottom: 1.2rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.skill-name { color: var(--white); }
.skill-level { color: var(--c7); font-size: 1rem; opacity: 0.8; }

.skill-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(68,136,255,0.15);
  position: relative;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c7), rgba(68,136,255,0.5));
  box-shadow: 0 0 8px rgba(68,136,255,0.5);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 12px; height: 100%;
  background: white;
  opacity: 0.4;
  filter: blur(3px);
}

/* Skill bar animated — triggered when section active */
.section-wrapper.active .skill-bar-fill {
  width: var(--skill-width, 70%);
}

/* Badges */
.badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.badge {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border: 1px solid var(--c7);
  color: var(--c7);
  background: rgba(68,136,255,0.06);
  position: relative;
  overflow: hidden;
  transition: background 0.2s, box-shadow 0.2s;
}
.badge:hover {
  background: rgba(68,136,255,0.15);
  box-shadow: 0 0 8px rgba(68,136,255,0.3);
}

/* Timeline */
.timeline {
  position: relative;
  margin-top: 2.5rem;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--c7), transparent);
}

.timeline-entry {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -2.45rem; top: 6px;
  width: 10px; height: 10px;
  background: var(--c7);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(68,136,255,0.6);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--c7);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.timeline-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 700;
}

.timeline-sub {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--grey-light);
  margin-top: 2px;
}

/* ══════════════════════════════════════════
   SECTION 8 — CONTACT
   ══════════════════════════════════════════ */
#section-contact .contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin-top: 2rem;
}

.contact-terminal {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--green-dim);
  padding: 1.5rem;
}

.terminal-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
  align-items: center;
}

.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green  { background: #28ca41; }

.terminal-title-bar {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--grey-light);
  letter-spacing: 0.1em;
  margin-left: 6px;
}

.contact-form-group {
  margin-bottom: 1rem;
}

.contact-form-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--green);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.contact-form-label::before { content: '> '; color: var(--amber); }

.contact-input,
.contact-textarea {
  width: 100%;
  background: rgba(0,255,65,0.04);
  border: 1px solid rgba(0,255,65,0.2);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 8px 12px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}
.contact-input:focus,
.contact-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
}
.contact-textarea { min-height: 100px; }

.contact-submit {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  padding: 10px 28px;
  background: var(--green);
  color: var(--bg);
  border: none;
  cursor: none;
  transition: opacity 0.2s, box-shadow 0.2s;
  margin-top: 0.5rem;
}
.contact-submit:hover {
  opacity: 0.85;
  box-shadow: 0 0 14px var(--green-glow);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: center;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--grey-light);
  border: 1px solid rgba(0,255,65,0.1);
  padding: 12px 16px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: none;
}
.contact-link-item:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0,255,65,0.04);
}

.contact-link-icon {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--green);
  min-width: 24px;
  text-align: center;
}

.contact-link-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--green-dim);
  margin-bottom: 2px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-inner              { grid-template-columns: 1fr; }
  .hero-photo-wrap         { display: none; }
  #section-about .about-grid { grid-template-columns: 1fr; }
  #section-skills .skills-layout { grid-template-columns: 1fr; }
  #section-contact .contact-layout { grid-template-columns: 1fr; }
}
/* ══════════════════════════════════════════
   HERO SIDEBAR LAYOUT
   ══════════════════════════════════════════ */

#section-hero {
  padding: 0 !important;
  min-height: 100vh;
  display: none;
}

#section-hero.active {
  display: flex !important;
}

.hero-layout {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  min-height: 100vh;
  width: 100%;
}

/* ── Sidebars ── */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 1rem;
  border-right: 1px solid rgba(0,255,65,0.15);
  background: rgba(0,0,0,0.3);
  position: relative;
}

.hero-sidebar.right {
  border-right: none;
  border-left: 1px solid rgba(0,255,65,0.15);
}

.sidebar-item {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--green-dim);
  writing-mode: horizontal-tb;
  text-align: center;
  padding: 12px 8px; 
  border: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s,
              background 0.25s, box-shadow 0.25s;
  width: 100%;
  cursor: none;
  position: relative;
}

.sidebar-item::before {
  content: '//';
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--amber);
  opacity: 0;
  margin-right: 6px;
  transition: opacity 0.2s;
}

.sidebar-item:hover {
  color: var(--green);
  border-color: rgba(0,255,65,0.3);
  background: rgba(0,255,65,0.05);
  box-shadow: 0 0 12px var(--green-glow);
  text-shadow: 0 0 10px var(--green-glow);
}

.sidebar-item:hover::before {
  opacity: 1;
}

/* ── Center ── */
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 0.6rem;
}

.hero-center .hero-bio {
  border-left: none;
  padding-left: 0;
  text-align: center;
  max-width: 420px;
  margin-top: 0.5rem;
}

.hero-center .hero-cta-row {
  justify-content: center;
  margin-top: 1rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 200px 1fr 240px;
    grid-template-rows: auto 1fr auto;
  }
  .hero-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid rgba(0,255,65,0.15);
    gap: 0.5rem;
    padding: 1rem;
    justify-content: center;
  }
  .hero-sidebar.right {
    border-left: none;
    border-top: 1px solid rgba(0,255,65,0.15);
    border-bottom: none;
  }
  .sidebar-item {
    width: auto;
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}