/* ═══════════════════════════════════════════════
       CSS CUSTOM PROPERTIES
    ═══════════════════════════════════════════════ */
:root {
  --bg: #05050f;
  --bg-2: #09091a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(139, 92, 246, 0.45);
  --purple: #8b5cf6;
  --purple-2: #a78bfa;
  --blue: #3b82f6;
  --pink: #ec4899;
  --text: #f1f0ff;
  --text-muted: #8b8aa8;
  --text-dim: #5c5b78;
  --grad: linear-gradient(135deg, var(--purple), var(--blue));
  --grad-2: linear-gradient(135deg, var(--purple), var(--pink));
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

.overlay-btn a {
  text-decoration: none;

}

.contact-card-icon a {
  text-decoration: none;
}

/* ═══════════════════════════════════════════════
       RESET & BASE
    ═══════════════════════════════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  /* cursor: none; */
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

p {
  display: block;
  margin: 0;
}

/* ═══════════════════════════════════════════════
       SCROLLBAR
    ═══════════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 4px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════
       NOISE TEXTURE OVERLAY
    ═══════════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ═══════════════════════════════════════════════
       ANIMATED BACKGROUND ORBS
    ═══════════════════════════════════════════════ */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--purple);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--blue);
  top: 40%;
  right: -150px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--pink);
  bottom: 10%;
  left: 20%;
  animation-delay: -14s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* ═══════════════════════════════════════════════
       REVEAL ANIMATION
    ═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-left.visible,
.reveal-right.visible {
  transform: translateX(0);
}

/* stagger children */
.stagger>* {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.stagger.visible>*:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.stagger.visible>*:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.stagger.visible>*:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.stagger.visible>*:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.stagger.visible>*:nth-child(5) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.stagger.visible>*:nth-child(6) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

/* ═══════════════════════════════════════════════
       SHARED UTILITIES
    ═══════════════════════════════════════════════ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--bg-card);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-2);
  font-family: var(--font-display);
  backdrop-filter: blur(10px);
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: 0.5;
    transform: scale(1.4)
  }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grad-text-2 {
  background: var(--grad-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.12), 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--grad);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover::after {
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.btn-outline:hover {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

/* ═══════════════════════════════════════════════
       HEADER / NAV
    ═══════════════════════════════════════════════ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 15, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

header.scrolled {
  background: rgba(5, 5, 15, 0.9);
  border-bottom-color: rgba(139, 92, 246, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.logo-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.logo:hover .logo-icon-wrap {
  transform: rotate(-8deg) scale(1.1);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.logo span.grad-text {
  font-size: 22px;
}

nav ul {
  display: flex;
  gap: 36px;
}

nav ul li a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.3s;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

nav ul li a:hover {
  color: var(--text);
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a.active {
  color: var(--text);
}

nav ul li a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

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

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

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(5, 5, 15, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px clamp(20px, 5vw, 60px);
  display: none;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--text);
}

/* ═══════════════════════════════════════════════
       HERO SECTION
    ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(20px, 5vw, 80px) 80px;
  overflow: hidden;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-2);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  background: rgba(139, 92, 246, 0.06);
  animation: fadeInDown 0.8s var(--ease) both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  animation: fadeInUp 0.8s var(--ease) 0.1s both;
}

.hero h1 .name {
  display: block;
  background: linear-gradient(135deg, #e879f9, #8b5cf6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: gradShift 5s ease infinite;
}

@keyframes gradShift {

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

  50% {
    background-position: 100%
  }
}

.hero-role {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s var(--ease) 0.2s both;
}

.hero-role .typing {
  color: var(--purple-2);
  border-right: 2px solid var(--purple);
  padding-right: 4px;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    border-color: var(--purple)
  }

  50% {
    border-color: transparent
  }
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 36px;
  border-left: 3px solid var(--purple);
  padding-left: 16px;
  animation: fadeInUp 0.8s var(--ease) 0.3s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s var(--ease) 0.4s both;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fadeInUp 0.8s var(--ease) 0.5s both;
}

.hero-socials span {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease);
}

.social-link:hover {
  border-color: var(--purple);
  color: var(--purple-2);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.08);
}

/* Hero Right / Image */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInRight 1s var(--ease) 0.3s both;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background: var(--grad);
  z-index: 0;
  opacity: 0.6;
  filter: blur(20px);
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1)
  }

  50% {
    opacity: 0.7;
    transform: scale(1.02)
  }
}

