* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Trebuchet MS", sans-serif;
}

:root {
  --bg-color: #080808;
  --second-bg-color: #121212;
  --third-bg-color: rgba(255, 255, 255, 0.2);
  --text-color: white;
  --main-color: #1db954;
  --white-color: #fff;
}

html {
  font-size: 60%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  position: relative;
}

/* ===== Tech Particles Background ===== */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -100;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  /* Mix of white and neon green dots */
  background: var(--main-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--main-color);
  opacity: 0;
  bottom: -10%;
  animation: floatUp 15s infinite linear;
}

/* Creating random particle positions and delays using nth-child */
.particle:nth-child(1) {
  left: 10%;
  width: 4px;
  height: 4px;
  animation-duration: 22s;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  left: 25%;
  width: 6px;
  height: 6px;
  animation-duration: 18s;
  animation-delay: 4s;
}
.particle:nth-child(3) {
  left: 40%;
  width: 3px;
  height: 3px;
  animation-duration: 25s;
  animation-delay: 2s;
  background: white;
  box-shadow: 0 0 8px white;
}
.particle:nth-child(4) {
  left: 55%;
  width: 5px;
  height: 5px;
  animation-duration: 15s;
  animation-delay: 7s;
}
.particle:nth-child(5) {
  left: 70%;
  width: 4px;
  height: 4px;
  animation-duration: 20s;
  animation-delay: 1s;
}
.particle:nth-child(6) {
  left: 85%;
  width: 7px;
  height: 7px;
  animation-duration: 19s;
  animation-delay: 5s;
}
.particle:nth-child(7) {
  left: 15%;
  width: 3px;
  height: 3px;
  animation-duration: 16s;
  animation-delay: 10s;
  background: white;
  box-shadow: 0 0 8px white;
}
.particle:nth-child(8) {
  left: 35%;
  width: 5px;
  height: 5px;
  animation-duration: 23s;
  animation-delay: 3s;
}
.particle:nth-child(9) {
  left: 60%;
  width: 4px;
  height: 4px;
  animation-duration: 21s;
  animation-delay: 8s;
}
.particle:nth-child(10) {
  left: 80%;
  width: 6px;
  height: 6px;
  animation-duration: 17s;
  animation-delay: 2s;
}
.particle:nth-child(11) {
  left: 5%;
  width: 5px;
  height: 5px;
  animation-duration: 24s;
  animation-delay: 6s;
}
.particle:nth-child(12) {
  left: 50%;
  width: 3px;
  height: 3px;
  animation-duration: 19s;
  animation-delay: 11s;
  background: white;
  box-shadow: 0 0 8px white;
}
.particle:nth-child(13) {
  left: 75%;
  width: 4px;
  height: 4px;
  animation-duration: 26s;
  animation-delay: 4s;
}
.particle:nth-child(14) {
  left: 95%;
  width: 5px;
  height: 5px;
  animation-duration: 18s;
  animation-delay: 9s;
}
.particle:nth-child(15) {
  left: 90%;
  width: 3px;
  height: 3px;
  animation-duration: 21s;
  animation-delay: 1s;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  50% {
    transform: translateY(-50vh) translateX(20px);
    opacity: 0.8;
  }
  85% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-120vh) translateX(-20px);
    opacity: 0;
  }
}

.header {
  width: 100%;
  padding: 2rem 5%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 1000;
  transition: top 0.5s ease-in-out;
}

.header.hidden {
  top: -100px;
}

.logo {
  font-size: 2.5rem;
  color: var(--main-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
  text-shadow: 0 0 25px var(--main-color);
  margin-left: 0;
}

.logo:hover {
  transform: scale(1.1);
}

.logo span {
  color: var(--text-color);
  text-shadow: none;
}

/* ===== Floating Pill Navbar ===== */
.pill-navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(29, 185, 84, 0.15);
  border-radius: 5rem;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2000;
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(29, 185, 84, 0.08);
}

.pill-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 4rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
}

.pill-nav-item i {
  font-size: 1.8rem;
  transition: color 0.3s ease;
}

