/* ============================================
   PORTFOLIO WEBSITE - GLASSMORPHISM DARK THEME
   ============================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@300;400;500&display=swap');

/* ── Design Tokens ── */
:root {
  --bg-primary:    #050b18;
  --bg-secondary:  #080f20;
  --bg-tertiary:   #0c1730;
  --accent-cyan:   #818cf8;
  --accent-blue:   #6366f1;
  --accent-purple: #4f46e5;
  --accent-violet: #a78bfa;
  --gradient-main: linear-gradient(135deg, #a78bfa 0%, #818cf8 40%, #6366f1 75%, #4f46e5 100%);
  --gradient-card: linear-gradient(135deg, rgba(167,139,250,0.08), rgba(99,102,241,0.04));
  --text-primary:  #ffffff;
  --text-secondary: rgba(255,255,255,0.72);
  --text-muted:    rgba(255,255,255,0.40);
  --glass-bg:      rgba(255,255,255,0.04);
  --glass-bg-hover: rgba(255,255,255,0.07);
  --glass-border:  rgba(255,255,255,0.08);
  --glass-border-hover: rgba(167,139,250,0.35);
  --shadow-cyan:   0 0 40px rgba(167,139,250,0.12);
  --shadow-blue:   0 0 40px rgba(99,102,241,0.15);
  --shadow-card:   0 8px 32px rgba(0,0,0,0.4);
  --font-main:     'Inter', sans-serif;
  --font-mono:     'Fira Code', monospace;
  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --section-pad:   100px 0;
}

/* ============================================
   THEME TRANSITIONS & LIGHT MODE
   ============================================ */

/* Smooth transitions — only active during theme switch to avoid
   interfering with keyframe animations */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition: background-color 0.38s ease, border-color 0.38s ease,
              color 0.38s ease, box-shadow 0.38s ease,
              opacity 0.38s ease !important;
  animation-duration: 0.01ms !important;
}

/* ── LIGHT MODE VARIABLES ── */
body.light-mode {
  --bg-primary:         #f5f5ff;
  --bg-secondary:       #ededff;
  --bg-tertiary:        #dcdcfc;
  --text-primary:       #0f0a28;
  --text-secondary:     rgba(15,10,40,0.75);
  --text-muted:         rgba(15,10,40,0.48);
  --glass-bg:           rgba(255,255,255,0.65);
  --glass-bg-hover:     rgba(255,255,255,0.85);
  --glass-border:       rgba(0,0,0,0.10);
  --glass-border-hover: rgba(99,102,241,0.45);
  --shadow-cyan:        0 0 40px rgba(99,102,241,0.18);
  --shadow-blue:        0 0 40px rgba(79,70,229,0.15);
  --shadow-card:        0 8px 32px rgba(0,0,0,0.08);
}

/* Scrollbar */
body.light-mode ::-webkit-scrollbar-track { background: var(--bg-secondary); }
body.light-mode ::-webkit-scrollbar-thumb { background: var(--accent-blue); }

/* Navbar */
body.light-mode #navbar.scrolled {
  background: rgba(245,245,255,0.93);
  border-bottom-color: rgba(0,0,0,0.08);
  box-shadow: 0 4px 30px rgba(0,0,0,0.07);
}
body.light-mode .nav-links a { color: rgba(15,10,40,0.72); }
body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active { color: var(--accent-blue); }
body.light-mode .nav-links.open { background: rgba(245,245,255,0.98); }
body.light-mode .hamburger span { background: var(--text-primary); }

/* Hero */
body.light-mode #hero {
  background: linear-gradient(180deg, #ededff 0%, #f5f5ff 100%);
}
body.light-mode .hero-glow-1 {
  background: radial-gradient(circle, rgba(129,140,248,0.18) 0%, transparent 70%);
}
body.light-mode .hero-glow-2 {
  background: radial-gradient(circle, rgba(79,70,229,0.12) 0%, transparent 70%);
}
body.light-mode .scroll-indicator span { color: rgba(15,10,40,0.45); }

