/* body, a, button, input, textarea {
  cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgdmVyc2lvbj0iMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMSIgc3Ryb2tlPSIjYjlmZjM0IiBzdHJva2Utd2lkdGg9IjIiIGZpbGw9Im5vbmUiLz4KICA8cG9seWdvbiBwb2ludHM9IjIgMiAxOCAxMiAyIDIyIiBmaWxsPSIjYjlmZjM0Ii8+Cjwvc3ZnPg=='), auto;
} */

:root {
  --primary: #b9ff34;
  --background: #0c0c0c;
  --card-bg: #1a1a1a;
  --text: white;
  --gray: #888;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

@font-face {
  font-family: 'Rustico';
  src: url('./fonts/Rustico-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Regular */
@font-face {
  font-family: 'Avenir LT Std';
  src: url('./fonts/AvenirLTStd-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Google Sans';
  src: url('./fonts/Google_Sans/ProductSans-Bold.woff') format('woff2'),
    url('path/to/fonts/GoogleSans-Regular.woff') format('woff'),
    url('path/to/fonts/GoogleSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: var(--background);
}

header h1 {
  color: var(--primary);
  font-weight: 800;
}

nav a {
  color: var(--text);
  margin-left: 2rem;
  text-decoration: none;
  font-weight: 600;
}

nav a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

nav a:hover {
  color: #a3e635;
}

.nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

@media (min-width: 320px) and (max-width: 480px) {
  .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .nav a {
    margin-left: 0;
    margin: 10px 0;
  }
}

.hero {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  padding: 4rem 2rem;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  box-sizing: border-box;

}

.hero-text h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  max-width: 600px;
  color: var(--primary);
  font-family: 'Avenir LT Std', sans-serif;
}

.hero .explore {
  display: inline-block;
  margin-top: 2rem;
  background: var(--primary);
  color: black;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.3s ease;
}

.hero .explore:hover {
  background: #a3e635;
  transform: scale(1.05);
}

.hero img {
  width: auto;
  max-width: 600px;
  border-radius: 12px;
  margin-top: 2rem;
  height: auto;
  transition: box-shadow 0.5s ease, transform 0.5s ease, border-radius 0.5s ease;
}

.hero img:hover {
  box-shadow: 0 0 20px rgba(185, 255, 52, 0.6),
    0 0 40px rgba(185, 255, 52, 0.4);
  transform: scale(1.03);
  border-radius: 20px;
}

@media (max-width: 350px) {
  .hero {
    flex-wrap: wrap;
  }

  .hero-text,
  .hero img {
    flex: 1 1 100%;
    max-width: 80%;
    min-width: 0;
    text-align: center;
  }

  .hero img {
    margin-top: 1.5rem;
  }
}

.white-text {
  color: white;
}

.green-text {
  color: var(--primary);
}

#tsparticles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

#social-media a {
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
}

#social-media a:hover {
  color: #a3e635;
  transform: scale(1.1);
}

/* Wrapper circle for LeetCode to give background */
.leetcode-circle {
  background-color: var(--primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leetcode-circle {
  position: relative;
  left: 15px;
  display: inline-flex;
  align-items: center;
  transition: left 0.3s ease;
}

.leetcode-circle:hover {
  transform: scale(1.03);
  /* box-shadow: 0 0 8px var(--primary); */

}


.leetcode-icon {
  width: 20px;
  height: 20px;
  filter: none;
  background-color: #a3e635;
  border-radius: 4px;
  padding: 2px;
  box-sizing: content-box;
  transition: transform 0.3s ease;
  vertical-align: middle;
  display: inline-block;
}


.tagline {
  margin-top: 1rem;
  font-size: 1.25rem;
  color: #b9ff34;
  /* glowing green */
  font-weight: 600;
  text-shadow: 0 0 4px rgba(185, 255, 52, 0.4);
  font-family: sans-serif;
  min-height: 1.5em;
  /* prevent jumping */
}

.typed-text {
  font-weight: 700;
}

.cursor {
  display: inline-block;
  background: #b9ff34;
  margin-left: 2px;
  width: 2px;
  animation: blink 0.7s infinite;
  vertical-align: bottom;
  height: 1.2em;
}

@keyframes blink {

  0%,
  50%,
  100% {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0;
  }
}

.tagline-container {
  width: 600px;
  display: flex;
  justify-content: left;
  align-items: center;
  text-align: center;
}


section {
  padding: 4rem 2rem;
  scroll-margin-top: 100px;
}

section h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;

}

.card img:hover {
  transform: scale(1.05) rotateZ(-8deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

.image-wrapper img {
  width: 100%;
  transition: opacity 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.image-wrapper img.hover-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.card:hover .image-wrapper img.default-img {
  opacity: 0;
  transform: scale(1.08);
  box-shadow: 0 10px 20px rgba(163, 230, 45, 0.4);
  border: 1px solid rgba(163, 230, 45, 0.6);
}

.card:hover .image-wrapper img.hover-img {
  opacity: 1;
  transform: scale(1.08);
  box-shadow: 0 10px 20px rgba(163, 230, 45, 0.4);
  border: 1px solid rgba(163, 230, 45, 0.6);
}




.card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card button {
  background-color: #b9ff34;
  color: #000;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 1rem;
}

.card button:hover {
  background-color: #a3e62d;
  transform: translateY(-3px);
}


.about-section {
  padding: 4rem 2rem;
  background: transparent;
  color: white;
}

.about-section h3 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 2.5rem;
  font-family: 'Avenir LT Std', sans-serif;
}

.about-columns {
  display: flex;
  gap: 3rem;
  max-width: 1000px;
  margin: auto;
  flex-wrap: wrap;
}

.about-left,
.about-right {
  flex: 1 1 450px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.highlight {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .about-columns {
    flex-direction: column;
  }

  .about-left,
  .about-right {
    width: 100%;
  }
}

#services {
  background: transparent;
  color: white;
  padding: 3rem 1rem;
  text-align: center;
  overflow: visible;
}

#services h3 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary, crimson);
  font-family: 'Avenir LT Std', sans-serif;
}

.image-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 2rem;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateY(0deg);
  cursor: grab;
}

.image-container span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 160px;
  transform: translate(-50%, -50%) rotateY(var(--deg)) translateZ(480px);
  transform-origin: center center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  box-sizing: border-box;
  user-select: none;
  pointer-events: none;
  transform-style: preserve-3d;
}


.image-container span img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.image-container span a {
  margin-top: 0.6rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: inherit;
}



.education-section {
  background: transparent;
  padding: 4rem 2rem;
}

.education-section h3 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 3rem;
  font-family: 'Avenir LT Std', sans-serif;
}

.timeline-wrapper {
  position: relative;
  max-width: 1000px;
  margin: auto;
  padding: 0 2rem;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: #333;
  transform: translateX(-50%);
}

#timeline-progress {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 10px 02px var(--primary);
  transition: top 0.3s ease-out;
  z-index: 2;
}

