/* ========================================
   HASNA PORTFOLIO — PREMIUM CSS
   Dark Futuristic 3D Theme 2026
   ======================================== */

/* ---- CSS CUSTOM PROPERTIES ---- */
:root {
  --purple:       #ffffff;
  --purple-light: #e0e0e0;
  --purple-dark:  #b0b0b0;
  --blue:         #d0d0d0;
  --blue-light:   #aaaaaa;
  --cyan:         #cccccc;
  --bg:           #121212;
  --bg-2:         #1e1e1e;
  --surface:      rgba(255,255,255,0.03);
  --surface-2:    rgba(255,255,255,0.05);
  --border:       rgba(255,255,255,0.1);
  --border-hover: rgba(255,255,255,0.3);
  --text:         #fbfbfb;
  --text-dim:     rgba(255,255,255,0.6);
  --text-dimmer:  rgba(255,255,255,0.3);
  --glass-bg:     rgba(18,18,18,0.8);
  --glass-blur:   blur(12px);
  --glow-purple:  none;
  --glow-blue:    none;
  --glow-sm:      none;
  --radius-sm:    0px;
  --radius:       0px;
  --radius-lg:    0px;
  --transition:   all 0.4s ease;
  --font:         'Sora', sans-serif;
  --mono:         'Fira Code', monospace;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

body.mobile {
  cursor: auto;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: none; border: none; background: none; font-family: var(--font); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 3px; border-radius: 4px; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 10px; }

/* ---- SELECTION ---- */
::selection { background: rgba(124,58,237,0.4); color: white; }

/* ---- UTILITIES ---- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.glass:hover {
  border-color: rgba(124,58,237,0.4);
}

/* ---- PAGE LOADER ---- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--purple-light);
  border-right-color: var(--blue-light);
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
  box-shadow: var(--glow-purple);
}

.loader-text {
  font-size: 14px;
  color: var(--text-dim);
  font-family: var(--mono);
  letter-spacing: 2px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- CUSTOM CURSOR ---- */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--purple-light);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 15px var(--purple-light);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1.5px solid rgba(124,58,237,0.6);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%,-50%);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.cursor.hover { width: 6px; height: 6px; }