/* Cards & sections — Real photography & screenshot thumbs must NOT be filtered */
body.light-mode .project-thumb-real,
body.light-mode .blog-thumb {
  filter: none !important;
}

/* Project card body: explicit dark text in light mode to prevent gradient bleed */
body.light-mode .project-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
body.light-mode .project-title {
  color: #0f0a28 !important;
  -webkit-text-fill-color: #0f0a28 !important;
  background: none !important;
}
body.light-mode .project-card:hover .project-title {
  color: #4f46e5 !important;
  -webkit-text-fill-color: #4f46e5 !important;
}
body.light-mode .project-desc {
  color: rgba(15, 10, 40, 0.72) !important;
  -webkit-text-fill-color: rgba(15, 10, 40, 0.72) !important;
}

/* Timeline line */
body.light-mode .timeline::before {
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
}

/* Section tag */
body.light-mode .section-tag {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.25);
}

/* About badge */
body.light-mode .about-img-badge {
  background: var(--bg-primary);
  border-color: rgba(0,0,0,0.08);
}

/* ── Fix: White-gradient text → invisible in light mode ── */
/* Section titles (use white→white gradient in dark mode) */
body.light-mode .section-title {
  background: linear-gradient(135deg, #0f0a28 0%, rgba(15,10,40,0.72) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero name */
body.light-mode .hero-name {
  background: linear-gradient(135deg, #0f0a28 0%, rgba(15,10,40,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stat numbers (use gradient-main, fine) but ensure text is readable */
body.light-mode .stat-num,
body.light-mode .badge-num {
  background: linear-gradient(135deg, #4f46e5, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* About title */
body.light-mode .about-title {
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
}

/* Typewriter cursor */
body.light-mode .typewriter-cursor { background: #4f46e5; }

/* Custom cursor */
body.light-mode .cursor { background: #4f46e5; }
body.light-mode .cursor-follower { border-color: rgba(79,70,229,0.45); }

/* Scroll line */
body.light-mode .scroll-line {
  background: linear-gradient(to bottom, #4f46e5, transparent);
}

/* Skill percentage text */
body.light-mode .skill-pct { color: #4f46e5; }

/* Timeline period */
body.light-mode .timeline-period { color: #4f46e5; }

/* Project tag */
body.light-mode .project-tag {
  color: #4f46e5;
  background: rgba(79,70,229,0.08);
  border-color: rgba(79,70,229,0.18);
}

/* Blog category */
body.light-mode .blog-cat {
  color: #4f46e5;
  background: rgba(79,70,229,0.08);
  border-color: rgba(79,70,229,0.15);
}

/* Section tag text */
body.light-mode .section-tag { color: #4f46e5; }

/* Hero eyebrow */
body.light-mode .hero-eyebrow {
  color: #4f46e5;
  background: rgba(79,70,229,0.08);
  border-color: rgba(79,70,229,0.2);
}

/* Hero eyebrow dot */
body.light-mode .hero-eyebrow .dot { background: #4f46e5; }

/* Blog read more */
body.light-mode .blog-read-more { color: #4f46e5; }

/* Contact icon */
body.light-mode .contact-icon {
  color: #4f46e5;
  background: rgba(79,70,229,0.08);
  border-color: rgba(79,70,229,0.15);
}

/* Skill category icon bg */
body.light-mode .skill-cat-icon {
  background: rgba(79,70,229,0.08);
  border-color: rgba(79,70,229,0.15);
}

/* Hero social links */
body.light-mode .hero-socials a {
  border-color: rgba(15,10,40,0.15);
  color: rgba(15,10,40,0.6);
}
body.light-mode .hero-socials a:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  background: rgba(79,70,229,0.08);
}

/* Skill fill bar stays gradient — fine as-is */

/* Nav logo in light mode */
body.light-mode .nav-logo {
  background: linear-gradient(135deg, #4f46e5, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Footer logo in light mode */
body.light-mode .footer-logo {
  background: linear-gradient(135deg, #4f46e5, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Theme Toggle Button ── */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(129,140,248,0.08);
  transform: rotate(22deg) scale(1.1);
}

body.light-mode .theme-toggle:hover {
  background: rgba(99,102,241,0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

::selection {
  background: rgba(129,140,248,0.25);
  color: #fff;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-cyan); border-radius: 3px; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Custom Cursor ── */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, opacity 0.3s;
  mix-blend-mode: screen;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(129,140,248,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s, height 0.3s, opacity 0.3s;
}

.cursor.active { width: 20px; height: 20px; opacity: 0.6; }
.cursor-follower.active { width: 52px; height: 52px; opacity: 0.4; }

/* ── Glassmorphism Utility ── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

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

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

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 1.5px solid rgba(129,140,248,0.4);
}

.btn-outline:hover {
  background: rgba(129,140,248,0.08);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(129,140,248,0.2);
}

/* ── Section Common ── */
section { padding: var(--section-pad); position: relative; }

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(129,140,248,0.08);
  border: 1px solid rgba(129,140,248,0.2);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-tag::before { content: '//'; opacity: 0.5; }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(5,11,24,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-main);
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-logo span { opacity: 0.5; }

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-cyan);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--gradient-main);
  color: #fff !important;
  padding: 8px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(129,140,248,0.25);
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(129,140,248,0.35) !important; }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  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; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(129,140,248,0.12) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79,70,229,0.1) 0%, transparent 70%);
  bottom: -10%;
  right: -5%;
  animation: floatGlow 10s ease-in-out infinite reverse;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(129,140,248,0.07);
  border: 1px solid rgba(129,140,248,0.2);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease forwards;
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-greeting {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-title {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-family: var(--font-mono);
  color: var(--text-secondary);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.4s both;
  min-height: 2.2rem;
}

.typewriter-text { color: var(--accent-cyan); }
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--accent-cyan);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 44px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
  animation: fadeInUp 0.8s ease 0.7s both;
}

.hero-socials span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hero-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition);
}

.hero-socials a:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(129,140,248,0.08);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1.5s ease 1.5s both;
  z-index: 1;
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

.scroll-line {
  width: 1.5px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(20px);  } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }

/* ============================================
   ABOUT SECTION
   ============================================ */
#about { background: var(--bg-secondary); }

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

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

.about-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  aspect-ratio: 4/5;
  max-width: 380px;
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-badge {
  position: absolute;
  bottom: 24px;
  right: -24px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-cyan);
}

.about-img-badge .badge-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.about-img-badge .badge-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: var(--font-mono);
}

.about-img-glow {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: var(--gradient-main);
  z-index: -1;
  opacity: 0.2;
  filter: blur(20px);
}

.about-tag { margin-bottom: 20px; }

.about-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.25;
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 36px 0;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: rgba(129,140,248,0.3);
  background: rgba(129,140,248,0.05);
  transform: translateY(-3px);
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 4px;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
#skills { background: var(--bg-primary); }

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

.skill-category {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-category:hover {
  border-color: rgba(129,140,248,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-cyan);
}

.skill-category:hover::before { opacity: 1; }

.skill-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(129,140,248,0.08);
  border: 1px solid rgba(129,140,248,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.skill-cat-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.skill-cat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 24px;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.skill-pct {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.skill-bar {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--gradient-main);
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

/* Tech badges */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}

.tech-badge {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: default;
}

.tech-badge:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(129,140,248,0.06);
  transform: translateY(-2px);
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
#portfolio { background: var(--bg-secondary); }

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(129,140,248,0.25);
}

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

.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(129,140,248,0.3);
  box-shadow: var(--shadow-cyan), var(--shadow-card);
}

.project-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

/* Real screenshot thumbnail */
.project-thumb-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .project-thumb-real img {
  transform: scale(1.04);
}

.project-thumb-real .project-thumb-overlay {
  background: rgba(5,11,24,0.55);
}

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,11,24,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.thumb-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.3;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.project-link-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.project-link-btn:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: scale(1.1);
}

.project-body {
  padding: 24px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.project-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(129,140,248,0.08);
  border: 1px solid rgba(129,140,248,0.15);
  padding: 3px 10px;
  border-radius: 4px;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.project-card:hover .project-title { color: var(--accent-cyan); }

.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
#experience { background: var(--bg-primary); }

.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.exp-col-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.exp-col-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
}

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

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  border-color: var(--accent-cyan);
  background: rgba(129,140,248,0.1);
  box-shadow: 0 0 16px rgba(129,140,248,0.3);
}

.timeline-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  flex: 1;
  transition: var(--transition);
}

.timeline-item:hover .timeline-content {
  border-color: rgba(129,140,248,0.2);
  background: rgba(129,140,248,0.03);
}

.timeline-period {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
#testimonials { background: var(--bg-secondary); overflow: hidden; }

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  flex: 0 0 calc(33.33% - 18px);
  margin-right: 28px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--accent-cyan);
  opacity: 0.1;
  line-height: 1;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: #fbbf24;
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

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

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.author-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

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

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(129,140,248,0.08);
}

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

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--glass-border);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(129,140,248,0.5);
  width: 24px;
  border-radius: 4px;
}

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

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

.blog-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(129,140,248,0.25);
  box-shadow: var(--shadow-cyan);
}

.blog-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.blog-body {
  padding: 24px;
}

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

.blog-cat {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(129,140,248,0.08);
  border: 1px solid rgba(129,140,248,0.15);
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.blog-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color 0.3s;
}

.blog-card:hover .blog-title { color: var(--accent-cyan); }

.blog-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.blog-card:hover .blog-read-more { gap: 10px; }

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

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

.contact-info-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
}

