/* ═══════════════════════════════════════════════
   B SAI ASHISH — PORTFOLIO
   Pure HTML + CSS only. Zero JavaScript.
   Hamburger: CSS checkbox hack
   Scroll reveal: animation-timeline: view()
   All transitions: CSS only
═══════════════════════════════════════════════ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, serif;
  background-color: white;
  color: darkslategray;
  line-height: 1.75;
  overflow-x: hidden;
}

a {
  color: steelblue;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}


/* ═══════════════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes ringPulse {
  0%   { transform: scale(1);    opacity: 0.35; }
  50%  { transform: scale(1.07); opacity: 0.15; }
  100% { transform: scale(1);    opacity: 0.35; }
}

@keyframes accentGrow {
  from { width: 0; }
  to   { width: 40px; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes revealUp {
  entry 0%  { opacity: 0; transform: translateY(30px); }
  entry 40% { opacity: 1; transform: translateY(0); }
}

@keyframes revealLeft {
  entry 0%  { opacity: 0; transform: translateX(-30px); }
  entry 40% { opacity: 1; transform: translateX(0); }
}

@keyframes revealRight {
  entry 0%  { opacity: 0; transform: translateX(30px); }
  entry 40% { opacity: 1; transform: translateX(0); }
}

@keyframes revealScale {
  entry 0%  { opacity: 0; transform: scale(0.92); }
  entry 40% { opacity: 1; transform: scale(1); }
}


/* ═══════════════════════════════════════════════
   SCROLL-REVEAL UTILITY CLASSES
   Uses animation-timeline: view() — pure CSS.
   Supported in Chrome 115+, Edge 115+, Firefox 119+
═══════════════════════════════════════════════ */

.scroll-up {
  animation: revealUp linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

.scroll-left {
  animation: revealLeft linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

.scroll-right {
  animation: revealRight linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

.scroll-scale {
  animation: revealScale linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

.scroll-up.d1  { animation-delay: calc(0.08s); }
.scroll-up.d2  { animation-delay: calc(0.16s); }
.scroll-up.d3  { animation-delay: calc(0.24s); }
.scroll-up.d4  { animation-delay: calc(0.32s); }
.scroll-up.d5  { animation-delay: calc(0.4s);  }


/* ═══════════════════════════════════════════════
   NAV — CSS CHECKBOX HAMBURGER HACK
═══════════════════════════════════════════════ */

.nav-toggle {
  display: none;
}

.top-bar {
  background-color: white;
  border-bottom: 1px solid gainsboro;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  animation: fadeIn 0.5s ease both;
}

.site-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: darkslategray;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.25s;
}

.site-name span {
  color: mediumorchid;
}

.site-name:hover {
  color: mediumorchid;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: Verdana, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: gray;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s, transform 0.2s;
  display: inline-block;
}

.nav-links a:hover,
.nav-links a.active {
  color: mediumorchid;
  border-color: plum;
  background-color: lavenderblush;
  text-decoration: none;
  transform: translateY(-1px);
}

.hamburger-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
}

.hamburger-label span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: darkslategray;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s;
}

.hamburger-label:hover span {
  background-color: mediumorchid;
}

.nav-toggle:checked ~ .top-bar .hamburger-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked ~ .top-bar .hamburger-label span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle:checked ~ .top-bar .hamburger-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background-color: white;
  border-bottom: 2px solid lavenderblush;
  padding: 12px 20px 16px;
  z-index: 99;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

.nav-toggle:checked ~ .mobile-menu {
  display: flex;
  animation: slideDown 0.25s ease both;
}

.mobile-menu a {
  font-family: Verdana, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: darkslategray;
  padding: 13px 16px;
  border-radius: 8px;
  transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background-color: lavenderblush;
  color: mediumorchid;
  text-decoration: none;
  padding-left: 24px;
}


/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */

.arrow-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background-color: mediumorchid;
  color: white;
  border-radius: 6px;
  font-family: Verdana, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  border-bottom: 3px solid darkorchid;
  transition: background-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.arrow-btn:hover {
  background-color: darkorchid;
  text-decoration: none;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(153,50,204,0.3);
}

.arrow-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(153,50,204,0.2);
}

.underline-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  color: plum;
  font-family: Verdana, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  border-bottom: 2px solid plum;
  transition: color 0.25s, border-color 0.25s, gap 0.3s;
}

.underline-btn:hover {
  color: violet;
  border-color: violet;
  text-decoration: none;
  gap: 16px;
}

