/* 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;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

@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: flex-end;
    justify-content: center;
    text-align: right;
  }

  .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);
}

.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: #0c0c0c;
  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: black;
  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);
  transition: transform 0.7s;
  cursor: grab;
}

.image-container span {
  --deg: calc(var(--i) * 45deg);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 180px;
  /* remove the duplicate transform above */
  transform: translate(-50%, -50%) rotateY(var(--deg)) translateZ(400px);
  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 h4 {
  margin-top: 0.6rem;
  font-weight: 600;
  font-size: 1rem;
  pointer-events: none;
  user-select: none;
}


.education-section {
  background: #0c0c0c;
  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: 100%;
    left: 0;
    right: 0;
  }

  .timeline-line {
    left: 8px;
  }

  #timeline-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;
  }

}

.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: #111;
  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: 120px;
    height: 140px;
    transform: translate(-50%, -50%) rotateY(calc(var(--i) * 30deg)) translateZ(250px);
  }

  .image-container span img {
    width: 90px;
    height: 90px;
  }

  .image-container span h4 {
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .image-container {
    width: 200px;
    height: 200px;
    transform: perspective(600px) rotateY(0deg);
  }

  .image-container span {
    width: 100px;
    height: 120px;
    transform: translate(-50%, -50%) rotateY(calc(var(--i) * 29.5deg)) translateZ(180px);
  }

  .image-container span img {
    width: 70px;
    height: 70px;
  }

  .image-container span h4 {
    font-size: 0.75rem;
  }
}

.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) {

  section,
  .about-columns,
  .connect-container,
  form,
  .timeline-wrapper {
    text-align: right;
  }

  .hero img {
    width: 80%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .hero,
  .about-columns,
  .connect-container {
    align-items: center !important;
    justify-content: space-evenly !important;
    gap: 1rem !important;
    padding: 1rem !important;
    text-align: center;
  }

  .tagline {
    font-size: 0.9rem;
    padding: 0 1rem;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    text-align: center;
    display: block;
  }

  .hero {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
  }

  .hero-text {
    text-align: center;
    width: 100%;
  }

  .hero-text h2,
  .hero-text span,
  .hero .explore {
    text-align: center;
    margin: 0 auto;
  }

  .hero .explore {
    display: inline-block;
    margin-top: 1.5rem;
  }

  .hero img {
    max-width: 80%;
    margin-top: 1rem;
  }

  nav a {
    margin-left: 0 !important;
    margin-right: 1rem !important;
  }

  /* For form elements */
  form,
  input,
  textarea {
    align-items: center;
    text-align: center;
  }

  input,
  textarea {
    width: 100%;
    max-width: 500px;
    height: 40px;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 1rem;
  }

  textarea {
    height: 120px;
    resize: vertical;
  }

  .card,
  .timeline-item {
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  header,
  .nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    text-align: center !important;
    min-height: auto !important;
    height: auto !important;
  }

  header {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}

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);
}

html,
body,
*,
#repo,
.image-container,
#services,
.skill-badge,
h3,.connect-btn  {
  cursor:url('./pictures/icons8-cursor-48.png') 16 16, default !important;
}
