:root {
  --primary: #55d6be;
  --secondary: #ff8a65;
  --accent: #7aa2f7;
  --dark: #101820;
  --darker: #081016;
  --light: #f2f7f5;
  --gray: #aab9ba;
  --card-bg: rgba(17, 31, 38, 0.78);
  --border: rgba(137, 184, 181, 0.23);
  --font-sans: "Manrope", sans-serif;
  --font-mono: "DM Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--darker);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  z-index: 10001;
  background: var(--primary);
  color: var(--dark);
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Custom cursor is a desktop-only enhancement */
@media (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ===== BACKGROUND ANIMATION ===== */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(131, 56, 236, 0.14) 0%,
    transparent 70%
  );
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(163, 80, 163, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 80, 163, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  box-shadow: 0 0 8px var(--primary);
  animation: float 15s infinite ease-in-out;
  will-change: transform;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.4;
  }
  25% {
    transform: translate(100px, -100px);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50px, -200px);
    opacity: 0.3;
  }
  75% {
    transform: translate(150px, -150px);
    opacity: 0.5;
  }
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(163, 80, 163, 0.8) 0%,
    rgba(10, 10, 15, 0.4) 50%,
    transparent 100%
  );
  box-shadow:
    0 0 20px rgba(163, 80, 163, 0.6),
    inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.cursor-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #000000 0%, rgba(163, 80, 163, 0.8) 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 10px rgba(163, 80, 163, 1),
    inset 0 0 5px rgba(0, 0, 0, 1);
}

.cursor::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent 30%,
    rgba(163, 80, 163, 0.1) 60%,
    transparent 100%
  );
  animation: cursorPulse 2s ease-in-out infinite;
}

@keyframes cursorPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.2;
  }
}

.cursor.hover {
  transform: translate(-50%, -50%) scale(1.3);
  background: radial-gradient(
    circle,
    rgba(193, 67, 109, 0.9) 0%,
    rgba(10, 10, 15, 0.5) 50%,
    transparent 100%
  );
  box-shadow:
    0 0 30px rgba(193, 67, 109, 0.8),
    inset 0 0 25px rgba(0, 0, 0, 0.9);
  transition: transform 0.2s ease;
}

.cursor.hover .cursor-inner {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #000000 0%, rgba(193, 67, 109, 0.9) 100%);
  box-shadow:
    0 0 15px rgba(193, 67, 109, 1),
    inset 0 0 8px rgba(0, 0, 0, 1);
}

.cursor.hover::before {
  animation: cursorPulse 1s ease-in-out infinite;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--darker);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
}

.loading-logo {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 40px;
  position: relative;
}

.glitch {
  position: relative;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 5px;
  animation: glitch-skew 1s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--secondary);
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--accent);
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(12px, 9999px, 48px, 0);
  }
  20% {
    clip: rect(67px, 9999px, 82px, 0);
  }
  40% {
    clip: rect(33px, 9999px, 9px, 0);
  }
  60% {
    clip: rect(91px, 9999px, 55px, 0);
  }
  80% {
    clip: rect(22px, 9999px, 74px, 0);
  }
  100% {
    clip: rect(58px, 9999px, 30px, 0);
  }
}

@keyframes glitch-skew {
  0% {
    transform: skew(0deg);
  }
  10% {
    transform: skew(-2deg);
  }
  20% {
    transform: skew(2deg);
  }
  30% {
    transform: skew(0deg);
  }
  100% {
    transform: skew(0deg);
  }
}