.contact-info-text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

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

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

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(129,140,248,0.08);
  border: 1px solid rgba(129,140,248,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--accent-cyan);
}

.contact-item-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(129,140,248,0.08);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(129,140,248,0.2);
}

/* Contact Form */
.contact-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(20px);
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-family: var(--font-main);
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(129,140,248,0.04);
  box-shadow: 0 0 0 3px rgba(129,140,248,0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  position: relative;
}

.form-submit.sending { pointer-events: none; opacity: 0.7; }

.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  color: #4ade80;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 16px;
}

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

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

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

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(129,140,248,0.08);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--glass-border);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer-copy span {
  color: var(--accent-cyan);
}

.footer-made {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ── Back to Top ── */
#back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-main);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(129,140,248,0.35);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  z-index: 500;
}

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

#back-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(129,140,248,0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 80px 0; }

  /* Defer off-screen section rendering on mobile for 60fps smooth scrolling */
  #services,
  #skills,
  #portfolio,
  #experience,
  #testimonials,
  #blog,
  #contact,
  .cta-strip {
    content-visibility: auto;
    contain-intrinsic-size: 1px 600px;
  }

  .nav-links { display: none; flex-direction: column; }
  .nav-links.open {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(5,11,24,0.97);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 48px;
    z-index: 999;
  }
  .nav-links.open a { font-size: 1.5rem; }
  .hamburger { display: flex; z-index: 1000; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-frame { max-width: 280px; margin: 0 auto; }
  .about-img-badge { right: 0; }

  .skills-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-btns { flex-direction: column; }

  .testimonial-card { flex: 0 0 calc(100% - 28px); }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  :root { --section-pad: 64px 0; }

  /* Navbar */
  #navbar { padding: 12px 0; }
  .nav-logo { font-size: 1.1rem; }

  /* Hero */
  .hero-grid { padding: 84px 0 36px; }
  .hero-greeting { font-size: 0.95rem; }
  .hero-name { font-size: clamp(2rem, 8.5vw, 2.8rem); line-height: 1.18; }
  .hero-title { font-size: 1.05rem; }
  .hero-description { font-size: 0.88rem; line-height: 1.7; }
  .hero-btns { width: 100%; gap: 10px; }
  .hero-btns .btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 0.92rem; }
  .hero-socials { flex-wrap: wrap; gap: 10px; }

  /* Services */
  .services-grid { gap: 16px; }
  .service-card { padding: 22px 18px; border-radius: var(--radius-md); }
  .service-title { font-size: 1.05rem; }
  .service-desc { font-size: 0.82rem; }

  /* Skills */
  .skills-grid { gap: 20px; }
  .skill-category { padding: 22px 18px; border-radius: var(--radius-md); }

  /* Portfolio Filter & Cards */
  .portfolio-filter {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 10px;
    margin-bottom: 30px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .portfolio-filter::-webkit-scrollbar { display: none; }
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.78rem;
  }

  .portfolio-grid { gap: 20px; }
  .project-card { border-radius: var(--radius-md); }
  .project-body { padding: 20px 16px; }
  .project-title { font-size: 1.2rem; }
  .project-desc { font-size: 0.84rem; line-height: 1.7; }
  .project-tags { gap: 6px; flex-wrap: wrap; }
  .project-tag { font-size: 0.66rem; padding: 3px 9px; }

  /* Visual Stories */
  .blog-grid { gap: 20px; }
  .photo-card .photo-thumb { height: 195px; }
  .blog-body { padding: 20px 16px; }
  .blog-title { font-size: 1.1rem; line-height: 1.35; }
  .blog-excerpt { font-size: 0.82rem; }
  .photo-badge { font-size: 0.65rem; padding: 3px 8px; top: 10px; right: 10px; }

  /* About & Stats */
  .about-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 16px 12px; text-align: center; }
  .stat-num { font-size: 1.75rem; }
  .stat-label { font-size: 0.72rem; }

  /* Experience & Contact */
  .timeline-item { padding-left: 20px; }
  .contact-info-card,
  .contact-form-card { padding: 22px 18px; border-radius: var(--radius-md); }
  .contact-item { gap: 12px; }

  /* CTA Strip */
  .cta-strip { padding: 56px 0; }
  .cta-strip-title { font-size: 1.6rem; }
  .cta-strip-sub { font-size: 0.92rem; }
  .cta-strip-btns .btn { width: 100%; justify-content: center; }
}