.cursor-follower.hover { width: 55px; height: 55px; opacity: 0.5; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: padding 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(124,58,237,0.2);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff, var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.logo-bracket {
  color: var(--purple-light);
  -webkit-text-fill-color: var(--purple-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link.active, .nav-link:hover {
  color: white;
}

.nav-link.active::after, .nav-link:hover::after { width: 20px; }

.nav-hire-btn {
  flex-shrink: 0;
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
}

.nav-hire-btn:hover {
  box-shadow: 0 0 35px rgba(124,58,237,0.5);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white;
  box-shadow: 0 0 25px rgba(124,58,237,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(124,58,237,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(124,58,237,0.5);
}
.btn-outline:hover {
  border-color: var(--purple-light);
  color: var(--purple-light);
  box-shadow: 0 0 20px rgba(124,58,237,0.25);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ---- SECTION HEADERS ---- */
.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--purple-light);
  letter-spacing: 2px;
  margin-bottom: 14px;
  opacity: 0.8;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto;
}

/* ---- SCROLL REVEAL ---- */
.reveal, .reveal-left, .reveal-right, .reveal-badge {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}

.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-badge { transform: translateY(-20px); }

.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-badge.visible {
  opacity: 1;
  transform: translate(0);
}

/* ==============================
    HERO SECTION
   ============================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

/* ---- TWO-COLUMN HERO LAYOUT ---- */
.hero-content--two-col {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  text-align: left;
}

.hero-content--two-col .hero-title {
  align-items: flex-start;
}

.hero-content--two-col .hero-subtitle {
  justify-content: flex-start;
}

.hero-content--two-col .hero-desc {
  margin-left: 0;
  margin-right: auto;
}

.hero-content--two-col .hero-cta {
  justify-content: flex-start;
}

.hero-content--two-col .hero-stats {
  align-self: flex-start;
}

.hero-text {
  flex: 1 1 0%;
  min-width: 0;
}

/* ---- HERO PROFILE PHOTO ---- */
.hero-photo-wrap {
  flex: 0 0 auto;
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroPhotoFloat 5s ease-in-out infinite;
}

@keyframes heroPhotoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Outer glow */
.hero-photo-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.25) 0%, rgba(37,99,235,0.10) 40%, transparent 70%);
  animation: heroGlowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* Rotating ring */
.hero-photo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(
    from 0deg,
    var(--purple) 0%,
    var(--blue) 25%,
    var(--cyan) 50%,
    var(--purple-light) 75%,
    var(--purple) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: heroRingSpin 6s linear infinite;
  pointer-events: none;
}

@keyframes heroRingSpin {
  to { transform: rotate(360deg); }
}

/* Photo container (circle clip) */
.hero-photo-container {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: rgba(13,13,26,0.6);
  border: 2px solid rgba(124,58,237,0.25);
  box-shadow:
    inset 0 0 40px rgba(124,58,237,0.15),
    0 0 50px rgba(124,58,237,0.15),
    0 0 100px rgba(37,99,235,0.08);
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  /* To use a real photo, set:
     background-image: url('your-photo.jpg');
     background-size: cover;
     background-position: center;
  */
}

.hero-photo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-photo-placeholder {
  width: 70%;
  height: 70%;
  filter: drop-shadow(0 0 20px rgba(124,58,237,0.4));
}

/* Status badge on photo */
.hero-photo-status {
  position: absolute;
  bottom: 25px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13,13,26,0.9);
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
  font-family: var(--mono);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: statusFloat 3s ease-in-out infinite;
  z-index: 3;
}

@keyframes statusFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Orbiting dots */
.hero-photo-orbit {
  position: absolute;
  inset: -20px;
  animation: heroRingSpin 12s linear infinite reverse;
  pointer-events: none;
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.orbit-dot-1 {
  top: 15%;
  left: 0;
  background: var(--purple-light);
  color: var(--purple-light);
}

.orbit-dot-2 {
  bottom: 10%;
  right: 5%;
  background: var(--blue-light);
  color: var(--blue-light);
  width: 6px;
  height: 6px;
}

.orbit-dot-3 {
  top: 5%;
  right: 20%;
  background: var(--cyan);
  color: var(--cyan);
  width: 5px;
  height: 5px;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.35);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 13px;
  color: var(--purple-light);
  margin-bottom: 28px;
  font-family: var(--mono);
  letter-spacing: 1px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px #22c55e; }
  50% { box-shadow: 0 0 18px #22c55e, 0 0 30px rgba(34,197,94,0.4); }
}

/* Hero Title */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 22px;
}

.title-line {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.title-name {
  font-size: clamp(64px, 10vw, 110px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  background: linear-gradient(135deg, #ffffff 0%, var(--purple-light) 50%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  position: relative;
}

/* Glitch effect */
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, var(--purple-light) 50%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glitch::before {
  animation: glitch-1 4s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}
.glitch::after {
  animation: glitch-2 4s infinite;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0%,90%,100% { transform: translate(0); }
  92% { transform: translate(-3px, 1px); }
  94% { transform: translate(3px, -1px); }
  96% { transform: translate(-2px, 0); }
}
@keyframes glitch-2 {
  0%,90%,100% { transform: translate(0); }
  91% { transform: translate(2px, 1px); }
  93% { transform: translate(-2px, -1px); }
  95% { transform: translate(1px, 0); }
}

.title-role {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 5px;
  text-transform: uppercase;
}

/* Typing */
.hero-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 20px;
  font-family: var(--mono);
}

.subtitle-label {
  color: var(--text-dimmer);
  font-size: 14px;
}

.typing-text {
  color: var(--purple-light);
  font-weight: 500;
  min-width: 180px;
  text-align: left;
}

.cursor-blink {
  color: var(--purple-light);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-desc {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 36px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  gap: 36px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-plus {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple-light), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-left: 2px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
  font-family: var(--mono);
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0.55;
  animation: float-up 2.5s infinite ease-in-out;
}
.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(124,58,237,0.6);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--purple-light);
  border-radius: 2px;
  animation: scroll-wheel 2s infinite;
}
.scroll-indicator span {
  font-size: 10px;
  color: var(--text-dimmer);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: var(--mono);
}
@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ==============================
    ABOUT SECTION
   ============================== */
.about {
  background: radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(37,99,235,0.06) 0%, transparent 60%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

/* Avatar visual */
.about-visual {
  display: flex;
  justify-content: center;
}

.about-avatar-wrap {
  position: relative;
  width: 320px;
  height: 340px;
}

.avatar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(124,58,237,0.35), transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-glow {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; }
}

.avatar-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 180px;
  height: 180px;
  animation: float-avatar 5s ease-in-out infinite;
}

.avatar-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(124,58,237,0.5));
}

@keyframes float-avatar {
  0%,100% { transform: translate(-50%,-50%) translateY(0); }
  50% { transform: translate(-50%,-50%) translateY(-12px); }
}

/* Floating badges */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(13,13,26,0.85);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: float-badge-anim 3s ease-in-out infinite;
}

