/* CSS Variables */
:root {
  --background: #0a0f1a;
  --foreground: #e2e8f0;
  --card: #111827;
  --card-foreground: #e2e8f0;
  --primary: #14b8a6;
  --primary-foreground: #042f2e;
  --secondary: #1e293b;
  --muted: #334155;
  --muted-foreground: #94a3b8;
  --border: #1e293b;
  --radius: 0.5rem;
}

/* ===================== */
/* KEYFRAME ANIMATIONS   */
/* ===================== */

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

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

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleInBounce {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(20, 184, 166, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.6), 0 0 60px rgba(20, 184, 166, 0.3);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(2deg);
  }
  75% {
    transform: translateY(-8px) rotate(-2deg);
  }
}

@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

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

@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(20, 184, 166, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(20, 184, 166, 0.6));
  }
}

@keyframes borderGlow {
  0%,
  100% {
    border-color: rgba(20, 184, 166, 0.3);
  }
  50% {
    border-color: rgba(20, 184, 166, 0.8);
  }
}

@keyframes textGlow {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(20, 184, 166, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(20, 184, 166, 0.6), 0 0 40px rgba(20, 184, 166, 0.4);
  }
}

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  40% {
    transform: scale(1.1);
  }
  60% {
    transform: scale(0.9);
  }
  80% {
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%,
  50% {
    border-color: var(--primary);
  }
  51%,
  100% {
    border-color: transparent;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes morphBlob {
  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  50% {
    border-radius: 50% 60% 30% 60% / 30% 40% 70% 60%;
  }
  75% {
    border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%;
  }
}

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

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

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

@keyframes expandLine {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

@keyframes dotPulse {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(150px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(150px) rotate(-360deg);
  }
}

@keyframes wave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(20deg);
  }
  75% {
    transform: rotate(-15deg);
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.1);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.1);
  }
  70% {
    transform: scale(1);
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ===================== */
/* RESET & BASE          */
/* ===================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Animated background particles */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at 20% 80%, rgba(20, 184, 166, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(20, 184, 166, 0.03) 0%, transparent 30%);
  animation: gradientShift 20s ease infinite;
  background-size: 200% 200%;
  z-index: -1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
  color: var(--primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===================== */
/* ANIMATED HEADER       */
/* ===================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInDown 0.8s ease-out;
}

header.scrolled {
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  transition: all 0.4s ease;
  position: relative;
}

.logo::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.4s ease;
  z-index: -1;
}

.logo:hover {
  transform: scale(1.1);
  color: var(--primary);
  animation: textGlow 1s ease-in-out;
}

.logo:hover::before {
  opacity: 0.3;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links li {
  opacity: 0;
  animation: fadeInDown 0.6s ease-out forwards;
}

.nav-links li:nth-child(1) {
  animation-delay: 0.1s;
}
.nav-links li:nth-child(2) {
  animation-delay: 0.15s;
}
.nav-links li:nth-child(3) {
  animation-delay: 0.2s;
}
.nav-links li:nth-child(4) {
  animation-delay: 0.25s;
}
.nav-links li:nth-child(5) {
  animation-delay: 0.3s;
}
.nav-links li:nth-child(6) {
  animation-delay: 0.35s;
}

.nav-links a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  position: relative;
  padding-bottom: 6px;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(20, 184, 166, 0.5));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--foreground);
  transform: translateY(-2px);
}

.nav-dash {
  color: var(--primary);
  margin-right: 0.25rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.nav-links a:hover .nav-dash {
  transform: translateX(3px);
}

/* ===================== */
/* LANGUAGE DROPDOWN     */
/* ===================== */

.lang-dropdown {
  position: relative;
  animation: fadeInDown 0.8s ease-out 0.4s backwards;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.5);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.lang-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(20, 184, 166, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.lang-btn:hover::before {
  width: 200px;
  height: 200px;
}

.lang-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.3);
  transform: translateY(-3px);
}

.lang-btn svg {
  color: var(--muted-foreground);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.lang-btn:hover svg {
  transform: rotate(360deg);
  color: var(--primary);
}

.lang-code {
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .lang-code {
    display: none;
  }
}

.chevron {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.lang-dropdown.open .chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: 12rem;
  padding: 0.5rem 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.lang-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.lang-menu a:hover::before,
.lang-menu a.active::before {
  transform: scaleY(1);
}

.lang-menu a:hover {
  background: rgba(20, 184, 166, 0.1);
  color: var(--foreground);
  padding-left: 1.5rem;
}

.lang-menu a.active {
  background: rgba(20, 184, 166, 0.05);
  color: var(--primary);
}

/* ===================== */
/* HERO SECTION          */
/* ===================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 1.5rem 2rem;
  overflow: hidden;
  position: relative;
}

/* Animated background shapes */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.03);
  animation: floatSlow 8s ease-in-out infinite;
}

.hero::before {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  animation-delay: -2s;
}

.hero::after {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  animation-delay: -4s;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text {
  animation: fadeInLeft 1s ease-out;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--foreground) 0%, var(--primary) 50%, var(--foreground) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.hero-text h2 {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.3s forwards, textGlow 3s ease-in-out 1s infinite;
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 28rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.social-links {
  display: flex;
  gap: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

.social-links a {
  padding: 0.75rem;
  color: var(--muted-foreground);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.5);
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.social-links a:hover {
  color: var(--primary-foreground);
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.4);
}

.social-links a:hover::before {
  opacity: 1;
}

.social-links a svg {
  position: relative;
  z-index: 1;
}

.hero-graphic {
  display: none;
  justify-content: flex-end;
}

@media (min-width: 1024px) {
  .hero-graphic {
    display: flex;
    animation: fadeInRight 1s ease-out 0.3s backwards;
  }
}

.circle-outer {
  position: relative;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite, pulseGlow 4s ease-in-out infinite;
}

.circle-inner {
  position: absolute;
  inset: 1.5rem;
  border-radius: 50%;
  border: 2px solid rgba(20, 184, 166, 0.3);
  animation: rotate 25s linear infinite, borderGlow 3s ease-in-out infinite;
}

.circle-inner::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

.circle-inner::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 30%;
  width: 8px;
  height: 8px;
  background: rgba(20, 184, 166, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary);
  animation: pulse 2s ease-in-out 0.5s infinite;
}

.code-icon {
  font-size: 4rem;
  font-weight: 700;
  color: rgba(20, 184, 166, 0.3);
  animation: pulse 3s ease-in-out infinite, glow 2s ease-in-out infinite;
}

/* ===================== */
/* SECTION ANIMATIONS    */
/* ===================== */

section {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Section title animation */
section h2 {
  position: relative;
  display: inline-block;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

section.revealed h2::after {
  width: 60px;
  animation: expandLine 0.8s ease-out forwards;
}

/* ===================== */
/* ABOUT SECTION         */
/* ===================== */

.about {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  gap: 4rem;
}

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

.about h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.skill-group {
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease-out;
}

.about.revealed .skill-group {
  opacity: 1;
  transform: translateX(0);
}

.about.revealed .skill-group:nth-child(1) {
  transition-delay: 0.1s;
}
.about.revealed .skill-group:nth-child(2) {
  transition-delay: 0.2s;
}
.about.revealed .skill-group:nth-child(3) {
  transition-delay: 0.3s;
}
.about.revealed .skill-group:nth-child(4) {
  transition-delay: 0.4s;
}
.about.revealed .skill-group:nth-child(5) {
  transition-delay: 0.5s;
}

.skill-group h3 {
  font-size: 0.875rem;
  font-family: monospace;
  color: var(--primary);
  margin-bottom: 0.5rem;
  animation: textGlow 3s ease-in-out infinite;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  background: var(--secondary);
  border-radius: 9999px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.skill-tag::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(20, 184, 166, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-tag:hover {
  background: rgba(20, 184, 166, 0.2);
  color: var(--primary);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.3);
}

.skill-tag:hover::before {
  opacity: 1;
  animation: shimmer 1s linear;
}

.about-text p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.about.revealed .about-text p {
  opacity: 1;
  transform: translateY(0);
}

.about.revealed .about-text p:nth-child(1) {
  transition-delay: 0.2s;
}
.about.revealed .about-text p:nth-child(2) {
  transition-delay: 0.3s;
}
.about.revealed .about-text p:nth-child(3) {
  transition-delay: 0.4s;
}
.about.revealed .about-text p:nth-child(4) {
  transition-delay: 0.5s;
}

.about-text strong {
  color: var(--foreground);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.about-text strong::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.about-text strong:hover {
  color: var(--primary);
}

.about-text strong:hover::after {
  transform: scaleX(1);
}

/* ===================== */
/* EXPERIENCE SECTION    */
/* ===================== */

.experience {
  padding: 6rem 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.3), transparent);
}

.experience h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.experience-list::before {
  content: "";
  position: absolute;
  left: 100px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), rgba(20, 184, 166, 0.1), transparent);
  display: none;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1s ease-out;
}

.experience.revealed .experience-list::before {
  transform: scaleY(1);
}

@media (min-width: 768px) {
  .experience-list::before {
    display: block;
  }
}

.experience-item {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
  opacity: 0;
  transform: translateX(-40px);
}

.experience.revealed .experience-item {
  opacity: 1;
  transform: translateX(0);
}

.experience.revealed .experience-item:nth-child(1) {
  transition-delay: 0.1s;
}
.experience.revealed .experience-item:nth-child(2) {
  transition-delay: 0.25s;
}
.experience.revealed .experience-item:nth-child(3) {
  transition-delay: 0.4s;
}
.experience.revealed .experience-item:nth-child(4) {
  transition-delay: 0.55s;
}

.experience-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--background);
  border: 3px solid var(--primary);
  border-radius: 50%;
  transform: translateY(-50%) scale(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
  box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4);
}