.loading-bar {
  width: 300px;
  height: 4px;
  background: rgba(163, 80, 163, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 20px;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  background-size: 200% 100%;
  animation:
    loading 2s ease-in-out infinite,
    shimmer 1.5s linear infinite;
  border-radius: 2px;
}

@keyframes loading {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

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

.loading-text {
  font-size: 0.9rem;
  color: var(--gray);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 1, 13, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav.scrolled {
  padding: 15px 50px;
  background: rgba(6, 1, 13, 0.95);
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  gap: 5px;
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 20px;
  color: var(--gray);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.nav-number {
  font-size: 0.65rem;
  color: var(--primary);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.nav-text {
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--light);
}

.nav-item:hover .nav-number,
.nav-item.active .nav-number {
  opacity: 1;
}

.nav-item:hover::before,
.nav-item.active::before {
  width: 80%;
}

/* ===== SECTIONS ===== */
.section {
  min-height: 100vh;
  padding: 120px 50px 80px;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 80px;
  animation: fadeInUp 0.8s ease;
}

.section-number {
  font-family: var(--font-sans);
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.7;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.18));
}

.section-title {
  font-family: var(--font-sans);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--light);
  letter-spacing: 3px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

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

/* ===== HOME SECTION ===== */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(
    circle at center,
    rgba(163, 80, 163, 0.05) 0%,
    transparent 70%
  );
}

.hero-content {
  text-align: center;
  max-width: 960px;
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 5px;
  color: var(--primary);
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease 0.2s both;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 30px;
  letter-spacing: -0.04em;
}

.title-line {
  word-spacing: 0.8rem;
  background: linear-gradient(
    135deg,
    var(--light) 0%,
    var(--primary) 50%,
    var(--secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease 0.3s both;
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--gray);
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease 0.7s both;
  letter-spacing: 0;
  font-weight: 300;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.9s both;
}

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  animation: fadeInUp 0.8s ease 1.25s both;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
}

.hero-meta strong {
  color: var(--light);
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeInUp 0.8s ease 1.1s both;
  flex-wrap: wrap;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 18px 40px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid;
  overflow: hidden;
  transition: all 0.3s ease;
  font-family: var(--font-mono);
}

.cta-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: var(--dark);
}

.cta-btn.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-btn.primary:hover::before {
  opacity: 1;
}

.cta-btn.secondary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.cta-btn.secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.cta-btn.secondary:hover {
  color: var(--dark);
}

.cta-btn.secondary:hover::before {
  transform: scaleX(1);
}

.btn-text,
.btn-arrow {
  position: relative;
  z-index: 1;
}

.btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.cta-btn:hover .btn-arrow {
  transform: translateX(5px);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: var(--gray);
  font-size: 0.7rem;
  letter-spacing: 3px;
  animation: fadeIn 1s ease 1.5s both;
  z-index: 0;
}

@media (max-height: 800px) {
  .scroll-indicator {
    display: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

/* ===== ABOUT SECTION ===== */
.about {
  background: linear-gradient(
    135deg,
    rgba(13, 2, 33, 0.5) 0%,
    rgba(6, 1, 13, 0.8) 100%
  );
}

.about-content {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px;
  border: 2px solid var(--border);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s ease;
}

.image-wrapper:hover .profile-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  mix-blend-mode: multiply;
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-overlay {
  opacity: 0.1;
}

.image-decoration {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid var(--primary);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.3;
}

.about-text {
  animation: fadeInUp 0.8s ease;
}

.about-subtitle {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.about-description {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 25px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== SKILLS SECTION ===== */
.skills {
  background: radial-gradient(
    circle at bottom right,
    rgba(131, 56, 236, 0.05) 0%,
    transparent 70%
  );
}

.skills-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 24px;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.skills-grid::-webkit-scrollbar {
  height: 4px;
}

.skills-grid::-webkit-scrollbar-track {
  background: var(--card-bg);
  border-radius: 2px;
}

.skills-grid::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 2px;
}

.skill-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease both;
  flex: 1 0 260px;
  scroll-snap-align: start;
}

.skill-card:nth-child(1) {
  animation-delay: 0.1s;
}
.skill-card:nth-child(2) {
  animation-delay: 0.2s;
}
.skill-card:nth-child(3) {
  animation-delay: 0.3s;
}
.skill-card:nth-child(4) {
  animation-delay: 0.4s;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(163, 80, 163, 0.05),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

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

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(163, 80, 163, 0.1);
}

.skill-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 25px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
  color: var(--secondary);
  transform: scale(1.1) rotate(5deg);
}

.skill-icon svg {
  width: 100%;
  height: 100%;
}

.skill-title {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  color: var(--light);
  margin-bottom: 30px;
  font-weight: 700;
  letter-spacing: 1px;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(163, 80, 163, 0.05);
  border-left: 2px solid var(--primary);
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0.1;
  transition: width 0.3s ease;
}

.skill-item:hover::before {
  width: 100%;
}

.skill-item:hover {
  transform: translateX(10px);
  border-left-color: var(--secondary);
  background: rgba(163, 80, 163, 0.1);
}

.skill-name {
  font-size: 0.95rem;
  color: var(--light);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* ===== PROJECTS SECTION ===== */
.projects {
  background: linear-gradient(
    180deg,
    rgba(6, 1, 13, 0.8) 0%,
    rgba(13, 2, 33, 0.5) 100%
  );
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  animation: fadeInUp 0.8s ease both;
}

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

.project-card:hover {
  transform: translateY(-15px);
  border-color: var(--primary);
  box-shadow: 0 25px 60px rgba(163, 80, 163, 0.15);
}

.project-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-sans);
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.1;
  z-index: 0;
  transition: all 0.3s ease;
}

