@font-face {
  font-family: "iran";
  src: url(font/iran.woff2);
}

/* ========== CSS VARIABLES & RESET ========== */
:root {
  --bg: #050508;
  --bg2: #0a0a12;
  --bg3: #0f0f1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f8;
  --text2: #9090b0;
  --text3: #5a5a78;
  --accent1: #7c3aed;
  --accent2: #06b6d4;
  --accent3: #f59e0b;
  --glow1: rgba(124, 58, 237, 0.4);
  --glow2: rgba(6, 182, 212, 0.4);
  --grad1: linear-gradient(135deg, #7c3aed, #06b6d4);
  --grad2: linear-gradient(135deg, #f59e0b, #ef4444);
  --grad3: linear-gradient(135deg, #06b6d4, #3b82f6);
  --nav-h: 72px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="light"] {
  --bg: #f8f8fc;
  --bg2: #f0f0f8;
  --bg3: #e8e8f4;
  --surface: rgba(0, 0, 0, 0.04);
  --surface2: rgba(0, 0, 0, 0.08);
  --border: rgba(0, 0, 0, 0.1);
  --text: #0a0a1a;
  --text2: #444460;
  --text3: #888899;
  --glow1: rgba(124, 58, 237, 0.2);
  --glow2: rgba(6, 182, 212, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "iran";
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  transition:
    background var(--transition),
    color var(--transition);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
/* ========== CUSTOM SCROLLBAR DESIGN ========== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg2);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border-radius: 10px;
  transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
}
::-webkit-scrollbar-corner {
  background: var(--bg2);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent1) var(--bg2);
}
/* ========== CUSTOM CURSOR ========== */
#cursor {
  width: 12px;
  height: 12px;
  background: var(--accent1);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.1s,
    width 0.3s,
    height 0.3s,
    background 0.3s;
  mix-blend-mode: exclusion;
}
#cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent2);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.3s,
    height 0.3s,
    opacity 0.3s;
  opacity: 0.7;
}
body.cursor-hover #cursor {
  width: 20px;
  height: 20px;
  background: var(--accent2);
}
body.cursor-hover #cursor-ring {
  width: 54px;
  height: 54px;
  opacity: 0.4;
}

/* ========== DOT GRID BACKGROUND ========== */
.dot-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--text3) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.18;
  transition: opacity var(--transition);
}
[data-theme="light"] .dot-grid {
  opacity: 0.1;
}

/* ========== NAVIGATION ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  transition:
    background var(--transition),
    backdrop-filter var(--transition),
    box-shadow var(--transition);
}
nav.scrolled {
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border);
}
[data-theme="light"] nav.scrolled {
  background: rgba(248, 248, 252, 0.8);
}
.logo {
  width: 10rem;
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  cursor: pointer;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text2);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad1);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.theme-btn {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
  display: flex;
  align-items: center;
}
.theme-btn::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad1);
  position: absolute;
  left: 3px;
  transition: transform 0.3s;
}
[data-theme="light"] .theme-btn::after {
  transform: translateX(20px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 1.5rem 5vw;
  gap: 1.2rem;
  z-index: 99;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text2);
}

/* ========== SECTION BASE & STACK EFFECT ========== */
section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: 100%;
}
#hero {
  z-index: 10;
}
#about {
  z-index: 9;
}
#projects {
  z-index: 8;
}
#skills {
  z-index: 7;
}
#contact {
  z-index: 6;
  height: 45rem;
}
footer {
  z-index: 5;
}

.stack-section {
  position: sticky;
  top: 0;
  will-change: transform;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.from-left {
  transform: translateX(-60px) translateY(0);
}
.reveal.from-right {
  transform: translateX(60px) translateY(0);
}
.reveal.scale-in {
  transform: scale(0.88) translateY(20px);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}
.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ========== HERO SECTION ========== */
#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) 5vw 0;
  background: var(--bg);
  overflow: hidden;
  min-height: 100vh;
}
.hero-inner {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
  padding: 2rem 0 4rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  color: var(--text2);
  margin-bottom: 1.5rem;
  animation: fadeSlideDown 0.8s 0.2s both;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}