.timeline {
  position: relative;
}

.timeline-item {
  width: 45%;
  padding: 1rem 2rem;
  background: #1a1a1a;
  color: white;
  border-radius: 12px;
  position: relative;
  margin: 3rem 0;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.timeline-item.active {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left {
  left: 0;
  margin-right: auto;
}

.timeline-item.right {
  right: 0;
  margin-left: auto;
}

.timeline-content h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: #ccc;
  margin-bottom: 0.2rem;
}

.timeline-content span {
  color: #888;
  font-size: 0.9rem;
}

@media (max-width: 768px) {

  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    width: calc(100% - 28px);
    left: 0;
    right: 0;
    margin-left: 28px !important;
  }

  .timeline-line {
    left: 8px !important;
  }

  #timeline-progress,
  #certification-progress,
  #internship-progress,
  #hackathon-progress {
    left: 50% !important;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
  }

}

.timeline-item.active:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(185, 255, 52, 0.4), 0 0 20px rgba(185, 255, 52, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

:root {
  --primary: #b9ff34;
  --primary-dark: #9acc2a;
}

.connect {
  background: transparent;
  padding: 4rem 2rem;
  color: white;
  overflow: hidden;
}

.connect-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  align-items: flex-start;
}

.connect-info {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.connect-info h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Avenir LT Std', sans-serif;
}

.connect-info p {
  color: #ccc;
  line-height: 1.5;
}

.connect-info .connect-btn {
  display: inline-block;
  background: var(--primary);
  color: black;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(185, 255, 52, 0.5);
  transition: background 0.3s ease, transform 0.3s ease;
  margin-top: 1rem;
}