.send-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background-color: transparent;
  color: mediumorchid;
  border: 2px solid mediumorchid;
  border-radius: 6px;
  font-family: Verdana, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.send-btn .send-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: mediumorchid;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: white;
  transition: transform 0.3s ease;
}

.send-btn:hover {
  background-color: mediumorchid;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(153,50,204,0.25);
}

.send-btn:hover .send-circle {
  transform: rotate(90deg);
}

.send-btn:active {
  transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════
   SHARED SECTION STYLES
═══════════════════════════════════════════════ */

.eyebrow {
  font-family: Verdana, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: mediumorchid;
  margin-bottom: 8px;
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: 1.9rem;
  font-weight: normal;
  color: midnightblue;
}

.accent-bar {
  height: 3px;
  width: 0;
  margin-top: 10px;
  border-radius: 2px;
  animation: accentGrow 0.8s 0.4s ease forwards;
}

.purple-bar { background-color: mediumorchid; }
.orange-bar { background-color: coral; }
.teal-bar   { background-color: mediumturquoise; }

.page-band {
  padding: 72px 48px;
  border-bottom: 1px solid gainsboro;
}

.page-band.ghost-bg {
  background-color: ghostwhite;
}


/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */

.bottom-bar {
  background-color: white;
  border-top: 1px solid gainsboro;
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.bottom-bar p {
  font-family: Verdana, sans-serif;
  font-size: 0.72rem;
  color: darkgray;
  transition: color 0.2s;
}

.bottom-bar p:hover {
  color: mediumorchid;
}


/* ═══════════════════════════════════════════════
   INDEX.HTML — HOME
═══════════════════════════════════════════════ */

.home-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}

.intro-left {
  background-color: midnightblue;
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-left .tag-line {
  font-family: Verdana, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: plum;
  margin-bottom: 18px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.intro-left h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: normal;
  color: white;
  line-height: 1.15;
  margin-bottom: 10px;
  animation: fadeUp 0.6s 0.38s ease both;
}

.intro-left h1 strong {
  font-weight: bold;
  color: violet;
}

.intro-left .role-line {
  font-family: Verdana, sans-serif;
  font-size: 0.82rem;
  color: lightsteelblue;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  animation: fadeUp 0.6s 0.52s ease both;
}

.intro-left .intro-body {
  color: lightgray;
  font-size: 0.96rem;
  max-width: 400px;
  margin-bottom: 36px;
  line-height: 1.8;
  animation: fadeUp 0.6s 0.66s ease both;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  animation: fadeUp 0.6s 0.82s ease both;
}

.intro-right {
  background-color: ghostwhite;
  padding: 72px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  animation: fadeRight 0.7s 0.4s ease both;
}

.profile-photo-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

.profile-photo-wrap::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid mediumorchid;
  border-radius: 50%;
  animation: ringPulse 3s ease-in-out infinite;
}

.profile-photo-wrap::after {
  content: '';
  position: absolute;
  top: -22px;
  left: -22px;
  right: 22px;
  bottom: 22px;
  border: 1px solid mediumorchid;
  border-radius: 50%;
  opacity: 0.15;
  animation: ringPulse 3s 1.2s ease-in-out infinite;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 40px rgba(153,50,204,0.22);
}

.profile-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, midnightblue, slateblue);
  border: 4px solid white;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 3rem;
  font-weight: bold;
  color: white;
  letter-spacing: 0.04em;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-placeholder:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 40px rgba(153,50,204,0.22);
}

.intro-info-blocks {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-block {
  background-color: white;
  border: 1px solid gainsboro;
  border-left: 4px solid mediumorchid;
  border-radius: 4px;
  padding: 14px 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-left-color 0.25s;
  animation: revealRight linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 35%;
}

.info-block:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 18px rgba(153,50,204,0.1);
  border-left-color: darkorchid;
}

.info-block .block-label {
  font-family: Verdana, sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: mediumorchid;
  margin-bottom: 5px;
}

.info-block p {
  font-size: 0.86rem;
  color: darkslategray;
  line-height: 1.55;
}

.info-block p strong {
  color: midnightblue;
  font-weight: bold;
}

.lang-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.dot-chip {
  padding: 3px 12px;
  border-radius: 20px;
  font-family: Verdana, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.dot-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.dot-chip.py   { background-color: cornsilk;  color: goldenrod;  border: 1px solid gold; }
.dot-chip.html { background-color: mistyrose; color: tomato;     border: 1px solid lightsalmon; }
.dot-chip.java { background-color: lavender;  color: slateblue;  border: 1px solid mediumpurple; }
.dot-chip.css  { background-color: aliceblue; color: steelblue;  border: 1px solid lightsteelblue; }


/* ═══════════════════════════════════════════════
   ABOUT.HTML
═══════════════════════════════════════════════ */

.about-intro-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 44px;
  align-items: start;
  max-width: 860px;
  margin-bottom: 36px;
}