.hero-name {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.03em;
  animation: fadeSlideDown 0.8s 0.35s both;
}
.grad-text {
  background: linear-gradient(
    135deg,
    #7c3aed 0%,
    #06b6d4 40%,
    #f59e0b 80%,
    #ef4444 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 4s ease-in-out infinite alternate;
}
@keyframes gradShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
.hero-sub {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  animation: fadeSlideDown 0.8s 0.5s both;
}
.hero-sub .sep {
  color: var(--text3);
}
.hero-sub span {
  color: var(--accent2);
  font-weight: 500;
}
.hero-desc {
  margin-top: 1.5rem;
  color: var(--text2);
  line-height: 1.75;
  max-width: 480px;
  animation: fadeSlideDown 0.8s 0.65s both;
}
.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeSlideDown 0.8s 0.8s both;
}
.btn-primary {
  padding: 0.85rem 2rem;
  border-radius: 12px;
  background: var(--grad1);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 0 0 0 var(--glow1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow1);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn-primary:hover::before {
  transform: translateX(100%);
}
.btn-outline {
  padding: 0.85rem 2rem;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.btn-outline:hover {
  border-color: var(--accent1);
  background: var(--surface);
}

.hero-img-wrap {
  position: relative;
  animation: fadeSlideDown 1s 0.4s both;
}
.hero-img-frame {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  animation: float 6s ease-in-out infinite;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--border) inset;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}
.hero-img-frame img,
.img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 0.85rem;
  background: linear-gradient(135deg, var(--bg3) 0%, var(--bg2) 100%);
}
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text3);
}
.img-placeholder svg {
  opacity: 0.3;
}
.hero-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow1) 0%, transparent 70%);
  top: -60px;
  right: -60px;
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}
.hero-glow2 {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow2) 0%, transparent 70%);
  bottom: -40px;
  left: -40px;
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite 2s;
}
@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text3);
  font-size: 0.75rem;
  animation: fadeSlideDown 1s 1.2s both;
}
.scroll-hint .wheel {
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--text3);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-hint .wheel::before {
  content: "";
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--text3);
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

.hero-stats {
  margin-top: 2.5rem;
  display: flex;
  gap: 2rem;
  animation: fadeSlideDown 0.8s 0.95s both;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat .lbl {
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 0.15rem;
}

/* ========== ABOUT SECTION ========== */
#about {
  background: var(--bg2);
  padding: 8rem 5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
}
.about-inner {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-frame {
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 560px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.about-img-frame .img-placeholder {
  height: 100%;
}
.about-img-deco {
  position: absolute;
  bottom: -24px;
  right: -24px;
  z-index: -1;
  width: 90%;
  height: 100%;
  border-radius: 16px;
  border: 2px solid var(--accent1);
  opacity: 0.3;
}
.about-img-badge {
  position: absolute;
  top: -34px;
  right: -20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.4rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.about-img-badge .num2 {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-img-badge .lbl2 {
  font-size: 0.75rem;
  color: var(--text3);
}
.sec-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.sec-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.about-text {
  color: var(--text2);
  line-height: 1.8;
  font-size: 1rem;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.tag {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text2);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.tag:hover {
  border-color: var(--accent1);
  color: var(--text);
}

/* ========== PROJECTS SECTION ========== */
.projects-section-custom {
  background: var(--bg3);
  padding: 6rem 5vw 7rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.projects-inner-custom {
  max-width: 1300px;
  margin: 0 auto;
}
.section-heading-custom {
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    transform 0.8s ease;
}
.section-heading-custom.visible {
  opacity: 1;
  transform: translateY(0);
}
.section-heading-custom h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: var(--grad1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  letter-spacing: -0.02em;
  background-size: 200% auto;
  animation: shimmerText 6s infinite linear;
}
@keyframes shimmerText {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.section-heading-custom .underline-custom {
  width: 80px;
  height: 5px;
  background: var(--grad1);
  border-radius: 10px;
  margin: 1rem auto 0;
  transition: width 0.5s ease;
}
.section-heading-custom.visible .underline-custom {
  width: 130px;
}
.section-heading-custom p {
  color: var(--text2);
  margin-top: 1rem;
  font-weight: 300;
}

.projects-grid-custom {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.project-card-custom {
  background: rgba(var(--bg-rgb), 0.7);
  backdrop-filter: blur(4px);
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 15px 35px -12px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    box-shadow 0.4s,
    border-color 0.2s;
  cursor: pointer;
  opacity: 0;
  transform: translateY(55px) scale(0.97);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.2),
    transform 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.2),
    box-shadow 0.3s;
  background: var(--bg2);
}
[data-theme="light"] .project-card-custom {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(0px);
}
.project-card-custom.reveal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.project-card-custom:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.3);
  border-color: var(--accent1);
}

.card-img-custom {
  position: relative;
  overflow: hidden;
  height: 240px;
  background: var(--surface);
}
.card-img-custom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s ease-out,
    filter 0.4s;
}
.project-card-custom:hover .card-img-custom img {
  transform: scale(1.08);
  filter: brightness(1.02) contrast(1.05);
}
.tech-badge-custom {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 0.35rem 1rem;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.3px;
  font-family: monospace;
  z-index: 2;
}

.card-content-custom {
  padding: 1.6rem;
}
.card-content-custom h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  background: var(--grad1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.card-content-custom p {
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 1.3rem;
  font-size: 0.92rem;
}
.card-footer-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.2rem;
}
.read-more-custom {
  font-weight: 600;
  color: var(--accent2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    gap 0.3s,
    color 0.2s;
  font-size: 0.85rem;
}
.read-more-custom i {
  font-size: 0.8rem;
  transition: transform 0.2s;
}
.project-card-custom:hover .read-more-custom {
  gap: 12px;
  color: var(--accent1);
}
.project-card-custom:hover .read-more-custom i {
  transform: translateX(-4px);
}
.year-custom {
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--surface2);
  padding: 0.2rem 0.8rem;
  border-radius: 40px;
  color: var(--text2);
}

/* ========== SKILLS SECTION ========== */
#skills {
  background: var(--bg);
  padding: 8rem 5vw;
  border-top: 1px solid var(--border);
}
.skills-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}
.skill-card {
  padding: 1.8rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad1);
  opacity: 0;
  transition: opacity 0.4s;
}
.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent1);
  box-shadow: 0 20px 60px var(--glow1);
}
.skill-card:hover::before {
  opacity: 0.06;
}
.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  position: relative;
}
.skill-name {
  font-weight: 700;
  font-size: 1rem;
}
.skill-pct {
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.skill-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  position: relative;
}
.skill-bar-bg {
  height: 6px;
  background: var(--surface2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.skill-bar {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.skill-bar::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
.fun-fact {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding: 2rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.fun-fact-item {
  text-align: center;
}
.fun-fact-num {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--grad3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fun-fact-lbl {
  font-size: 0.82rem;
  color: var(--text3);
  margin-top: 0.2rem;
}

/* ========== CONTACT SECTION ========== */
#contact {
  padding: 8rem 5vw;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  height: auto;
}
#contact::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow1) 0%, transparent 65%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}
.contact-profile {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.contact-avatar-wrap {
  display: flex;
  justify-content: center;
}
.contact-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--bg2), var(--bg2)) padding-box,
    var(--grad1) border-box;
  position: relative;
}
.contact-avatar .img-placeholder {
  height: 100%;
  border-radius: 50%;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.contact-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    border-color 0.3s,
    transform 0.2s,
    box-shadow 0.3s;
  cursor: pointer;
}
.contact-item:hover {
  border-color: var(--accent2);
  transform: translateX(4px);
  box-shadow: 0 8px 30px var(--glow2);
}
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
}
.contact-item-text {
  flex: 1;
  min-width: 0;
}
.contact-item-label {
  font-size: 0.75rem;
  color: var(--text3);
  margin-bottom: 0.2rem;
}
.contact-item-val {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== FOOTER ========== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 5vw;
  text-align: center;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text3);
}
.footer-socials {
  display: flex;
  gap: 1rem;
}
.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.footer-social:hover {
  border-color: var(--accent1);
  background: var(--surface);
  transform: translateY(-2px);
}
.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--text2);
  transition: fill 0.2s;
}
.footer-social:hover svg {
  fill: var(--text);
}

