/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg: #050b18;
  --bg2: #0a1628;
  --bg3: #0f1f3d;
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --secondary: #06b6d4;
  --accent: #f472b6;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --fd: "Syne", sans-serif;
  --fb: "DM Sans", sans-serif;
  --fm: "JetBrains Mono", monospace;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}
.toast-msg{
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #10b981;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 9999;
}

.toast-msg.show{
  opacity: 1;
  transform: translateY(0);
}
/* ===== CURSOR ===== */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
}
.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(99, 102, 241, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.3s,
    height 0.3s;
}
@media (pointer: coarse) {
  body {
    cursor: auto;
  }
  .cursor,
  .cursor-follower {
    display: none;
  }
}

/* ===== NOISE ===== */
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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s;
}
nav.scrolled {
  background: rgba(5, 11, 24, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 60px;
}
.nav-logo {
  font-family: var(--fd);
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--fm);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-cta {
  padding: 8px 20px;
  border: 1px solid var(--primary);
  color: var(--primary) !important;
  border-radius: 6px;
  transition: all 0.3s !important;
}
.nav-cta:hover {
  background: var(--primary);
  color: #fff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 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 drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 24, 0.97);
  backdrop-filter: blur(24px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav a {
  font-family: var(--fd);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.mobile-nav a:hover {
  color: var(--primary);
}
.mobile-nav .mn-cta {
  color: var(--primary) !important;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 60px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 20% 50%,
      rgba(99, 102, 241, 0.12),
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 20%,
      rgba(6, 182, 212, 0.08),
      transparent 50%
    ),
    radial-gradient(
      ellipse 50% 60% at 60% 80%,
      rgba(244, 114, 182, 0.06),
      transparent 50%
    );
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Hero text */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  font-family: var(--fm);
  font-size: 0.72rem;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}
.hero-greeting {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 8px;
}
.hero-name {
  font-family: var(--fd);
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(
    135deg,
    #fff 30%,
    var(--primary) 70%,
    var(--secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--fm);
  font-size: 0.9rem;
  color: var(--secondary);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.hero-stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.stack-chip {
  padding: 4px 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  font-family: var(--fm);
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: all 0.3s;
}
.stack-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: var(--fb);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.5);
}
.btn-outline {
  padding: 13px 28px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--fb);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.06);
  transform: translateY(-2px);
}

/* Hero photo */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.photo-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
}
.photo-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: linear-gradient(
      135deg,
      var(--primary),
      var(--secondary),
      var(--accent)
    )
    border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin 8s linear infinite;
}
.photo-ring-2 {
  position: absolute;
  inset: -35px;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.2);
  animation: spin 12s linear infinite reverse;
}
.photo-ring-2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 12px var(--secondary);
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.photo-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  box-shadow:
    0 0 60px rgba(99, 102, 241, 0.3),
    0 0 120px rgba(6, 182, 212, 0.1),
    inset 0 0 60px rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.photo-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent 60%);
  pointer-events: none;
}
.photo-circle img{
    width:100%;
    height:100%;
}
.photo-initials {
  font-family: var(--fd);
  font-size: 4.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 1;
  position: relative;
}
.floating-icons {
  position: absolute;
  inset: -60px;
  pointer-events: none;
}
.f-icon {
  position: absolute;
  width: 44px;
  height: 44px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  backdrop-filter: blur(10px);
  animation: floaty 4s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.f-icon:nth-child(1) {
  top: 0%;
  left: 20%;
  animation-delay: 0s;
}
.f-icon:nth-child(2) {
  top: 10%;
  right: 5%;
  animation-delay: 0.7s;
}
.f-icon:nth-child(3) {
  top: 45%;
  right: -5%;
  animation-delay: 1.4s;
}
.f-icon:nth-child(4) {
  bottom: 10%;
  right: 15%;
  animation-delay: 2.1s;
}
.f-icon:nth-child(5) {
  bottom: 5%;
  left: 10%;
  animation-delay: 2.8s;
}
.f-icon:nth-child(6) {
  top: 40%;
  left: -8%;
  animation-delay: 3.5s;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(5deg);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0.4;
}
.scroll-hint span {
  font-family: var(--fm);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1px solid var(--text-dim);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-dot {
  width: 3px;
  height: 7px;
  background: var(--text-dim);
  border-radius: 2px;
  animation: scrolldown 1.8s ease infinite;
}
@keyframes scrolldown {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

/* ===== SECTIONS ===== */
section {
  padding: 120px 60px;
  position: relative;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fm);
  font-size: 0.72rem;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--primary);
}
.section-title {
  font-family: var(--fd);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 60px;
}
.section-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== ABOUT ===== */
#about {
  background: var(--bg2);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.about-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
}
.about-text {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 18px;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}
.stat-item {
  text-align: center;
  padding: 22px 16px;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
}
.stat-num {
  font-family: var(--fd);
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 6px;
  font-family: var(--fm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.about-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}
.info-icon {
  width: 38px;
  height: 38px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.info-text {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.info-text strong {
  color: var(--text);
  font-weight: 500;
  display: block;
}
.info-text a {
  color: var(--secondary);
  text-decoration: none;
  word-break: break-all;
}

/* ===== SKILLS ===== */
#skills {
  background: var(--bg);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.skill-category {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.skill-category::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.skill-category:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(99, 102, 241, 0.1);
}
.skill-category:hover::after {
  opacity: 1;
}
.skill-cat-title {
  font-family: var(--fm);
  font-size: 0.7rem;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  padding: 6px 13px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text);
  font-family: var(--fm);
  transition: all 0.3s;
  cursor: default;
}
.skill-tag:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.skill-tag.sec {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.2);
}
.skill-tag.sec:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: var(--secondary);
}
.skill-tag.acc {
  background: rgba(244, 114, 182, 0.08);
  border-color: rgba(244, 114, 182, 0.2);
}
.skill-tag.acc:hover {
  background: rgba(244, 114, 182, 0.18);
  border-color: var(--accent);
}