.hero-img-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  object-fit: cover;
}

/* Floating badges */
.float-badge {
  position: absolute;
  background: rgba(9, 9, 26, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(16px);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.float-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
  animation: pulse 2s infinite;
}

.badge-available {
  top: 16px;
  left: -30px;
  border-color: rgba(139, 92, 246, 0.4);
}

.badge-projects {
  bottom: 16px;
  right: -30px;
  border-color: rgba(59, 130, 246, 0.4);
}

.badge-projects .dot {
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}

a .btn-outline {
  text-decoration: none;
}

/* ═══════════════════════════════════════════════
       ABOUT SECTION
    ═══════════════════════════════════════════════ */
.about {
  position: relative;
  z-index: 1;
  padding: 100px clamp(20px, 5vw, 80px);
}

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.about-left .img-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  position: relative;
}

.about-left .img-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.6s var(--ease);
}

.about-left .img-card:hover img {
  transform: scale(1.04);
}

.about-left .img-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.about-info-card {
  padding: 16px 20px;
}

.about-info-card .role-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.role-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-2);
  font-size: 15px;
  flex-shrink: 0;
}

.role-text h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.role-text p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.location-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.location-line i {
  color: var(--purple);
}

.available-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4ade80;
  font-size: 12px;
}

.available-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse 2s infinite;
}

/* About Right */
.about-right .section-label {
  margin-bottom: 16px;
}

.about-right .section-title {
  margin-bottom: 24px;
}

.about-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

.about-divider {
  width: 60px;
  height: 3px;
  background: var(--grad);
  border-radius: 3px;
  margin: 24px 0;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.stat-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-2);
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}

.stat-card:hover .stat-icon {
  background: rgba(139, 92, 246, 0.2);
  transform: scale(1.1) rotate(-5deg);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════
       SKILLS SECTION
    ═══════════════════════════════════════════════ */
.skills {
  position: relative;
  z-index: 1;
  padding: 100px clamp(20px, 5vw, 80px);
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.04), transparent);
}

.skills-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.skills-header {
  text-align: center;
  margin-bottom: 64px;
}

.skills-header .section-label {
  margin-bottom: 16px;
}

.skills-header p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 12px auto 0;
}

/* Techstack banner */
.tech-banner {
  padding: 24px 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tech-banner-left h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tech-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.tech-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: all 0.35s ease;
}

.tech-icon-img:hover {
  transform: translateY(-6px) scale(1.15);
  filter: drop-shadow(0 0 12px currentColor);
}


.tech-icons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.tech-icon {
  font-size: 28px;
  transition: transform 0.3s var(--ease), filter 0.3s;
  cursor: default;
}

.tech-icon:hover {
  transform: translateY(-6px) scale(1.15);
  filter: drop-shadow(0 0 12px currentColor);
}

.interests {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.interest-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-card);
  transition: all 0.3s;
}

.interest-tag i {
  color: var(--purple);
}

.interest-tag:hover {
  border-color: var(--border-glow);
  color: var(--text);
}

/* Skill cards grid */
.skill-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.skill-card {
  padding: 28px;
  border-radius: var(--radius);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.skill-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-2);
  font-size: 18px;
  transition: all 0.3s;
}

.skill-card:hover .skill-card-icon {
  background: rgba(139, 92, 246, 0.2);
  transform: rotate(-8deg);
}

.skill-card-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.skill-card-header p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.skill-card-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.05);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s;
}

.skill-chip i {
  font-size: 16px;
}

