@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --font-primary: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;

  --bg-dark: #0b0b0b;
  --bg-top: #101114;
  --bg-mid-1: #23272d;
  --bg-mid-2: #0d0d0e;
  --bg-mid-3: #0d1014;
  --bg-bottom: #020304;
  --accent-purple: #a855f7;

  --text-white: #ffffff;
  --grid-color: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: transparent;
  color: var(--text-white);
  line-height: 1.65;
  letter-spacing: 0.01em;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--bg-top) 0%,
    var(--bg-mid-1) 28%,
    var(--bg-mid-2) 56%,
    var(--bg-mid-3) 78%,
    var(--bg-bottom) 100%
  );
}

.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-purple);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 4rem;
  z-index: 1;
}

.sub-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.main-title {
  font-size: 4.5rem;
  font-weight: 900;
  margin: 15px 0;

  line-height: 1.2;
  display: flex;
  justify-content: center;

  align-items: center;
  gap: 5px;
  min-height: 1.2em;

  text-align: center;
}

.purple-text {
  color: var(--accent-purple);
  font-family: var(--font-display);
  font-weight: 700;
}

.year {
  font-size: 1.8rem;
  font-weight: 300;
  margin-top: 15px;

  margin-bottom: 30px;
}

.btn-resume {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #fff;
  padding: 12px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;

  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow:
    0 0 20px rgba(168, 85, 247, 0.2),
    inset 0 0 10px rgba(168, 85, 247, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.btn-resume::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: skewX(-15deg);
  animation: glowLine 3s infinite linear;
}

.btn-resume:hover {
  box-shadow:
    0 0 30px rgba(168, 85, 247, 0.5),
    inset 0 0 15px rgba(168, 85, 247, 0.2);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
  background: rgba(168, 85, 247, 0.1);
}

@keyframes glowLine {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.floating-icon {
  position: absolute;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  animation: floatIcon 4s infinite ease-in-out;
}

.icon-top-left {
  top: 20%;
  left: 10%;
  color: #4ade80;
  opacity: 0;
}

.page-loaded .icon-top-left {
  animation:
    slideInTL 1.5s ease-out forwards,
    floatIcon 4s infinite ease-in-out 1.5s;
}

.icon-top-right {
  top: 20%;
  right: 10%;
  color: #fc8eac;
  opacity: 0;
}

.page-loaded .icon-top-right {
  animation:
    slideInTR 1.5s ease-out forwards,
    floatIcon 4s infinite ease-in-out 1.5s;
}

.icon-bottom-left {
  bottom: 20%;
  left: 10%;
  color: #38bdf8;
  opacity: 0;
}

.page-loaded .icon-bottom-left {
  animation:
    slideInBL 1.5s ease-out forwards,
    floatIcon 4s infinite ease-in-out 1.5s;
}

.icon-bottom-right {
  bottom: 20%;
  right: 10%;
  color: #fbbf24;
  opacity: 0;
}

.page-loaded .icon-bottom-right {
  animation:
    slideInBR 1.5s ease-out forwards,
    floatIcon 4s infinite ease-in-out 1.5s;
}

@keyframes slideInTL {
  0% {
    top: -20%;
    left: -20%;
    opacity: 0;
  }

  100% {
    top: 20%;
    left: 10%;
    opacity: 1;
  }
}

@keyframes slideInTR {
  0% {
    top: -20%;
    right: -20%;
    opacity: 0;
  }

  100% {
    top: 20%;
    right: 10%;
    opacity: 1;
  }
}

@keyframes slideInBL {
  0% {
    bottom: -20%;
    left: -20%;
    opacity: 0;
  }

  100% {
    bottom: 20%;
    left: 10%;
    opacity: 1;
  }
}

@keyframes slideInBR {
  0% {
    bottom: -20%;
    right: -20%;
    opacity: 0;
  }

  100% {
    bottom: 20%;
    right: 10%;
    opacity: 1;
  }
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 20px !important;
  }

  .main-title {
    font-size: 3rem;
    flex-direction: column;

    line-height: 1.1;
  }

  .sub-title {
    font-size: 1.1rem;
    padding: 0 10px;
    margin-bottom: 20px;
  }

  .year {
    font-size: 1.2rem;

    margin-top: 20px;

    margin-bottom: 30px;
  }

  .hero-buttons {
    gap: 15px;
  }

  .btn-resume {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .floating-icon {
    display: none;
  }
}

.about-section {
  width: 100%;
  min-height: 70vh;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: transparent;

  z-index: 2;
  position: relative;
}

body {
  overflow-y: auto;

  overflow-x: hidden;
  height: auto;
  display: block;
}

.hero {
  margin: 0 auto;
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  justify-content: center;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  padding: 60px;
  border-radius: 20px;
  max-width: 1200px;
  text-align: center;
  position: relative;

  transform: perspective(1000px) rotateX(20deg) translateY(50px) scale(0.9);
  opacity: 0;
  filter: blur(10px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: conic-gradient(
    from var(--angle),
    transparent 30%,
    var(--accent-purple),
    transparent 70%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
  animation: rotateBorder 3s linear infinite;
}

.scroll-reveal.expanded {
  transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
  opacity: 1;
  filter: blur(0);
}

.glass-card h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.scroll-reveal.expanded h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.glass-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d1d5db;

  max-width: 90ch;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
  transform-style: preserve-3d;
}

.scroll-reveal.expanded p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.skills-section {
  padding: 80px 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* ── Skill Filter Bar ── */
.skill-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d1d5db;
  padding: 8px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-primary);
  border-radius: 50px;
  letter-spacing: 0.5px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
  border-radius: 50px;
}

.filter-btn:hover {
  border-color: rgba(168, 85, 247, 0.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2);
}

.filter-btn.active {
  border-color: var(--accent-purple);
  color: #fff;
  box-shadow:
    0 0 25px rgba(168, 85, 247, 0.35),
    inset 0 0 10px rgba(168, 85, 247, 0.15);
}

.filter-btn.active::before {
  opacity: 1;
}

/* ── Skill Card Filter Transitions ── */
.skill-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.skill-card.filter-hide {
  opacity: 0 !important;
  transform: scale(0.8) !important;
  pointer-events: none;
}

.skill-card.d-none {
  display: none !important;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #fff;
  text-align: center;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.skill-card {
  width: auto;
  height: 130px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  color: #fff;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 200%;
  background: linear-gradient(180deg, var(--accent-purple), #4c1d95);
  border-radius: 45% 55% 40% 60% / 55% 60% 35% 45%;
  z-index: 1;
  transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.95;
}

.skill-card:hover::before {
  top: -50%;
  animation: wave 5s infinite linear;
}

@keyframes wave {
  0% {
    transform: translateX(-50%) rotate(0deg);
  }

  100% {
    transform: translateX(-50%) rotate(360deg);
  }
}

.skill-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: var(--accent-purple);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
  opacity: 0.7;
}

@keyframes rotateBorder {
  to {
    --angle: 360deg;
  }
}

.skill-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-10px) scale(1.05) !important;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.skill-card:hover::after {
  opacity: 1;
  box-shadow: 0 0 20px var(--accent-purple);
  filter: drop-shadow(0 0 5px var(--accent-purple));
}

.skill-card i {
  font-size: 2.2rem;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
}

.skill-card:hover i {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

.skill-card span {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.8;
  transition: all 0.3s;
  z-index: 2;
  position: relative;
  text-align: center;
}

.skill-card:hover span {
  opacity: 1;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  color: #fff;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .skill-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .skill-card {
    height: 120px;
    padding: 15px;
  }

  .skill-card i {
    font-size: 2.2rem;
  }

  .skill-card span {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .skill-card {
    height: 110px;
    padding: 12px;
  }

  .skill-card i {
    font-size: 2rem;
  }

  .skill-card span {
    font-size: 0.75rem;
  }
}

.projects-section {
  padding: 80px clamp(0.75rem, 3vw, 1.5rem);
  position: relative;
  max-width: 1150px;
  margin: 0 auto;
  text-align: center;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 1rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(-50%);
  border-radius: 4px;

  border-radius: 4px;
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent-purple));
  box-shadow: 0 0 15px var(--accent-purple);
  transition: height 0.4s ease-out;
}

.timeline-progress::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--accent-purple);
  border-radius: 50%;
  box-shadow:
    0 0 15px var(--accent-purple),
    0 0 30px var(--accent-purple);
}

