/* ============================================
   ===          CSS CUSTOM PROPERTIES        ===
   ============================================ */
:root {
  --bg-primary: #07070d;
  --bg-secondary: #0b0b14;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f0f5;
  --text-secondary: #9494a6;
  --text-muted: #5c5c70;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-dark: #4a3db8;
  --gradient-1: linear-gradient(135deg, #6c5ce7, #a29bfe);
  --gradient-2: linear-gradient(135deg, #6c5ce7, #fd79a8);
  --gradient-3: linear-gradient(135deg, #0984e3, #6c5ce7);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-height: 72px;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --syntax-keyword: #ff79c6;
  --syntax-string: #f1fa8c;
  --syntax-function: #50fa7b;
  --syntax-type: #8be9fd;
  --syntax-comment: #6272a4;
}

/* ============================================
   ===              RESET / BASE             ===
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ============================================
   ===         CURSOR GLOW                  ===
   ============================================ */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,92,231,0.08) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s;
}

/* ============================================
   ===         GRID OVERLAY                 ===
   ============================================ */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   ===         SYNTAX HIGHLIGHT             ===
   ============================================ */
.code-window .kw { color: var(--syntax-keyword); }
.code-window .str { color: var(--syntax-string); }
.code-window .fn { color: var(--syntax-function); }
.code-window .type { color: var(--syntax-type); }
.code-window .cm { color: var(--syntax-comment); font-style: italic; }

.line-comment {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--syntax-comment);
  font-weight: 400;
  letter-spacing: 0;
}
.keyword { color: var(--syntax-keyword); font-weight: 600; }
.string { color: var(--syntax-string); }
.terminal-prefix { color: var(--syntax-function); }
.terminal-prompt { color: var(--syntax-comment); }
.terminal-line { font-family: var(--font-mono); font-size: 0.95rem; }

/* ============================================
   ===         CODE WINDOW                  ===
   ============================================ */
