/* ===================================================
   PRINCE BHUSHAN PORTFOLIO — styles.css
   =================================================== */

/* ── Variables ─────────────────────────────────── */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-card: rgba(255, 255, 255, 0.7);
  --border: rgba(0, 0, 0, 0.08);
  --text: #0a0a0a;
  --text-muted: #6b6b6b;
  --text-light: #9a9a9a;
  --accent: #111111;
  --accent-2: #444444;
  --gradient: linear-gradient(135deg, #0a0a0a 0%, #444 100%);
  --grad-text: linear-gradient(135deg, #1a1a1a 0%, #555 100%);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --trans: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 72px;
}

[data-theme="dark"] {
  --bg: #0c0c0f;
  --bg-alt: #141418;
  --bg-card: rgba(20, 20, 24, 0.8);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f0;
  --text-muted: #a0a0a0;
  --text-light: #666;
  --accent: #f0f0f0;
  --accent-2: #b0b0b0;
  --gradient: linear-gradient(135deg, #e8e8e8 0%, #aaa 100%);
  --grad-text: linear-gradient(135deg, #ffffff 0%, #c0c0c0 100%);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ── Reset ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.4s var(--trans), color 0.4s var(--trans);
  cursor: none;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: none;
  border: none;
  background: none;
}

/* ── Custom Cursor ─────────────────────────────── */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--text);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.5;
}

body:hover .cursor {
  opacity: 1;
}

/* ── Preloader ─────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  transition: opacity 0.6s var(--trans);
}

.preloader.hide {
  opacity: 0;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -2px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  animation: pulse 1s ease-in-out infinite;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto;
}

.preloader-progress {
  height: 100%;
  background: var(--gradient);
  border-radius: var(--radius-full);
  width: 0;
  transition: width 2s var(--trans);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.5
  }
}

/* ── Container ─────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section Base ──────────────────────────────── */
.section {
  padding: 100px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s var(--trans);
  position: relative;
  overflow: hidden;
  cursor: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s var(--trans);
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.btn-primary i {
  transition: transform 0.3s var(--trans);
}

.btn-primary:hover i {
  transform: translateX(4px);
}

.btn-outline {
  border: 2px solid var(--border);
  color: var(--text);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── Navbar ────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: all 0.4s var(--trans);
}

.navbar.scrolled {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo-last {
  color: var(--text-muted);
  font-weight: 400;
}

.logo-text .accent {
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all 0.25s var(--trans);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s var(--trans);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 16px;
  right: 16px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.3s var(--trans);
  cursor: none;
}

.theme-toggle:hover {
  background: var(--text);
  color: var(--bg);
  transform: rotate(20deg);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: none;
}

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

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

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

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

/* ── Hero ──────────────────────────────────────── */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 32px) 0 60px;
}

.hero-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 580px;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -3px;
  margin-bottom: 16px;
}

.hero-title-sub {
  color: var(--text-muted);
}

.hero-role {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}

.typed-text {
  color: var(--text);
  font-weight: 600;
}

.cursor-blink {
  animation: cursorBlink 1s step-end infinite;
  color: var(--text);
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.stat-plus {
  font-size: 1.4rem;
  font-weight: 700;
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 32px;
}

.hero-avatar-ring {
  width: 360px;
  height: 360px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Rotating hexagonal glass ring */
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: linear-gradient(135deg,
      rgba(200, 200, 200, 0.28) 0%,
      rgba(255, 255, 255, 0.06) 50%,
      rgba(180, 180, 180, 0.18) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  border-radius: 0;
  animation: spin 28s linear infinite;
}

[data-theme="dark"] .hero-avatar-ring {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.03) 50%,
      rgba(255, 255, 255, 0.10) 100%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-avatar {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-alt);
  border: 4px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22), 0 0 0 8px rgba(255, 255, 255, 0.15);
  position: relative;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.floating-card i {
  font-size: 1.1rem;
  color: var(--text);
}

.card-1 {
  top: 0;
  right: -40px;
  animation: float1 3s ease-in-out infinite;
}

.card-2 {
  bottom: 40px;
  right: -50px;
  animation: float2 3.5s ease-in-out infinite;
}

.card-3 {
  bottom: 0;
  left: -40px;
  animation: float1 4s ease-in-out infinite;
}

@keyframes float1 {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-12px)
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(10px)
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-indicator span {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {

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

  50% {
    transform: translateY(8px);
    opacity: 0.3
  }
}

/* ── About ─────────────────────────────────────── */
.about {
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-card {
  position: relative;
  display: inline-block;
  width: 100%;
}

.about-image-bg {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 85%;
  height: 85%;
  background: var(--gradient);
  border-radius: var(--radius-lg);
  opacity: 0.08;
}

.about-img-inner {
  width: 82%;
  max-width: 340px;
  margin: 12px auto 32px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--border);
  background: var(--bg-alt);
  box-shadow: var(--shadow-md);
  position: relative;
}

.about-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0);
}

