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

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg: #050508;
  --bg2: #0a0a12;
  --bg3: #0f0f1a;
  --bg4: #141420;
  --border: #1a1a2e;
  --border2: #252540;
  --text: #e8e8f5;
  --muted: #5a5a7a;
  --muted2: #7a7a9a;
  --accent1: #ff6b35;
  --accent2: #e040fb;
  --accent3: #7c4dff;
  --accent4: #00e5ff;
  --glow1: rgba(255,107,53,0.4);
  --glow2: rgba(224,64,251,0.4);
  --glow3: rgba(124,77,255,0.4);
  --gradient: linear-gradient(135deg, #ff6b35 0%, #e040fb 50%, #7c4dff 100%);
  --gradient2: linear-gradient(135deg, #ff6b35, #ff8c00);
  --card-bg: rgba(15,15,26,0.8);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  cursor: none;
}

h1, h2, h3, h4 { font-family: 'Syne', sans-serif; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 2rem; }

/* ===== CUSTOM CURSOR ===== */
#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: difference;
}
#cursor-trail {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255,107,53,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease, width 0.3s, height 0.3s, border-color 0.3s;
}
body:hover #cursor-trail { opacity: 1; }
a:hover ~ #cursor, button:hover ~ #cursor { transform: translate(-50%,-50%) scale(2.5); }

/* ===== LOADER ===== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  transition: opacity 0.6s, visibility 0.6s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoPulse 1s ease-in-out infinite;
}
@keyframes logoPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--border2);
  border-radius: 2px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  animation: loaderAnim 1.4s ease forwards;
}
@keyframes loaderAnim { from { width: 0; } to { width: 100%; } }

/* ===== CANVAS PARTICLES ===== */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ===== NOISE TEXTURE OVERLAY ===== */
body::after {
  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");
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.9rem 2rem;
  background: rgba(5,5,8,0.7);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,107,53,0.08);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
#navbar.scrolled {
  background: rgba(5,5,8,0.95);
  border-bottom-color: rgba(255,107,53,0.15);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

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

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
}
.logo-text { color: var(--text); }
.logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.logo:hover::after { transform: scaleX(1); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  font-size: 0.875rem;
}
.nav-links a {
  color: var(--muted2);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  transition: all 0.3s;
  position: relative;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: rgba(255,107,53,0.08); }
.nav-links a.active { color: var(--accent1); }
.nav-links .nav-cta {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: 8px;
}
.nav-links .nav-cta:hover { background: rgba(255,107,53,0.1); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: none; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.35s cubic-bezier(0.4,0,0.2,1); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 3rem 5rem 2rem;
  position: relative;
  overflow: visible;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
  z-index: 2;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
}
.blob1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #ff6b35, #e040fb);
  top: -150px; left: -150px;
  animation: blobFloat 10s ease-in-out infinite;
}
.blob2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7c4dff, #00e5ff);
  bottom: -100px; right: -100px;
  animation: blobFloat 13s ease-in-out infinite reverse;
}
.blob3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #e040fb, #ff6b35);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: blobFloat 7s ease-in-out infinite 2s;
  opacity: 0.07;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 40px) scale(0.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,53,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,53,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Hero content entrance animations */
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,107,53,0.08);
  border: 1px solid rgba(255,107,53,0.25);
  color: var(--accent1);
  font-size: 0.78rem;
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  margin-bottom: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  animation: fadeSlideUp 0.8s cubic-bezier(0.4,0,0.2,1) 0.3s both;
  position: relative;
  overflow: hidden;
}
.hero-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,107,53,0.08), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s infinite 2s;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent1);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px var(--accent1);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px var(--accent1); }
  50% { opacity: 0.6; transform: scale(1.6); box-shadow: 0 0 20px var(--accent1); }
}

.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}
.hero h1 .line1 {
  display: block;
  color: var(--text);
  animation: fadeSlideUp 0.9s cubic-bezier(0.4,0,0.2,1) 0.5s both;
}
.hero h1 .line2 {
  display: block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeSlideUp 0.9s cubic-bezier(0.4,0,0.2,1) 0.65s both;
  position: relative;
}

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