.timeline-item {
  padding: 90px 0;

  position: relative;
  width: 50%;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item.left {
  left: 0;
  padding-right: 80px;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  padding-left: 80px;
  text-align: left;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 30px;
  border-radius: 16px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.timeline-content:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
}

.timeline-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.timeline-content p {
  color: #d1d5db;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.project-tag {
  background: rgba(168, 85, 247, 0.2);
  color: var(--accent-purple);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  margin-bottom: 25px;
}

.card-icon {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
  margin-bottom: 16px;
}

.timeline-content:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  color: rgba(168, 85, 247, 0.4);
}

.company-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 16px;
  transition: all 0.5s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background-color: #fff;
  padding: 1px;
}

.timeline-content:hover .company-logo {
  transform: scale(1.1) rotate(5deg);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.project-link {
  display: inline-block;
  color: #fbbf24;

  color: #fbbf24;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: #f59e0b;
  text-decoration: underline;
}

.project-link.inactive {
  color: #6b7280;

  color: #6b7280;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
}

.timeline-number {
  position: absolute;
  top: 0;
  font-size: 6rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(168, 85, 247, 0.6);
  line-height: 1;
  opacity: 0.8;
  z-index: 0;
  font-family: var(--font-display);
}

.timeline-item.left .timeline-number {
  right: 20px;
  top: -20px;
}

.timeline-item.right .timeline-number {
  left: 20px;
  top: -20px;
}

.timeline-dot {
  position: absolute;
  top: 60px;
  width: 20px;
  height: 20px;
  background: transparent;

  border: 3px solid var(--accent-purple);

  border-radius: 50%;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-dot.active {
  box-shadow: 0 0 20px var(--accent-purple);
  border-color: #fff;
  background: rgba(168, 85, 247, 0.2);
}

.timeline-progress::after {
  content: "";
  position: absolute;
  bottom: -10px;

  left: 50%;
  transform: translateX(-50%);
  width: 17px;
  height: 17px;
  background: var(--accent-purple);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 0 20px var(--accent-purple),
    0 0 40px var(--accent-purple);
  z-index: 3;
}

.timeline-item.left .timeline-dot {
  right: -10px;

  right: -10px;
}

.timeline-item.right .timeline-dot {
  left: -10px;
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
    transform: translateX(0);
  }

  .timeline-item {
    width: 100%;
    padding: 0 0 0 70px;
    text-align: left;
    margin-bottom: 3rem;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    padding-right: 0;
    padding-left: 70px;
    text-align: left;
    transform: none;
  }

  .timeline-item {
    transform: translateY(30px);
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 12px;
    right: auto;
  }

  .timeline-number {
    font-size: 4rem;
    opacity: 0.5;
  }

  .timeline-item.left .timeline-number {
    right: 10px;
    top: 0;
  }

  .timeline-item.right .timeline-number {
    right: 10px;
    left: auto;
    top: 0;
  }

  .timeline-date {
    position: relative;
    inset: auto !important;
    text-align: left !important;
    margin-bottom: 10px;
    display: block;
    margin-left: 0;
    font-size: 1.2rem;
  }

  .timeline-content {
    padding: 30px 20px;
    min-height: auto;
    width: 100%;
    box-sizing: border-box;
  }

  .timeline-content h3 {
    font-size: 1.5rem;
  }
}

.timeline-date {
  position: absolute;
  top: 60px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-purple);
  font-family: var(--font-display);
  letter-spacing: 1px;
  width: 200px;
}