@media (min-width: 768px) {
  .experience-item::before {
    display: block;
  }
}

.experience.revealed .experience-item::before {
  transform: translateY(-50%) scale(1);
}

.experience-item:hover::before {
  background: var(--primary);
  box-shadow: 0 0 0 8px rgba(20, 184, 166, 0.2), 0 0 20px var(--primary);
  animation: pulse 1s ease-in-out infinite;
}

.experience-item:hover {
  background: rgba(17, 24, 39, 0.9);
  border-color: rgba(20, 184, 166, 0.4);
  transform: translateX(15px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), -5px 0 30px rgba(20, 184, 166, 0.1);
}

@media (min-width: 768px) {
  .experience-item {
    grid-template-columns: 200px 1fr;
    margin-left: 35px;
  }
}

.exp-period {
  font-size: 0.875rem;
  font-family: monospace;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.experience-item:hover .exp-period {
  color: var(--primary);
}

.exp-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.exp-content h3 a {
  color: var(--foreground);
}

.experience-item:hover .exp-content h3 {
  color: var(--primary);
  transform: translateX(5px);
}

.exp-content p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  background: rgba(20, 184, 166, 0.1);
  border-radius: 9999px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-tag::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(20, 184, 166, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.tech-tag:hover::before {
  width: 150%;
  height: 150%;
}

.tech-tag:hover {
  background: rgba(20, 184, 166, 0.3);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 5px 15px rgba(20, 184, 166, 0.3);
}

/* ===================== */
/* SERVER LOCATIONS      */
/* ===================== */

.locations {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.3), transparent);
}