.code-window {
  background: #0d0d1a;
  border: 1px solid rgba(108, 92, 231, 0.2);
  margin-bottom: 36px;
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 520px;
  animation: floatGlow 4s ease-in-out infinite;
}
@keyframes floatGlow {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 30px rgba(108, 92, 231, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3); }
  50% { transform: translateY(-8px); box-shadow: 0 0 50px rgba(108, 92, 231, 0.2), 0 12px 40px rgba(0, 0, 0, 0.4); }
}
.code-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-glass);
}
.code-dots {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cdot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.cdot.red { background: #ff5555; }
.cdot.yellow { background: #f1fa8c; }
.cdot.green { background: #50fa7b; }
.code-filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 16px;
  white-space: nowrap;
}
.code-body {
  padding: 20px;
}
.code-body pre {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre;
  overflow: visible;
}

/* ============================================
   ===         UTILITY & LAYOUT              ===
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.section {
  padding: 100px 0;
  position: relative;
}
.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

/* ============================================
   ===         SECTION HEADER               ===
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-subtitle {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
}
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-1);
  border-radius: 2px;
  margin: 20px auto 0;
}

/* ============================================
   ===         NAVBAR                       ===
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(7, 7, 13, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(7, 7, 13, 0.95);
  border-bottom-color: var(--border-glass);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  transition: var(--transition);
}
.nav-logo:hover {
  color: var(--accent-light);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-light);
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-radius: 8px;
  padding: 4px 7px;
  transition: var(--transition);
}
.nav-logo:hover .logo-mark {
  background: rgba(108, 92, 231, 0.2);
  border-color: rgba(108, 92, 231, 0.4);
  box-shadow: 0 0 15px rgba(108, 92, 231, 0.15);
}
.nav-menu {
  display: flex;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.nav-toggle {
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 40px;
  height: 40px;
  transition: var(--transition);
  font-size: 1.4rem;
  color: var(--accent-light);
  text-shadow: 0 0 10px rgba(108, 92, 231, 0.4), 0 0 20px rgba(108, 92, 231, 0.2);
}
.nav-toggle:hover {
  text-shadow: 0 0 15px rgba(108, 92, 231, 0.6), 0 0 30px rgba(108, 92, 231, 0.3);
  transform: scale(1.1);
}
.nav-toggle:active {
  transform: scale(0.95);
}

/* ============================================
   ===         HERO SECTION                 ===
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-height) + 60px);
  overflow: hidden;
}
.hero-grid {
  margin-top: auto;
  margin-bottom: auto;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-orbe {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,92,231,0.12) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: orbeFloat 20s ease-in-out infinite;
}
.hero-orbe--2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -150px;
  top: auto;
  right: auto;
  background: radial-gradient(circle, rgba(162,155,254,0.08) 0%, transparent 70%);
  animation-delay: -10s;
}
@keyframes orbeFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-main {
  max-width: 640px;
}
.hero-code-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 28px;
  animation: badgeBounce 2s ease-in-out infinite;
}
@keyframes badgeBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

@media (max-width: 1024px) {
  .hero-title {
    line-height: 1.25;
  }
}
.type-wrapper {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: clamp(1.3rem, 3.2vw, 2.2rem);
}
.type-text {
  display: inline;
  color: var(--accent-light);
}
.cursor {
  display: inline;
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-weight: 300;
  margin-left: 1px;
}
@keyframes blink {
  50% { opacity: 0; }
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}
.hero-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 4px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #50fa7b;
  box-shadow: 0 0 8px rgba(80, 250, 123, 0.4);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-socials {
  display: flex;
  gap: 20px;
}
.hero-socials a {
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.hero-socials a:hover {
  color: var(--accent-light);
  transform: translateY(-3px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}
.btn-outline {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), rgba(253, 121, 168, 0.08));
  border-color: rgba(108, 92, 231, 0.25);
  color: var(--accent-light);
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.08);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.18), rgba(253, 121, 168, 0.12));
  border-color: rgba(108, 92, 231, 0.5);
  color: #fff;
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.2);
  transform: translateY(-2px);
}

/* ============================================
   ===         ABOUT SECTION                ===
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}
.about-img-frame {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-img-placeholder {
  font-size: 5rem;
  color: var(--accent-light);
  opacity: 0.6;
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 580px;
}
.about-text strong { color: var(--text-primary); }
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.stat-item {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
}
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   ===         SKILLS SECTION               ===
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.skill-category {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}
.skill-category:hover {
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.skill-cat-header {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}
.skill-cat-header i { color: var(--accent-light); filter: drop-shadow(0 0 8px rgba(108, 92, 231, 0.2)); }
.skill-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}
.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-tag {
  padding: 6px 14px;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.15);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent-light);
  transition: var(--transition);
}
.skill-tag:hover {
  background: rgba(108, 92, 231, 0.15);
  border-color: var(--accent);
}

/* ============================================
   ===         PROJECTS SECTION             ===
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: var(--shadow-glow);
}
.project-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-icon {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.15);
  animation: iconGlow 3s ease-in-out infinite;
}
@keyframes iconGlow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(108, 92, 231, 0.2)); }
  50% { filter: drop-shadow(0 0 35px rgba(108, 92, 231, 0.4)); }
}
.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.project-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}
.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 14px;
}
.project-features span {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.project-features i {
  color: var(--syntax-function);
  font-size: 0.7rem;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.project-tech span {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.project-links {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
}
.project-links a {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
}
.project-links a:hover { color: var(--accent-light); border-color: rgba(108, 92, 231, 0.3); background: rgba(108, 92, 231, 0.08); }
.projects-more {
  text-align: center;
  margin-top: 40px;
}

/* ============================================
   ===         EDUCATION (TIMELINE)         ===
   ============================================ */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item {
  position: relative;
}
.timeline-dot {
  position: absolute;
  left: -32px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent), 0 0 12px rgba(108, 92, 231, 0.3);
}
.timeline-content {
  padding: 28px;
  transition: var(--transition);
}
.timeline-content:hover {
  transform: translateX(4px);
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: var(--shadow-glow);
}
.timeline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.timeline-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 14px;
  font-size: 1.2rem;
  color: var(--accent-light);
}
.timeline-badge {
  padding: 5px 16px;
  background: linear-gradient(135deg, rgba(80, 250, 123, 0.1), rgba(108, 92, 231, 0.1));
  border: 1px solid rgba(80, 250, 123, 0.2);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--syntax-function);
  letter-spacing: 0.5px;
}
.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}
.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.timeline-meta span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.timeline-meta i {
  color: var(--accent-light);
  font-size: 0.8rem;
}
.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