.timeline-item.left .timeline-date {
  left: calc(100% + 50px);
  text-align: left;
}

.timeline-item.right .timeline-date {
  right: calc(100% + 50px);
  text-align: right;
}

@media (max-width: 768px) {
  .glass-card {
    padding: 30px 20px;

    margin: 0 10px;
  }

  .glass-card h2 {
    font-size: 1.8rem;
  }

  .glass-card p {
    font-size: 1rem;
  }
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.experience-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(168, 85, 247, 0.15),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.experience-card:hover::before {
  opacity: 1;
}

.experience-card > * {
  position: relative;
  z-index: 1;
}

.experience-card:hover {
  transform: translateY(-5px) !important;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
}

.experience-date {
  font-family: var(--font-display);
  color: var(--accent-purple);
  font-size: 1.1rem;
  position: absolute;
  top: 40px;
  right: 40px;
  letter-spacing: 1px;
}

.project-links-wrapper {
  margin-top: auto;
  display: flex;
  gap: 15px;
  padding-top: 25px;
  flex-wrap: wrap;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5e7eb;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.project-btn:hover {
  box-shadow:
    0 0 30px rgba(168, 85, 247, 0.5),
    inset 0 0 15px rgba(168, 85, 247, 0.2);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
  background: rgba(168, 85, 247, 0.1);
  color: #fff;
}

.project-btn i {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-btn:hover i {
  transform: rotate(-15deg) scale(1.2);
}

.project-btn.inactive-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #6b7280;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.project-btn.inactive-btn::before {
  display: none;
}

.experience-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.experience-card p {
  color: #d1d5db;
  font-size: 1.05rem;
  line-height: 1.7;
}

.profiles-section {
  padding: 80px 20px 120px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  gap: 20px;
}

.profile-img-main {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  position: relative;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatProfile 6s infinite ease-in-out;
}

@keyframes floatProfile {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.4);
  }
}