.connect-info .connect-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(185, 255, 52, 0.8);
}



form {
  flex: 2 1 600px;
  background: #222;
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 2px solid rgba(185, 255, 52, 0.4);
  box-shadow: 0 0 15px rgba(185, 255, 52, 0.5), 0 0 30px rgba(185, 255, 52, 0.2);
  transition: box-shadow 0.3s ease-in-out;
}

form:hover {
  box-shadow: 0 0 25px rgba(185, 255, 52, 0.8), 0 0 40px rgba(185, 255, 52, 0.5);
}

form input,
form textarea {
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid #333;
  background: #333;
  color: white;
  resize: vertical;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

form input::placeholder,
form textarea::placeholder {
  color: #bbb;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: rgb(185, 255, 52);
  box-shadow: 0 0 10px rgba(185, 255, 52, 0.8), 0 0 20px rgba(185, 255, 52, 0.6);
}

form button {
  background: rgb(185, 255, 52);
  color: #000;
  border: none;
  padding: 1rem;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 15px rgba(185, 255, 52, 0.6), 0 0 30px rgba(185, 255, 52, 0.4);
}

form button:hover {
  background: #d3ff3d;
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(185, 255, 52, 0.9), 0 0 45px rgba(185, 255, 52, 0.6);
}

@media (max-width: 768px) {
  .connect-container {
    flex-direction: column;
  }

  form {
    width: 100%;
  }
}

footer {
  text-align: center;
  padding: 2rem;
  background: var(--background);
  color: var(--gray);
}

@media (max-width: 768px) {
  .connect-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .image-container {
    width: 250px;
    height: 250px;
    transform: perspective(800px) rotateY(0deg);
  }

  .image-container span {
    width: 100px;
    height: 120px;
    transform: translate(-50%, -50%) rotateY(var(--deg)) translateZ(280px);
  }

  .image-container span img {
    width: 70px;
    height: 70px;
  }

  .image-container span h4 {
    font-size: 0.75rem;
  }
}

@media (max-width: 400px) {
  .image-container {
    width: 200px;
    height: 200px;
    transform: perspective(600px) rotateY(0deg);
  }

  .image-container span {
    width: 80px;
    height: 100px;
    transform: translate(-50%, -50%) rotateY(var(--deg)) translateZ(200px);
  }

  .image-container span img {
    width: 55px;
    height: 55px;
  }

  .image-container span h4 {
    font-size: 0.65rem;
  }
}

.timeline-date {
  position: absolute;
  top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.timeline-item.left .timeline-date {
  right: -140px;
  text-align: left;
}

.timeline-item.right .timeline-date {
  left: -140px;
  text-align: right;
}

.btn-view {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: var(--primary);
  color: black;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-view:hover {
  background: #a6ff00;
  box-shadow: 0 0 10px rgba(185, 255, 52, 0.5);
}

#certification-progress {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 20px 2px var(--primary);
  transition: top 0.3s ease-out;
  z-index: 2;
}

.skill-badge {
  display: inline-block;
  background-color: #a4d129;
  color: #222 !important;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 4px 6px 4px 0;
  user-select: none;
  box-shadow: 0 0 8px #b9ff34aa;
  cursor: default;
  transition: background-color 0.3s ease;
}

.skill-badge:hover {
  background-color: #59750c;
  /* slightly darker green on hover */
  box-shadow: 0 0 10px #8bb31fcc;
}

@media (max-width: 768px) {
  .timeline-date {
    position: static;
    text-align: center;
    margin-bottom: 0.3rem;
  }
}

@media (max-width: 580px) {

  /* ── Global overflow guard ── */
  section,
  .hero,
  .about-columns,
  .connect-container,
  form,
  .timeline-wrapper,
  .card,
  .about-left,
  .about-right {
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* ── Global section spacing ── */
  section {
    padding: 2rem 0.8rem;
    scroll-margin-top: 70px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  section h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }

  section,
  .about-columns,
  .connect-container,
  form,
  .timeline-wrapper {
    text-align: center;
  }

  /* ── Header & Nav ── */
  header,
  .nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    padding: 0.5rem 0.5rem !important;
    text-align: center !important;
    min-height: auto !important;
    height: auto !important;
  }

  header {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  header h1 {
    font-size: 1.3rem;
  }

  nav a {
    margin: 0 0.4rem !important;
    font-size: 0.85rem;
  }

  /* ── Hero — reset full-bleed trick ── */
  .hero {
    position: static !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem !important;
  }

  .hero-text {
    text-align: center;
    width: 100%;
  }

  .hero-text h2 {
    font-size: 1.8rem;
    text-align: center;
    margin: 0 auto;
  }

  .hero-text span,
  .hero .explore {
    text-align: center;
    margin: 0 auto;
  }

  .hero .explore {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.4rem;
    font-size: 0.85rem;
  }

  .hero img {
    width: 70%;
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0.5rem auto 0;
  }

  .tagline {
    font-size: 0.82rem;
    padding: 0 0.5rem;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    text-align: center;
    display: block;
  }

  .tagline-container {
    width: 100%;
    justify-content: center;
  }

  /* ── About Section ── */
  .about-section {
    padding: 2rem 0.8rem;
  }

  .about-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .about-columns {
    gap: 1rem;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  .about-left,
  .about-right {
    font-size: 0.88rem;
    line-height: 1.6;
    gap: 0.8rem;
    max-width: 100%;
  }

  /* ── Education / Timeline Sections ── */
  .education-section {
    padding: 2rem 0.5rem;
    overflow-x: hidden;
  }

  .education-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .timeline-wrapper {
    padding: 0 0.3rem;
    overflow: hidden;
  }

  .timeline-line {
    left: 6px !important;
    width: 3px;
  }

  #timeline-progress,
  #certification-progress,
  #internship-progress,
  #hackathon-progress {
    left: 50% !important;
    width: 10px;
    height: 10px;
  }

  .timeline-item {
    width: calc(100% - 20px) !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0.6rem 0.7rem;
    margin: 0.8rem 0;
    margin-left: 20px !important;
    margin-right: 0 !important;
    border-radius: 8px;
    font-size: 0.85rem;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .timeline-content h4 {
    font-size: 0.88rem;
    margin-bottom: 0.2rem;
  }

  .timeline-content p {
    font-size: 0.78rem;
    margin-bottom: 0.1rem;
    line-height: 1.4;
  }

  .timeline-content span {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .timeline-date {
    font-size: 0.7rem !important;
  }

  /* ── Skill badges (inside timeline) ── */
  .skill-badge {
    padding: 4px 8px;
    font-size: 0.72rem;
    margin: 2px 3px 2px 0;
  }

  .btn-view {
    padding: 0.3rem 0.6rem;
    font-size: 0.78rem;
    margin-top: 0.4rem;
  }

  #box {
    margin-top: 0.4rem;
  }

  /* ── Project Cards (MY WORK) ── */
  .grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }

  .card {
    width: 100%;
    max-width: 320px;
    padding: 1rem;
    border-radius: 10px;
    align-items: center;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .card img {
    height: 140px;
    border-radius: 8px;
    margin-bottom: 0.6rem;
  }

  .card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
  }

  .card p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .card button {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    margin-top: 0.6rem;
  }

  /* ── Skills (3D Carousel) ── */
  #services {
    padding: 2rem 0.5rem;
  }

  #services h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  /* ── Connect / Contact ── */
  .connect {
    padding: 2rem 0.8rem;
  }

  .connect-container {
    flex-direction: column;
    align-items: center !important;
    gap: 1.5rem;
  }

  .connect-info {
    align-items: center;
    text-align: center;
  }

  .connect-info h3 {
    font-size: 1.4rem;
    text-align: center;
  }

  .connect-info p {
    font-size: 0.88rem;
    text-align: center;
  }

  .connect-info .connect-btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.85rem;
    border-radius: 10px;
    margin: 0.5rem auto 0;
    display: inline-block;
  }

  form {
    padding: 1.2rem;
    gap: 0.8rem;
    border-radius: 10px;
    align-items: center;
    text-align: center;
  }

  form input,
  form textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.7rem;
    font-size: 0.88rem;
    border-radius: 8px;
    box-sizing: border-box;
  }

  form textarea {
    height: 100px;
    resize: vertical;
  }

  form button {
    padding: 0.7rem;
    font-size: 0.88rem;
    border-radius: 8px;
  }

  /* ── Social Media ── */
  #social-media a {
    font-size: 1.5rem !important;
    margin: 0 0.6rem !important;
  }

  .leetcode-circle {
    width: 34px;
    height: 34px;
  }

  .leetcode-icon {
    width: 16px;
    height: 16px;
  }

  /* ── Footer ── */
  footer {
    padding: 1.2rem;
    font-size: 0.82rem;
  }
}