.about-badge-exp {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.about-badge-exp strong {
  display: block;
  font-size: 1.6rem;
  font-family: 'Montserrat', sans-serif;
}

.about-badge-exp span {
  font-size: 0.72rem;
  letter-spacing: 1px;
  opacity: 0.8;
  display: block;
}

.about-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.about-desc {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-desc strong {
  color: var(--text);
}

.about-strengths {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
}

.strength-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--trans);
}

.strength-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: var(--text-light);
}

.strength-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.strength-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.strength-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Skills ────────────────────────────────────── */
.skills {
  background: var(--bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--trans);
  animation-delay: var(--delay, 0s);
}

.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.skill-cat-header i {
  font-size: 1.3rem;
  color: var(--text);
}

.skill-cat-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-bar-item {}

.skill-bar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.skill-pct {
  font-weight: 700;
  color: var(--text);
}

.skill-track {
  height: 5px;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.2s var(--trans);
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.tech-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--text-muted);
  transition: all 0.3s var(--trans);
  cursor: default;
  backdrop-filter: blur(10px);
}

.tech-icon:hover {
  color: var(--text);
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-md);
  border-color: var(--text-light);
}

/* ── Projects ──────────────────────────────────── */
.projects {
  background: var(--bg-alt);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--trans);
  animation-delay: var(--delay, 0s);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--text-light);
}

.project-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-placeholder, .project-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform 0.4s var(--trans);
}

.project-image {
  object-fit: cover;
  background-color: var(--bg-alt);
}

.project-card:hover .project-placeholder,
.project-card:hover .project-image {
  transform: scale(1.08);
}

.p1 {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #8888ff;
}

.p2 {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #64d8cb;
}