.project-card:hover .project-number {
  opacity: 0.2;
  transform: scale(1.1);
}

.project-image {
  height: 250px;
  background: linear-gradient(
    135deg,
    rgba(163, 80, 163, 0.1),
    rgba(255, 0, 110, 0.1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(163, 80, 163, 0.05),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.project-card:hover .project-image::before {
  transform: translateX(100%);
}

.project-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-icon {
  width: 80px;
  height: 80px;
  color: var(--primary);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.project-card:hover .project-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--secondary);
}

.project-icon svg {
  width: 100%;
  height: 100%;
}

.project-info {
  padding: 35px;
  position: relative;
  z-index: 1;
}

.project-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  color: var(--light);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.project-card:hover .project-title {
  color: var(--primary);
}

.project-role {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.project-description {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 25px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 6px 15px;
  background: rgba(163, 80, 163, 0.1);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--primary);
  color: var(--dark);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.project-links {
  margin-top: 14px;
}

.project-link-btn {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-link-btn:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateX(4px);
}

/* ===== ACHIEVEMENTS SECTION ===== */
.achievements {
  background: radial-gradient(
    circle at top left,
    rgba(131, 56, 236, 0.05) 0%,
    transparent 70%
  );
}

.achievements-category {
  margin-bottom: 80px;
}

.achievements-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 40px;
  font-weight: 700;
  letter-spacing: 2px;
  padding-left: 20px;
  border-left: 4px solid var(--primary);
}

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

.achievement-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 35px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease both;
}

.achievement-card:nth-child(1) {
  animation-delay: 0.1s;
}
.achievement-card:nth-child(2) {
  animation-delay: 0.2s;
}
.achievement-card:nth-child(3) {
  animation-delay: 0.3s;
}

.achievement-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.achievement-card:hover::before {
  transform: scaleY(1);
}

.achievement-card:hover {
  transform: translateX(10px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(163, 80, 163, 0.1);
}

.achievement-year {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 15px;
  letter-spacing: 2px;
  font-weight: 700;
}

.achievement-title {
  font-size: 1.3rem;
  color: var(--light);
  margin-bottom: 10px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.achievement-card:hover .achievement-title {
  color: var(--primary);
}

.achievement-org {
  font-size: 0.9rem;
  color: var(--secondary);
  margin-bottom: 15px;
  font-weight: 600;
}

.achievement-desc {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.certification-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 15px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease both;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.certification-item::after {
  content: "↗";
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--primary);
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  flex-shrink: 0;
}

.certification-item:hover::after {
  opacity: 1;
  transform: translateX(3px) translateY(-3px);
}

.certification-item:nth-child(1) {
  animation-delay: 0.05s;
}
.certification-item:nth-child(2) {
  animation-delay: 0.1s;
}
.certification-item:nth-child(3) {
  animation-delay: 0.15s;
}
.certification-item:nth-child(4) {
  animation-delay: 0.2s;
}
.certification-item:nth-child(5) {
  animation-delay: 0.25s;
}
.certification-item:nth-child(6) {
  animation-delay: 0.3s;
}
.certification-item:nth-child(7) {
  animation-delay: 0.35s;
}
.certification-item:nth-child(8) {
  animation-delay: 0.4s;
}
.certification-item:nth-child(9) {
  animation-delay: 0.45s;
}
.certification-item:nth-child(10) {
  animation-delay: 0.5s;
}

.certification-item:hover {
  transform: translateX(10px);
  border-color: var(--primary);
  background: rgba(163, 80, 163, 0.05);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 20px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease both;
}

.badge-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(163, 80, 163, 0.12);
}

.badge-mark {
  width: 58px;
  height: 58px;
  min-width: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #06141d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.badge-blue {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
}

.badge-green {
  background: linear-gradient(135deg, #86efac, #4ade80);
}

.badge-gold {
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
}

.badge-texts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--light);
  line-height: 1.4;
}

.badge-source {
  font-size: 0.8rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}

.cert-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--dark);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 900;
  flex-shrink: 0;
}