.locations-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .locations-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.locations-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.locations-header > div > p {
  color: var(--muted-foreground);
}

.user-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(20, 184, 166, 0.1);
  border-radius: 9999px;
  font-size: 0.875rem;
  border: 1px solid rgba(20, 184, 166, 0.3);
  animation: pulseGlow 3s ease-in-out infinite;
}

.user-location svg {
  color: var(--primary);
  animation: float 3s ease-in-out infinite;
}

.locations-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.location-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.6);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.locations.revealed .location-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.locations.revealed .location-card:nth-child(1) {
  transition-delay: 0.05s;
}
.locations.revealed .location-card:nth-child(2) {
  transition-delay: 0.1s;
}
.locations.revealed .location-card:nth-child(3) {
  transition-delay: 0.15s;
}
.locations.revealed .location-card:nth-child(4) {
  transition-delay: 0.2s;
}
.locations.revealed .location-card:nth-child(5) {
  transition-delay: 0.25s;
}
.locations.revealed .location-card:nth-child(6) {
  transition-delay: 0.3s;
}
.locations.revealed .location-card:nth-child(7) {
  transition-delay: 0.35s;
}
.locations.revealed .location-card:nth-child(8) {
  transition-delay: 0.4s;
}

.location-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.15), transparent);
  transition: left 0.6s ease;
}

.location-card:hover::before {
  left: 100%;
}

.location-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(20, 184, 166, 0.5), transparent);
  -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;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.location-card:hover::after {
  opacity: 1;
}

.location-card:hover {
  border-color: rgba(20, 184, 166, 0.6);
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(20, 184, 166, 0.15);
}

.location-card.nearest {
  border-color: var(--primary);
  background: rgba(20, 184, 166, 0.08);
  animation: pulseGlow 3s ease-in-out infinite;
}

.location-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.location-header .flag {
  font-size: 1.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-card:hover .location-header .flag {
  transform: scale(1.3) rotate(10deg);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.location-header svg {
  color: var(--muted-foreground);
  transition: all 0.4s ease;
}

.location-card:hover .location-header svg {
  color: var(--primary);
  animation: pulse 1.5s ease-in-out infinite;
}

.location-card.nearest .location-header svg {
  color: var(--primary);
}

.location-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
}

.location-card:hover h3 {
  color: var(--primary);
  transform: translateX(5px);
}

.location-card > p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.location-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.ping,
.ips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ping {
  color: #22c55e;
}

.ping span,
.ips span {
  font-size: 0.875rem;
  font-weight: 500;
}

.ping svg {
  animation: pulse 2s ease-in-out infinite;
}

.ips {
  color: var(--primary);
}

.ips svg {
  animation: rotate 10s linear infinite;
}

.nearest-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  background: rgba(20, 184, 166, 0.15);
  border-radius: 9999px;
  animation: pulseGlow 2s ease-in-out infinite;
}

