/* ===================================================
   BIRAJ OLI PORTFOLIO — PREMIUM STYLESHEET v2
   =================================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --primary: #241545;
  --primary-light: #2e1d58;
  --primary-dark: #1a0f33;
  --accent: #fbbf24;
  --accent-light: #fcd34d;
  --accent-dark: #f59e0b;
  --secondary: #a78bfa;
  --secondary-light: #c4b5fd;
  --bg: #0d0a1a;
  --bg-2: #100d20;
  --bg-card: rgba(36, 21, 69, 0.45);
  --glass: rgba(255, 255, 255, 0.035);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.07);

  --text-primary: #f0eeff;
  --text-secondary: rgba(240, 238, 255, 0.65);
  --text-muted: rgba(240, 238, 255, 0.38);

  --gradient-primary: linear-gradient(135deg, #fbbf24, #a78bfa);
  --gradient-bg: linear-gradient(135deg, #0d0a1a 0%, #1a0f33 50%, #0d0a1a 100%);
  --gradient-card: linear-gradient(135deg, rgba(36, 21, 69, 0.6), rgba(18, 14, 36, 0.8));

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 64px rgba(0, 0, 0, 0.55);
  --shadow-accent: 0 0 40px rgba(251, 191, 36, 0.18);
  --shadow-secondary: 0 0 40px rgba(167, 139, 250, 0.18);
  --shadow-glow: 0 0 60px rgba(167, 139, 250, 0.25);

  --transition-fast: 0.18s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-code: 'Fira Code', monospace;

  --nav-height: 70px;
  --container-max: 1200px;
  --section-padding: 110px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

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

.glass {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
}

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

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 18px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 100px;
  margin-bottom: 18px;
  background: rgba(251, 191, 36, 0.07);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
  background: rgba(255, 255, 255, 0.1);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 50%, #f97316 100%);
  color: #0d0813;
  box-shadow: 0 4px 24px rgba(251, 191, 36, 0.35);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(251, 191, 36, 0.5);
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background: rgba(251, 191, 36, 0.06);
}

.btn-ghost {
  color: var(--text-secondary);
  border: 1.5px solid var(--glass-border);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--secondary);
  transform: translateY(-2px);
  background: rgba(167, 139, 250, 0.06);
}

.btn-lg {
  padding: 15px 34px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
  border-radius: var(--radius-md);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 8, 20, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  font-family: var(--font-code);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-bracket {
  color: var(--secondary);
}

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

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 100px;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  flex-shrink: 0;
  margin-left: 8px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}

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

.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 SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--nav-height) 0 0;
}

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

.orb-wrapper {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}

.hero-orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.orb-1 { width: 600px; height: 600px; top: -150px; left: -150px; }
.orb-1 .hero-orb {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, transparent 70%);
  animation: orbFloat1 14s ease-in-out infinite;
}

.orb-2 { width: 450px; height: 450px; bottom: -80px; right: -80px; }
.orb-2 .hero-orb {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
  animation: orbFloat2 17s ease-in-out infinite;
}

.orb-3 { width: 350px; height: 350px; top: 50%; right: 20%; }
.orb-3 .hero-orb {
  background: radial-gradient(circle, rgba(36, 21, 69, 0.4) 0%, transparent 70%);
  animation: orbFloat3 20s ease-in-out infinite;
}

.orb-4 { width: 250px; height: 250px; top: 20%; left: 40%; }
.orb-4 .hero-orb {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
  animation: orbFloat2 22s ease-in-out infinite;
  animation-delay: -5s;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4ade80;
  margin-bottom: 28px;
  width: fit-content;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.hero-typewriter {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 2.2em;
  display: flex;
  align-items: center;
}

.typewriter {
  color: var(--secondary-light);
  font-weight: 700;
  border-right: 2.5px solid var(--accent);
  padding-right: 4px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-suffix {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 6px;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-avatar-wrapper {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: spin-slow linear infinite;
}

.ring-outer {
  width: 100%;
  height: 100%;
  border-color: rgba(167, 139, 250, 0.2);
  border-style: dashed;
  animation-duration: 30s;
}

.ring-inner {
  width: 80%;
  height: 80%;
  border-color: rgba(251, 191, 36, 0.18);
  animation-duration: 20s;
  animation-direction: reverse;
}

.hero-avatar {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border: 2px solid rgba(167, 139, 250, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(167, 139, 250, 0.35), var(--shadow-lg);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2e1d58, #1a0f33, #241545);
}

.avatar-placeholder svg {
  color: rgba(167, 139, 250, 0.6);
}

/* Avatar inner code decoration */
.avatar-code-decor {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-code);
  font-size: 0.6rem;
  color: rgba(167, 139, 250, 0.12);
  white-space: pre;
  line-height: 1.5;
  overflow: hidden;
  pointer-events: none;
  padding: 8px;
  text-align: center;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(13, 10, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.5);
  animation: floatCard 4s ease-in-out infinite;
  z-index: 10;
}