.cert-name {
  font-size: 0.95rem;
  color: var(--light);
  line-height: 1.5;
}

.cert-org {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: linear-gradient(
    180deg,
    rgba(13, 2, 33, 0.5) 0%,
    rgba(6, 1, 13, 1) 100%
  );
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-subtitle {
  font-size: 2rem;
  color: var(--light);
  margin-bottom: 20px;
  font-weight: 700;
}

.contact-description {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 50px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease both;
}

.contact-item:nth-child(1) {
  animation-delay: 0.1s;
}
.contact-item:nth-child(2) {
  animation-delay: 0.2s;
}
.contact-item:nth-child(3) {
  animation-delay: 0.3s;
}
.contact-item:nth-child(4) {
  animation-delay: 0.4s;
}
.contact-item:nth-child(5) {
  animation-delay: 0.5s;
}

.contact-item:hover {
  transform: translateX(10px);
  border-color: var(--primary);
  background: rgba(163, 80, 163, 0.05);
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  color: var(--dark);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: rotate(5deg) scale(1.1);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-text {
  flex: 1;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.contact-value {
  font-size: 1rem;
  color: var(--light);
  font-weight: 600;
}

.contact-form {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  animation: fadeInUp 0.8s ease;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(163, 80, 163, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--light);
  font-family: var(--font-mono);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(163, 80, 163, 0.1);
  box-shadow: 0 0 20px rgba(163, 80, 163, 0.1);
}

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

.submit-btn {
  width: 100%;
  padding: 18px 30px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 10px;
  color: var(--dark);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submit-btn:hover::before {
  opacity: 1;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(163, 80, 163, 0.3);
}

.submit-btn span,
.submit-btn svg {
  position: relative;
  z-index: 1;
}

.submit-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.submit-btn:hover svg {
  transform: translateX(5px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--darker);
  border-top: 1px solid var(--border);
  padding: 50px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 3px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 10px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--gray);
  letter-spacing: 1px;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .section {
    padding: 100px 30px 60px;
  }

  .nav {
    padding: 20px 30px;
  }

  .about-content {
    grid-template-columns: 350px 1fr;
    gap: 50px;
  }
}

@media (max-width: 968px) {
  .section-title {
    font-size: 2.5rem;
  }

  .section-number {
    font-size: 4rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .projects-grid,
  .achievements-grid,
  .certifications-grid {
    grid-template-columns: 1fr;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(6, 1, 13, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 1000;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-item {
    font-size: 1rem;
    padding: 15px 30px;
    letter-spacing: 3px;
  }

  .nav-number {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 20px 40px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-meta {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 300px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-number {
    font-size: 3rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .image-wrapper {
    max-width: 300px;
    margin: 0 auto;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .section-number {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .nav {
    padding: 15px 20px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-item {
    padding: 6px 8px;
    font-size: 0.6rem;
  }

  .projects-grid,
  .achievements-grid,
  .certifications-grid {
    grid-template-columns: 1fr;
  }
}