.skill-chip:hover {
  border-color: var(--border-glow);
  background: rgba(139, 92, 246, 0.1);
  color: var(--text);
  transform: translateY(-2px);
}

.skill-chip img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.skill-chip:hover img {
  transform: scale(1.12);
}

.skill-chip span {
  display: flex;
  align-items: center;
}

/* What I'm good at */
.good-at {
  padding: 32px;
  border-radius: var(--radius);
}

.good-at-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.good-at-item {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  position: relative;
}

.good-at-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: var(--border);
}

.good-at-item:last-child::after {
  display: none;
}

.good-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 4px;
  transition: transform 0.3s var(--ease);
}

.good-at-item:hover .good-icon {
  transform: translateY(-4px) scale(1.1);
}

.good-icon-1 {
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.good-icon-2 {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.good-icon-3 {
  background: rgba(236, 72, 153, 0.12);
  color: var(--pink);
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.good-icon-4 {
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.good-icon-5 {
  background: rgba(20, 184, 166, 0.12);
  color: #14b8a6;
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.good-at-item h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.good-at-item p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Consistency pill */
.consistency-pill {
  margin: 32px auto 0;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.consistency-pill i {
  color: var(--purple);
}

.consistency-pill .sep {
  width: 1px;
  height: 18px;
  background: var(--border);
}

.consistency-pill:hover {
  border-color: var(--border-glow);
  color: var(--text);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
       PROJECTS SECTION
    ═══════════════════════════════════════════════ */
.projects {
  position: relative;
  z-index: 1;
  padding: 100px clamp(20px, 5vw, 80px);
}

.projects-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-header {
  text-align: center;
  margin-bottom: 48px;
}

.projects-header .section-label {
  margin-bottom: 16px;
}

.projects-header p {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 12px;
}

.proj-divider {
  width: 160px;
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  margin: 20px auto 0;
  position: relative;
}

.proj-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple);
  transform: translate(-50%, -50%);
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-tab {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-tab.active,
.filter-tab:hover {
  border-color: var(--border-glow);
  color: var(--purple-2);
  background: rgba(139, 92, 246, 0.08);
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: rgba(139, 92, 246, 0.05);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(5, 5, 15, 0.9));
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.overlay-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transform: translateY(8px);
  transition: transform 0.3s var(--ease), background 0.3s;
  backdrop-filter: blur(8px);
}

.project-card:hover .overlay-btn {
  transform: translateY(0);
}

.overlay-btn:hover {
  background: var(--purple);
}

.overlay-btn:nth-child(2) {
  background: rgba(9, 9, 26, 0.7);
  transition-delay: 0.05s;
}

.project-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-display);
  background: rgba(9, 9, 26, 0.8);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  color: var(--purple-2);
}

.project-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-chip {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--text-muted);
}

.project-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* ═══════════════════════════════════════════════
       CONTACT SECTION
    ═══════════════════════════════════════════════ */
.contact {
  position: relative;
  z-index: 1;
  padding: 100px clamp(20px, 5vw, 80px);
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.03), transparent);
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 64px;
}

.contact-header .section-label {
  margin-bottom: 16px;
}

.contact-header p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 12px auto 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-left h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-left h2 span {
  background: var(--grad-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-left>p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.contact-card {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.contact-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-2);
  font-size: 16px;
  transition: all 0.3s;
  flex-shrink: 0;
}

.contact-card:hover .contact-card-icon {
  background: rgba(139, 92, 246, 0.2);
  transform: scale(1.1) rotate(-8deg);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
}

.contact-card h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-card p {
  font-size: 12px;
  color: var(--text-muted);
}

.contact-card .arrow {
  color: var(--purple);
  font-size: 13px;
  transition: transform 0.3s;
}

.contact-card:hover .arrow {
  transform: translate(3px, -3px);
}

.contact-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-socials span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Form */
.contact-form {
  padding: 36px;
  border-radius: var(--radius);
}

.form-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.form-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-2);
  font-size: 18px;
}

.form-top h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.form-top p {
  font-size: 12px;
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  outline: none;
  resize: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
}

