/* ------------------------------
   Global Styles — Shreya Vontela Portfolio
   ------------------------------ */

:root {
  --nav-h: 64px;
  --teal: #0d9488;
  --teal-dark: #0b8078;
  --ink: #1b1b1b;
  --bg-light: #f9f9fb;
  --shadow: rgba(0, 0, 0, 0.05);
  --radius: 10px;
  --max-width: 900px;
  --transition: all 0.3s ease;
}

/* ---------- GLOBAL ---------- */

html {
  scroll-behavior: smooth;
  font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background-color: #ffffff;
}

body {
  margin: 0;
}

/* ---------- NAVBAR ---------- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  z-index: 1000;
}

nav a {
  text-decoration: none;
  color: var(--teal);
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav a:hover {
  color: var(--teal-dark);
}

nav a.active {
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}

/* ---------- MAIN CONTENT ---------- */

main {
  padding: calc(var(--nav-h) + 24px) 10% 80px;
  max-width: var(--max-width);
  margin: auto;
}

h1 {
  font-size: 2.2rem;
  color: var(--teal-dark);
  margin-bottom: 1.2rem;
}

h2 {
  font-size: 1.4rem;
  color: var(--teal-dark);
  margin-top: 1.2rem;
}

p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ---------- PROJECT BLOCKS ---------- */

.project-block {
  border-left: 5px solid var(--teal);
  background: var(--bg-light);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
  opacity: 0;
  transform: translateY(10px);
}

.project-block.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition);
}

.project-block h2 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

ul {
  margin: 0.4rem 0 0.8rem 1.2rem;
}

.tech {
  font-weight: 600;
  color: var(--teal-dark);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

a.link {
  text-decoration: none;
  color: var(--teal);
  font-weight: 600;
}

a.link:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}


/* Category sections on Projects page */
.proj-section { margin-top: 28px; }
.proj-heading {
  margin: 16px 0 12px;
  color: #111827;                /* pure black text */
  font-size: 1.5rem;          /* a bit larger */
  font-weight: 700;
  border-left: 5px solid #111827; /* black accent line */
  padding-left: 12px;
}



/* ---------- HERO SECTION ---------- */

.hero {
  height: calc(100vh - var(--nav-h));
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #d1fae5 0%, #a7f3d0 35%, #6ee7b7 100%);
  color: #065f46;
}

.hero img {
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0.3rem 0 0.4rem;
}

.hero h3 {
  font-weight: 500;
  color: #065f46;
  margin: 0 0 1.1rem;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.social a {
  margin: 0 0.5rem;
  text-decoration: none;
  color: #064e3b;
  font-weight: 650;
}

.social a:hover {
  text-decoration: underline;
}

/* ---------- FOOTER / CONTACT ---------- */

footer {
  text-align: center;
  padding: 1rem 0;
  color: #555;
  font-size: 0.9rem;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 720px) {
  main {
    padding-left: 8%;
    padding-right: 8%;
  }
  nav {
    gap: 1rem;
    font-size: 0.95rem;
  }
  .hero img {
    width: 170px;
    height: 170px;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* ---------- SIDE ARROW TIMELINE (fixed gutter) ---------- */

.timeline-side{
  position:relative;
  list-style:none;
  margin:0;
  padding:0;                           /* no padding on UL */
}

.timeline-side li{
  position:relative;
  padding-left:180px;                  /* create the gutter per item */
  margin:48px 0;                       /* vertical spacing */
  opacity:0; transform:translateY(12px);
  transition:transform .45s ease, opacity .45s ease;
}
.timeline-side li.in{ opacity:1; transform:none; }

.timeline-side .year{
  position:absolute;
  left:0;                              /* now sits in the gutter, not over the card */
  top:50%; transform:translateY(-50%);
  width:130px; padding:12px 14px;
  color:#fff; background:var(--teal);
  font-weight:700; text-align:center;
  border-radius:12px;
  box-shadow:0 2px 10px rgba(0,0,0,.08);
}
.timeline-side .year::after{
  content:""; position:absolute;
  right:-15px; top:50%; transform:translateY(-50%);
  border-width:10px 0 10px 15px; border-style:solid;
  border-color:transparent transparent transparent var(--teal);
}

.timeline-side .item{
  background:#fff; padding:18px 20px;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.06);
  transition:transform .25s ease, box-shadow .25s ease;
}
.timeline-side .item:hover{ transform:translateY(-3px); box-shadow:0 6px 16px rgba(0,0,0,.08); }

.timeline-side .role{ margin:0 0 4px; font-weight:700; color:var(--teal-dark); font-size:1.05rem; }
.timeline-side .company{ margin:0 0 10px; color:#475569; font-weight:600; font-size:.95rem; }
.timeline-side .bullets{ margin:0 0 0 1.1rem; line-height:1.55; }
.timeline-side .bullets li{ margin:6px 0; }

/* Mobile stack */
@media (max-width:760px){
  .timeline-side::before{ left:18px; }
  .timeline-side li{ padding-left:0; margin:36px 0; }
  .timeline-side .year{
    position:static; display:inline-block; margin:0 0 10px 32px; transform:none;
  }
  .timeline-side .year::after{ display:none; }
  .timeline-side .item{ margin-left:32px; }
}

/* ---------- Bullet alignment fix ---------- */
.timeline-side .bullets {
  margin: 8px 0 0 0;
  padding-left: 0;              /* remove default indent */
  list-style-position: inside;  /* makes bullets align with text */
}

.timeline-side .bullets li {
  margin: 5px 0;
  text-indent: -0.6em;          /* nudge bullet text back slightly */
  padding-left: 0.6em;          /* keeps bullets vertically aligned with company text */
}


/* ---------- Projects grid (3-up cards) ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.p-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  padding: 16px;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.p-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.p-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.p-card h3 {
  margin: 2px 0 0;
  font-size: 1.05rem;
  color: var(--teal-dark);
}

.p-card .p-sub {
  margin: 0;
  color: #475569;
  font-size: .95rem;
  line-height: 1.35;
}

.tech-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tech-badge {
  font-size: .78rem;
  padding: 4px 8px;
  background: #eefcf9;
  border: 1px solid #c8f5ec;
  color: var(--teal-dark);
  border-radius: 999px;
  font-weight: 600;
}

.p-links {
  margin-top: auto;              /* push links to bottom for equal-height cards */
  display: flex;
  gap: 12px;
}

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

@media (max-width: 680px) {
  .projects-grid { grid-template-columns: 1fr; }
}