.profile-img-main::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(
    from var(--angle),
    transparent 20%,
    var(--accent-purple),
    transparent 80%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: rotateBorder 4s linear infinite;
}

.profile-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  position: relative;
  z-index: 3;
}

.profile-img-main:hover img {
  transform: scale(1.08) rotate(3deg);
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.profile-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 5px;
  letter-spacing: -1px;
  color: #fff;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.profile-text p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent-purple);
  letter-spacing: 2px;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(15px);
  padding: 24px 16px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  gap: 12px;
  text-align: center;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: conic-gradient(
    from var(--angle),
    transparent 40%,
    var(--accent-purple),
    transparent 60%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: rotateBorder 3s linear infinite;
  transition: opacity 0.4s ease;
}

.profile-card:hover {
  transform: translateY(-8px) !important;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(168, 85, 247, 0.3);
}

.profile-card:hover::before {
  opacity: 1;
}

.profile-icon {
  font-size: 2rem;
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s ease;
}

.profile-card .fa-linkedin {
  color: #0077b5;
  filter: drop-shadow(0 0 10px rgba(0, 119, 181, 0.3));
}

.profile-card .fa-github {
  color: #fff;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.profile-card .fa-hackerrank {
  color: #2ec866;
  filter: drop-shadow(0 0 10px rgba(46, 200, 102, 0.3));
}

.profile-card i.colored {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.profile-card:hover .profile-icon {
  transform: scale(1.2) rotateY(360deg);
  transition: transform 1.1s ease;
}

.profile-info h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 5px;
  font-weight: 700;
}

.profile-info p {
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  transition: all 0.3s;
}

.profile-card:hover .profile-info p {
  color: var(--accent-purple);
  opacity: 1;
}

.profile-note {
  text-align: center;
  margin-top: 30px;
  font-size: 1.05rem;
  font-weight: 500;

  background: linear-gradient(to right, #9ca3af 40%, #ffffff 50%, #9ca3af 60%);
  background-size: 200% auto;
  color: #9ca3af;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

@media (max-width: 768px) {
  .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .profile-card {
    padding: 20px 15px;
  }

  .profile-header {
    margin-bottom: 40px;
  }

  .profile-img-main {
    width: 120px;
    height: 120px;
  }

  .profile-text h2 {
    font-size: 1.8rem;
  }
}

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

.certifications-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1150px;
  margin: 0 auto;
}

.cert-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cert-item:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--accent-purple);
}

.cert-img-wrapper {
  position: relative;
  width: 100%;

  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.cert-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.cert-item:hover .cert-img-wrapper img {
  transform: scale(1.05);
}

.cert-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s ease;
}

.cert-item:hover .cert-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
}

.cert-info {
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-info h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 700;
}

.cert-info p {
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.8;
}

.cert-overlay-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #fff;
  box-shadow:
    0 0 20px rgba(168, 85, 247, 0.2),
    inset 0 0 10px rgba(168, 85, 247, 0.1);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;

  transform: translateY(20px);
  opacity: 0;
}

.cert-overlay-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: skewX(-15deg);
  animation: glowLine 3s infinite linear;
}

.cert-item:hover .cert-overlay-link {
  transform: translateY(0);
  opacity: 1;
}

.cert-overlay-link span {
  position: relative;
  top: 1px;
}

.cert-overlay-link i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.cert-overlay-link:hover {
  box-shadow:
    0 0 30px rgba(168, 85, 247, 0.5),
    inset 0 0 15px rgba(168, 85, 247, 0.2);
  border-color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.1);
  transform: scale(1.05) translateY(0);
}