/* ===== EXPERIENCE ===== */
#experience {
  background: var(--bg2);
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--primary),
    transparent
  );
}
.timeline-item {
  padding-left: 48px;
  padding-bottom: 60px;
  position: relative;
  opacity: 0;
  transform: translateX(-30px);
}
.timeline-dot {
  position: absolute;
  left: -6px;
  top: 6px;
  width: 13px;
  height: 13px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--primary-glow);
}
.timeline-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.4);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}
.timeline-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.timeline-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.timeline-role {
  font-family: var(--fd);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.timeline-date {
  font-family: var(--fm);
  font-size: 0.72rem;
  color: var(--secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.timeline-date::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.timeline-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-weight: 300;
}
.timeline-projects {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.project-pill {
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--secondary);
  font-family: var(--fm);
}
.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-bullets li {
  font-size: 0.87rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  font-weight: 300;
  line-height: 1.6;
}
.timeline-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.8rem;
}

/* ===== PROJECTS ===== */
#projects {
  background: var(--bg);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.project-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.project-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(99, 102, 241, 0.12);
}
.project-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--glass-border);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05),
    rgba(6, 182, 212, 0.03)
  );
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.project-icon {
  width: 50px;
  height: 50px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.project-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
  color: var(--primary);
  font-size: 1.2rem;
}
.project-card:hover .project-arrow {
  opacity: 1;
  transform: translateX(0);
}
.project-body {
  padding: 24px 28px 28px;
}
.project-name {
  font-family: var(--fd);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.project-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 18px;
}
.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.feature-tag {
  padding: 4px 11px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  font-size: 0.71rem;
  font-family: var(--fm);
  color: var(--text-dim);
  transition: all 0.3s;
}
.project-card:hover .feature-tag {
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--text-muted);
}