/* ========== BACK TO TOP ========== */
#btt {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--grad1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 8px 24px var(--glow1);
}
#btt.show {
  opacity: 1;
  pointer-events: all;
  transform: none;
}
#btt:hover {
  box-shadow: 0 12px 40px var(--glow1);
  transform: translateY(-2px);
}
#btt svg {
  stroke: #fff;
  width: 20px;
  height: 20px;
}

/* ========== KEYFRAMES ========== */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.9);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== PAGE LOAD ========== */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  transition:
    opacity 0.6s,
    visibility 0.6s;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-logo {
  width: 15rem;
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.loader-bar-wrap {
  width: 200px;
  height: 3px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  background: var(--grad1);
  border-radius: 2px;
  animation: loadProgress 1.2s ease-out forwards;
}
@keyframes loadProgress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-img-wrap {
    max-width: 340px;
    margin: 0 auto;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .scroll-hint {
    position: absolute;
    bottom: 1rem;
  }
  #hero {
    padding-top: var(--nav-h);
    min-height: 100vh;
  }
  .hero-inner {
    padding: 1rem 0 3rem;
  }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero-stats {
    gap: 1.2rem;
  }
  .hero-name {
    font-size: 2.4rem;
  }
  .fun-fact {
    gap: 1.5rem;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  #hero {
    padding-top: calc(var(--nav-h) + 0.5rem);
    min-height: 100vh;
  }
  .hero-inner {
    padding: 0.5rem 0 2rem;
  }
}
@media (max-width: 480px) {
  .tech-badge-custom {
    font-size: 0.6rem;
    padding: 0.25rem 0.7rem;
  }
  .card-content-custom {
    padding: 1.2rem;
  }
  #hero {
    padding-top: var(--nav-h);
  }
  .hero-inner {
    padding: 0.5rem 0 1.5rem;
  }
}

@keyframes gentlePopCard {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(35px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