.cert-overlay-link:hover i {
  transform: translateX(5px);
}

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

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cert-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .experience-date {
    position: static;
    margin-bottom: 15px;
  }
}

.footer {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  z-index: 10;
  margin-top: 60px;
  padding: 40px 20px 20px;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-purple),
    transparent
  );
  opacity: 0.6;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  text-align: center;
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #fff, var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.footer-tagline {
  color: #9ca3af;
  font-size: 0.95rem;
  opacity: 0.8;
  background: linear-gradient(to right, #9ca3af 40%, #ffffff 50%, #9ca3af 60%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
  opacity: 0.9;
}

.footer-nav-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav-links li a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 5px;
  position: relative;
}

.footer-nav-links li a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.footer-nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 1px;
  background: var(--accent-purple);
  transition: width 0.3s ease;
}

.footer-nav-links li a:hover::after {
  width: 80%;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
}

.social-link:hover {
  transform: translateY(-5px);
  border-color: transparent;
}

.social-link.linkedin:hover {
  background: #0077b5;
  box-shadow: 0 5px 20px rgba(0, 119, 181, 0.4);
}

.social-link.github:hover {
  background: #333;
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.social-link.email:hover {
  background: #ea4335;
  box-shadow: 0 5px 20px rgba(234, 67, 53, 0.4);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #6b7280;
  font-size: 0.85rem;
  position: relative;
}

.back-to-top {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-purple);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  position: absolute;
  right: 0;
}

.back-to-top:hover {
  background: var(--accent-purple);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
  border-color: transparent;
}

.back-to-top.bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .footer-container {
    gap: 30px;
  }

  .footer-nav-links {
    gap: 15px 25px;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 20px;
    text-align: center;
  }

  .back-to-top {
    position: static;
    margin-top: 20px;
  }
}

.contact-section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.contact-container .section-title {
  margin-bottom: 0;
}

.contact-card {
  background: #0f0f0f;
  padding: 50px 50px;
  border-radius: 20px;
  width: 100%;
  max-width: 750px;
  position: relative;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(168, 85, 247, 0.1);
  border: 1px solid #1f1f1f;
  overflow: hidden;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(
    45deg,
    var(--accent-purple),
    #4c1d95,
    #0f0f0f,
    #0f0f0f,
    var(--accent-purple)
  );
  background-size: 400%;
  z-index: -1;
  animation: neonGlow 10s linear infinite;
  opacity: 0.8;
}

.contact-note {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(to right, #9ca3af 40%, #ffffff 50%, #9ca3af 60%);
  background-size: 200% auto;
  color: #9ca3af;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
  opacity: 1;

  opacity: 1;
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: #0b0b0b;

  background: #0b0b0b;
  border-radius: 23px;
  z-index: -1;
}

@keyframes neonGlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 0;
  font-size: 1.1rem;
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 2px solid #333;
  outline: none;
  transition: border-color 0.4s ease;
  font-family: var(--font-primary);
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
  border-bottom-color: var(--accent-purple);
}

.form-group label {
  position: absolute;
  top: 15px;
  left: 0;
  font-size: 1.1rem;
  color: #6b7280;
  pointer-events: none;
  transition: all 0.4s ease;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -20px;
  font-size: 0.9rem;
  color: var(--accent-purple);

  font-family: var(--font-display);
  letter-spacing: 1px;
}

.input-icon {
  position: absolute;
  right: 0;
  top: 15px;
  font-size: 1.2rem;
  color: #333;
  transition: all 0.4s ease;
}

.form-group input:focus ~ .input-icon,
.form-group textarea:focus ~ .input-icon {
  color: var(--accent-purple);
  transform: translateY(-5px);
}

.btn-submit {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #fff;
  padding: 15px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;

  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow:
    0 0 20px rgba(168, 85, 247, 0.2),
    inset 0 0 10px rgba(168, 85, 247, 0.1);
  backdrop-filter: blur(5px);
  width: 100%;

  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: skewX(-15deg);
  animation: glowLine 3s infinite linear;
}

.btn-submit:hover {
  box-shadow:
    0 0 30px rgba(168, 85, 247, 0.5),
    0 0 15px rgba(168, 85, 247, 0.2);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
  background: rgba(168, 85, 247, 0.1);
}