@media (max-width: 414px) {
  .hero-name { font-size: 2.1rem; }
  .section-title { font-size: 1.65rem; }
  .cta-strip-title { font-size: 1.45rem; }
}

/* ============================================
   TYPOGRAPHY PREMIUM TWEAKS
   ============================================ */
.section-title,
.hero-name,
.about-title,
.cta-strip-title,
.contact-info-title {
  letter-spacing: -0.02em;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-main);
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(167,139,250,0.5);
  border-radius: 0 3px 3px 0;
}

body.light-mode #scroll-progress {
  box-shadow: 0 0 12px rgba(79,70,229,0.45);
}

/* ============================================
   HERO: GRID LAYOUT
   ============================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 60px;
  align-items: center;
  padding: 120px 0 80px;
  width: 100%;
}

/* ============================================
   HERO: VISUAL COLUMN (Profile)
   ============================================ */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease 0.6s both;
}

.hero-profile-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 80px;
}

.hero-profile-img-container {
  width: 260px;
  height: 330px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(167,139,250,0.25);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.55),
    0 0 0 1px rgba(167,139,250,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  z-index: 2;
}

.hero-profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-profile-ring {
  position: absolute;
  top: 30px;
  left: 60px;
  right: 60px;
  bottom: 30px;
  border-radius: 28px;
  background: var(--gradient-main);
  opacity: 0.14;
  filter: blur(40px);
  z-index: 1;
  animation: floatGlow 7s ease-in-out infinite;
}