h3 {
  display: table;
  margin: 0 auto;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), rgba(185, 255, 52, 0.7));
  box-shadow: 0 0 5px rgba(185, 255, 52, 0.5);
  border-radius: 1px;
  transition: width 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

h3:hover::after {
  width: 100%;
  opacity: 1;
  box-shadow: 0 0 8px rgba(185, 255, 52, 0.9);
}

#internships .timeline-date {
  position: absolute;
  top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  z-index: 5;
  /* Above timeline */
}

#internships .timeline-item.left .timeline-date {
  left: calc(100% + 75px);
  right: auto;
  text-align: left;
}

#internships .timeline-item.right .timeline-date {
  right: calc(100% + 75px);
  left: auto;
  text-align: right;
}

@media (max-width: 768px) {

  #internships .timeline-item.left .timeline-date,
  #internships .timeline-item.right .timeline-date {
    position: relative;
    left: 0;
    right: auto;
    top: 0;
    text-align: left;
    display: block;
    margin-bottom: 10px;
    padding: 0;
  }
}

#internship-progress {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: var(--primary);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(185, 255, 52, 0.9), 0 0 25px rgba(185, 255, 52, 0.6);
  transition: top 0.3s ease-out;
  z-index: 2;
}

@media (max-width: 768px) {

  .timeline-item.left .timeline-date,
  .timeline-item.right .timeline-date {
    right: auto;
    left: 50px;
    top: -30px;
  }
}