.about-avatar-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, midnightblue, slateblue);
  border: 3px solid gainsboro;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 2.4rem;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: revealLeft linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 35%;
}

.about-avatar-placeholder:hover {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 10px 30px rgba(153,50,204,0.22);
}

.about-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid gainsboro;
  flex-shrink: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: revealLeft linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 35%;
}

.about-avatar:hover {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 10px 30px rgba(153,50,204,0.22);
}

.about-text {
  animation: revealRight linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 35%;
}

.about-text p {
  color: slategray;
  font-size: 0.96rem;
  margin-bottom: 14px;
  line-height: 1.8;
}

.detail-list {
  list-style: none;
  max-width: 560px;
}

.detail-list li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid whitesmoke;
  font-size: 0.86rem;
  color: slategray;
  transition: background-color 0.2s, padding-left 0.25s;
  border-radius: 4px;
  animation: revealUp linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 25%;
}

.detail-list li:hover {
  padding-left: 10px;
  background-color: lavenderblush;
}

.detail-list li:last-child {
  border-bottom: none;
}

.detail-list .field {
  font-family: Verdana, sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: darkslategray;
  min-width: 96px;
  padding-top: 2px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.skill-tile {
  border-radius: 8px;
  padding: 28px 20px 22px;
  border: 1px solid gainsboro;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: revealUp linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

.skill-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  transition: height 0.3s ease;
}

.skill-tile:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.1);
}

.skill-tile:hover::before {
  height: 7px;
}

.tile-py   { background-color: cornsilk; }
.tile-py::before   { background-color: goldenrod; }
.tile-html { background-color: mistyrose; }
.tile-html::before { background-color: tomato; }
.tile-java { background-color: lavender; }
.tile-java::before { background-color: slateblue; }
.tile-css  { background-color: aliceblue; }
.tile-css::before  { background-color: steelblue; }

.skill-tile .big-letter {
  font-size: 3.2rem;
  font-weight: bold;
  line-height: 1;
  opacity: 0.1;
  position: absolute;
  right: 14px;
  top: 14px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.skill-tile:hover .big-letter {
  opacity: 0.2;
  transform: scale(1.12) rotate(-6deg);
}

.tile-py   .big-letter { color: goldenrod; }
.tile-html .big-letter { color: tomato; }
.tile-java .big-letter { color: slateblue; }
.tile-css  .big-letter { color: steelblue; }

.skill-tile .lang-name {
  font-family: Verdana, sans-serif;
  font-size: 0.76rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  position: relative;
}

.tile-py   .lang-name { color: goldenrod; }
.tile-html .lang-name { color: tomato; }
.tile-java .lang-name { color: slateblue; }
.tile-css  .lang-name { color: steelblue; }

.skill-tile p {
  font-size: 0.79rem;
  color: slategray;
  line-height: 1.6;
  position: relative;
}

.skill-level {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: Verdana, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: bold;
  position: relative;
  transition: transform 0.2s;
}

.skill-tile:hover .skill-level {
  transform: scale(1.06);
}

.tile-py   .skill-level { background-color: white; color: goldenrod; }
.tile-html .skill-level { background-color: white; color: tomato; }
.tile-java .skill-level { background-color: white; color: slateblue; }
.tile-css  .skill-level { background-color: white; color: steelblue; }

.edu-card {
  max-width: 680px;
  background-color: white;
  border-radius: 10px;
  border: 1px solid gainsboro;
  overflow: hidden;
  display: flex;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: revealUp linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

.edu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(153,50,204,0.1);
}

.edu-stripe {
  width: 8px;
  background: linear-gradient(to bottom, mediumorchid, steelblue);
  flex-shrink: 0;
  transition: width 0.3s ease;
}

.edu-card:hover .edu-stripe {
  width: 11px;
}

.edu-body {
  padding: 28px 32px;
}

.edu-body .inst-label {
  font-family: Verdana, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: mediumorchid;
  margin-bottom: 5px;
}

.edu-body h3 {
  font-size: 1.25rem;
  color: midnightblue;
  margin-bottom: 5px;
  font-weight: normal;
}

.edu-body .degree-line {
  font-family: Verdana, sans-serif;
  font-size: 0.78rem;
  color: slategray;
  margin-bottom: 18px;
}

.edu-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.edu-meta-item .meta-key {
  font-family: Verdana, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: lightslategray;
  margin-bottom: 3px;
}

.edu-meta-item .meta-val {
  font-size: 0.86rem;
  color: darkslategray;
  font-weight: bold;
}


/* ═══════════════════════════════════════════════
   PROJECTS.HTML
═══════════════════════════════════════════════ */

.projects-intro {
  background-color: midnightblue;
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
}

.projects-intro::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(221,160,221,0.12);
  pointer-events: none;
  animation: ringPulse 5s ease-in-out infinite;
}

