@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ============================================================
   DESIGN SYSTEM - LuckyVerse.tech v2.0
   Deep Emerald + Slate Premium Dark Theme
   ============================================================ */
:root {
  --bg: #080d1a;
  --bg-elevated: #0c1424;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(16, 185, 129, 0.4);
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.12);
  --accent-light: #34d399;
  --accent-dark: #059669;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  --white: #ffffff;
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient top glow */
body::after {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: inherit;
}

/* ============ NAVBAR ============ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 13, 26, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

nav.scrolled {
  padding: 12px 6%;
  background: rgba(8, 13, 26, 0.97);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-logo span {
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
}

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

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

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

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

.resume-btn {
  padding: 8px 20px;
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: var(--accent);
  background: transparent;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.resume-btn:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

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

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 13, 26, 0.98);
  backdrop-filter: blur(24px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 24px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-resume {
  margin-top: 16px;
  padding: 12px 32px;
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: var(--accent);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-decoration: none;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 6% 80px;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
  }
}

.hero-left h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero-left h1 .name {
  color: var(--white);
}

.hero-left h1 .highlight {
  color: var(--accent);
  position: relative;
}

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

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  padding: 13px 28px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  padding: 13px 28px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* Terminal Widget */
.terminal {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  font-family: var(--font-mono);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f57;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #28c840;
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.terminal-body {
  padding: 22px 20px;
  min-height: 240px;
  font-size: 0.82rem;
  line-height: 2;
}

.t-line {
  display: flex;
  gap: 8px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.t-prompt {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.t-cmd {
  color: #e2e8f0;
}

.t-output {
  color: var(--text-muted);
  padding-left: 0;
  width: 100%;
  margin-left: 0;
  margin-top: -2px;
  margin-bottom: 8px;
}

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  border-radius: 1px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ============ STATS STRIP ============ */
.stats-strip {
  position: relative;
  z-index: 1;
  padding: 52px 6%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--accent-glow);
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 16px;
}

.stat-num {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-suffix {
  color: var(--accent-light);
}

.stat-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ============ SECTION BASE ============ */
.section {
  padding: 104px 6%;
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.8px;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 56px;
  line-height: 1.75;
}

/* Divider between sections */
.section-alt {
  background: rgba(255, 255, 255, 0.01);
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  flex-shrink: 0;
}

.about-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.12);
  position: relative;
  z-index: 1;
}

.about-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px dashed rgba(16, 185, 129, 0.2);
  animation: spin 25s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.about-text h3 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.8;
  font-size: 0.98rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag {
  padding: 6px 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}

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

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
  border-radius: 0 0 var(--radius) var(--radius);
}

.skill-card:hover {
  border-color: var(--border-hover);
  background: rgba(16, 185, 129, 0.05);
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.1);
}

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

.skill-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
}

.skill-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.skill-level {
  font-size: 0.68rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
  opacity: 0.8;
}

/* ============ PROJECTS ============ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3), var(--shadow-glow);
}

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

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.project-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-orange {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.project-emoji {
  font-size: 1.8rem;
}

.project-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.project-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.75;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tech-tag {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.73rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: var(--transition);
}

.tech-tag:hover {
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent);
}

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

.proj-link {
  flex: 1;
  padding: 10px 14px;
  text-align: center;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.proj-link-primary {
  background: var(--accent);
  color: #000;
}

.proj-link-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.proj-link-secondary {
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.proj-link-secondary:hover {
  border-color: var(--border-hover);
  color: var(--accent);
}

.proj-link-disabled {
  border: 1px solid var(--border);
  color: var(--text-dim);
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============ GITHUB ACTIVITY ============ */
.github-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: var(--transition);
}

.github-wrap:hover {
  border-color: var(--border-hover);
}

.github-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.github-stats-row img {
  width: 100%;
  border-radius: 10px;
}

.github-chart-row img {
  width: 100%;
  border-radius: 10px;
  opacity: 0.85;
}

/* ============ BLOG ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

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

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.blog-card-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.blog-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.45;
}

.blog-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 600;
}

.coming-soon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: pulse 3s ease-in-out infinite;
}

/* ============ CERTIFICATIONS ============ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.cert-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.cert-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.cert-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.cert-org {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cert-status {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
}

.status-wip {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.status-planned {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* ============ CONTACT / SOCIALS ============ */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  color: var(--text);
}

.social-card:hover {
  border-color: var(--border-hover);
  background: var(--accent-glow);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.1);
  color: var(--accent);
}

.social-icon {
  font-size: 1.7rem;
  flex-shrink: 0;
  line-height: 1;
}

.social-name {
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.social-handle {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: 3px;
  transition: var(--transition);
}

.social-card:hover .social-handle {
  color: rgba(16, 185, 129, 0.6);
}

/* Email card */
.email-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px;
  background: var(--accent-glow);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.email-highlight .email-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.email-highlight a {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.email-highlight a:hover {
  text-decoration: underline;
}

/* ============ FOOTER ============ */
footer {
  padding: 56px 6% 32px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  font-size: 1.2rem;
  display: inline-block;
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
}

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

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 99;
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.5);
}

/* ============ ANIMATIONS ============ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.delay-1 {
  transition-delay: 0.1s;
}

.fade-up.delay-2 {
  transition-delay: 0.2s;
}

.fade-up.delay-3 {
  transition-delay: 0.3s;
}

.fade-up.delay-4 {
  transition-delay: 0.4s;
}

.fade-up.delay-5 {
  transition-delay: 0.5s;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-left {
    order: 1;
  }

  .terminal {
    order: 2;
    max-width: 560px;
  }

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

  .about-photo-wrap {
    margin: 0 auto;
  }

  .about-tags {
    justify-content: center;
  }

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

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

@media (max-width: 768px) {
  nav {
    padding: 14px 5%;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .resume-btn {
    display: none;
  }

  .hero {
    padding: 100px 5% 60px;
  }

  .section {
    padding: 72px 5%;
  }

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

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

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

  .social-card {
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .hero-left h1 {
    font-size: 2.1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .section {
    padding: 60px 5%;
  }

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

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

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

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

  .email-highlight {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
  }
}