.card-top-right {
  top: 16px;
  right: -12px;
  animation-delay: 0.5s;
}

.card-bottom-left {
  bottom: 24px;
  left: -12px;
  animation-delay: 1.5s;
}

.fc-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.fc-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.fc-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--accent), #f97316);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0d0a1a;
  flex-shrink: 0;
}

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

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

/* ===== ABOUT SECTION ===== */
.about {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

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

.about-img-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-img-bg {
  position: absolute;
  inset: -24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(251, 191, 36, 0.06));
  z-index: 0;
  filter: blur(2px);
}

.about-img-placeholder {
  position: relative;
  z-index: 1;
  width: 330px;
  height: 400px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(167, 139, 250, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  background: linear-gradient(145deg, #1e113d 0%, #140d2a 50%, #1a1235 100%);
}

/* About image decorative code background */
.about-img-placeholder::before {
  content: 'const biraj = {\n  role: "Full Stack",\n  passion: "crafting\n  beautiful web\n  experiences",\n  location: "Nepal"\n}';
  position: absolute;
  font-family: var(--font-code);
  font-size: 0.65rem;
  color: rgba(167, 139, 250, 0.1);
  white-space: pre;
  line-height: 1.6;
  top: 16px;
  left: 16px;
}

.about-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
}

.about-img-inner {
  position: relative;
  z-index: 2;
  color: rgba(167, 139, 250, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-exp-badge {
  position: absolute;
  bottom: -22px;
  right: 12px;
  z-index: 5;
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  text-align: center;
  box-shadow: var(--shadow-accent), 0 20px 40px rgba(0, 0, 0, 0.4);
  color: #0d0813;
}

.exp-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.exp-text {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-content {
  padding: 20px 0;
}

.about-subtitle {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  line-height: 1.3;
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.85;
  font-size: 0.975rem;
}

.about-timeline {
  margin: 36px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 18px;
  padding-bottom: 28px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--secondary), transparent);
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--secondary);
  border: 2.5px solid var(--bg);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.7);
  flex-shrink: 0;
  margin-top: 4px;
}

.timeline-content {
  flex: 1;
}

.timeline-year {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-code);
  letter-spacing: 0.05em;
}

.timeline-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 5px 0 3px;
  color: var(--text-primary);
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== PROJECTS SECTION ===== */
.projects {
  background: var(--bg);
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 24px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  transition: all var(--transition);
  background: transparent;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  border-color: transparent;
  color: #0d0813;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(251, 191, 36, 0.3);
}

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

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(18, 12, 36, 0.5);
  border: 1px solid var(--glass-border);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 50px rgba(167, 139, 250, 0.2), var(--shadow-lg);
  border-color: rgba(167, 139, 250, 0.25);
}

.project-card.hidden {
  display: none;
}

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