#hackathon-progress {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: var(--primary);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(185, 255, 52, 0.9), 0 0 25px rgba(185, 255, 52, 0.6);
  transition: top 0.3s ease-out;
  z-index: 2;
}

#hackathons .timeline-date {
  position: absolute;
  top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  z-index: 5;
}

#hackathons .timeline-item.left .timeline-date {
  left: calc(100% + 75px);
  right: auto;
  text-align: left;
}

#hackathons .timeline-item.right .timeline-date {
  right: calc(100% + 75px);
  left: auto;
  text-align: right;
}

@media (max-width: 768px) {

  #hackathons .timeline-item.left .timeline-date,
  #hackathons .timeline-item.right .timeline-date {
    position: relative;
    left: 0;
    right: auto;
    top: 0;
    text-align: left;
    display: block;
    margin-bottom: 10px;
  }
}

/* ═══ Achievements Gallery ═══ */
.achievements-section {
  background: transparent;
  padding: 4rem 2rem;
  text-align: center;
  overflow: visible;
}

.achievements-section h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: 'Avenir LT Std', sans-serif;
}

.achievements-subtitle {
  color: #888;
  font-size: 1.05rem;
  margin-bottom: 3rem;
  letter-spacing: 0.03em;
}

.achievements-gallery-container {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto 2rem;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateY(0deg);
  cursor: grab;
}