.hero-role {
  font-size: 1rem;
  color: var(--accent3);
  font-weight: 500;
  margin-bottom: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  animation: fadeSlideUp 0.9s cubic-bezier(0.4,0,0.2,1) 0.8s both;
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent1);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  color: var(--muted2);
  font-size: 1.02rem;
  margin-bottom: 2.2rem;
  max-width: 460px;
  line-height: 1.8;
  animation: fadeSlideUp 0.9s cubic-bezier(0.4,0,0.2,1) 0.95s both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  animation: fadeSlideUp 0.9s cubic-bezier(0.4,0,0.2,1) 1.1s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient);
  color: white;
  padding: 0.8rem 2.2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.5s;
}
.btn-primary:hover::before { transform: translateX(200%) skewX(-15deg); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(255,107,53,0.35); }
.btn-primary:active { transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  padding: 0.8rem 2.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid var(--border2);
  cursor: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-outline:hover { border-color: transparent; color: white; transform: translateY(-3px); box-shadow: 0 15px 40px rgba(124,77,255,0.25); }
.btn-outline:hover::before { opacity: 1; }
.btn-outline span { position: relative; z-index: 1; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  animation: fadeSlideUp 0.9s cubic-bezier(0.4,0,0.2,1) 1.25s both;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label { font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; letter-spacing: 0.05em; text-transform: uppercase; }
.stat-divider { width: 1px; height: 44px; background: var(--border2); }

/* ===== HERO VISUAL ===== */
.hero-visual {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 500px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeSlideUp 1s cubic-bezier(0.4,0,0.2,1) 0.4s both;
  /* allow tags to overflow the box without being clipped */
  overflow: visible;
}

/* Rotating ring */
.avatar-orbit {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255,107,53,0.2);
  animation: orbit 18s linear infinite;
}
.avatar-orbit2 {
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 1px dashed rgba(124,77,255,0.15);
  animation: orbit 30s linear infinite reverse;
}
@keyframes orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.orbit-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent1);
  top: -4px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--accent1), 0 0 24px rgba(255,107,53,0.5);
}
.orbit-dot2 {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent3);
  top: -3px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--accent3), 0 0 20px rgba(124,77,255,0.5);
}

.avatar-ring {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--gradient);
  padding: 3px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 60px rgba(255,107,53,0.25), 0 0 120px rgba(224,64,251,0.15);
  animation: avatarGlow 4s ease-in-out infinite;
}
@keyframes avatarGlow {
  0%, 100% { box-shadow: 0 0 60px rgba(255,107,53,0.25), 0 0 120px rgba(224,64,251,0.15); }
  50% { box-shadow: 0 0 80px rgba(255,107,53,0.4), 0 0 160px rgba(224,64,251,0.25); }
}

.avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.floating-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.ftag {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  background: rgba(15,15,26,0.92);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 0.72rem;
  padding: 0.32rem 0.85rem;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, box-shadow 0.3s;
  pointer-events: auto;
}
.ftag:hover { border-color: var(--accent1); box-shadow: 0 0 20px rgba(255,107,53,0.2); }
/* Positions pulled inward on the right so tags stay visible */
.ftag1 { left: 50%;  top: 3%;  animation: floatTag 4s ease-in-out infinite 0s; }
.ftag2 { left: 82%;  top: 14%; animation: floatTag 4.2s ease-in-out infinite 0.4s; }
.ftag3 { left: 90%;  top: 50%; animation: floatTag 3.8s ease-in-out infinite 0.8s; }
.ftag4 { left: 82%;  top: 86%; animation: floatTag 4.5s ease-in-out infinite 1.2s; }
.ftag5 { left: 50%;  top: 97%; animation: floatTag 4s ease-in-out infinite 1.6s; }
.ftag6 { left: 18%;  top: 86%; animation: floatTag 4.3s ease-in-out infinite 2s; }
.ftag7 { left: 10%;  top: 50%; animation: floatTag 3.9s ease-in-out infinite 2.4s; }
.ftag8 { left: 18%;  top: 14%; animation: floatTag 4.1s ease-in-out infinite 2.8s; }