input:hover,
textarea:hover {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.03);
}

input:focus,
textarea:focus {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.05);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

textarea {
  min-height: 130px;
}

.form-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════
       FOOTER
    ═══════════════════════════════════════════════ */
footer {
  position: relative;
  z-index: 1;
  padding: 24px clamp(20px, 5vw, 80px);
  border-top: 1px solid var(--border);
  background: rgba(9, 9, 26, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer p {
  font-size: 13px;
  color: var(--text-muted);
}

footer p span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.footer-heart {
  color: var(--pink);
  animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.25)
  }
}

/* ═══════════════════════════════════════════════
       SCROLL TO TOP
    ═══════════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.scroll-top.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(139, 92, 246, 0.5);
}

/* ═══════════════════════════════════════════════
       KEYFRAMES
    ═══════════════════════════════════════════════ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

/* ═══════════════════════════════════════════════
       RESPONSIVE — TABLET (≤900px)
    ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  nav {
    display: none;
  }

  .nav-cta .btn-primary {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-socials {
    justify-content: center;
  }

  .hero-visual {
    max-width: 360px;
    margin: 0 auto;
  }

  .badge-available {
    left: -10px;
  }

  .badge-projects {
    right: -10px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }

  .about-left .img-card {
    flex: 1;
    min-width: 200px;
  }

  .about-left .img-card img {
    aspect-ratio: 1/1;
  }

  .about-info-card {
    flex: 1;
    min-width: 200px;
  }

  .skill-cards {
    grid-template-columns: 1fr 1fr;
  }

  .good-at-grid {
    flex-wrap: wrap;
  }

  .good-at-item {
    min-width: 45%;
  }

  .good-at-item::after {
    display: none;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════
       RESPONSIVE — MOBILE (≤580px)
    ═══════════════════════════════════════════════ */