.p3 {
  background: linear-gradient(135deg, #1a0533, #3d0f6b);
  color: #c979ff;
}

.p4 {
  background: linear-gradient(135deg, #002244, #004080);
  color: #4db8ff;
}

.p5 {
  background: linear-gradient(135deg, #1a1a00, #4a4a00);
  color: #ffdd57;
}

.p6 {
  background: linear-gradient(135deg, #2d0000, #6b0000);
  color: #ff8080;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--trans);
  backdrop-filter: blur(4px);
}

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

.project-link-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transform: scale(0.8);
  transition: transform 0.3s var(--trans);
}

.project-card:hover .project-link-btn {
  transform: scale(1);
}

.project-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

.project-body {
  padding: 20px;
}

.project-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.project-tech span {
  padding: 3px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.project-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  transition: gap 0.25s var(--trans);
}

.project-demo-btn:hover {
  gap: 10px;
}

.project-demo-btn i {
  font-size: 0.75rem;
}

/* ── Services ──────────────────────────────────── */
.services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.4s var(--trans);
  animation-delay: var(--delay, 0s);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.4s var(--trans);
  transform-origin: left;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-icon-wrap {
  margin-bottom: 20px;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text);
  transition: all 0.3s var(--trans);
}

.service-card:hover .service-icon {
  background: var(--text);
  color: var(--bg);
  transform: rotate(5deg) scale(1.05);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-list li {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-list li i {
  color: var(--text);
  font-size: 0.7rem;
}

.service-number {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  transition: color 0.3s var(--trans);
}

.service-card:hover .service-number {
  color: var(--bg-alt);
}

/* ── Contact ───────────────────────────────────── */
.contact {
  background: var(--bg-alt);
}

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

.contact-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.contact-info p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

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

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.3s var(--trans);
}

.contact-detail-item:hover .contact-detail-icon {
  background: var(--text);
  color: var(--bg);
  transform: scale(1.05);
}

.detail-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.detail-value {
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.25s;
}

.detail-value:hover {
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 12px;
}

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

.social-btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap i {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  font-size: 0.85rem;
  pointer-events: none;
  transition: color 0.25s;
}

.input-wrap input,
.input-wrap textarea {
  width: 100%;
  padding: 12px 14px 12px 38px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: all 0.3s var(--trans);
  resize: none;
}

.input-wrap input:focus,
.input-wrap textarea:focus {
  border-color: var(--text-light);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .input-wrap input:focus,
[data-theme="dark"] .input-wrap textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.input-wrap:focus-within i {
  color: var(--text);
}

.textarea-wrap {
  align-items: flex-start;
}

.textarea-wrap i {
  top: 14px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-sm);
  color: #22c55e;
  font-size: 0.88rem;
  font-weight: 600;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.form-success.show {
  display: flex;
}

/* ── Footer ────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 72px;
}

/* Top grid */
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -1px;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-logo-last {
  font-weight: 400;
  color: var(--text-muted);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: var(--bg-card);
  transition: all 0.3s var(--trans);
}

.footer-social:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* Footer columns */
.footer-col {}

.footer-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s var(--trans);
}

.footer-nav li a i {
  font-size: 0.6rem;
  transition: transform 0.25s var(--trans);
}

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

.footer-nav li a:hover i {
  transform: translateX(3px);
}

/* Contact column */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.footer-contact-list li i {
  width: 16px;
  font-size: 0.85rem;
  color: var(--text);
  flex-shrink: 0;
}

.footer-contact-list li a,
.footer-contact-list li span {
  transition: color 0.25s var(--trans);
}

.footer-contact-list li a:hover {
  color: var(--text);
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: var(--gradient);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s var(--trans);
}

.footer-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  gap: 10px;
}

.footer-cta-btn i {
  font-size: 0.75rem;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-copy strong {
  color: var(--text);
}

.footer-copy i {
  color: #e84393;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color 0.25s;
}

.footer-bottom-links a:hover {
  color: var(--text);
}

.footer-bottom-links span {
  color: var(--text-light);
  font-size: 0.82rem;
}

/* ── Back To Top ───────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--text);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s var(--trans);
  cursor: none;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ── Scroll Reveal ─────────────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s var(--trans), transform 0.7s var(--trans);
  transition-delay: var(--delay, 0s);
}

.reveal-up {
  transform: translateY(40px);
}

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

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

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* ── Mobile Responsive ─────────────────────────── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .hero-visual {
    margin-left: 24px;
  }

  .hero-avatar {
    width: 240px;
    height: 240px;
  }

  .hero-avatar-ring {
    width: 270px;
    height: 270px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 0;
    transform: translateY(-120%);
    transition: transform 0.4s var(--trans);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-link {
    padding: 12px 24px;
    width: 100%;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 40px);
  }

  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-visual {
    margin: 0 0 32px;
  }

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

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

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

  .hero-tagline {
    margin: 0 auto 32px;
  }

  .floating-card.card-1 {
    right: -10px;
  }

  .floating-card.card-2 {
    right: -10px;
  }

  .floating-card.card-3 {
    left: -10px;
  }

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

  .about-image-wrap {
    max-width: 300px;
    margin: 0 auto;
  }

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

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

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

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

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

  .section {
    padding: 72px 0;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }

  body {
    cursor: auto;
  }

  button,
  a {
    cursor: auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: -2px;
  }

  .hero-stats {
    gap: 16px;
  }

  .contact-form-wrap {
    padding: 24px;
  }
}