/* ======== GLOBAL STYLES ======== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #000;
  color: #fff;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Make box-sizing predictable and ensure media scales down on small screens */
html { 
  box-sizing: border-box; 
  scrollbar-gutter: stable;
  overflow-x: hidden;
}
*, *::before, *::after { box-sizing: inherit; }

/* Prevent images/media from causing horizontal overflow */
img, picture, video, svg { max-width: 100%; height: auto; display: block; }

/* NAVBAR CONTAINER */
.navbar {
  width: 100%;
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* logo left */
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  position: fixed; /* needed for absolute centering of nav */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-sizing: border-box;
}

/* ======== HERO / TERMINAL STYLES ======== */
.hero {
  min-height: calc(70vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 48px; /* leave space for fixed navbar */
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* particles background canvas */
.particles-bg {
  /* cover the full viewport so particle field is visible behind all sections */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none; /* allow clicks through canvas */
  overflow: hidden;
}

.hero-overlay {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.terminal {
  width: min(920px, 92%);
  background: linear-gradient(180deg, rgba(5,8,15,0.95), rgba(2,3,8,0.9));
  border: 1px solid rgba(0,255,255,0.06);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,255,255,0.04), 0 2px 8px rgba(0,0,0,0.6);
  color: #cfefff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Fira Code', 'Roboto Mono', monospace;
  overflow: hidden;
}

.term-bar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.term-bar .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.6) inset;
}
.dot.red { background: #ff5f57; }
.dot.amber { background: #ffbd2e; }
.dot.green { background: #28ca41; }

.term-body {
  padding: 20px 24px;
  position: relative;
  min-height: 180px;
}

.term-lines {
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 1.05rem;
}

.term-line.cmd { color: #9be7ff; }
.term-line.out { color: #dfefff; }

/* clickable link inside terminal output */
.term-link {
  color: #7ff; /* cyan-ish */
  text-decoration: underline;
  margin-left: 6px;
  cursor: pointer;
}
.term-link:focus {
  outline: 2px solid rgba(0,255,255,0.2);
  outline-offset: 3px;
}
.term-link:hover { text-shadow: 0 0 8px #7ff; }

/* prompt input (interactive CLI) */
.term-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.prompt-label {
  color: #7feaff;
  font-weight: 600;
  margin-right: 6px;
}
.term-input {
  flex: 1 1 auto;
  background: transparent;
  border: none;
  color: #e6fbff;
  font-family: inherit;
  font-size: 1rem;
  padding: 6px 8px;
  outline: none;
  border-radius: 6px;
  caret-color: #00ffff;
}
.term-input:disabled { opacity: 0.6; }
.term-input:focus { box-shadow: 0 0 0 3px rgba(0,255,255,0.06); }

/* ensure prompt sits above other elements if needed */
.term-prompt { position: relative; z-index: 2; }

/* project card styling inside terminal */
.project-card {
  display: block;
  background: linear-gradient(180deg, rgba(0,10,20,0.12), rgba(0,0,0,0.2));
  border: 1px solid rgba(0,255,255,0.03);
  padding: 12px 14px;
  margin: 10px 0;
  border-radius: 8px;
}
.project-title {
  font-weight: 700;
  color: #eaffff;
  margin-bottom: 6px;
}
.project-desc {
  color: #d6eef7;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.project-meta { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.project-tech { background: rgba(255,255,255,0.03); color:#bff; padding:4px 8px; border-radius:999px; font-size:0.8rem; }
.project-link { color:#7ff; text-decoration: none; font-weight:600; }
.project-link:hover { text-shadow: 0 0 8px #7ff; }

.term-caret {
  position: absolute;
  right: 24px;
  bottom: 18px;
  font-weight: 700;
  color: #00ffff;
  opacity: 1;
  transition: opacity 150ms linear;
}

/* blinking caret */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.term-caret.blink { animation: blink 1s steps(2, start) infinite; }

/* prefers-reduced-motion: disable animations */
@media (prefers-reduced-motion: reduce) {
  .term-caret { animation: none; }
}

/* Social links below terminal */
.hero-socials {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  z-index: 11;
  position: relative;
}

.hero-socials a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,255,255,0.3);
  border-radius: 50%;
  color: #00ffff;
  background: rgba(0,255,255,0.03);
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero-socials a:hover {
  background: rgba(0,255,255,0.12);
  box-shadow: 0 0 16px rgba(0,255,255,0.4);
  transform: translateY(-2px);
}

.social-icon {
  width: 20px;
  height: 20px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(0,255,255,0.6);
  font-size: 0.85rem;
  z-index: 11;
  animation: fadeInOut 2s ease-in-out infinite;
  cursor: pointer;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

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

.scroll-arrow {
  width: 20px;
  height: 20px;
  animation: scrollBounce 1.5s ease-in-out infinite;
}

.scroll-indicator.hidden {
  display: none;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,255,255,0.1), rgba(255,0,255,0.05));
  border: 1px solid rgba(0,255,255,0.3);
  border-radius: 50%;
  color: #00ffff;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, rgba(0,255,255,0.2), rgba(255,0,255,0.1));
  box-shadow: 0 0 20px rgba(0,255,255,0.4);
  transform: translateY(-3px);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 720px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  .scroll-to-top svg {
    width: 18px;
    height: 18px;
  }
}

/* smaller screens */
@media (max-width: 720px) {
  .hero { padding-top: 96px; }
  .terminal { width: 96%; border-radius: 10px; }
  .term-body { padding: 14px; }
  .term-caret { right: 14px; bottom: 12px; }
  .hero-socials { gap: 12px; margin-top: 20px; }
  .hero-socials a { width: 40px; height: 40px; }
  .scroll-indicator { bottom: 16px; font-size: 0.75rem; }
}

/* Projects grid on the page */
#projects .projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 18px;
}

.project {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  padding: 14px;
  border-radius: 10px;
}
.project-inner { display:flex; gap: 14px; align-items:flex-start; }
.project-img { width: 220px; height: 140px; object-fit:cover; border-radius: 8px; flex-shrink:0; }
.project-content p { margin: 0 0 8px 0; color: #dfefff; }
.project .tech { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.project .tech span { background: rgba(255,255,255,0.03); padding: 6px 8px; border-radius:999px; font-size:0.85rem; }
.project-actions { display:flex; gap:10px; margin-top:8px; }
.btn { background: linear-gradient(90deg, #0066ff, #0099ff); color: #fff; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.btn-outline { background:transparent; border:1px solid rgba(255,255,255,0.08); color:#fff; padding:8px 12px; border-radius:8px; text-decoration:none; }
.btn-ghost-blue { background:transparent; border:1px solid #00ffff; color:#00ffff; padding:8px 12px; border-radius:8px; text-decoration:none; font-weight:700; transition:0.3s ease; }
.btn-ghost-blue:hover { background:rgba(0,255,255,0.1); box-shadow:0 0 12px rgba(0,255,255,0.3); }

@media (min-width: 900px) {
  #projects .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Make project cards fluid on small screens to avoid horizontal overflow */
@media (max-width: 720px) {
  .project-inner { flex-direction: column; align-items: stretch; }
  .project-img { width: 100%; max-width: 100%; height: auto; margin-bottom: 12px; }
}

/* ======== ABOUT SECTION ======== */
#about {
  padding: 80px 24px;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(5,0,20,0.25));
}

/* GLOBAL CONTAINER */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

#about .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Apply glass-morphism + glow to section containers globally */
section .container {
  position: relative;
  background: linear-gradient(180deg, rgba(10,12,18,0.5), rgba(8,10,16,0.35));
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0,255,255,0.03), inset 0 1px 0 rgba(255,255,255,0.02);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  z-index: 5; /* sit above the particle canvas */
  transition: box-shadow 240ms ease, transform 240ms ease;
}

/* subtle sheen animation for glass panels (respects prefers-reduced-motion) */
section .container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.035) 25%, rgba(255,255,255,0.00) 60%);
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0.85;
  transform: translateX(-30%);
}

@media (prefers-reduced-motion: no-preference) {
  section .container::before {
    animation: sheen 6s linear infinite;
  }
}

@keyframes sheen {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* headings and interactive elements glow slightly to reinforce the futuristic theme */
section {
  width: 100%;
  overflow-x: hidden;
  padding: 40px 0;
}

section h2, section h3 {
  text-shadow: 0 6px 18px rgba(0,207,232,0.06);
}

section a, .filter-btn, .btn-ghost-blue, .btn {
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.filter-btn:hover, .btn-ghost-blue:hover, .btn:hover {
  box-shadow: 0 8px 30px rgba(0,207,232,0.06);
  transform: translateY(-2px);
}

/* ======== SKILLS SECTION ======== */
#skills .skills-intro {
  color: #d0d0d0;
  max-width: 720px;
  margin-bottom: 18px;
}

.skills-controls {
  display: flex;
  gap: 10px;
  margin: 12px 0 18px 0;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: #cfefff;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.filter-btn.active {
  background: linear-gradient(90deg,#00f0ff22,#00cfe833);
  border-color: #00cfe8;
  color: #001;
  box-shadow: 0 6px 18px rgba(0,207,232,0.08);
}

.filter-btn:focus {
  outline: 2px solid rgba(0,207,232,0.18);
  outline-offset: 2px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.skill-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  padding: 14px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skill-head {
  display:flex;
  align-items:center;
  gap:10px;
}
.skill-icon {
  width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
  color: #00cfe8;
}
.skill-name { font-weight:700; color:#d0d0d0; }
.skill-meta { font-size:0.85rem; color:#d0d0d0; }

.skill-bar {
  background: rgba(255,255,255,0.03);
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
}
.skill-bar-fill {
  height:100%;
  /* switched to a softer green gradient for better contrast on the skill bars */
  background: linear-gradient(90deg,#00d27a,#00ff8a);
  width: 0%;
  transition: width 600ms ease;
}
.skill-bar-label { display:flex; justify-content:space-between; font-size:0.85rem; color:#d0d0d0; }

.skill-actions { display:flex; gap:10px; align-items:center; }
.view-projects { background:transparent; border:none; color:#7ff; text-decoration:underline; cursor:pointer; padding:6px 8px; border-radius:6px; }
.view-projects[disabled] { opacity:0.35; cursor:not-allowed; text-decoration:none; }

/* highlight projects when a skill links to them */
.project.highlight { box-shadow: 0 8px 30px rgba(0,207,232,0.12); transform: translateY(-4px); border-color: rgba(0,207,232,0.25); }

@media (prefers-reduced-motion: reduce) {
  .skill-bar-fill { transition: none; }
}

@media (max-width: 720px) {
  .skills-controls { justify-content: flex-start; }
  .skills-grid { gap: 12px; }
}

/* ======== EXPERIENCE ======== */
.experience-list { display:flex; flex-direction:column; gap:18px; margin-top:12px; }
.exp-item { display:grid; grid-template-columns: 32px 1fr; gap: 12px; align-items:start; }
.exp-marker { width: 12px; height: 12px; border-radius: 50%; background: #00d27a; margin-top:6px; box-shadow: 0 6px 18px rgba(0,210,122,0.08); }
.exp-content h4 { margin: 0 0 6px 0; color: #d0d0d0; }
.exp-content .exp-year { font-size:0.85rem; color: #9fb3c3; margin: 0 0 8px 0; }
.exp-content p { margin: 0; color: #cfefff; }

/* ======== TESTIMONIALS ======== */
.testimonials-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top:12px; }
.testimonial-card { background: rgba(255,255,255,0.02); border-radius: 10px; padding: 14px; border:1px solid rgba(255,255,255,0.03); color: #d0d0d0; font-style: italic; }
.testimonial-card cite { display:block; margin-top:10px; font-style:normal; color:#bfcfe0; font-weight:700; }

/* Carousel styles */
.testimonials-carousel { position: relative; overflow: hidden; margin-top:12px; }
.testimonials-track { display:flex; gap:12px; transition: transform 420ms cubic-bezier(.2,.9,.2,1); will-change: transform; }
.testimonial-card { min-width: 280px; max-width: 720px; flex: 0 0 70%; box-sizing: border-box; }
.testimonial-meta { display:flex; gap:12px; align-items:flex-start; }
.avatar-initials { width:56px; height:56px; border-radius:50%; background: linear-gradient(180deg,#00d27a,#00ff8a); display:flex; align-items:center; justify-content:center; font-weight:700; color:#001; box-shadow:0 8px 30px rgba(0,210,122,0.08); flex-shrink:0; }
.testimonial-body p { margin:0; }

/* small screen adjustments */
@media (max-width:720px) {
  .testimonials-track { gap:10px; }
  .testimonial-card { flex: 0 0 92%; }
  .avatar-initials { width:48px; height:48px; }
}

/* focus outline for keyboard users */
#testimonials-carousel:focus { outline: 2px solid rgba(0,207,232,0.12); outline-offset: 4px; }

/* ======== CONTACT ======== */
.contact-intro { color: #d0d0d0; margin-bottom: 14px; }
.contact-form { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items:start; }
.contact-form label { color: #bfcfe0; font-size:0.9rem; }
.contact-form input, .contact-form textarea {
  background: rgba(0,0,0,0.45); border:1px solid rgba(255,255,255,0.04); color:#dfefff; padding:10px 12px; border-radius:8px; width:100%;
}
.contact-form textarea { grid-column: 1 / -1; }
.contact-actions { grid-column: 1 / -1; display:flex; gap:10px; align-items:center; }
.contact-status { margin-top:8px; color:#00ff8a; }

@media (max-width:720px) {
  .contact-form { grid-template-columns: 1fr; }
  .contact-form textarea { grid-column: auto; }
}

/* ======== FOOTER ======== */
footer { padding: 20px 24px; }
.footer-inner { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.footer-links a { color:#cfefff; margin-left:12px; text-decoration:none; }


#about h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 48px;
  color: #00cfe8; /* medium cyan */
}

#about h3 {
  font-size: 1.8rem;
  margin-bottom: 32px;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0,255,255,0.3);
}

/* About intro */
.about-intro {
  max-width: 800px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #d6eef7;
  text-align: center;
}

/* Profile section with image */
.about-profile {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.profile-image-wrapper {
  flex: 0 0 280px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,255,255,0.1), rgba(255,0,255,0.05));
  border: 2px solid rgba(0,255,255,0.4);
  padding: 4px;
  box-shadow: 0 0 30px rgba(0,255,255,0.2), inset 0 0 20px rgba(0,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Responsive adjustments for profile */
@media (max-width: 900px) {
  .about-profile {
    flex-direction: column;
    gap: 30px;
  }
  
  .profile-image-wrapper {
    flex: 0 0 240px;
    width: 240px;
    height: 240px;
  }
  
  .about-intro {
    text-align: center;
  }
}

@media (max-width: 720px) {
  .profile-image-wrapper {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
  }
}

/* Stats grid */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 80px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(0,207,232,0.05), rgba(255,0,255,0.02));
  border: 1px solid rgba(0,207,232,0.2);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(0,207,232,0.4);
  box-shadow: 0 0 20px rgba(0,207,232,0.15);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00cfe8;
  margin-bottom: 8px;
}

.stat-label {
  color: #00cfe8;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* Timeline */
.about-journey {
  margin-bottom: 80px;
}

.timeline {
  position: relative;
  padding: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(0,255,255,0.3), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.timeline-item:nth-child(even) {
  direction: rtl;
}

.timeline-item:nth-child(even) > * {
  direction: ltr;
}

.timeline-marker {
  width: 16px;
  height: 16px;
  background: #00cfe8;
  border: 3px solid #000;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0,207,232,0.6);
}

.timeline-content {
  background: linear-gradient(135deg, rgba(0,255,255,0.03), rgba(255,0,255,0.02));
  border: 1px solid rgba(0,255,255,0.1);
  padding: 20px 24px;
  border-radius: 10px;
}

.timeline-content h4 {
  color: #00cfe8;
  margin: 0 0 6px 0;
  font-size: 1.2rem;
}

.timeline-year {
  color: #ff00ff;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 4px 0 12px 0;
}

.timeline-content p {
  color: #bbb;
  margin: 0;
  line-height: 1.6;
}

/* Values grid */
.about-values {
  margin-top: 80px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.value-card {
  background: linear-gradient(135deg, rgba(0,255,255,0.05), rgba(255,0,255,0.02));
  border: 1px solid rgba(0,255,255,0.1);
  padding: 28px 24px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.value-card:hover {
  border-color: rgba(0,255,255,0.3);
  box-shadow: 0 8px 24px rgba(0,255,255,0.1);
  transform: translateY(-6px);
}

.value-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rocket: upward-pointing triangle */
.icon-rocket {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 40px solid #00cfe8;
  margin: 0 auto 16px;
}

/* Handshake: two vertical bars with connecting bridge */
.icon-handshake {
  position: relative;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}

.icon-handshake::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 12px;
  width: 6px;
  height: 24px;
  background: #00cfe8;
  border-radius: 3px;
}

.icon-handshake::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 12px;
  width: 6px;
  height: 24px;
  background: #00cfe8;
  border-radius: 3px;
}

/* Books: stacked horizontal lines */
.icon-books {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
}

.icon-books::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: #00cfe8;
  border-radius: 2px;
  box-shadow: 0 8px 0 #00cfe8, 0 16px 0 #00cfe8;
}

/* Spark: diamond with center dot */
.icon-spark {
  position: relative;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}

.icon-spark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 32px;
  height: 32px;
  border: 2px solid #00cfe8;
  border-radius: 2px;
}

.icon-spark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #00cfe8;
  border-radius: 50%;
}

.value-card h4 {
  color: #00cfe8;
  margin: 12px 0 8px 0;
  font-size: 1.1rem;
}

.value-card p {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .timeline::before { display: none; }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .timeline-item:nth-child(even) {
    direction: ltr;
  }

  .timeline-marker {
    position: static;
    transform: none;
    margin-bottom: 16px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  #about h2 { font-size: 2rem; margin-bottom: 32px; }
  #about h3 { font-size: 1.5rem; margin-bottom: 24px; }
  .about-intro { font-size: 1rem; margin-bottom: 40px; }
  .about-stats { grid-template-columns: 1fr; gap: 16px; margin-bottom: 60px; }
  .values-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* LOGO */
.logo img {
  /* keep logo visually consistent but allow it to scale on very small screens */
  width: auto;
  max-width: 45px;
  height: auto;
  max-height: 45px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px cyan);
}

/* HAMBURGER / TOGGLE BUTTON */
.nav-toggle {
  display: none; /* shown on small screens */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 12px;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #00ffff;
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle .hamburger::before { top: -7px; }
.nav-toggle .hamburger::after { top: 7px; }

/* when nav is open, animate hamburger to X */
.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
  position: absolute;      /* absolute centering */
  left: 50%;
  transform: translateX(-50%);
  top: 50%;
  transform-origin: center;
  transform: translate(-50%, -50%);
  pointer-events: auto; /* ensure links remain interactive */
}

/* Responsive fallback: on narrow screens, place nav back into flow */
@media (max-width: 720px) {
  .navbar {
    /* include safe-area insets so content doesn't sit under notches */
    padding: 12px calc(16px + env(safe-area-inset-right, 0px)) 12px calc(16px + env(safe-area-inset-left, 0px));
  }
  /* show hamburger */
  .nav-toggle {
    display: block;
    position: absolute;        /* pin to left edge but inside safe-area */
    left: calc(12px + env(safe-area-inset-left, 0px));
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
  }

  /* mobile: keep nav in flow but collapsed by max-height so we can animate */
  .nav-links {
    display: flex;
    position: static;     /* restore normal flow when visible */
    transform: none;
    top: auto;
    left: auto;
    margin: 56px 16px 0 16px; /* place menu below header */
    gap: 18px;
    flex-direction: column;
    background: rgba(0,0,0,0.75);
    padding: 0 16px; /* internal padding handled by li/a */
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    align-items: flex-start;
    overflow: hidden;
    max-height: 0; /* collapsed */
    opacity: 0;
    transition: max-height 260ms ease, opacity 200ms ease;
    pointer-events: none;
  }

  /* When toggled open -> expand */
  .nav-links.nav-links--open {
    /* allow menu to grow to accommodate all links plus padding */
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    overflow: auto;
  }

  .nav-links li { width: 100%; }
  .nav-links li a { display: block; width: 100%; padding: 12px 0; }

  .logo img {
    width: 40px;
    height: 40px;
  }

  /* center the logo visually while hamburger sits on left */
  .navbar .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001; /* below the toggle but above background */
  }
}

.navbar a {
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: 0.3s ease;
  padding-bottom: 4px;
  position: relative;
}

/* Neon hover underline */
.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: cyan;
  box-shadow: 0 0 8px cyan;
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}

.navbar a:hover {
  color: cyan;
  text-shadow: 0 0 8px cyan;
}