.float-badge-1 { top: 10px; left: -10px; animation-delay: 0s; }
.float-badge-2 { top: 50%; right: -20px; transform: translateY(-50%); animation-delay: 0.7s; }
.float-badge-3 { bottom: 20px; left: 0; animation-delay: 1.4s; }
.float-badge-4 { top: 15%; right: 0px; animation-delay: 2.1s; }

.float-icon { font-size: 16px; }

@keyframes float-badge-anim {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-badge-2 {
  animation: float-badge-2-anim 3s ease-in-out infinite;
  animation-delay: 0.7s;
}
@keyframes float-badge-2-anim {
  0%,100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(6px); }
}

/* About card */
.about-card {
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.card-accent-line {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.about-name {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.about-role {
  font-size: 14px;
  color: var(--purple-light);
  font-family: var(--mono);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.about-bio {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(124,58,237,0.12);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-icon { font-size: 18px; }

.detail-label {
  display: block;
  font-size: 11px;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--mono);
}

.detail-value {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.status-available {
  color: #22c55e !important;
}

/* ==============================
    SKILLS SECTION
   ============================== */
.skills {
  background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.08) 0%, transparent 60%);
}

.skills-canvas-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  margin-bottom: 60px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

#skills-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.skills-canvas-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-dimmer);
  font-family: var(--mono);
  letter-spacing: 2px;
  background: rgba(10,10,15,0.6);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--border);
  pointer-events: none;
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.skill-category {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.skill-cat-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-light);
  font-family: var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.skill-bars { display: flex; flex-direction: column; gap: 18px; }

.skill-bar-item {}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-dim);
}

.skill-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--bar-color), color-mix(in oklch, var(--bar-color), white 40%));
  box-shadow: 0 0 10px var(--bar-color);
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* Tech tag cloud */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tech-tag {
  padding: 9px 20px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--purple-light);
  transition: var(--transition);
  animation: tag-float 3s ease-in-out infinite;
  animation-delay: var(--delay);
  font-family: var(--mono);
}

.tech-tag:hover {
  background: rgba(124,58,237,0.25);
  border-color: var(--purple-light);
  box-shadow: var(--glow-sm);
  transform: translateY(-3px);
}

@keyframes tag-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ==============================
    PROJECTS SECTION
   ============================== */
.projects {
  background: radial-gradient(ellipse at 80% 60%, rgba(37,99,235,0.07) 0%, transparent 60%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}

/* Project card */
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease, border-color 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}

.project-card:hover {
  transform: translateY(-12px) rotateX(4deg) rotateY(-2deg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.5);
}

/* Project visual */
.project-visual {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--proj-color-a, #7c3aed), var(--proj-color-b, #2563eb));
  overflow: hidden;
}

.project-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.project-visual-inner {
  position: absolute;
  inset: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mini browser mockup */
.proj-mockup {
  width: 100%;
  background: rgba(10,10,20,0.7);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}

.proj-mockup-bar {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.proj-mockup-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.proj-mockup-bar span:nth-child(1) { background: rgba(239,68,68,0.7); }
.proj-mockup-bar span:nth-child(2) { background: rgba(234,179,8,0.7); }
.proj-mockup-bar span:nth-child(3) { background: rgba(34,197,94,0.7); }

.proj-mockup-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proj-line {
  height: 5px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}
.pw-80 { width: 80%; }
.pw-90 { width: 90%; }
.pw-60 { width: 60%; }
.pw-50 { width: 50%; }

.proj-mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.proj-card-mini {
  height: 28px;
  border-radius: 4px;
}

/* Chat mockup */
.proj-chat-wrap { display: flex; flex-direction: column; gap: 7px; }
.proj-chat {
  height: 16px;
  width: 75%;
  border-radius: 8px;
}
.proj-chat-r { align-self: flex-end; border-bottom-right-radius: 2px; }
.proj-chat-l { align-self: flex-start; border-bottom-left-radius: 2px; }

/* Dashboard mockup */
.proj-dashboard { display: flex; flex-direction: column; gap: 8px; }
.proj-dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.proj-dash-stat {
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.proj-num { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.8); font-family: var(--mono); }
.proj-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 35px;
}
.proj-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  min-height: 8px;
}

.project-number {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 48px;
  font-weight: 900;
  color: rgba(255,255,255,0.07);
  font-family: var(--mono);
  line-height: 1;
}

/* Project info */
.project-info {
  padding: 24px;
}

.project-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.project-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.tag {
  padding: 4px 12px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  color: var(--purple-light);
  font-family: var(--mono);
}

.project-links { display: flex; gap: 10px; }

.proj-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  font-family: var(--font);
}

.proj-btn-live {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white;
}
.proj-btn-live:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: var(--glow-sm); }