/* ============================================
   ===         CERTIFICATES SECTION         ===
   ============================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.cert-card {
  padding: 32px 24px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.cert-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: var(--shadow-glow);
}
.cert-badge {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.cert-icon {
  font-size: 2rem;
  color: var(--accent-light);
  margin-bottom: 14px;
  filter: drop-shadow(0 0 12px rgba(108, 92, 231, 0.25));
  animation: certGlow 3s ease-in-out infinite;
}
@keyframes certGlow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(108, 92, 231, 0.25)); }
  50% { filter: drop-shadow(0 0 25px rgba(108, 92, 231, 0.45)); }
}
.cert-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.cert-level {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.cert-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 50px;
  transition: var(--transition);
  text-decoration: none;
  margin-top: auto;
  align-self: center;
}
.cert-btn:hover {
  background: rgba(108, 92, 231, 0.15);
  border-color: rgba(108, 92, 231, 0.4);
  color: #fff;
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.15);
}

/* ============================================
   ===         RESUME SECTION               ===
   ============================================ */
.resume-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px;
  text-align: center;
  transition: var(--transition);
}
.resume-content:hover {
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: var(--shadow-glow);
}
.resume-preview i {
  font-size: 3.5rem;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.resume-preview h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.resume-preview p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.resume-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   ===         CONTACT SECTION              ===
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
}
.contact-item i {
  font-size: 1.2rem;
  color: var(--accent-light);
  margin-top: 2px;
  filter: drop-shadow(0 0 8px rgba(108, 92, 231, 0.25));
}
.contact-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-item a,
.contact-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.contact-item a:hover { color: var(--accent-light); }

/* Form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  position: relative;
}
.form-group.full {
  grid-column: 1 / -1;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}
.form-group label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition);
}
.form-group textarea ~ label {
  top: 16px;
  transform: none;
}
.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  opacity: 0;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}
.contact-form .btn {
  grid-column: 1 / -1;
  justify-self: center;
}

/* ============================================
   ===         FOOTER                       ===
   ============================================ */
.footer {
  padding: 60px 0 32px;
  margin-top: 60px;
  position: relative;
}
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
  margin-bottom: 40px;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-brand .nav-logo {
  justify-content: center;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
  letter-spacing: 0.3px;
}
.footer-socials {
  display: flex;
  gap: 16px;
}
.footer-social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
}
.footer-social-link:hover {
  color: var(--accent-light);
  border-color: rgba(108, 92, 231, 0.3);
  background: rgba(108, 92, 231, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.1);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}
.footer-copy i {
  color: var(--accent);
}

/* ============================================
   ===         PDF VIEWER MODAL              ===
   ============================================ */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.pdf-modal.open {
  opacity: 1;
  visibility: visible;
}
.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.pdf-modal-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}
.pdf-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}
.pdf-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.pdf-viewer {
  flex: 1;
  width: 100%;
  border: none;
}

/* ============================================
   ===         CHAT WIDGET                  ===
   ============================================ */