@media (max-width: 580px) {
  .hero {
    padding: 100px 20px 60px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-visual {
    max-width: 100%;
  }

  .float-badge {
    display: none;
  }

  .about,
  .skills,
  .projects,
  .contact {
    padding: 60px 20px;
  }

  .skill-cards {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .good-at-grid {
    flex-direction: column;
  }

  .good-at-item {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  footer {
    flex-direction: column;
    text-align: center;
  }

  .consistency-pill {
    flex-direction: column;
    text-align: center;
  }

  .consistency-pill .sep {
    width: 40px;
    height: 1px;
  }

  .about-left {
    flex-direction: column;
  }
}




/* ═══════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤360px)
═══════════════════════════════════════════════ */

@media (max-width: 360px) {

  header {
    padding: 0 16px;
    height: 66px;
  }

  .logo {
    font-size: 18px;
    gap: 8px;
  }

  .logo-icon-wrap {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .hero {
    padding: 90px 16px 50px;
    min-height: auto;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.1;
  }

  .hero-role {
    font-size: 16px;
  }

  .hero-desc {
    font-size: 13px;
    padding-left: 12px;
    line-height: 1.7;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .hero-socials {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .hero-img-wrap {
    max-width: 100%;
  }

  .about,
  .skills,
  .projects,
  .contact {
    padding: 50px 16px;
  }

  .section-title {
    font-size: 28px;
    line-height: 1.2;
  }

  .section-label {
    font-size: 10px;
    padding: 5px 12px;
  }

  .about-body p,
  .projects-header p,
  .skills-header p,
  .contact-header p {
    font-size: 13px;
    line-height: 1.7;
  }

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

  .stat-card {
    padding: 16px;
  }

  .stat-num {
    font-size: 22px;
  }

  .tech-banner {
    padding: 20px;
    gap: 20px;
  }

  .tech-icons {
    gap: 12px;
    justify-content: center;
  }

  .tech-icon {
    font-size: 24px;
  }

  .interest-tag {
    width: 100%;
    justify-content: center;
  }

  .skill-card {
    padding: 22px;
  }

  .skill-card-header {
    gap: 12px;
  }

  .skill-card-header h3 {
    font-size: 15px;
  }

  .skill-chip {
    width: 100%;
    justify-content: center;
  }

  .good-at {
    padding: 22px;
  }

  .good-at-item {
    padding: 18px;
  }

  .filter-tabs {
    flex-wrap: wrap;
    gap: 10px;
  }

  .filter-tab {
    width: 100%;
    text-align: center;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-info {
    padding: 18px;
  }

  .project-info h3 {
    font-size: 15px;
  }

  .project-actions {
    flex-direction: column;
  }

  .contact-grid {
    gap: 32px;
  }

  .contact-left h2 {
    font-size: 24px;
  }

  .contact-card {
    padding: 14px 16px;
  }

  .contact-form {
    padding: 22px;
  }

  .form-top {
    align-items: flex-start;
  }

  .form-submit {
    justify-content: center;
  }

  .form-submit .btn-primary {
    width: 100%;
  }

  footer {
    padding: 20px 16px;
    gap: 10px;
  }

  footer p {
    font-size: 12px;
    line-height: 1.6;
  }

  .scroll-top {
    width: 40px;
    height: 40px;
    right: 16px;
    bottom: 20px;
    font-size: 16px;
  }
}

.success-popup {

  position: fixed;

  top: 30px;
  right: 30px;

  display: flex;
  align-items: center;
  gap: 14px;

  width: 320px;

  padding: 18px;

  border-radius: 18px;

  background: rgba(15, 23, 42, 0.95);

  border: 1px solid rgba(139, 92, 246, 0.2);

  backdrop-filter: blur(14px);

  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(139, 92, 246, 0.15);

  z-index: 9999;

  transform: translateX(140%);
  opacity: 0;

  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}


/* active popup */

.success-popup.show {

  transform: translateX(0);

  opacity: 1;
}


/* icon circle */

.popup-icon {

  width: 52px;
  height: 52px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg,
      #22c55e,
      #16a34a);

  flex-shrink: 0;

  animation: popScale 0.5s ease;
}


/* check icon */

.popup-icon i {

  color: white;

  font-size: 22px;
}


/* text */

.popup-text h4 {

  color: white;

  font-size: 16px;

  margin-bottom: 4px;
}


.popup-text p {

  color: #cbd5e1;

  font-size: 13px;

  line-height: 1.4;
}

.copied {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(360px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.94));
  color: #fff;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(-14px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.25s ease;
}

.copied.copiedShow {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.copied i {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 34%),
    linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow:
    0 8px 18px rgba(34, 197, 94, 0.35),
    0 0 0 6px rgba(34, 197, 94, 0.12);
  animation: copiedIconPop 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.25);
}

.copied span {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.copied::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;

  height: 3px;
  border-radius: 999px;

  background: linear-gradient(90deg, #22c55e, #86efac);
  transform-origin: left;
  animation: copiedProgress 2.4s linear forwards;
}

@keyframes copiedIconPop {
  0% {
    transform: scale(0.55);
    opacity: 0;
  }

  70% {
    transform: scale(1.08);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

@keyframes copiedProgress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

@media (max-width: 480px) {
  .copied {
    top: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    padding: 14px 16px;
    border-radius: 12px;
  }

  .copied i {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .copied span {
    font-size: 13px;
  }
}

@keyframes popScale {

  0% {

    transform: scale(0);
  }

  70% {

    transform: scale(1.15);
  }

  100% {

    transform: scale(1);
  }
}

/* Hide native cursor on desktop */
@media (pointer: fine) {

  *,
  *:hover {
    cursor: none !important;
  }
}

/* ── Core elements ── */
.c-cursor,
.c-cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  will-change: transform;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

/* ── Inner dot ── */
.c-cursor {
  width: 6px;
  height: 6px;
  background: #fff;
  transition: width 0.2s ease,
    height 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

/* ── Outer ring ── */
.c-cursor-trail {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  transition: width 0.25s ease,
    height 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease;
}

/* ── Hover state ── */
.c-cursor.is-hovering {
  width: 0px;
  height: 0px;
  opacity: 0;
}

.c-cursor-trail.is-hovering {
  width: 52px;
  height: 52px;
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ── Click ripple ── */
.c-cursor-trail.is-clicking {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.9);
  transition: width 0.12s ease,
    height 0.12s ease,
    background 0.12s ease,
    border-color 0.12s ease;
}

/* ── Text hover: thin underline bar ── */
.c-cursor-trail.is-text {
  width: 2px;
  height: 44px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  transition: width 0.18s ease,
    height 0.18s ease,
    border-radius 0.18s ease,
    background 0.18s ease;
}

/* ── Hidden when mouse leaves window ── */
.c-cursor.is-hidden,
.c-cursor-trail.is-hidden {
  opacity: 0;
}

/* ── Mobile: restore native cursor, hide elements ── */
@media (pointer: coarse) {

  .c-cursor,
  .c-cursor-trail {
    display: none;
  }
}

/* Prevent any element from ever causing horizontal scroll */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* All images and videos respect their container */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Prevent long words / URLs from breaking layout */
p,
h1,
h2,
h3,
h4,
li,
span {
  word-break: break-word;
  overflow-wrap: break-word;
}


/* ───────────────────────────────────────────
   2. ≤ 1200px  — Wide Desktop cap
   Stops content sprawling on 1440 / 4K screens
─────────────────────────────────────────── */
@media (max-width: 1200px) {

  /* Ensure padded sections don't over-stretch */
  .hero,
  .about,
  .skills,
  .projects,
  .contact {
    padding-left: clamp(24px, 4vw, 64px);
    padding-right: clamp(24px, 4vw, 64px);
  }

  /* Project grid: 4 → 3 cols */
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Skill cards: keep 3 cols but tighten gap */
  .skill-cards {
    gap: 16px;
  }

  /* Hero image cap */
  .hero-img-wrap {
    max-width: 380px;
  }

  /* About sidebar cap */
  .about-grid {
    grid-template-columns: 300px 1fr;
    gap: 48px;
  }

  /* Badges tuck in */
  .badge-available {
    left: -16px;
  }

  .badge-projects {
    right: -16px;
  }
}


/* ───────────────────────────────────────────
   3. ≤ 992px  — Small Desktop / Landscape Tablet
─────────────────────────────────────────── */
@media (max-width: 992px) {

  /* Nav collapses to hamburger here (existing rule was 900px — keep parity) */
  nav {
    display: none;
  }

  .nav-cta .btn-primary {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero: switch to single column, tighten spacing */
  .hero {
    padding-top: 108px;
    padding-bottom: 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-socials {
    justify-content: center;
  }

  .hero-visual {
    max-width: 400px;
    margin: 0 auto;
  }

  .badge-available {
    left: -8px;
  }

  .badge-projects {
    right: -8px;
  }

  /* About: stack */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }

  .about-left .img-card {
    flex: 1;
    min-width: 200px;
  }

  .about-left .img-card img {
    aspect-ratio: 1 / 1;
  }

  .about-info-card {
    flex: 1;
    min-width: 200px;
  }

  /* Skills: 3 → 2 cols */
  .skill-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Good-at: wrap into 2 rows of 3 */
  .good-at-grid {
    flex-wrap: wrap;
  }

  .good-at-item {
    min-width: calc(33.333% - 8px);
  }

  .good-at-item::after {
    display: none;
  }

  /* Projects: 3 → 2 cols */
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact: stack */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Tech banner: stack internally */
  .tech-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}


/* ───────────────────────────────────────────
   4. ≤ 768px  — Tablet Portrait
─────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Section padding */
  .hero,
  .about,
  .skills,
  .projects,
  .contact {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  /* Hero */
  .hero {
    padding-top: 100px;
  }

  .hero h1 {
    font-size: clamp(34px, 8vw, 48px);
  }

  .hero-role {
    font-size: clamp(16px, 4vw, 22px);
  }

  .hero-visual {
    max-width: 320px;
  }

  /* Float badges: hide on tablet portrait to avoid overflow */
  .badge-available,
  .badge-projects {
    display: none;
  }

  /* About */
  .about-left {
    flex-direction: column;
  }

  .about-left .img-card img {
    aspect-ratio: 4 / 3;
  }

  /* Stats: 2-col kept but smaller padding */
  .stat-card {
    padding: 16px 14px;
  }

  .stat-num {
    font-size: 22px;
  }

  /* Skills */
  .skill-cards {
    grid-template-columns: 1fr;
  }

  .skill-card {
    padding: 22px 20px;
  }

  /* Good-at: 2-col grid at tablet */
  .good-at-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .good-at-item {
    min-width: calc(50% - 8px);
    flex: 1 1 calc(50% - 8px);
  }

  /* Tech banner */
  .tech-banner {
    padding: 20px;
  }

  .tech-icons {
    gap: 12px;
    flex-wrap: wrap;
  }

  /* Interests: wrap freely */
  .interests {
    flex-wrap: wrap;
  }

  .interest-tag {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Projects */
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Filter tabs: wrap */
  .filter-tabs {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .filter-tab {
    font-size: 12px;
    padding: 7px 16px;
  }

  /* Contact form */
  .contact-form {
    padding: 24px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Footer */
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px;
  }

  /* Scroll-top */
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}


/* ───────────────────────────────────────────
   5. ≤ 576px  — Large Mobile / Phablet
─────────────────────────────────────────── */
@media (max-width: 576px) {

  /* Header */
  header {
    height: 68px;
    padding: 0 18px;
  }

  .logo {
    font-size: 19px;
    gap: 8px;
  }

  .logo-icon-wrap {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  /* Section padding */
  .hero,
  .about,
  .skills,
  .projects,
  .contact {
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero {
    padding-top: 96px;
  }

  /* Hero */
  .hero h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .hero-role {
    font-size: 16px;
  }

  .hero-desc {
    font-size: 13px;
    padding-left: 12px;
    line-height: 1.7;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 11px 20px;
  }

  .hero-visual {
    max-width: 100%;
  }

  /* Section headings */
  .section-title {
    font-size: clamp(26px, 7vw, 34px);
  }

  .section-label {
    font-size: 10px;
    padding: 5px 12px;
    letter-spacing: 0.1em;
  }

  /* About */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Skills */
  .good-at {
    padding: 20px 16px;
  }

  .good-at-item {
    min-width: 100%;
    flex: 1 1 100%;
    padding: 16px 12px;
  }

  .good-at-item::after {
    display: none;
  }

  /* Tech */
  .tech-banner {
    gap: 18px;
  }

  .tech-icon-img {
    width: 24px;
    height: 24px;
  }

  .interest-tag {
    width: 100%;
    justify-content: center;
  }

  /* Skill chips */
  .skill-chip {
    width: 100%;
    justify-content: center;
  }

  /* Projects: single column */
  .project-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-info {
    padding: 16px;
  }

  .project-info h3 {
    font-size: 15px;
  }

  .project-actions {
    flex-direction: column;
    gap: 8px;
  }

  .project-actions .btn-outline,
  .project-actions .btn-primary {
    width: 100%;
    justify-content: center;
    font-size: 12px;
    padding: 10px 16px;
  }

  /* Filter tabs: single row, scrollable */
  .filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    flex-shrink: 0;
    font-size: 12px;
    padding: 7px 14px;
  }

  /* Contact */
  .contact-left h2 {
    font-size: clamp(22px, 6vw, 28px);
  }

  .contact-card {
    padding: 14px 16px;
  }

  .contact-form {
    padding: 20px 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-submit {
    justify-content: center;
  }

  .form-submit .btn-primary {
    width: 100%;
  }

  /* Popups: full width on mobile */
  .success-popup,
  .copied {
    top: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    border-radius: 14px;
  }

  /* Consistency pill */
  .consistency-pill {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 14px 20px;
  }

  .consistency-pill .sep {
    width: 40px;
    height: 1px;
  }

  /* Mobile nav */
  .mobile-nav {
    padding: 20px 18px;
    gap: 16px;
  }

  .mobile-nav a {
    font-size: 16px;
  }
}

@media (max-width: 360px) {

  header {
    height: 62px;
    padding: 0 14px;
  }

  .logo {
    font-size: 17px;
    gap: 7px;
  }

  .logo-icon-wrap {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  /* Hero */
  .hero {
    padding: 84px 14px 44px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 28px;
    letter-spacing: -0.025em;
  }

  .hero-role {
    font-size: 14px;
  }

  .hero-desc {
    font-size: 12.5px;
    padding-left: 10px;
  }

  .hero-socials {
    gap: 10px;
  }

  .social-link {
    width: 34px;
    height: 34px;
    font-size: 13px;
    border-radius: 8px;
  }

  /* Sections */
  .about,
  .skills,
  .projects,
  .contact {
    padding: 44px 14px;
  }

  /* Section labels / titles */
  .section-title {
    font-size: 26px;
  }

  .section-label {
    font-size: 9px;
    padding: 4px 10px;
  }

  /* Stats: stack to 1 col */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 14px 12px;
  }

  .stat-num {
    font-size: 20px;
  }

  .stat-label {
    font-size: 11px;
  }

  /* Tech */
  .tech-banner {
    padding: 16px 14px;
    gap: 16px;
  }

  .tech-icons {
    gap: 10px;
    justify-content: center;
  }

  .tech-icon {
    font-size: 22px;
  }

  .tech-icon-img {
    width: 22px;
    height: 22px;
  }

  /* Skills */
  .skill-card {
    padding: 18px 14px;
  }

  .skill-card-header {
    gap: 10px;
    margin-bottom: 16px;
  }

  .skill-card-header h3 {
    font-size: 14px;
  }

  .skill-card-icon {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .skill-chip {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* Good-at */
  .good-at {
    padding: 18px 12px;
  }

  .good-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .good-at-item h4 {
    font-size: 13px;
  }

  .good-at-item p {
    font-size: 11.5px;
  }

  /* Projects */
  .project-info h3 {
    font-size: 14px;
  }

  .project-chip {
    font-size: 10px;
    padding: 2px 8px;
  }

  /* Contact */
  .contact-left h2 {
    font-size: 21px;
  }

  .contact-card {
    padding: 12px 14px;
  }

  .contact-card h4 {
    font-size: 12px;
  }

  .contact-card p {
    font-size: 11px;
  }

  .contact-card-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .contact-form {
    padding: 18px 14px;
  }

  .form-top h4 {
    font-size: 14px;
  }

  .form-top p {
    font-size: 11px;
  }

  input[type="text"],
  input[type="email"],
  textarea {
    font-size: 13px;
    padding: 10px 12px;
  }

  /* Footer */
  footer {
    padding: 18px 14px;
    gap: 8px;
  }

  footer p {
    font-size: 11.5px;
    line-height: 1.65;
  }

  /* Scroll-top */
  .scroll-top {
    width: 38px;
    height: 38px;
    bottom: 16px;
    right: 14px;
    font-size: 15px;
    border-radius: 10px;
  }

  /* Mobile nav */
  .mobile-nav {
    padding: 16px 14px;
    gap: 14px;
  }

  .mobile-nav a {
    font-size: 15px;
  }

  /* Popups */
  .success-popup,
  .copied {
    top: 12px;
    right: 12px;
    left: 12px;
    padding: 14px;
    border-radius: 12px;
  }

  .popup-icon,
  .copied i {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 17px;
  }

  .popup-text h4 {
    font-size: 14px;
  }

  .popup-text p {
    font-size: 12px;
  }

  .copied span {
    font-size: 12.5px;
  }

  /* Filter tabs: scrollable row */
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    flex-shrink: 0;
    font-size: 11px;
    padding: 6px 12px;
  }

  /* Buttons full-width */
  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 10px 16px;
  }
}