/* ── Glass Card Styling with Blue Backface Glow ── */
.achievements-gallery-container span {
  --deg: calc(var(--i) * 45deg);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 220px;
  transform: translate(-50%, -50%) rotateY(var(--deg)) translateZ(420px);
  transform-origin: center center;
  /* Glassmorphism */
  background: rgba(20, 20, 35, 0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(100, 160, 255, 0.18);
  border-radius: 18px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
  user-select: none;
  pointer-events: auto;
  cursor: pointer;
  transform-style: preserve-3d;
  /* Blue glow + shadow */
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(60, 130, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.3s ease, opacity 0.5s ease, filter 0.5s ease;
}

.achievements-gallery-container span:hover {
  border-color: rgba(100, 160, 255, 0.45);
  box-shadow:
    0 6px 30px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(60, 130, 255, 0.35),
    0 0 60px rgba(60, 130, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Blue glow trail effect — applied dynamically via JS class */
.achievements-gallery-container span.ach-back {
  border-color: rgba(60, 130, 255, 0.3);
  opacity: 0.35;
  filter: blur(2.5px) brightness(0.6);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(60, 130, 255, 0.3),
    0 0 50px rgba(60, 130, 255, 0.12),
    inset 0 0 12px rgba(60, 130, 255, 0.08);
}

.achievements-gallery-container span.ach-front {
  border-color: rgba(185, 255, 52, 0.25);
  opacity: 1;
  filter: blur(0px) brightness(1);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(185, 255, 52, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* "Click to view" hint */
.achievements-gallery-container span::after {
  content: '🔍 View';
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(100, 160, 255, 0.7);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.achievements-gallery-container span:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.achievements-gallery-container span img {
  width: 140px;
  height: 140px;
  border-radius: 14px;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  border: 2px solid rgba(100, 160, 255, 0.15);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.achievements-gallery-container span:hover img {
  border-color: rgba(100, 160, 255, 0.4);
  box-shadow: 0 0 16px rgba(60, 130, 255, 0.2);
}

.achievements-gallery-container span h4 {
  margin-top: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  text-shadow: 0 0 6px rgba(185, 255, 52, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ── Achievement Detail Modal ── */
#achievementModal {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#achievementModal .modal-container.achievement-modal-content {
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  max-width: 680px;
  width: 92vw;
  box-sizing: border-box;
  transform: scale(0.92) translateY(30px);
}

#achievementModal.active .modal-container.achievement-modal-content {
  transform: scale(1) translateY(0);
}

.achievement-modal-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.achievement-modal-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to top, #1a1a1a, transparent);
  pointer-events: none;
}

.achievement-modal-image {
  width: 100%;
  max-height: 55vh;
  object-fit: contain;
  display: block;
  background: #111;
  transition: transform 0.6s ease;
}

.achievement-modal-content:hover .achievement-modal-image {
  transform: scale(1.02);
}

.achievement-modal-body {
  padding: 1rem 1.5rem 0.8rem;
}

.achievement-modal-badge {
  color: #5eaaff;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-block;
  background: rgba(60, 130, 255, 0.1);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(60, 130, 255, 0.2);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.achievement-modal-body h2 {
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.achievement-modal-desc {
  color: #999;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.achievement-modal-date-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #666;
  font-size: 0.9rem;
}

.achievement-modal-date-row i {
  color: #5eaaff;
  font-size: 0.95rem;
}

.achievement-modal-actions {
  display: flex;
  gap: 0.8rem;
  padding: 0.8rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 24px 24px;
}

/* Responsive: tablets & medium screens */
@media (max-width: 768px) {
  .achievements-section {
    padding: 3rem 1rem;
    overflow: visible;
    text-align: center;
  }

  .achievements-gallery-container {
    width: 260px;
    height: 260px;
    margin: 0 auto 2rem;
    transform: perspective(900px) rotateY(0deg);
    will-change: transform;
  }

  .achievements-gallery-container span {
    width: 120px;
    height: 155px;
    padding: 10px;
    transform: translate(-50%, -50%) rotateY(calc(var(--i) * 40deg)) translateZ(240px);
    /* Performance: disable expensive effects on mobile */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(20, 20, 35, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
    will-change: transform, opacity;
  }

  .achievements-gallery-container span:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  }

  .achievements-gallery-container span.ach-back {
    opacity: 0.3;
    filter: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .achievements-gallery-container span.ach-front {
    opacity: 1;
    filter: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  }

  .achievements-gallery-container span::after {
    display: none;
  }

  .achievements-gallery-container span img {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(100, 160, 255, 0.1);
    transition: none;
  }

  .achievements-gallery-container span:hover img {
    box-shadow: none;
  }

  .achievements-gallery-container span h4 {
    font-size: 0.75rem;
    margin-top: 0.3rem;
  }
}

/* Responsive: small phones */
@media (max-width: 600px) {
  .achievements-section {
    padding: 2.5rem 0.5rem;
    overflow: visible;
    text-align: center;
  }

  .achievements-gallery-container {
    width: 200px;
    height: 220px;
    margin: 0 auto 2rem;
    transform: perspective(600px) rotateY(0deg);
    will-change: transform;
  }

  .achievements-gallery-container span {
    width: 90px;
    height: 120px;
    padding: 8px;
    transform: translate(-50%, -50%) rotateY(calc(var(--i) * 40deg)) translateZ(160px);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(20, 20, 35, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: opacity 0.2s ease;
    will-change: transform, opacity;
  }

  .achievements-gallery-container span:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .achievements-gallery-container span.ach-back {
    opacity: 0.25;
    filter: none;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
  }

  .achievements-gallery-container span.ach-front {
    opacity: 1;
    filter: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .achievements-gallery-container span::after {
    display: none;
  }

  .achievements-gallery-container span img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(100, 160, 255, 0.1);
    transition: none;
  }

  .achievements-gallery-container span:hover img {
    box-shadow: none;
  }

  .achievements-gallery-container span h4 {
    font-size: 0.65rem;
    margin-top: 0.2rem;
  }

  #achievementModal .modal-container.achievement-modal-content {
    width: 94vw;
    max-width: 94vw;
    max-height: 95vh;
    border-radius: 16px;
  }

  .achievement-modal-img-wrap {
    border-radius: 16px 16px 0 0;
  }

  .achievement-modal-image {
    max-height: 50vh;
    object-fit: contain;
  }

  .achievement-modal-body {
    padding: 0.8rem 1rem;
  }

  .achievement-modal-body h2 {
    font-size: 1.15rem;
  }

  .achievement-modal-desc {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .achievement-modal-actions {
    padding: 0.6rem 1rem;
    border-radius: 0 0 16px 16px;
  }
}

/* Responsive: extra small phones */
@media (max-width: 400px) {
  .achievements-section {
    padding: 2rem 0.25rem;
  }

  .achievements-gallery-container {
    width: 180px;
    height: 200px;
    margin: 0 auto 1.5rem;
    transform: perspective(500px) rotateY(0deg);
  }

  .achievements-gallery-container span {
    width: 75px;
    height: 100px;
    padding: 6px;
    transform: translate(-50%, -50%) rotateY(calc(var(--i) * 40deg)) translateZ(125px);
  }

  .achievements-gallery-container span img {
    width: 55px;
    height: 55px;
    border-radius: 6px;
    object-fit: cover;
  }

  .achievements-gallery-container span h4 {
    font-size: 0.6rem;
    margin-top: 0.15rem;
  }

  #achievementModal .modal-container.achievement-modal-content {
    width: 96vw;
    max-width: 96vw;
    max-height: 95vh;
    border-radius: 14px;
  }

  .achievement-modal-img-wrap {
    border-radius: 14px 14px 0 0;
  }

  .achievement-modal-image {
    max-height: 45vh;
    object-fit: contain;
  }

  .achievement-modal-body {
    padding: 0.6rem 0.8rem;
  }

  .achievement-modal-body h2 {
    font-size: 1.05rem;
  }

  .achievement-modal-desc {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .achievement-modal-actions {
    padding: 0.5rem 0.8rem;
    border-radius: 0 0 14px 14px;
  }
}

html,
body {
  overflow-x: hidden !important;
}

.timeline-wrapper {
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.timeline-line {
  overflow: visible !important;
}

.education-section,
#certifications,
#internships,
#hackathons,
#work,
#work1,
#about,
#contact {
  overflow: hidden !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

section {
  overflow: hidden !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .timeline-wrapper {
    padding: 0 0.5rem 0 1.5rem !important;
  }

  .timeline-line {
    left: 8px !important;
    width: 2px !important;
    overflow: visible !important;
  }

  #timeline-progress,
  #certification-progress,
  #internship-progress,
  #hackathon-progress {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 12px !important;
    height: 12px !important;
  }

  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 20px !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .timeline-date,
  .timeline-item.left .timeline-date,
  .timeline-item.right .timeline-date,
  #internships .timeline-item.left .timeline-date,
  #internships .timeline-item.right .timeline-date,
  #hackathons .timeline-item.left .timeline-date,
  #hackathons .timeline-item.right .timeline-date {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    white-space: normal !important;
    display: block !important;
    text-align: left !important;
    margin-bottom: 0.4rem !important;
  }
}

html,
body,
*,
#repo,
.image-container,
.achievements-gallery-container,
#services,
.skill-badge,
h3,
.connect-btn {
  cursor: url('./pictures/icons8-cursor-48.png') 16 16, default !important;
}