.chat-toggle {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #131322;
  border: 2px solid rgba(108, 92, 231, 0.55);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 4px rgba(108, 92, 231, 0.12),
    0 10px 34px rgba(108, 92, 231, 0.45);
  transition: var(--transition);
  z-index: 1000;
}
.chat-toggle::before {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #6c5ce7, #fd79a8, #00cec9, #a29bfe, #6c5ce7);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: ringSpin 6s linear infinite;
  z-index: -1;
}
.chat-toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: ringPulse 2.8s ease-out infinite;
  z-index: -1;
}
@keyframes ringSpin {
  to { transform: rotate(360deg); }
}
@keyframes ringPulse {
  0% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.45); }
  70% { box-shadow: 0 0 0 20px rgba(108, 92, 231, 0); }
  100% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0); }
}
.chat-toggle i {
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: drop-shadow(0 0 8px rgba(162, 155, 254, 0.8));
}
.chat-toggle:hover {
  transform: translateY(-3px) scale(1.06);
  border-color: rgba(162, 155, 254, 0.8);
  box-shadow:
    0 0 0 6px rgba(108, 92, 231, 0.18),
    0 16px 44px rgba(108, 92, 231, 0.6);
}
.chat-toggle:hover i {
  transform: scale(1.1);
  filter: drop-shadow(0 0 14px rgba(162, 155, 254, 1));
}
.chat-toggle.active i {
  filter: drop-shadow(0 0 12px rgba(162, 155, 254, 1));
}
.chat-toggle-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  white-space: nowrap;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(13, 13, 26, 0.9);
  border: 1px solid rgba(108, 92, 231, 0.35);
  border-radius: 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}
.chat-toggle:hover .chat-toggle-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.chat-window {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: rgba(13, 13, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}
.chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(108, 92, 231, 0.12);
  border-bottom: 1px solid rgba(108, 92, 231, 0.2);
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
}
.chat-title {
  font-size: 0.95rem;
  font-weight: 700;
}
.chat-status {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #50fa7b;
  box-shadow: 0 0 8px rgba(80, 250, 123, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}
.chat-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition);
}
.chat-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-messages::-webkit-scrollbar {
  width: 6px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(108, 92, 231, 0.3);
  border-radius: 3px;
}
.chat-msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  word-wrap: break-word;
  white-space: pre-wrap;
  animation: chatIn 0.28s ease;
}
@keyframes chatIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-bottom-left-radius: 4px;
  color: var(--text-primary);
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--gradient-1);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg code {
  background: rgba(108, 92, 231, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.82em;
  font-family: 'Fira Code', 'Courier New', monospace;
}
.chat-msg.bot.typing {
  display: flex;
  gap: 4px;
  align-items: center;
}
.chat-msg.bot.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: typingDot 1.2s infinite ease-in-out;
}
.chat-msg.bot.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-msg.bot.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.chat-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 10px 16px;
  border-top: 1px solid var(--border-glass);
  scrollbar-width: none;
}
.chat-suggestions::-webkit-scrollbar {
  display: none;
}
.chat-suggestions.hidden {
  display: none;
}
.chat-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-light);
  white-space: nowrap;
  transition: var(--transition);
}
.chat-chip:hover {
  background: rgba(108, 92, 231, 0.2);
  border-color: rgba(108, 92, 231, 0.5);
  color: #fff;
  transform: translateY(-2px);
}
.chat-chip i {
  font-size: 0.7rem;
}

.chat-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 18px;
  background: var(--gradient-1);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.35);
  transition: var(--transition);
}
.chat-resume-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.5);
}

.chat-msg.bot.error {
  background: rgba(253, 121, 168, 0.08);
  border-color: rgba(253, 121, 168, 0.35);
}
.chat-retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 18px;
  background: rgba(108, 92, 231, 0.15);
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(108, 92, 231, 0.4);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.chat-retry-btn:hover {
  background: rgba(108, 92, 231, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
}
.chat-retry-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.chat-input-form {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border-glass);
}
.chat-input-form input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.chat-input-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}
.chat-input-form button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-input-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
}
.chat-input-form button:disabled {
  opacity: 0.5;
  transform: none;
}