/* Premium project image visuals using CSS art */
.project-img-1 {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(109, 40, 217, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(251, 191, 36, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, #0f0620 0%, #1e0b42 50%, #110835 100%);
}

.project-img-2 {
  background:
    radial-gradient(ellipse at 70% 20%, rgba(16, 185, 129, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.4) 0%, transparent 50%),
    linear-gradient(135deg, #031220 0%, #061e38 50%, #040e1a 100%);
}

.project-img-3 {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(251, 191, 36, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(245, 102, 46, 0.4) 0%, transparent 50%),
    linear-gradient(135deg, #1a1100 0%, #2d1f00 50%, #1a0f00 100%);
}

.project-img-4 {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(16, 185, 129, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 30%, rgba(52, 211, 153, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, #021410 0%, #042a22 50%, #021810 100%);
}

.project-img-5 {
  background:
    radial-gradient(ellipse at 60% 30%, rgba(239, 68, 68, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 70%, rgba(251, 191, 36, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, #1a0505 0%, #350a0a 50%, #220505 100%);
}

.project-img-6 {
  background:
    radial-gradient(ellipse at 40% 50%, rgba(99, 102, 241, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(167, 139, 250, 0.4) 0%, transparent 50%),
    linear-gradient(135deg, #060618 0%, #0e0e38 50%, #060618 100%);
}

/* Project image code watermark */
.project-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,
      transparent,
      transparent 28px,
      rgba(255, 255, 255, 0.015) 28px,
      rgba(255, 255, 255, 0.015) 29px);
}

/* Project icon decoration inside image */
.project-img::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-code);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: -2px;
}

.project-img-1::after {
  content: '</>';
}

.project-img-2::after {
  content: '📱';
  font-family: inherit;
  font-size: 4rem;
}

.project-img-3::after {
  content: '◈◈';
}

.project-img-4::after {
  content: '▶ ▪';
}

.project-img-5::after {
  content: '🛒';
  font-family: inherit;
  font-size: 4rem;
}

.project-img-6::after {
  content: '⋯≡';
  font-size: 4rem;
}

/* Decorative grid dots overlay on project images */
.project-img-1::before,
.project-img-4::before {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 5, 25, 0.85), rgba(36, 21, 69, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 5;
  backdrop-filter: blur(4px);
}

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

.project-links {
  display: flex;
  gap: 14px;
}

.project-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--transition);
}

.project-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d0813;
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.project-info {
  padding: 26px 24px;
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  color: var(--secondary-light);
  letter-spacing: 0.02em;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

.project-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-more::after {
  content: '→';
}

.project-more:hover {
  gap: 10px;
  color: var(--accent-light);
}

/* ===== SKILLS SECTION ===== */
.skills {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.skills-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 36px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills-subtitle::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 18px;
  background: linear-gradient(180deg, var(--accent), var(--secondary));
  border-radius: 2px;
}

.skill-bar-item {
  margin-bottom: 26px;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-percent {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-code);
}

.skill-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 100px;
  transition: width 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.5);
  position: relative;
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 100%;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 100px;
  filter: blur(4px);
}

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

.tech-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 16px 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
  text-align: center;
}

.tech-chip:hover {
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.25);
  color: var(--text-primary);
  transform: translateY(-6px) scale(1.04);
  box-shadow: var(--shadow-md);
}

.tech-icon {
  font-size: 1.4rem;
}

/* ===== BLOG SECTION ===== */
.blog {
  background: var(--bg);
}

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

.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(18, 12, 36, 0.5);
  border: 1px solid var(--glass-border);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(167, 139, 250, 0.2);
}

.blog-img {
  height: 190px;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 18px;
  overflow: hidden;
}

.blog-img-1 {
  background:
    radial-gradient(ellipse at 30% 60%, rgba(139, 92, 246, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(251, 191, 36, 0.2) 0%, transparent 50%),
    linear-gradient(145deg, #120828 0%, #200f4a 100%);
}

.blog-img-2 {
  background:
    radial-gradient(ellipse at 70% 50%, rgba(59, 130, 246, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
    linear-gradient(145deg, #040b20 0%, #081838 100%);
}

.blog-img-3 {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(52, 211, 153, 0.2) 0%, transparent 50%),
    linear-gradient(145deg, #041210 0%, #0a2821 100%);
}

.blog-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg,
      transparent, transparent 28px,
      rgba(255, 255, 255, 0.015) 28px, rgba(255, 255, 255, 0.015) 29px);
}

.blog-category {
  position: relative;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 100px;
  color: var(--accent);
}

.blog-content {
  padding: 26px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.blog-date,
.blog-read {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.blog-read::before {
  content: '·';
  margin-right: 16px;
}

.blog-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.blog-excerpt {
  font-size: 0.855rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  transition: all var(--transition);
}

.blog-link:hover {
  gap: 10px;
  color: var(--accent-light);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  flex-direction: column;
  gap: 0;
}

.testimonial-card {
  display: none;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 52px;
  border-radius: var(--radius-xl);
  animation: fadeIn 0.4s ease;
}

.testimonial-card.active {
  display: block;
}

.testimonial-stars {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 6px;
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 32px;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: -28px;
  left: -14px;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 18px;
}

.author-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0d0813;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.3);
}

.author-info h4 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.author-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(251, 191, 36, 0.08);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.15);
  transition: all var(--transition);
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
  width: 28px;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--bg);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--secondary), var(--accent));
  transform: scaleY(0);
  transition: transform 0.3s ease;
  border-radius: 0 2px 2px 0;
}