/* ===== EDUCATION ===== */
#education {
  background: var(--bg2);
}
.edu-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.edu-sub-label {
  font-family: var(--fm);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.edu-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.edu-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-3px);
}
.edu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.edu-icon {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.edu-degree {
  font-family: var(--fd);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.edu-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--fm);
  margin-bottom: 4px;
}
.edu-gpa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 5px 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  font-family: var(--fm);
  font-size: 0.75rem;
  color: var(--primary);
}
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.3s;
}
.cert-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(4px);
}
.cert-badge {
  width: 38px;
  height: 38px;
  background: rgba(244, 114, 182, 0.1);
  border: 1px solid rgba(244, 114, 182, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.cert-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}
.cert-org {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--fm);
  margin-top: 2px;
}

/* ===== CONTACT ===== */
#contact {
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail {
  display: flex;
  flex-direction: column;
}
.contact-label {
  font-family: var(--fm);
  font-size: 0.67rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.contact-value {
  font-size: 0.88rem;
  color: var(--text);
}
.contact-value a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
  word-break: break-all;
}
.contact-value a:hover {
  color: var(--primary);
}
.contact-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary),
    var(--secondary),
    transparent
  );
}
.form-row {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-family: var(--fm);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--fb);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s;
  resize: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.form-textarea {
  height: 120px;
}
.form-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: var(--fb);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.5);
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--glass-border);
  padding: 40px 60px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--fd);
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--fm);
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.social-btn {
  width: 36px;
  height: 36px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.social-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 24, 0.92);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 20px;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 44px;
  max-width: 560px;
  width: 100%;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  max-height: 88vh;
  overflow-y: auto;
}
.modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}
.modal-close:hover {
  color: var(--text);
  border-color: var(--primary);
}
.modal-title {
  font-family: var(--fd);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  margin-right: 40px;
}
.modal-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 22px;
  font-weight: 300;
}
.modal-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--text-muted);
}
.modal-feature::before {
  content: "✓";
  color: var(--secondary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================================
   RESPONSIVE
   ============================================== */

/* Tablet landscape ≤1100 */
@media (max-width: 1100px) {
  .hero-content {
    gap: 50px;
  }
  .photo-wrapper {
    width: 270px;
    height: 270px;
  }
}

/* Tablet portrait ≤900 */
@media (max-width: 900px) {
  nav {
    padding: 14px 20px;
  }
  nav.scrolled {
    padding: 12px 20px;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-nav {
    display: flex;
  }

  section {
    padding: 80px 24px;
  }
  footer {
    padding: 32px 24px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  /* Hero */
  #hero {
    min-height: 100svh;
    padding: 88px 24px 70px;
    align-items: center;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-right {
    order: -1;
    margin-bottom: 0;
  }
  .photo-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
  .photo-ring {
    inset: -14px;
  }
  .photo-ring-2 {
    inset: -24px;
  }
  .photo-initials {
    font-size: 3.2rem;
  }
  .floating-icons {
    inset: -44px;
  }
  .f-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-radius: 8px;
  }
  .hero-badge {
    font-size: 0.64rem;
    margin-bottom: 18px;
  }
  .hero-name {
    font-size: clamp(2.4rem, 8vw, 3.5rem);
  }
  .hero-title {
    font-size: 0.78rem;
  }
  .hero-stack {
    justify-content: center;
  }
  .hero-desc {
    margin: 0 auto 28px;
    max-width: 400px;
    font-size: 0.93rem;
  }
  .hero-btns {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .scroll-hint {
    bottom: 20px;
  }
  .section-title {
    margin-bottom: 44px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .edu-cert-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Mobile ≤600 */
@media (max-width: 600px) {
  section {
    padding: 68px 18px;
  }
  footer {
    padding: 28px 18px;
  }

  #hero {
    padding: 80px 18px 66px;
  }
  .photo-wrapper {
    width: 160px;
    height: 160px;
  }
  .photo-ring {
    inset: -11px;
  }
  .photo-ring-2 {
    inset: -19px;
  }
  .photo-initials {
    font-size: 2.6rem;
  }
  .floating-icons {
    inset: -34px;
  }
  .f-icon {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
    border-radius: 7px;
  }

  .hero-badge {
    padding: 5px 12px;
    font-size: 0.6rem;
    margin-bottom: 16px;
  }
  .hero-greeting {
    font-size: 0.95rem;
  }
  .hero-name {
    font-size: clamp(2rem, 9.5vw, 2.8rem);
    margin-bottom: 10px;
  }
  .hero-title {
    font-size: 0.7rem;
    margin-bottom: 14px;
  }
  .hero-stack {
    gap: 6px;
    margin-bottom: 14px;
  }
  .stack-chip {
    font-size: 0.64rem;
    padding: 3px 9px;
  }
  .hero-desc {
    font-size: 0.88rem;
    margin: 0 auto 24px;
    max-width: 320px;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .btn-primary,
  .btn-outline {
    width: 100%;
    max-width: 290px;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.87rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 36px;
  }
  .about-glass {
    padding: 26px 22px;
  }
  .about-stats {
    gap: 12px;
  }
  .stat-item {
    padding: 18px 10px;
  }
  .stat-num {
    font-size: 2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
  .skill-category {
    padding: 22px 20px;
  }

  .timeline::before {
    left: 14px;
  }
  .timeline-item {
    padding-left: 40px;
  }
  .timeline-dot {
    left: 8px;
  }
  .timeline-card {
    padding: 24px 18px;
  }
  .timeline-role {
    font-size: 1.1rem;
  }

  .project-header {
    padding: 22px 22px 16px;
  }
  .project-body {
    padding: 20px 22px 24px;
  }

  .edu-cert-grid {
    gap: 28px;
  }
  .edu-card {
    padding: 28px 22px;
  }
  .contact-form {
    padding: 28px 20px;
  }
  .contact-grid {
    gap: 28px;
  }

  .modal {
    padding: 30px 22px;
  }
  .modal-title {
    font-size: 1.25rem;
  }
}

/* Small phones ≤400 */
@media (max-width: 400px) {
  section {
    padding: 60px 16px;
  }
  #hero {
    padding: 76px 16px 58px;
  }
  .photo-wrapper {
    width: 140px;
    height: 140px;
  }
  .photo-ring {
    inset: -10px;
  }
  .photo-ring-2 {
    inset: -17px;
  }
  .photo-initials {
    font-size: 2.2rem;
  }
  .floating-icons {
    display: none;
  }
  .hero-name {
    font-size: clamp(1.8rem, 11vw, 2.3rem);
  }
  .hero-title {
    font-size: 0.64rem;
  }
  .btn-primary,
  .btn-outline {
    max-width: 100%;
  }
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* Landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
  #hero {
    min-height: auto;
    padding: 72px 32px 36px;
  }
  .hero-content {
    grid-template-columns: auto 1fr;
    gap: 28px;
    text-align: left;
    align-items: center;
  }
  .hero-right {
    order: 0;
    margin-bottom: 0;
  }
  .photo-wrapper {
    width: 130px;
    height: 130px;
  }
  .photo-ring {
    inset: -9px;
  }
  .photo-ring-2 {
    inset: -15px;
  }
  .photo-initials {
    font-size: 2rem;
  }
  .floating-icons {
    display: none;
  }
  .hero-name {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }
  .hero-badge {
    margin-bottom: 12px;
  }
  .hero-stack {
    justify-content: flex-start;
  }
  .hero-desc {
    margin: 0 0 16px;
    max-width: none;
    font-size: 0.84rem;
  }
  .hero-btns {
    justify-content: flex-start;
    gap: 8px;
  }
  .btn-primary,
  .btn-outline {
    padding: 10px 16px;
    font-size: 0.82rem;
  }
  .scroll-hint {
    display: none;
  }
}