.pill-nav-item span {
  color: inherit;
  transition: color 0.3s ease;
}

.pill-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.pill-nav-item.active {
  background: linear-gradient(135deg, #1db954, #1aa34a);
  color: #fff;
  box-shadow:
    0 0 20px rgba(29, 185, 84, 0.4),
    0 0 6px rgba(29, 185, 84, 0.2);
}

.pill-nav-item.active i {
  color: #fff;
}

.pill-nav-item.active span {
  color: #fff;
}

/* ===== Pill Navbar Responsive ===== */
@media (max-width: 992px) {
  .pill-navbar {
    padding: 0.5rem 0.8rem;
    gap: 0.2rem;
  }

  .pill-nav-item {
    padding: 0.7rem 1.2rem;
    font-size: 1.3rem;
  }

  .pill-nav-item i {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .pill-navbar {
    top: auto;
    bottom: 1.5rem;
    padding: 0.5rem 0.8rem;
    gap: 0.2rem;
    max-width: 95vw;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pill-navbar::-webkit-scrollbar {
    display: none;
  }

  .pill-nav-item span {
    display: none;
  }

  .pill-nav-item {
    padding: 1rem 1.2rem;
  }

  .pill-nav-item i {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .pill-navbar {
    bottom: 1rem;
    gap: 0.1rem;
    padding: 0.5rem 0.6rem;
  }

  .pill-nav-item {
    padding: 0.9rem 1rem;
  }

  .pill-nav-item i {
    font-size: 1.8rem;
  }
}

section {
  min-height: 100vh;
  padding: 10rem 12% 10rem;
  padding-right: 5%;
}
.home {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  justify-content: flex-start;
  padding-left: 5%;
  margin-top: 12rem;
}
span {
  color: var(--main-color);
}
.logo span {
  color: var(--text-color);
}
.home-content {
  text-align: left;
}
.home-content h3 {
  margin-bottom: 2rem;
  margin-top: 1rem;
  font-size: 3.5rem;
}
.home-content h1 {
  font-size: 6rem;
  font-weight: 700;
  margin-top: 1rem;
  line-height: 1.2;
}
.simple-hero {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1.15;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.hero-portrait {
  width: 100%;
  height: 100%;
  z-index: 1;
  position: relative;
  border-radius: 40px;
  background-color: #1a1a1e;
  object-fit: cover;
  object-position: top center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.05); /* Subtle border to define the card edge cleanly */
}

.simple-hero:hover .hero-portrait {
  transform: translateY(-10px);
  box-shadow: 0 25px 45px rgba(29, 185, 84, 0.3); /* Adds a soft green glow to the card itself on hover */
}

/* ===== Floating Icons ===== */
.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none; /* so cursor clicks pass through to underneath */
}

.float-icon {
  position: absolute;
  color: var(--main-color);
  font-size: 3.5rem;
  background: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(29, 185, 84, 0.3);
  box-shadow: 0 0 10px rgba(29, 185, 84, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-1 {
  top: 15%;
  left: -5%;
  animation: float-1 4s ease-in-out infinite;
}

.icon-2 {
  top: 65%;
  left: -15%;
  animation: float-2 5s ease-in-out infinite;
}

.icon-3 {
  top: 35%;
  right: -5%;
  animation: float-3 4.5s ease-in-out infinite;
}

@keyframes float-1 {
  0%,
  100% {
    transform: translateY(0) rotate(-10deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

@keyframes float-2 {
  0%,
  100% {
    transform: translateY(0) rotate(15deg) scale(0.9);
  }
  50% {
    transform: translateY(-10px) rotate(0deg) scale(1);
  }
}

@keyframes float-3 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(10deg);
  }
}

.home-content p {
  font-size: 1.5rem;
  flex: 1;
  text-align: left;
  max-width: 80%;
}
/* ===== UIverse Social Cards ===== */
.card {
  width: fit-content;
  height: fit-content;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 0;
  gap: 20px;
}

.socialContainer {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgb(44, 44, 44);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition-duration: 1s;
}

/* Instagram */
.containerOne:hover {
  background-color: #d62976;
  transition-duration: 0.3s;
}

/* LinkedIn */
.containerTwo:hover {
  background-color: #0072b1;
  transition-duration: 0.3s;
}

/* GitHub */
.containerThree:hover {
  background-color: #6e40c9;
  transition-duration: 0.3s;
}

.socialContainer:active {
  transform: scale(0.9);
  transition-duration: 0.3s;
}

.socialSvg {
  width: 17px;
}

.socialSvg path {
  fill: rgb(255, 255, 255);
}

.socialContainer:hover .socialSvg {
  animation: slide-in-top 0.3s both;
}

@keyframes slide-in-top {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.btn-grad {
  background-image: linear-gradient(
    to right,
    #3ca55c 0%,
    #b5ac49 51%,
    #3ca55c 100%
  );
  margin: 10px;
  padding: 15px 45px;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;
  box-shadow: 0 0 20px #eee;
  border-radius: 10px;
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-grad:hover {
  background-position: right center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 30px #3ca55c;
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ===== UIverse Download Button ===== */
.download-button {
  position: relative;
  border-width: 0;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  z-index: 1;
  text-decoration: none;
  display: inline-block;
  margin: 10px;
}

.download-button .docs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 15px 25px;
  border-radius: 10px;
  z-index: 1;
  background-color: #242a35;
  border: solid 1px #e8e8e82d;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
}

.download-button:hover {
  box-shadow:
    rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px,
    rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px,
    rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.download-button .download {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  margin: 0 auto;
  z-index: -1;
  border-radius: 4px;
  transform: translateY(0%);
  background-color: #01e056;
  border: solid 1px #01e0572d;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.download-button:hover .download {
  transform: translateY(100%);
}

.download-button .download svg polyline,
.download-button .download svg line {
  animation: docs-bounce 1s infinite;
}

@keyframes docs-bounce {
  0% {
    transform: translateY(0%);
  }
  50% {
    transform: translateY(-15%);
  }
  100% {
    transform: translateY(0%);
  }
}

/* ===== UIverse Contact Button ===== */
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #1a2e05;
  color: #a3e635;
  padding: 15px 45px;
  border-radius: 10px;
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  margin: 10px;
}

.contact-btn:hover {
  background-color: #1e3a06;
  box-shadow: 0 0 20px rgba(163, 230, 53, 0.3);
}

.contact-btn:active {
  border-color: #a3e635;
}

.contact-btn span {
  color: #a3e635;
  font-weight: 700;
}

.heading {
  font-size: 8rem;
  text-align: center;
  margin: 5rem 0;
}
.education {
  padding: 100px 15px;
  background: transparent;
}
.education h2 {
  margin-bottom: 5rem;
}
.timeline-items {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
.timeline-items::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  background-color: var(--main-color);
  left: calc(50% - 1px);
}
.timeline-item {
  margin-bottom: 40px;
  width: 100%;
  position: relative;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
}
.timeline-item:nth-child(even) {
  padding-left: calc(50% + 30px);
}
.timeline-dot {
  height: 21px;
  width: 21px;
  background-color: var(--main-color);
  box-shadow:
    0 0 25px var(--main-color),
    0 0 50px var(--main-color);
  position: absolute;
  left: calc(50% - 10.5px);
  border-radius: 50%;
  top: 10px;
}
.timeline-date {
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin: 6px 0 15px;
}
.timeline-content {
  background-color: var(--bg-color);
  border: 3px solid var(--main-color);
  padding: 30px 50px;
  border-radius: 4rem;
  box-shadow: 0 0 10px var(--main-color);
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
.timeline-content:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color);
}
.timeline-content h3 {
  font-size: 20px;
  color: white;
  margin: 0 0 10px;
  font-weight: 500;
}
.timeline-content p {
  color: white;
  font-size: 16px;
  font-weight: 300;
  line-height: 22px;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
  border-radius: 3px;
}
::-webkit-scrollbar-track {
  background-color: var(--bg-color);
  width: 50px;
}
.heading {
  font-size: 4.5rem;
  text-align: center;
  margin-bottom: 12rem;
}

.services {
  padding: 10rem 9%;
}

.services span {
  color: var(--main-color);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 3rem;
  perspective: 1000px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Flip Card ===== */
.service-card {
  width: 100%;
  height: 300px;
  cursor: pointer;
  perspective: 1000px;
  overflow: visible;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.service-card.flipped .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  padding: 2.5rem;
}

.service-card-back {
  overflow: hidden;
}

/* Front face */
.service-card-front {
  background: #121212;
  border: 2px solid #2a2a2a;
  transition: 0.5s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover .service-card-front {
  border-color: var(--main-color);
  box-shadow: 0 4px 18px 0 rgba(29, 185, 84, 0.2);
}

.service-card-front .card-details {
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.service-card-front .card-details i {
  font-size: 4rem;
  color: var(--main-color);
}

.service-card-front .text-title {
  font-size: 2.4rem;
  font-weight: bold;
  color: #fff;
}

.service-card-front .text-body {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  line-height: 1.5;
}

.card-button {
  transform: translate(-50%, 125%);
  width: 60%;
  border-radius: 1rem;
  border: none;
  background-color: var(--main-color);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  position: absolute;
  left: 50%;
  bottom: 0;
  opacity: 0;
  cursor: pointer;
  transition: 0.3s ease-out;
}

.service-card:hover .card-button {
  transform: translate(-50%, 50%);
  opacity: 1;
}

.card-button:hover {
  background-color: #17a348;
  box-shadow: 0 0 15px rgba(29, 185, 84, 0.5);
}

/* Back face */
.service-card-back {
  background: #0d1a0f;
  border: 2px solid var(--main-color);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.back-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.5rem;
  line-height: 1.8;
  padding: 0 1rem;
}

.card-button-back {
  background-color: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 1rem;
  padding: 0.8rem 2.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.card-button-back:hover {
  background-color: #17a348;
  box-shadow: 0 0 15px rgba(29, 185, 84, 0.5);
}

.resume {
  padding: 10rem 9%;
}

/* ===== Why Hire Me — Pill Tabs ===== */
.hire-desc {
  text-align: center;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 750px;
  margin: 0 auto 4rem;
  line-height: 1.7;
}

.hire-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(29, 185, 84, 0.15);
  border-radius: 5rem;
  padding: 0.6rem 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hire-tab {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: 4rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.hire-tab i {
  font-size: 1.8rem;
}

.hire-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hire-tab.active {
  background: linear-gradient(135deg, #1db954, #1aa34a);
  color: #fff;
  box-shadow:
    0 0 20px rgba(29, 185, 84, 0.4),
    0 0 6px rgba(29, 185, 84, 0.2);
}

/* Tab Content */
.hire-content {
  max-width: 900px;
  margin: 0 auto;
}

.hire-panel {
  display: none;
  animation: fadeInPanel 0.4s ease;
}

.hire-panel.active {
  display: block;
}

@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Panel Cards */
.panel-card {
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 1.2rem;
  display: flex;
  overflow: hidden;
  transition: 0.3s ease;
}

.panel-card:hover {
  border-color: var(--main-color);
  box-shadow: 0 0 15px rgba(29, 185, 84, 0.15);
}

.panel-card-accent {
  width: 5px;
  background: var(--main-color);
  flex-shrink: 0;
}

.panel-card-body {
  padding: 2.5rem 3rem;
}

.panel-card-body .panel-year {
  color: var(--main-color);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.panel-card-body h3 {
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 1rem;
}

.panel-card-body p {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* Education Timeline — Center Alternating */
.edu-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.edu-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    var(--main-color),
    rgba(29, 185, 84, 0.2)
  );
  border-radius: 2px;
}

.edu-timeline-item {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 1rem;
  width: 100%;
}

.edu-timeline-item:last-child {
  margin-bottom: 0;
}

.edu-timeline-item.left {
  justify-content: flex-start;
  padding-right: calc(50% + 2.5rem);
}

.edu-timeline-item.left .edu-timeline-card {
  text-align: right;
}

.edu-timeline-item.left .edu-timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.edu-timeline-item.right {
  justify-content: flex-end;
  padding-left: calc(50% + 2.5rem);
}

.edu-timeline-item.right .edu-timeline-card {
  text-align: left;
}

.edu-timeline-item.right .edu-timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.edu-timeline-dot {
  position: relative;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--main-color);
  border-radius: 50%;
  box-shadow:
    0 0 12px var(--main-color),
    0 0 25px rgba(29, 185, 84, 0.3);
  z-index: 1;
  flex-shrink: 0;
}

.edu-timeline-dot::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(29, 185, 84, 0.4);
}

.edu-timeline-card {
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 1.2rem;
  padding: 2.5rem 3rem;
  transition: 0.3s ease;
  flex: 1;
}

.edu-timeline-card:hover {
  border-color: var(--main-color);
  box-shadow: 0 0 20px rgba(29, 185, 84, 0.12);
}

.edu-timeline-card .panel-year {
  color: var(--main-color);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.edu-timeline-card h3 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.edu-uni,
.edu-location {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.4rem;
}

.edu-timeline-item.left .edu-uni,
.edu-timeline-item.left .edu-location {
  justify-content: flex-end;
}

.edu-uni i,
.edu-location i {
  color: var(--main-color);
  font-size: 1.6rem;
}

/* Honeycomb Skills Grid */
.honeycomb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.honeycomb-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.honeycomb-row-offset {
  margin-top: -2.2rem;
}

.hex {
  width: 13rem;
  height: 14.5rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hex-inner {
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: #121212;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
}

.hex:hover {
  background: var(--main-color);
}

.hex:hover .hex-inner {
  background: #0d1a0f;
}

.hex-inner i {
  font-size: 4.5rem;
  color: rgba(255, 255, 255, 0.8);
  transition: 0.3s;
}

.hex:hover .hex-inner i {
  color: var(--main-color);
}

.hex-inner span {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  transition: 0.3s;
}

.hex:hover .hex-inner span {
  color: var(--main-color);
}

/* About Me Grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 1.5rem;
}

.about-item {
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 1rem;
  padding: 1.8rem 2rem;
  transition: 0.3s ease;
}

.about-item:hover {
  border-color: var(--main-color);
}

.about-label {
  color: var(--main-color);
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.about-value {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 500;
}

/* Hire Tabs Responsive */
@media (max-width: 768px) {
  .hire-tabs {
    flex-wrap: wrap;
    border-radius: 1.5rem;
    max-width: 95%;
  }
  .hire-tab {
    padding: 0.8rem 1.5rem;
    font-size: 1.3rem;
  }
  .hire-tab i {
    font-size: 1.6rem;
  }
  .edu-timeline {
    padding-left: 3rem;
  }
  .edu-timeline-card {
    padding: 2rem;
  }
  .honeycomb-row {
    gap: 0.5rem;
  }
  .hex {
    width: 9rem;
    height: 10rem;
  }
  .hex-inner i {
    font-size: 3rem;
  }
  .hex-inner span {
    font-size: 1rem;
  }
  .honeycomb-row-offset {
    margin-top: -1.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.projects {
  background: transparent;
  padding: 10rem 9%;
}

.projects-desc {
  text-align: center;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto 5rem;
  line-height: 1.7;
}

/* ===== Spotlight Cards ===== */
.spotlight-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.spotlight-card {
  display: flex;
  flex-direction: column;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-left: 4px solid var(--main-color);
  border-radius: 1.4rem;
  overflow: hidden;
  transition: 0.3s ease;
}

.spotlight-card:hover {
  border-color: var(--main-color);
  box-shadow: 0 0 25px rgba(29, 185, 84, 0.12);
  transform: translateY(-4px);
}

.spotlight-img {
  width: 100%;
  height: 22rem;
  flex-shrink: 0;
  overflow: hidden;
}

.spotlight-img img,
.spotlight-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.spotlight-card:hover .spotlight-img img {
  transform: scale(1.05);
}

.spotlight-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.spotlight-tag {
  display: inline-block;
  background: rgba(29, 185, 84, 0.15);
  color: var(--main-color);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.4rem 1.2rem;
  border-radius: 3rem;
  width: fit-content;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spotlight-info h3 {
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 1rem;
}

.spotlight-info p {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.spotlight-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.spotlight-tech span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  font-weight: 500;
}

.spotlight-btns {
  display: flex;
  gap: 1rem;
}

.explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.6rem;
  border-radius: 5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: color 0.4s ease;
}

.explore-btn::before {
  content: "";
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--main-color);
  left: -100%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.7s ease;
  z-index: -1;
}

.explore-btn:hover::before {
  left: 0;
  transform: translateY(-50%) scale(1.5);
}

.explore-btn:hover {
  color: #fff;
  border-color: var(--main-color);
}

.explore-arrow {
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  padding: 0.5rem;
  transform: rotate(45deg);
  transition: all 0.3s ease;
  fill: #fff;
}

.explore-btn:hover .explore-arrow {
  transform: rotate(90deg);
  background: #fff;
  border-color: transparent;
  fill: #121212;
}

/* Spotlight Responsive */
@media (max-width: 768px) {
  .spotlight-list {
    grid-template-columns: 1fr;
  }
  .spotlight-info {
    padding: 2rem;
  }
  .spotlight-info h3 {
    font-size: 2rem;
  }
}

/* ===== Certifications - Side by Side ===== */
.certification {
  background: transparent;
  padding: 10rem 9% 2rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.cert-card {
  background: #121212;
  border: 1px solid #2a2a2a;
  border-left: 4px solid var(--main-color);
  border-radius: 1.4rem;
  padding: 3.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  border-color: var(--main-color);
  box-shadow: 0 0 25px rgba(29, 185, 84, 0.12);
  transform: translateY(-4px);
}

.cert-num {
  font-size: 5rem;
  font-weight: 800;
  color: rgba(29, 185, 84, 0.15);
  margin-bottom: 1rem;
  line-height: 1;
}

.cert-title {
  font-size: 2.6rem;
  color: #fff;
  margin-bottom: 1rem;
}

.cert-issuer {
  font-size: 1.4rem;
  color: var(--main-color);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.cert-desc {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.cert-skills span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  padding: 0.5rem 1.4rem;
  border-radius: 2rem;
}

.cert-card .explore-btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Certifications Responsive */
@media (max-width: 900px) {
  .cert-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

.contact {
  background-color: transparent;
  padding: 10rem 9% 5rem;
}
.contact h2 {
  margin-bottom: 3rem;
  color: white;
  text-align: center;
}
.contact form {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 3rem;
  margin: 5rem auto;
  text-align: center;
  max-width: 900px;
  width: 100%;
}
.contact form .input-group,
.contact form .input-group-2 {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.contact form .input-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-wrap: wrap;
}
.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 2.5rem;
  font-size: 1.8rem;
  color: var(--text-color);
  background: var(--second-bg-color);
  border-radius: 2rem;
  border: 2px solid var(--main-color);
  margin: 1.5rem 0;
  resize: none;
}
.contact form .contact-btn {
  align-self: center;
  margin-top: 1rem;
}

.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 40px 0;
  background-color: transparent;
}
.footer .footer-social {
  justify-content: center;
  padding-bottom: 25px;
  width: 100%;
}
.footer ul {
  margin-top: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}
.footer ul li a {
  color: white;
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
}
.footer ul li a:hover {
  border-bottom: 3px solid var(--main-color);
}
.footer ul li {
  display: inline-block;
  padding: 0 15px;
}
.footer .copyright {
  margin-top: 50px;
  text-align: center;
  font-size: 16px;
  color: white;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  z-index: 1000;
}

.button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgb(20, 20, 20);
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 0px 4px rgba(176, 160, 255, 0.253);
  cursor: pointer;
  transition-duration: 0.3s;
  overflow: hidden;
  position: relative;
}

.svgIcon {
  width: 12px;
  transition-duration: 0.3s;
}

.svgIcon path {
  fill: white;
}

.button:hover {
  width: 140px;
  border-radius: 50px;
  transition-duration: 0.3s;
  background-color: rgba(31, 213, 15, 0.601);
  align-items: center;
}

.button:hover .svgIcon {
  transition-duration: 0.3s;
  transform: translateY(-200%);
}

.button::before {
  position: absolute;
  bottom: -20px;
  content: "Back to Top";
  color: white;
  font-size: 0px;
}

.button:hover::before {
  font-size: 13px;
  opacity: 1;
  bottom: unset;
  transition-duration: 0.3s;
}

@media (max-width: 1285px) {
  html {
    font-size: 55%;
  }
  .services-container {
    padding-bottom: 7rem;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 5rem;
  }
}
@media (max-width: 991px) {
  header {
    padding: 2rem 3%;
  }
  section {
    padding: 10rem 3% 2rem;
  }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 37px;
  }
  .timeline-dot {
    left: 0;
  }
  .services {
    padding-bottom: 7rem;
  }
  .contact form {
    flex-direction: column;
  }
  .footer {
    padding: 2rem 3%;
  }
}
@media (max-width: 895px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 60%;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom-left-radius: 2rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    display: none;
    flex-direction: column;
    z-index: 999;
  }

  .navbar.active {
    display: flex;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 2rem 0;
    color: white;
    border-bottom: 2px solid transparent;
  }

  .navbar a:hover,
  .navbar a.active {
    border-bottom: 2px solid var(--main-color);
    color: var(--main-color);
  }
}
@media (max-width: 768px) {
  .timeline-items::before {
    left: 10px;
  }

  .timeline-item {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    text-align: left !important;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    text-align: left !important;
  }

  .timeline-dot {
    left: 0;
  }

  .timeline-content {
    padding: 20px 30px;
    margin-left: 30px;
  }

  .timeline-date {
    text-align: left;
    margin-left: 30px;
  }
}
@media (max-width: 768px) {
  .home {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 6rem;
    padding: 2rem 1.5rem;
  }

  .home-img {
    order: -1;
    margin-bottom: 4rem;
  }

  .simple-hero {
    max-width: 250px; /* slightly smaller on mobile */
  }

  .home-content {
    text-align: center;
    max-width: 95%;
  }

  .home-content h1,
  .home-content h3 {
    font-size: 2rem;
  }

  .home-content p {
    font-size: 1.3rem;
    max-width: 95%;
    margin: 1.5rem auto;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .card {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 auto;
  }
}
@media (max-width: 768px) {
  .timeline-content {
    padding: 20px;
    border-radius: 2rem;
  }

  .timeline-date {
    font-size: 1.6rem;
    margin-left: 10px;
  }

  .timeline-content h3 {
    font-size: 1.8rem;
  }

  .timeline-content p {
    font-size: 1.4rem;
  }
}
@media (max-width: 768px) {
  .services-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 2rem;
  }

  .service-box {
    height: auto;
    padding: 2rem;
  }

  .services-info h4 {
    font-size: 2.5rem;
  }

  .services-info p {
    font-size: 1.6rem;
  }

  .certification-container {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .certification-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .certification-box h3,
  .certification-box p,
  .certification-box .tech {
    text-align: center;
  }

  .certification-box img,
  .certifications-carousel {
    max-width: 90%;
    margin: 1.5rem auto;
  }

  .certification-box .navigation {
    justify-content: center;
    margin-top: 1rem;
  }
}
@media (max-width: 768px) {
  .contact {
    text-align: center;
  }

  .contact h2 {
    font-size: 2.5rem;
    text-align: center;
  }

  .contact form .input-box {
    align-items: center;
    width: 100%;
  }

  .contact form {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
    width: 100%;
  }

  .contact form input,
  .contact form textarea {
    width: 100%;
    max-width: 500px;
    text-align: center;
  }

  .contact form .contact-btn {
    margin: 1.5rem auto 0;
    align-self: center;
  }
}
@media (max-width: 480px) {
  .navbar {
    width: 80%;
  }

  .navbar a {
    font-size: 1.6rem;
  }

  .logo {
    font-size: 2rem;
  }

  #menu-icon {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .resume-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .resume-box .heading {
    text-align: center;
  }

  .resume-box p.desc {
    text-align: center;
  }
}
