/* style.css */

/* basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #020617;
  --card-bg: rgba(15, 23, 42, 0.9);
  --border-subtle: rgba(148, 163, 184, 0.35);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.3);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --radius-lg: 14px;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.8);
}

/* animated gradient background */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 0% 0%, #0ea5e9 0, transparent 55%),
              radial-gradient(circle at 100% 100%, #a855f7 0, transparent 55%),
              radial-gradient(circle at 0% 100%, #22c55e 0, transparent 55%);
  filter: blur(40px);
  opacity: 0.4;
  animation: floatBg 20s infinite alternate ease-in-out;
}

@keyframes floatBg {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-20px, -10px, 0) scale(1.05);
  }
  100% {
    transform: translate3d(20px, 20px, 0) scale(1.02);
  }
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 60%, #000 100%);
  color: var(--text-main);
  min-height: 100vh;
}

/* top navigation */
/* top navigation */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.88));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.6rem;
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

/* nav links (desktop) */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.1s ease;
}

.nav-links a:hover {
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

/* hamburger button */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 1.1rem;
}

/* mobile behavior */
@media (max-width: 720px) {
  .top-nav {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    width: 100%;
    margin-top: 0.4rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    display: none;   /* hidden by default on small screens */
  }

  .nav-links.open {
    display: flex;   /* show when JS adds .open */
  }
}



/* main layout */
.container {
  max-width: 1000px;
  margin: 1.5rem auto 2.5rem auto;
  padding: 0 1.2rem;
}

.section {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem 1.6rem;
  margin-bottom: 1.3rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.section:hover::before {
  opacity: 0.06;
}

.section h2 {
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

/* about */
.title {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.title span {
  color: var(--accent);
}

.subtitle {
  font-size: 0.96rem;
  color: #e5e7eb;
  max-width: 640px;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.info-line {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* pills */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill {
  font-size: 0.8rem;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
}

.pill-link {
  text-decoration: none;
  border-color: var(--accent-soft);
  color: #e0f2fe;
}

.pill-link:hover {
  background: var(--accent);
  color: #020617;
}

/* subheading */
.subheading {
  margin: 0.9rem 0 0.35rem;
  font-size: 0.95rem;
}

/* education */
.timeline {
  display: grid;
  gap: 0.75rem;
}

.timeline-item h3 {
  font-size: 0.95rem;
}

.meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: flex-start;
}

.edu-card {
  padding: 0.6rem 0.1rem 0.2rem;
}

/* Stack on small screens */
@media (max-width: 720px) {
  .education-grid {
    grid-template-columns: 1fr;
  }
}


/* cards (projects & internship) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.card {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.9rem 1rem 1rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 55%),
              rgba(15, 23, 42, 0.98);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.95);
  border-color: var(--accent);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.card .meta {
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.86rem;
  line-height: 1.5;
}

/* links in cards */
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.card-links a {
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  text-decoration: none;
  color: #e0f2fe;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.card-links a:hover {
  background: var(--accent);
  color: #020617;
  transform: translateY(-1px);
}

/* list */
.list {
  margin-top: 0.4rem;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

/* primary button */
.primary-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  text-decoration: none;
  color: #e0f2fe;
  background: linear-gradient(to right, #0ea5e9, #22c55e);
  font-size: 0.86rem;
  font-weight: 500;
  transition: filter 0.2s ease, transform 0.1s ease;
}

.primary-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* footer */
.footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 1.1rem 0 1.5rem;
}

/* responsive */
@media (max-width: 720px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .container {
    margin-top: 1rem;
  }

  .section {
    padding: 1.1rem 1.2rem 1.3rem;
  }

  .title {
    font-size: 1.4rem;
  }
}
.map-thumb {
  display: inline-block;
  margin-top: 0.7rem;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
}

.map-thumb-inner {
  width: 220px;          /* small view */
  height: 140px;
  border-radius: 12px;
  background:
    linear-gradient(to bottom, rgba(15,23,42,0.3), rgba(15,23,42,0.9)),
    url("https://maps.gstatic.com/tactile/basepage/pegman_sherlock.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.map-thumb-inner span {
  font-size: 0.8rem;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.8);
  padding: 4px 10px;
  border-radius: 999px;
}

.map-thumb-inner:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
  border-color: #38bdf8;
}
/* Achievements & Certificates */

#achievements h2 {
  margin-bottom: 0.8rem;
}

#achievements .list {
  margin-top: 0.2rem;
  padding-left: 1.1rem;     /* same as other lists */
  font-size: 0.86rem;
  line-height: 1.5;
}

#achievements .list li + li {
  margin-top: 0.25rem;      /* small space between items */
}

#achievements .list a {
  color: #e0f2fe;           /* light blue link */
  text-decoration: none;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.6);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

#achievements .list a:hover {
  color: #38bdf8;           /* accent on hover */
  border-color: #38bdf8;
}