.stats-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 3rem;
  text-align: center;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
}

.locations.revealed .stat-card {
  opacity: 1;
  transform: translateY(0);
}

.locations.revealed .stat-card:nth-child(1) {
  transition-delay: 0.5s;
}
.locations.revealed .stat-card:nth-child(2) {
  transition-delay: 0.6s;
}
.locations.revealed .stat-card:nth-child(3) {
  transition-delay: 0.7s;
}
.locations.revealed .stat-card:nth-child(4) {
  transition-delay: 0.8s;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(20, 184, 166, 0.1);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  animation: textGlow 3s ease-in-out infinite;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===================== */
/* PROJECTS SECTION      */
/* ===================== */

.projects {
  padding: 6rem 0;
}

.projects h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(40px) rotateX(10deg);
  transform-origin: bottom;
}

.projects.revealed .project-card {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.projects.revealed .project-card:nth-child(1) {
  transition-delay: 0.1s;
}
.projects.revealed .project-card:nth-child(2) {
  transition-delay: 0.2s;
}
.projects.revealed .project-card:nth-child(3) {
  transition-delay: 0.3s;
}
.projects.revealed .project-card:nth-child(4) {
  transition-delay: 0.4s;
}

.project-card:hover {
  border-color: var(--primary);
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(20, 184, 166, 0.15);
}

.project-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--secondary), var(--muted));
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
  transform: scale(1.15) rotate(2deg);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 15, 26, 0.8) 100%);
  transition: all 0.5s ease;
}

.project-card:hover .project-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(10, 15, 26, 0.5) 100%);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.project-card:hover .project-content h3 {
  color: var(--primary);
  transform: translateX(8px);
}

.project-content > p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.tech-tag-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: var(--secondary);
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.tech-tag-sm:hover {
  background: rgba(20, 184, 166, 0.2);
  color: var(--primary);
  transform: translateY(-2px);
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.project-links a {
  color: var(--muted-foreground);
  transition: all 0.4s ease;
  padding: 0.5rem;
  border-radius: 50%;
  background: var(--secondary);
}

.project-links a:hover {
  color: var(--primary-foreground);
  background: var(--primary);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.4);
}

/* ===================== */
/* CONTACT SECTION       */
/* ===================== */

.contact {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.3));
}

.contact-header {
  max-width: 32rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.1);
  margin-bottom: 1.5rem;
  animation: float 4s ease-in-out infinite, pulseGlow 3s ease-in-out infinite;
  position: relative;
}

.contact-icon::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px dashed rgba(20, 184, 166, 0.3);
  animation: rotateReverse 10s linear infinite;
}

.contact-icon svg {
  color: var(--primary);
  animation: wave 2s ease-in-out infinite;
}

.contact-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-header p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.contact-form {
  max-width: 36rem;
  margin: 0 auto;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-out;
}

.contact.revealed .form-group {
  opacity: 1;
  transform: translateY(0);
}

.contact.revealed .form-group:nth-child(1) {
  transition-delay: 0.1s;
}
.contact.revealed .form-group:nth-child(2) {
  transition-delay: 0.2s;
}
.contact.revealed .form-group:nth-child(3) {
  transition-delay: 0.3s;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
  transition: color 0.3s ease;
}

.form-group:focus-within label {
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--foreground);
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-foreground);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15), 0 0 20px rgba(20, 184, 166, 0.1);
  transform: translateY(-2px);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-foreground);
  background: linear-gradient(135deg, var(--primary), #0d9488);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.contact.revealed .submit-btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:hover::before {
  width: 400px;
  height: 400px;
}

.submit-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(20, 184, 166, 0.4), 0 0 30px rgba(20, 184, 166, 0.2);
}

.submit-btn:active {
  transform: translateY(-2px);
}

/* ===================== */
/* FOOTER                */
/* ===================== */

footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.8s ease-out;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

footer p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.footer-links a:hover::after {
  width: 100%;
}

/* ===================== */
/* SCROLL ANIMATIONS     */
/* ===================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== */
/* LOADING ANIMATION     */
/* ===================== */

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

/* ===================== */
/* CURSOR EFFECTS        */
/* ===================== */

@media (hover: hover) {
  .cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity 0.3s ease;
  }
}

/* ===================== */
/* SCROLLBAR             */
/* ===================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 5px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ===================== */
/* SELECTION             */
/* ===================== */

::selection {
  background: rgba(20, 184, 166, 0.3);
  color: var(--foreground);
}