.projects-intro .eyebrow {
  color: plum;
  animation: fadeUp 0.5s 0.1s ease both;
}

.projects-intro h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: normal;
  color: white;
  margin-bottom: 12px;
  animation: fadeUp 0.5s 0.25s ease both;
}

.projects-intro p {
  color: lightsteelblue;
  font-size: 0.94rem;
  max-width: 480px;
  animation: fadeUp 0.5s 0.4s ease both;
}

.projects-grid-band {
  padding: 64px 48px;
  background-color: white;
}

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

.proj-card {
  border-radius: 8px;
  border: 1px solid gainsboro;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  animation: revealUp linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

.proj-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 18px 44px rgba(72,61,139,0.13);
  border-color: plum;
}

.proj-top-band {
  height: 8px;
  transition: height 0.3s ease;
}

.proj-card:hover .proj-top-band {
  height: 12px;
}

.proj-card:nth-child(1) .proj-top-band { background-color: mediumorchid; }
.proj-card:nth-child(2) .proj-top-band { background-color: coral; }
.proj-card:nth-child(3) .proj-top-band { background-color: mediumturquoise; }

.proj-body {
  padding: 24px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: white;
}

.proj-number {
  font-family: Verdana, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.proj-card:nth-child(1) .proj-number { color: mediumorchid; }
.proj-card:nth-child(2) .proj-number { color: coral; }
.proj-card:nth-child(3) .proj-number { color: mediumturquoise; }

.proj-body h3 {
  font-size: 1rem;
  color: midnightblue;
  margin-bottom: 10px;
  transition: color 0.25s;
}

.proj-card:hover .proj-body h3 {
  color: mediumorchid;
}

.proj-body p {
  font-size: 0.82rem;
  color: slategray;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.proj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.proj-chip {
  font-family: Verdana, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  transition: transform 0.2s ease;
  cursor: default;
}

.proj-chip:hover {
  transform: translateY(-2px);
}

.proj-card:nth-child(1) .proj-chip { background-color: lavender;  color: slateblue;  border: 1px solid mediumpurple; }
.proj-card:nth-child(2) .proj-chip { background-color: mistyrose; color: tomato;     border: 1px solid lightsalmon; }
.proj-card:nth-child(3) .proj-chip { background-color: honeydew;  color: seagreen;   border: 1px solid mediumseagreen; }

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: Verdana, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 8px 0;
  border-bottom: 1.5px solid gainsboro;
  margin-top: auto;
  width: fit-content;
  transition: gap 0.3s ease, opacity 0.25s;
}

.proj-card:nth-child(1) .proj-link { border-color: mediumpurple;   color: slateblue; }
.proj-card:nth-child(2) .proj-link { border-color: lightsalmon;     color: coral; }
.proj-card:nth-child(3) .proj-link { border-color: mediumseagreen;  color: seagreen; }

.proj-link:hover {
  gap: 14px;
  opacity: 0.75;
  text-decoration: none;
}

.proj-link .tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: bold;
  color: white;
  transition: transform 0.25s ease;
}

.proj-link:hover .tick {
  transform: rotate(15deg) scale(1.15);
}

.proj-card:nth-child(1) .tick { background-color: mediumpurple; }
.proj-card:nth-child(2) .tick { background-color: tomato; }
.proj-card:nth-child(3) .tick { background-color: mediumseagreen; }


/* ═══════════════════════════════════════════════
   CONTACT.HTML
═══════════════════════════════════════════════ */

.contact-intro {
  background-color: midnightblue;
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
}

.contact-intro::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(221,160,221,0.12);
  pointer-events: none;
  animation: ringPulse 5s ease-in-out infinite;
}

.contact-intro .eyebrow {
  color: plum;
  animation: fadeUp 0.5s 0.1s ease both;
}