.proj-btn-github {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim);
}
.proj-btn-github:hover { background: rgba(255,255,255,0.1); color: white; transform: translateY(-2px); }

.projects-cta { text-align: center; }

/* ==============================
    CONTACT SECTION
   ============================== */
.contact {
  position: relative;
  background: radial-gradient(ellipse at 30% 80%, rgba(124,58,237,0.07) 0%, transparent 60%);
  overflow: hidden;
}

#contact-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.contact .container {
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.contact-info-desc {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.contact-detail-item:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: translateX(6px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--purple-light);
}

/* Social links */
.social-links {
  display: flex;
  gap: 14px;
}

.social-link {
  width: 46px;
  height: 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: var(--transition);
}

.social-link:hover {
  background: rgba(124,58,237,0.2);
  border-color: var(--purple-light);
  color: var(--purple-light);
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
  transform: translateY(-4px);
}

/* Contact Form */
.contact-form {
  padding: 40px;
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.form-header {
  margin-bottom: 28px;
}

.form-tag {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--purple-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-input-wrap {
  position: relative;
}

.form-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dimmer);
  pointer-events: none;
  transition: color 0.3s;
  z-index: 1;
}

.form-textarea + .form-input-icon,
.form-input-wrap:has(textarea) .form-input-icon {
  top: 16px;
  transform: none;
}

.form-input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(124,58,237,0.2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  resize: none;
}

.form-input::placeholder {
  color: var(--text-dimmer);
}

.form-input:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15), 0 0 20px rgba(124,58,237,0.15);
  background: rgba(124,58,237,0.05);
}

.form-input:focus ~ .form-input-icon,
.form-input-wrap:focus-within .form-input-icon {
  color: var(--purple-light);
}

.form-textarea {
  padding-top: 14px;
  padding-left: 44px;
  min-height: 130px;
  line-height: 1.7;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  font-size: 15px;
  padding: 16px;
  position: relative;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius);
  color: #4ade80;
  font-size: 14px;
}

/* ==============================
    FOOTER
   ============================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-text {
  font-size: 13px;
  color: var(--text-dimmer);
}

.heart { color: #ef4444; display: inline-block; animation: heartbeat 1.4s infinite; }
@keyframes heartbeat { 0%,100%{transform:scale(1)} 50%{transform:scale(1.3)} }

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-dimmer);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--purple-light); }

/* ==============================
    FLOATING ANIMATION
   ============================== */
@keyframes float-up {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ==============================
    RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { display: none; }
  .about-avatar-wrap { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-content--two-col {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }
  .hero-content--two-col .hero-title { align-items: center; }
  .hero-content--two-col .hero-subtitle { justify-content: center; }
  .hero-content--two-col .hero-desc { margin: 0 auto 36px; }
  .hero-content--two-col .hero-cta { justify-content: center; }
  .hero-content--two-col .hero-stats { align-self: center; }
  .hero-photo-wrap { width: 260px; height: 260px; }
  .hero-photo-container { width: 230px; height: 230px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .nav-links { display: none; position: fixed; top: 70px; left: 0; right: 0; background: rgba(10,10,15,0.97); backdrop-filter: blur(20px); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border); gap: 4px; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-hire-btn { display: none; }
  .hamburger { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; padding: 16px 20px; flex-wrap: wrap; justify-content: center; }
  .stat-divider { display: none; }
  .skills-canvas-wrap { height: 300px; }
  .contact-form { padding: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .nav-link { font-size: 16px; padding: 12px 16px; width: 100%; display: block; border-radius: 10px; }
  .nav-link:hover, .nav-link.active { background: rgba(124,58,237,0.1); }

  /* Hero photo mobile */
  .hero-photo-wrap { width: 220px; height: 220px; }
  .hero-photo-container { width: 190px; height: 190px; }
  .hero-photo-status { padding: 4px 10px; font-size: 10px; bottom: 15px; right: 5px; }
  .hero-photo-orbit { display: none; }

  /* Disable heavy effects on mobile */
  .glitch::before, .glitch::after { display: none; }
  .skill-bar-fill { transition: width 0.8s ease; }
  .tech-tag { animation: none; }
  .float-badge { animation: none !important; }
}

@media (max-width: 480px) {
  .hero-title .title-name { font-size: 54px; letter-spacing: -2px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .section-title { font-size: 32px; }
  .about-card { padding: 24px; }
  .contact-form { padding: 20px; }
  .hero-subtitle { font-size: 15px; flex-direction: column; gap: 4px; }
  .footer-links { gap: 14px; }
  .hero-photo-wrap { width: 180px; height: 180px; }
  .hero-photo-container { width: 155px; height: 155px; }
}