@media (max-width: 768px) {
  .contact-card {
    padding: 40px 25px;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -15;
  pointer-events: none;
}

.about-section .glass-card {
  position: relative;
  overflow: hidden;
}

.about-section .glass-card:hover::before {
  opacity: 1;
}

.about-section .glass-card h2,
.about-section .glass-card p {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .contact-card {
    padding: 40px 25px;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}

.resume-modal {
  display: none;
  position: fixed;
  z-index: 9998;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.resume-modal.show {
  display: flex;
  opacity: 1;
}

.resume-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.resume-modal.show .resume-modal-content {
  transform: scale(1) !important;
  opacity: 1 !important;
  filter: blur(0) !important;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 2;
}

.close-modal:hover {
  color: var(--accent-purple);
}

.resume-iframe-container {
  width: 100%;
  height: 70vh;
  min-height: 500px;
  border-radius: 10px;
  overflow: hidden;
  background: white;
}

.visitor-count {
  font-size: 0.9rem;
  margin-top: 5px;
  color: #d1d5db;
}

.visitor-count .purple-text {
  font-weight: 700;
}

/* ══════════════════════════════════════════
   SCROLL PROGRESS BAR
   ══════════════════════════════════════════ */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, var(--accent-purple), #c084fc);
  box-shadow:
    0 0 10px var(--accent-purple),
    0 0 20px rgba(168, 85, 247, 0.3);
  z-index: 10000;
  transition: width 0.05s linear;
  border-radius: 0 2px 2px 0;
}

/* ══════════════════════════════════════════
   FLOATING NAVBAR
   ══════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease;
}

.site-nav.nav-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  position: relative;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.nav-indicator {
  position: absolute;
  height: calc(100% - 12px);
  top: 6px;
  left: 10px;
  width: 40px;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.25),
    rgba(124, 58, 237, 0.15)
  );
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 50px;
  transition:
    left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 0 20px rgba(168, 85, 247, 0.15),
    inset 0 0 8px rgba(168, 85, 247, 0.1);
  z-index: 0;
  pointer-events: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: 50px;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.nav-link .nav-icon {
  font-size: 0.75rem;
  display: none;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.nav-link.active {
  color: #fff;
}

/* ── Mobile Navbar: Bottom Tab Bar ── */
@media (max-width: 768px) {
  .site-nav {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateX(0) translateY(100px);
    width: 100%;
    border-radius: 0;
  }

  .site-nav.nav-visible {
    transform: translateX(0) translateY(0);
  }

  .nav-pill {
    border-radius: 20px 20px 0 0;
    padding: 8px 6px 12px;
    gap: 2px;
    justify-content: space-around;
    border-bottom: none;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
  }

  .nav-indicator {
    height: calc(100% - 20px);
    top: 8px;
    border-radius: 14px;
  }

  .nav-link {
    flex-direction: column;
    padding: 6px 8px;
    gap: 3px;
    font-size: 0;
  }

  .nav-link .nav-icon {
    display: block;
    font-size: 1rem;
  }

  .nav-link .nav-label {
    font-size: 0.6rem;
    opacity: 0.7;
  }

  .nav-link.active .nav-label {
    opacity: 1;
  }
}

/* ══════════════════════════════════════════
   PRELOADER — Boot Sequence
   ══════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  overflow: hidden;
  transition:
    opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1s cubic-bezier(0.4, 0, 0.2, 1),
    filter 1s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 1s;
}

.preloader.loaded {
  opacity: 0;
  transform: scale(1.2);
  filter: blur(20px);
  visibility: hidden;
  pointer-events: none;
}

/* ── Floating Particles ── */
.preloader-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.preloader-particle {
  position: absolute;
  background: var(--accent-purple);
  border-radius: 50%;
  opacity: 0;
  /* Animation duration is set dynamically by JS to sync with the 3.5s preloader */
  animation: particleFloat linear forwards;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }

  15% {
    opacity: 0.8;
    transform: translateY(-15vh) scale(1.2);
  }

  85% {
    opacity: 0.4;
    transform: translateY(-85vh) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-120vh) scale(0.5);
  }
}

/* ── Sleek Loading Bar ── */
.preloader-sleek-track {
  width: 280px;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  z-index: 3;
  opacity: 0;
  animation: preloaderFadeIn 0.8s ease 0.4s forwards;
  margin: 20px 0;
}

.preloader-sleek-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-purple);
  border-radius: 4px;
  box-shadow:
    0 0 12px var(--accent-purple),
    0 0 24px rgba(168, 85, 247, 0.5);
  transition: width 0.08s linear;
}

