/* ===================== RESET & BASE ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial; background: #000; color: #fff; }

/* Keep header visible — add padding-top to body layout so card centers below header */
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 72px; /* match header height */
  -webkit-font-smoothing:antialiased;
}

/* ===================== SKIP LINK ===================== */
.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: 12px; top: 12px; background: #111; color: #fff; padding: 8px 10px; border-radius: 6px; z-index: 99999; text-decoration: none; }

/* ===================== FIREFLIES CANVAS ===================== */
canvas#fireflies {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at bottom, #020111 0%, #000 60%);
}

/* ===================== LOGO & HEADER ===================== */
.logo {
  position: fixed; top: 18px; left: 18px; font-size: 20px; font-weight: 700; color: #ffd966; z-index: 15; user-select: none;
}

.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 14;
  background: rgba(0,0,0,0.72); padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; box-sizing: border-box;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.header-center { position: static; transform: none; font-size: 18px; font-weight: 700; color: #2e8b57; pointer-events: auto; text-align: center; flex-grow: 1; display: none; }

.header-right { position: static; display: flex; flex-wrap: nowrap; gap: 14px; align-items: center; font-size: 15px; color: #ffd966; pointer-events: auto; max-width: 80vw; overflow-x: auto; }
.header-right .link { cursor: pointer; color: #ffd966; opacity: 0.95; white-space: nowrap; flex-shrink: 0; }
.header-right .link:hover { color: #9be3b8; text-decoration: underline; }

/* ===================== MAIN CARD (centered) ===================== */
.card {
  position: relative;
  z-index: 5;
  width: 92%;
  max-width: 1120px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  padding: 26px;
  display: flex;
  gap: 26px;
  align-items: stretch;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  max-height: calc(100vh - 140px);
  overflow: hidden;
}

/* make card scrollable content area for small screens */
.left-section { flex: 1; overflow-y: auto; padding-right: 6px; }
.right-section { width: 380px; display: flex; align-items: center; justify-content: center; }

/* safe scrolling visuals */
.left-section::-webkit-scrollbar { width: 8px; }
.left-section::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 6px; }

/* ===================== NAME & SUBTITLE ===================== */
.name-photo-row { display: block; margin-bottom: 12px; }
.name-photo-row h1 { font-size: 32px; font-weight: 800; color: #2e8b57; letter-spacing: 0.6px; margin-bottom: 6px; }

.subtitle p { margin-top: 6px; margin-bottom: 6px; line-height: 1.45; color: #cfeef0; white-space: pre-wrap; }

/* typewriter area (single-line style on home) */
#subtitle { font-weight: 500; color: #9be3b8; border-right: 2px solid #9be3b8; padding-right: 6px; min-height: 26px; }

/* ===================== SOCIAL ICONS ===================== */
#social-icons { margin-top: 16px; display: flex; gap: 16px; font-size: 22px; opacity: 0; transition: opacity 600ms ease-in-out; }
#social-icons.show { opacity: 1; }
#social-icons a { color: #9be3b8; transition: color .25s; display: inline-flex; align-items:center; justify-content:center; }
#social-icons a:hover { color: #2e8b57; }

/* ===================== SKILL ICONS ===================== */
#skill-icons { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
#skill-icons img { width: 48px; height: 48px; object-fit: contain; }

/* ===================== PROJECT CARDS ===================== */
#projects-container { margin-top: 16px; display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.project-card { background: rgba(46,139,87,0.06); border: 1px solid rgba(46,139,87,0.14); border-radius: 10px; padding: 14px; min-width: 280px; flex: 0 0 auto; box-shadow: 0 6px 24px rgba(0,0,0,0.5); display:flex; flex-direction:column; gap:8px; opacity:0; transform: translateY(14px); transition: transform .45s ease, opacity .45s ease; }
.project-card.show { opacity:1; transform: translateY(0); }
.project-card img { width:100%; height:140px; object-fit:cover; border-radius:8px; }
.project-card h3 { color: #9be3b8; }
.project-card p { color: #ddd; font-size:14px; }
.project-card a { color: #ffd966; text-decoration: underline; font-size: 14px; }

/* ===================== BIG OVAL PHOTO ===================== */
.photo-section { display: flex; align-items: center; justify-content: center; }
.photo-section img {
  width: 360px;
  height: 460px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 60px rgba(46,139,87,0.10), 0 8px 30px rgba(0,0,0,0.6);
  transform: translateY(0);
  animation: float 4.2s ease-in-out infinite;
}

/* soft glow behind image */
.photo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-wrapper::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 520px;
  filter: blur(40px);
  background: radial-gradient(closest-side, rgba(46,139,87,0.12), rgba(46,139,87,0.02));
  z-index: -1;
  border-radius: 50%;
}

/* ===================== EXPERIENCE HEADING COLORS ===================== */
.experience-entry { margin-bottom: 12px; line-height: 1.45; color: #ddd; white-space: pre-wrap; }
.experience-entry .company-role { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }

/* specific colors for each entry (change hex if you prefer) */
.experience-entry .company-role.c1 { color: #ffd966; } /* ServiceNow */
.experience-entry .company-role.c2 { color: #ffd966; }  /* Infinite Infolab */
.experience-entry .company-role.c3 { color: #ffd966; }  /* Intern */

/* ===================== SMALL SCREENS / RESPONSIVE ===================== */
@media (max-width: 900px) {
  .right-section { width: 300px; }
  .photo-section img { width: 300px; height: 380px; }
  .photo-wrapper::after { width: 360px; height: 420px; }
}

@media (max-width: 720px) {
  body { padding-top: 64px; }
  .card { flex-direction: column-reverse; width: 94%; padding: 18px; gap: 16px; max-height: calc(100vh - 120px); }
  .right-section { width: 100%; display:flex; justify-content:center; }
  .photo-section img { width: 220px; height: 280px; border-radius: 50%; }
  .photo-wrapper::after { display: none; }
  .header-right { max-width: 70vw; overflow-x: auto; }
  .name-photo-row h1 { text-align: center; font-size: 26px; }
  #subtitle { border-right: none; padding-right: 0; text-align:center; }
  #social-icons { justify-content: center; }
  #projects-container { gap: 12px; }
}