@keyframes floatTag {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeSlideUp 1s 1.5s both;
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ===== SECTION SHARED ===== */
.skills-section, .projects-section, .certs-section, .contact-section {
  padding: 7rem 0;
  position: relative;
  z-index: 2;
}

.skills-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%); }
.projects-section { background: var(--bg); }
.certs-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%); }
.contact-section { background: var(--bg); }

.section-header { margin-bottom: 3.5rem; }
.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent1);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--accent1);
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: 14px;
}
.skill-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.skill-card:hover { border-color: rgba(255,107,53,0.4); transform: translateY(-5px) scale(1.02); box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,107,53,0.1) inset; }
.skill-card:hover::after { transform: scaleX(1); }
.skill-card > * { position: relative; z-index: 1; }

.skill-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  filter: grayscale(0.3);
  transition: filter 0.3s, transform 0.3s;
}
.skill-card:hover .skill-icon { filter: grayscale(0); transform: scale(1.15) rotate(-5deg); }

.skill-info { flex: 1; min-width: 0; }
.skill-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.skill-bar {
  height: 3px;
  background: var(--border2);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.skill-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 4px;
  background: white;
  opacity: 0.6;
  border-radius: 50%;
  box-shadow: 0 0 8px white;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.project-card::after {
  content: '';
  position: absolute;
  bottom: -100%; left: -10%;
  width: 120%; height: 100%;
  background: linear-gradient(to top, rgba(255,107,53,0.03), transparent);
  transition: bottom 0.5s cubic-bezier(0.4,0,0.2,1);
}
.project-card:hover { border-color: rgba(224,64,251,0.3); transform: translateY(-7px); box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 1px rgba(224,64,251,0.2) inset; }
.project-card:hover::before { transform: scaleX(1); }
.project-card:hover::after { bottom: 0; }
.project-card > * { position: relative; z-index: 1; }

.project-card.featured {
  border-color: rgba(255,107,53,0.2);
  background: linear-gradient(135deg, rgba(255,107,53,0.04), var(--card-bg) 60%);
  grid-column: span 1;
}
.project-card.featured::before { background: var(--gradient2); transform: scaleX(1); }

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-tag {
  background: rgba(124,77,255,0.12);
  color: #a78bfa;
  border: 1px solid rgba(124,77,255,0.2);
  font-size: 0.72rem;
  padding: 0.28rem 0.8rem;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.project-year { font-size: 0.78rem; color: var(--muted); font-weight: 500; }

.project-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  transition: color 0.3s;
}
.project-card:hover h3 { color: white; }
.project-card p { font-size: 0.875rem; color: var(--muted2); line-height: 1.75; flex: 1; }

.project-metrics { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.metric-item { text-align: center; }
.metric-val {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metric-label { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.project-stack { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.project-stack span {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2);
  color: var(--muted2);
  font-size: 0.72rem;
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s;
}
.project-card:hover .project-stack span { border-color: rgba(255,107,53,0.2); color: var(--text); }

.project-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  transition: all 0.3s;
  cursor: none;
  letter-spacing: 0.02em;
}
.proj-link:hover { transform: translateY(-2px); }

.live-link {
  background: linear-gradient(135deg, rgba(255,107,53,0.12), rgba(124,77,255,0.12));
  border: 1px solid rgba(255,107,53,0.35);
  color: var(--accent1);
}
.live-link:hover { background: rgba(255,107,53,0.2); box-shadow: 0 8px 30px rgba(255,107,53,0.25); }

.apk-link {
  background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(16,185,129,0.08));
  border: 1px solid rgba(34,197,94,0.35);
  color: #22c55e;
}
.apk-link:hover { background: rgba(34,197,94,0.18); box-shadow: 0 8px 30px rgba(34,197,94,0.2); }

/* ===== CERTIFICATIONS ===== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.cert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(124,77,255,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.cert-card:hover { border-color: rgba(124,77,255,0.35); transform: translateY(-5px); box-shadow: 0 25px 70px rgba(0,0,0,0.5); }
.cert-card:hover::before { opacity: 1; }

.cert-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.cert-card:hover .cert-icon { transform: scale(1.1) rotate(-5deg); }
.cert-icon.aws { background: rgba(255,153,0,0.12); border: 1px solid rgba(255,153,0,0.2); }
.cert-icon.ibm { background: rgba(124,77,255,0.12); border: 1px solid rgba(124,77,255,0.2); }
.cert-icon.hr { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.2); }
.cert-icon.aspire { background: rgba(0,229,255,0.1); border: 1px solid rgba(0,229,255,0.2); }

.cert-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.cert-details p { font-size: 0.8rem; color: var(--muted2); margin-bottom: 0.6rem; line-height: 1.6; }
.cert-issuer { font-size: 0.72rem; color: var(--accent1); font-weight: 600; letter-spacing: 0.03em; }

/* ===== CONTACT ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact-left { position: relative; }
.contact-left h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}
.contact-left > p { color: var(--muted2); margin-bottom: 2.5rem; font-size: 0.95rem; line-height: 1.8; }

.contact-info { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2.5rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--muted2);
  font-size: 0.9rem;
  transition: all 0.3s;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid transparent;
}
.contact-item:hover { color: var(--text); background: rgba(255,107,53,0.05); border-color: rgba(255,107,53,0.15); }
.ci-icon { font-size: 1.1rem; width: 20px; text-align: center; }

.social-links { display: flex; gap: 0.75rem; }
.social-btn {
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 0.65rem 1.6rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  cursor: none;
  position: relative;
  overflow: hidden;
}
.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}
.social-btn:hover { border-color: transparent; color: white; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.social-btn:hover::before { opacity: 1; }
.social-btn span { position: relative; z-index: 1; }

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
}

.form-group { display: flex; flex-direction: column; gap: 0.6rem; }
.form-group label { font-size: 0.8rem; color: var(--muted2); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: all 0.3s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent1);
  background: rgba(255,107,53,0.04);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }

.btn-primary.full-width { width: 100%; justify-content: center; font-size: 0.95rem; padding: 1rem; }

/* ===== FOOTER ===== */
footer {
  padding: 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  position: relative;
  z-index: 2;
  letter-spacing: 0.02em;
}
footer span { color: var(--accent1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 5.5rem 1.25rem 3rem;
    gap: 2.5rem;
    min-height: auto;
  }
  .hero-content { width: 100%; }
  .hero-badge { margin: 0 auto 1.8rem; }
  .hero-desc { max-width: 100%; font-size: 0.9rem; }
  .hero-btns { justify-content: center; gap: 0.75rem; }
  .hero-stats { justify-content: center; gap: 1.5rem; }

  .hero-visual { width: 180px; height: 180px; }
  .avatar-ring { width: 160px; height: 160px; }
  .avatar-orbit, .avatar-orbit2 { display: none; }
  .floating-tags { display: none; }

  .skills-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .projects-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .certs-grid { grid-template-columns: 1fr; gap: 1rem; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }

  .section-header h2 { font-size: 2rem; }
  .skills-section, .projects-section, .certs-section, .contact-section { padding: 5rem 0; }

  .contact-form { padding: 1.8rem; }
  footer { font-size: 0.75rem; padding: 1.8rem 1rem; }

  body { cursor: auto; }
  #cursor, #cursor-trail { display: none; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .hero-stats { gap: 1rem; }
  .stat-num { font-size: 1.4rem; }
  .social-links { flex-direction: column; }
  .social-btn { text-align: center; }
}

/* Mobile nav open */
.nav-links.open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 60px; left: 0; right: 0;
  background: rgba(5,5,8,0.98);
  backdrop-filter: blur(24px);
  padding: 1.2rem 2rem 1.8rem;
  border-bottom: 1px solid var(--border);
  gap: 0.25rem;
  z-index: 999;
  animation: slideDown 0.3s cubic-bezier(0.4,0,0.2,1);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