/* ============================================
   ===         BACK TO TOP                  ===
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 112px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 100;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}

/* ============================================
   ===         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-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   ===         RESPONSIVE - MOBILE FIRST    ===
   ============================================ */

/* Tablets & small laptops */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-code-col { align-items: center; }
  .code-window { max-width: 480px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-frame { max-width: 360px; margin: 0 auto; }
  .about-text p { max-width: 100%; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Mobile phones */
@media (max-width: 768px) {
  .nav-container {
    position: relative;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    padding: 0 20px;
    background: rgba(7, 7, 13, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
  .nav-menu.open {
    max-height: 600px;
    opacity: 1;
    pointer-events: all;
    padding: 8px 20px 20px;
    transform: translateY(0);
  }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  .hero { min-height: 90vh; padding-top: calc(var(--nav-height) + 24px); }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .hero-desc { font-size: 0.9rem; }
  .type-wrapper { font-size: clamp(0.9rem, 3.5vw, 1.6rem); }
  .hero-badge { font-size: 0.65rem; padding: 5px 12px; }
  .code-window { max-width: 100%; }
  .code-body { padding: 14px; }
  .code-body pre { font-size: 0.7rem; }
  .hero-status { display: none; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .cert-badge { width: fit-content; margin-left: auto; margin-right: auto; padding: 10px 24px; border-radius: 999px; font-size: 0.7rem; letter-spacing: 0; margin-bottom: 10px; }
  .cert-icon { margin-bottom: 8px; font-size: 1.6rem; }
  .cert-card h3 { font-size: 0.95rem; }
  .cert-card p { font-size: 0.78rem; margin-bottom: 12px; }
  .cert-btn { font-size: 0.7rem; padding: 6px 14px; }
  .cert-level { font-size: 0.65rem; margin-bottom: 10px; }
  .contact-form { grid-template-columns: 1fr; }
  .resume-content { padding: 32px 24px; }
  .resume-preview p { font-size: 0.7rem; }
  .resume-actions { flex-direction: row; gap: 12px; }
  .resume-actions .btn { flex: 1; justify-content: center; }
  .back-to-top { bottom: 116px; right: 20px; }
  .chat-toggle { width: 48px; height: 48px; right: 20px; font-size: 1.15rem; }
  .chat-window { inset: 0; right: 0; bottom: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; }
  body.chat-open { overflow: hidden; }
  .stat-number { font-size: 1.6rem; }
}

/* Small phones */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-actions { flex-direction: row; flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn { flex: 1; padding: 12px 16px; font-size: 0.85rem; white-space: nowrap; }
  .code-body { padding: 12px; }
  .code-body pre { font-size: 0.65rem; line-height: 1.6; }
  .code-filename { font-size: 0.65rem; }
  .timeline-content { padding: 20px; }
  .skill-category { padding: 20px; }
  .cert-card { padding: 20px 14px; }
  .cert-badge { width: fit-content; margin-left: auto; margin-right: auto; padding: 10px 24px; border-radius: 999px; font-size: 0.7rem; letter-spacing: 0; margin-bottom: 10px; }
  .cert-icon { font-size: 1.4rem; margin-bottom: 6px; }
  .about-img-frame { max-width: 260px; }
  .cert-level { font-size: 0.62rem; margin-bottom: 10px; }
  .resume-preview p { font-size: 0.68rem; }
  .resume-actions { flex-direction: row; gap: 10px; }
  .resume-actions .btn { flex: 1; justify-content: center; font-size: 0.8rem; padding: 10px 14px; }
}

@media (orientation: landscape) and (max-width: 900px) {
  .cert-badge { width: fit-content; margin-left: auto; margin-right: auto; padding: 10px 24px; border-radius: 999px; font-size: 0.7rem; letter-spacing: 0; }
}