/* ── Floating Stat Badges ── */
.hero-float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(5,11,24,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(167,139,250,0.22);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(167,139,250,0.06);
  z-index: 10;
  white-space: nowrap;
}

.badge-1 {
  top: 10px;
  left: 0px;
  animation: floatBadge1 5s ease-in-out infinite;
}

.badge-2 {
  top: 42%;
  right: 0px;
  animation: floatBadge2 6.5s ease-in-out infinite;
}

.badge-3 {
  bottom: 10px;
  left: 20px;
  animation: floatBadge3 4.8s ease-in-out infinite;
}

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

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

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

.hero-float-badge .flt-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.hero-float-badge .flt-val {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-float-badge .flt-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 1px;
}

body.light-mode .hero-float-badge {
  background: rgba(245,245,255,0.95);
  border-color: rgba(99,102,241,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
#services { background: var(--bg-primary); }

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

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 1;
  border-radius: 3px 3px 0 0;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(167,139,250,0.3);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), var(--shadow-cyan);
  background: var(--glass-bg-hover);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(167,139,250,0.16);
  box-shadow: 0 0 24px rgba(167,139,250,0.22);
  transform: scale(1.08) rotate(-4deg);
}

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  transition: color 0.3s;
  letter-spacing: -0.01em;
}

.service-card:hover .service-title {
  color: var(--accent-cyan);
}