.contact-intro h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: normal;
  color: white;
  margin-bottom: 12px;
  animation: fadeUp 0.5s 0.25s ease both;
}

.contact-intro p {
  color: lightsteelblue;
  font-size: 0.94rem;
  max-width: 480px;
  animation: fadeUp 0.5s 0.4s ease both;
}

.contact-band {
  padding: 64px 48px;
  background-color: ghostwhite;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
  max-width: 960px;
}

.contact-side-title {
  font-size: 1.1rem;
  font-weight: normal;
  color: midnightblue;
  margin-bottom: 6px;
  animation: revealLeft linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

.contact-side-sub {
  font-size: 0.85rem;
  color: slategray;
  margin-bottom: 28px;
  line-height: 1.7;
  animation: revealLeft linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

.reach-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
  transition: transform 0.25s ease;
  animation: revealLeft linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

.reach-item:hover {
  transform: translateX(6px);
}

.reach-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: mediumorchid;
  flex-shrink: 0;
  margin-top: 5px;
  transition: transform 0.25s ease, box-shadow 0.25s;
}

.reach-item:hover .reach-dot {
  transform: scale(1.5);
  box-shadow: 0 0 0 4px rgba(186,85,211,0.15);
}

.reach-label {
  font-family: Verdana, sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: mediumorchid;
  margin-bottom: 3px;
}

.reach-val {
  font-size: 0.88rem;
  color: darkslategray;
}

.contact-card {
  background-color: white;
  border: 1px solid gainsboro;
  border-radius: 10px;
  padding: 36px 32px;
  transition: box-shadow 0.3s ease;
  animation: revealRight linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

.contact-card:hover {
  box-shadow: 0 8px 34px rgba(153,50,204,0.09);
}

.contact-card h2 {
  font-size: 1.4rem;
  font-weight: normal;
  color: midnightblue;
  margin-bottom: 6px;
}

.contact-card > p {
  font-size: 0.85rem;
  color: slategray;
  margin-bottom: 28px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form label {
  display: block;
  font-family: Verdana, sans-serif;
  font-size: 0.67rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: darkslategray;
  margin-bottom: 7px;
  transition: color 0.2s;
}

.contact-form div:focus-within label {
  color: mediumorchid;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid gainsboro;
  border-radius: 4px;
  font-family: Georgia, serif;
  font-size: 0.88rem;
  color: darkslategray;
  background-color: ghostwhite;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: mediumorchid;
  box-shadow: 0 0 0 3px rgba(186,85,211,0.1);
  background-color: white;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}


/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */

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

@media (max-width: 860px) {
  .top-bar        { padding: 0 24px; }
  .nav-links      { display: none; }
  .hamburger-label { display: flex; }

  .home-intro {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .intro-left  { padding: 56px 28px; order: 2; }

  .intro-right {
    padding: 48px 28px;
    order: 1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    align-items: flex-start;
  }

  .intro-info-blocks { flex: 1; min-width: 240px; }
  .about-intro-grid  { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid      { grid-template-columns: 1fr; gap: 32px; }

  .page-band             { padding: 52px 28px; }
  .projects-intro,
  .contact-intro         { padding: 52px 28px; }
  .projects-grid-band,
  .contact-band          { padding: 48px 28px; }
  .bottom-bar            { padding: 20px 24px; }
}

@media (max-width: 600px) {
  .intro-left  { padding: 44px 20px; order: 2; }

  .intro-right {
    padding: 36px 20px;
    flex-direction: column;
    align-items: center;
    order: 1;
  }

  .profile-photo-wrap          { width: 150px; height: 150px; }
  .profile-photo-wrap::before,
  .profile-photo-wrap::after   { display: none; }
  .profile-photo,
  .profile-placeholder         { width: 150px; height: 150px; font-size: 2.2rem; }
  .intro-info-blocks           { width: 100%; }
  .skills-grid                 { grid-template-columns: 1fr; }
  .projects-row                { grid-template-columns: 1fr; }

  .page-band,
  .projects-grid-band,
  .projects-intro,
  .contact-intro,
  .contact-band  { padding: 40px 20px; }

  .edu-card      { flex-direction: column; }
  .edu-stripe    { width: 100%; height: 6px; background: linear-gradient(to right, mediumorchid, steelblue); }
  .edu-body      { padding: 22px 20px; }
  .edu-meta      { gap: 16px; }

  .section-head h2 { font-size: 1.5rem; }
  .contact-card    { padding: 24px 18px; }

  .bottom-bar {
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .about-intro-grid { grid-template-columns: 1fr; }
}