.contact-item:hover::before {
  transform: scaleY(1);
}

.contact-item:hover {
  border-color: rgba(167, 139, 250, 0.2);
  background: rgba(167, 139, 250, 0.04);
  transform: translateX(4px);
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(251, 191, 36, 0.08));
  border: 1px solid rgba(167, 139, 250, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
}

.contact-social {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.social-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d0813;
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.35);
}

/* Contact Form */
.contact-form {
  padding: 44px;
  border-radius: var(--radius-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 13px 17px;
  font-size: 0.9rem;
  font-family: var(--font-main);
  color: var(--text-primary);
  transition: all var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  background: rgba(167, 139, 250, 0.05);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.08);
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 20px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: #4ade80;
}

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

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(180deg, #0f0c1e 0%, #0a0814 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 88px 0 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 36px;
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 18px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 240px;
}

.footer-links-group h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-group a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
  display: inline-block;
}

.footer-links-group a:hover {
  color: var(--accent);
}

.footer-links-group a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-links-group a:hover::after {
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-built {
  font-family: var(--font-code);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  color: #0d0813;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(251, 191, 36, 0.4), var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  pointer-events: none;
}

.back-to-top::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.2);
  animation: pulse 2s infinite;
  z-index: -1;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-5px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 88px;
  }

  .hero-container {
    gap: 48px;
  }

  .hero-avatar-wrapper {
    width: 290px;
    height: 290px;
  }

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

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

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

  .footer-top {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-top .footer-links-group:last-child {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 72px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 8, 20, 0.98);
    backdrop-filter: blur(28px);
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 999;
  }

  .nav-links.open .nav-link {
    font-size: 1rem;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 52px;
    padding: 64px 24px;
  }

  .hero-description {
    max-width: 100%;
  }

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

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

  .hero-visual {
    order: -1;
  }

  .hero-avatar-wrapper {
    width: 230px;
    height: 230px;
  }

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

  .card-top-right {
    top: 8px;
    right: -18px;
  }

  .card-bottom-left {
    bottom: 8px;
    left: -18px;
  }

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

  .about-visual {
    order: -1;
  }

  .about-img-placeholder {
    width: 100%;
    max-width: 320px;
    height: 300px;
  }

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

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

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

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .contact-form {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 32px 28px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 56px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat-divider {
    display: none;
  }

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

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

  .hero-avatar-wrapper {
    width: 190px;
    height: 190px;
  }

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