.service-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.service-features li {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.service-features li::before {
  content: '→';
  color: var(--accent-cyan);
  font-size: 0.75rem;
  flex-shrink: 0;
}

body.light-mode .service-card {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

body.light-mode .service-card:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,0.08), 0 0 40px rgba(99,102,241,0.15);
}

body.light-mode .service-icon {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.18);
  color: #4f46e5;
}

body.light-mode .service-card:hover .service-title { color: #4f46e5; }
body.light-mode .service-features li::before { color: #4f46e5; }

/* ============================================
   FEATURED PROJECT CARD
   ============================================ */
.project-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  min-height: 300px;
  background: linear-gradient(135deg, rgba(167,139,250,0.05), rgba(99,102,241,0.02));
  border-color: rgba(167,139,250,0.14);
}

.project-card--featured .project-thumb {
  aspect-ratio: unset;
  min-height: 300px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.project-card--featured .project-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 40px;
}

.project-card--featured .project-title {
  font-size: 1.55rem;
  margin-bottom: 14px;
}

.project-card--featured .project-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: #fbbf24;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.22);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.light-mode .project-card--featured {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.06);
}

/* ============================================
   CTA STRIP (Before Footer)
   ============================================ */
.cta-strip {
  background: linear-gradient(160deg, rgba(167,139,250,0.07) 0%, transparent 50%, rgba(99,102,241,0.07) 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(167,139,250,0.08), transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-strip-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-mode .cta-strip {
  background: linear-gradient(160deg, rgba(99,102,241,0.06) 0%, transparent 50%, rgba(79,70,229,0.06) 100%);
}

body.light-mode .cta-strip-title {
  background: linear-gradient(135deg, #0f0a28 0%, rgba(15,10,40,0.72) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-strip-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0 auto 40px;
  max-width: 480px;
  line-height: 1.75;
}

.cta-strip-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE: NEW COMPONENTS
   ============================================ */
@media (max-width: 1280px) {
  .hero-profile-wrap { padding: 48px 60px; }
}

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 40px; }
  .hero-profile-wrap { padding: 40px 50px; }
  .hero-profile-img-container { width: 230px; height: 290px; }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 100px 0 60px;
    gap: 0;
  }
  .hero-visual { display: none; }
  .project-card--featured {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .project-card--featured .project-thumb {
    aspect-ratio: 16/9;
    min-height: unset;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .project-card--featured .project-body {
    padding: 28px 24px;
  }
  .project-card--featured .project-title { font-size: 1.3rem; }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .cta-strip { padding: 72px 0; }
  .cta-strip-btns { flex-direction: column; align-items: center; }
}

/* ============================================
   PHOTO CARDS (Visual Stories)
   ============================================ */
.blog-card.photo-card .blog-thumb,
.photo-card .photo-thumb {
  position: relative;
  width: 100%;
  height: 220px;
  display: block;
  overflow: hidden;
  border-radius: 0;
  background: var(--bg-tertiary);
}

.photo-card .photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.photo-card:hover .photo-thumb img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.photo-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(5,11,24,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(167,139,250,0.25);
  color: var(--accent-violet);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 100px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

body.light-mode .photo-badge {
  background: rgba(15, 10, 40, 0.82);
  color: #a78bfa;
  border-color: rgba(167,139,250,0.3);
  font-weight: 600;
}