/* ── Branding ── */
.preloader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0;
  animation: preloaderFadeIn 0.8s ease 0.2s forwards;
}

.preloader-brand-main {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 3px;
}

.preloader-brand-name {
  color: #fff;
}

.preloader-brand-accent {
  font-family: var(--font-display);
  color: var(--accent-purple);
  font-weight: 700;
  margin-left: 5px;
}

.preloader-brand-subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.subtitle-line {
  width: 30px;
  height: 1px;
  background: rgba(168, 85, 247, 0.5);
}

/* ── Cycling Tagline ── */
.preloader-tagline {
  display: flex;
  gap: 20px;
  z-index: 2;
  opacity: 0;
  animation: preloaderFadeIn 0.8s ease 0.8s forwards;
}

.tagline-word {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  animation: taglineCycle 3.2s ease-in-out infinite;
  animation-delay: calc(var(--w) * 0.8s);
}

@keyframes taglineCycle {
  0%,
  100% {
    color: rgba(255, 255, 255, 0.2);
    text-shadow: none;
  }

  25% {
    color: var(--accent-purple);
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
  }

  50% {
    color: rgba(255, 255, 255, 0.2);
    text-shadow: none;
  }
}

@keyframes preloaderFadeIn {
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .preloader-center {
    width: 200px;
    height: 200px;
  }

  .preloader-percent {
    font-size: 3.5rem;
  }

  .preloader-brand {
    font-size: 1.4rem;
  }

  .preloader-tagline {
    gap: 12px;
  }

  .tagline-word {
    font-size: 0.65rem;
    letter-spacing: 2px;
  }
}

/* ===== v1 additions ===== */

/* Centered floating badge */
.floating-icon-v1 {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.25),
    rgba(99, 102, 241, 0.15)
  );
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow:
    0 0 25px rgba(168, 85, 247, 0.45),
    inset 0 0 15px rgba(168, 85, 247, 0.2);
  backdrop-filter: blur(6px);
  animation: float-v1 3.5s ease-in-out infinite;
}

@keyframes float-v1 {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* Content wrapper */
/* subtle glow under the whole hero content for depth */
.content-wrapper-v1 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 3rem 0 1rem;
  gap: 1.6rem;
}

.content-wrapper-v1::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.15),
    transparent 70%
  );
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

/* Name badge — pill instead of plain text */
/* Name badge — large gradient text, no pill background */
.name-badge-v1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  backdrop-filter: none;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #a855f7, #ec4899, #6366f1);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-v1 5s linear infinite;
}

.h-8 {
  height: 2rem;
}

.min-h-20 {
  min-height: 5rem;
}

.min-h-32 {
  min-height: 8rem;
}

@media (min-width: 768px) {
  .md\:min-h-40 {
    min-height: 10rem;
  }
}

.badge-dot-v1 {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.9);
  -webkit-text-fill-color: initial; /* keep dot solid, not transparent */
}

/* Main title */
.main-title-v1 {
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.5px;
}

@media (max-width: 640px) {
  .content-wrapper-v1 {
    gap: 1.8rem;
    padding: 2.5rem 0 1rem;
  }

  .main-title-v1 {
    min-height: 5.5rem;
    font-size: clamp(2.4rem, 13vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.08em;
  }

  .sub-title-v1 {
    font-size: 1rem;
    line-height: 1.7;
    padding: 0 0.5rem;
  }

  .hero {
    padding: 5.5rem 0.75rem 3rem;
  }
}

@media (min-width: 768px) {
  .main-title-v1 {
    min-height: 10rem;
  }
}

.purple-text-v1 {
  background: linear-gradient(90deg, #a855f7, #6366f1 45%, #ec4899);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-v1 4s linear infinite;
}

@keyframes shine-v1 {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Sub title */
.sub-title-v1 {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  max-width: 700px;
  margin: 0;
  text-align: center;
}

/* Buttons */
.hero-buttons-v1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn-resume-v1 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary-v1 {
  color: #fff;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
  border: 1px solid transparent;
}

.btn-primary-v1:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.6);
}

.btn-outline-v1 {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.btn-outline-v1:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.7);
  transform: translateY(-3px);
}

.about-text p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong em {
  font-style: italic;
  font-weight: 700;
  color: var(--purple-text-color, #a855f7);
}
