/* ==========================================================================
   BUILDLAB.WEB.ID - DISTINCT ENTERPRISE TECH THEME
   Unique Brand Identity: Electric Violet (#6366f1), Deep Midnight Slate (#0b0f19) & Cyan (#06b6d4)
   ========================================================================== */

/* --- DARK MODE THEME (HUMAN-CRAFTED MINIMALIST TECH - VERCEL/GITHUB STYLE) --- */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg-body: #0d1117;
  --bg-surface: #161b22;
  --bg-card: rgba(22, 27, 34, 0.85);
  --bg-card-hover: rgba(33, 38, 45, 0.95);
  
  --border-subtle: rgba(240, 246, 252, 0.1);
  --border-hover: rgba(56, 189, 248, 0.35);
  
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --text-sub: #c9d1d9;

  --accent-violet: #2563eb;
  --accent-violet-light: #38bdf8;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  --grad-text: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 4px 20px rgba(0, 0, 0, 0.3);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.2s ease-in-out;
}

/* --- LIGHT MODE THEME (ELEGANT, GENTLE CONTRAST - STRIPE/LINEAR STYLE) --- */
[data-theme="light"] {
  color-scheme: light;
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  
  --border-subtle: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-sub: #334155;

  --accent-violet: #4f46e5;
  --accent-violet-light: #4338ca;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-rose: #e11d48;

  --grad-text: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* Subtle Background Pattern & Glow */
.bg-grid-pattern {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: -2;
}

.bg-glow-top {
  position: fixed;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Container & Spacing */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 90px 0; }

section[id] {
  scroll-margin-top: 76px;
}

#about,
#certificates,
#contact {
  min-height: calc(100vh - 76px);
  min-height: calc(100dvh - 76px);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 50px 0;
}

.bg-surface {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-title-wrapper { margin-bottom: 48px; }

.sub-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  line-height: 1.25;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 8px;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 76px;
  z-index: 100;
  background: var(--bg-body);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-violet);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.brand-accent { color: var(--accent-violet-light); }
.brand-name .tld { color: var(--text-muted); font-size: 0.85rem; font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.nav-item {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

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

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; width: 100%;
  height: 2px;
  background: var(--accent-violet-light);
  border-radius: 2px;
}

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

.lang-toggle {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-violet-light);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font-mono);
  cursor: pointer;
}

.lang-toggle:hover {
  background: var(--accent-violet);
  color: #ffffff;
  border-color: var(--accent-violet);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.theme-toggle:hover {
  border-color: var(--accent-violet-light);
  color: var(--accent-violet-light);
}

.menu-toggle {
  display: none;
  font-size: 1.35rem;
  color: var(--text-main);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  line-height: 1;
  transition: var(--transition);
}

.menu-toggle:hover {
  color: var(--accent-violet-light);
}

.mobile-cv-btn {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.925rem;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm { padding: 6px 14px; font-size: 0.825rem; }

.btn-violet {
  background: var(--accent-violet);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-violet:hover {
  background: var(--accent-violet-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-outline-violet {
  background: transparent;
  color: var(--accent-violet-light);
  border: 1px solid var(--accent-violet);
}

.btn-outline-violet:hover {
  background: rgba(99, 102, 241, 0.12);
}

.btn-full { width: 100%; }

.btn-link {
  color: var(--accent-cyan);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.btn-link:hover { color: var(--text-main); }

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 76px;
  padding-bottom: 24px;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-ambient-glow {
  position: absolute;
  width: 750px;
  height: 560px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(6, 182, 212, 0.09) 42%, transparent 70%);
  top: 50%;
  right: 12%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(55px);
}

[data-theme="light"] .hero-ambient-glow {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(2, 132, 199, 0.05) 45%, transparent 70%);
}

.hero-container {
  max-width: 1260px;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

[data-theme="light"] .hero-status-pill {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
}

.status-dot {
  width: 7px; height: 7px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

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

.text-violet { color: var(--accent-violet-light); }
.text-cyan { color: var(--accent-cyan); }

.hero-subtext {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 34px;
  line-height: 1.7;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.tech-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  background: var(--bg-card);
  color: var(--text-sub);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

/* HERO STATS / METRIC COUNTER ROW */
.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  max-width: 580px;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-main);
}

.stat-suffix {
  font-size: 1.25rem;
  color: var(--accent-cyan);
  margin-left: 2px;
}

.stat-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.35;
  font-weight: 500;
}

.stat-item-divider {
  width: 1px;
  height: 38px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* ASYMMETRIC PORTRAIT PHOTO CONTAINER & BADGES */
.hero-photo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-glow-aura {
  position: absolute;
  width: 430px;
  height: 470px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(6, 182, 212, 0.12) 50%, transparent 75%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

.photo-frame-backdrop {
  position: absolute;
  width: 100%;
  max-width: 405px;
  height: 415px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(6, 182, 212, 0.09) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  transform: translate(16px, 16px);
  z-index: 1;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.hero-photo-wrapper:hover .photo-frame-backdrop {
  transform: translate(22px, 22px);
  border-color: rgba(6, 182, 212, 0.6);
}

[data-theme="light"] .photo-frame-backdrop {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(2, 132, 199, 0.06) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.photo-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 405px;
  height: 415px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 20px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.photo-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .photo-frame {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.14), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .photo-frame:hover {
  box-shadow: 0 25px 45px -10px rgba(15, 23, 42, 0.18), 0 8px 10px -4px rgba(15, 23, 42, 0.06);
}

.profile-photo-img {
  width: 95%;
  height: 100%;
  max-height: 400px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  transition: var(--transition);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.65));
}

.photo-frame:hover .profile-photo-img {
  transform: scale(1.025);
}

/* HERO PHOTO COLUMN & SOCIAL QUICK LINKS */
.hero-photo-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  position: relative;
  z-index: 2;
}

.hero-social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 405px;
  gap: 12px;
  margin-top: 6px;
}

.hero-social-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-social-card i {
  font-size: 1rem;
  transition: transform var(--transition);
}

.hero-social-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(6, 182, 212, 0.45);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.hero-social-card:hover i {
  transform: scale(1.18);
}

[data-theme="light"] .hero-social-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .hero-social-card:hover {
  background: #f8fafc;
  border-color: #0284c7;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: var(--transition);
  font-size: 0.85rem;
  text-decoration: none;
  animation: bounceSoft 2.5s infinite;
  z-index: 10;
}

.hero-scroll-indicator:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateX(-50%) translateY(3px);
}

@keyframes bounceSoft {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-6px);
  }
  60% {
    transform: translateX(-50%) translateY(-3px);
  }
}

/* About Highlights Card */
.grid-2-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about-info p {
  color: var(--text-muted);
  font-size: 1.025rem;
  margin-top: 16px;
}

.about-highlights-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.about-highlights-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-group {
  margin-bottom: 18px;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-cat {
  display: block;
  font-size: 0.775rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  font-weight: 600;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.s-pill {
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.s-pill.code-badge {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-violet-light);
  border-color: rgba(99, 102, 241, 0.25);
}


/* Competencies Grid */
.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.tech-card-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  margin-bottom: 16px;
  align-self: flex-start;
}

.tech-card-badge.blue { background: rgba(99, 102, 241, 0.15); color: var(--accent-violet-light); }
.tech-card-badge.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.tech-card-badge.cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }

.tech-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tech-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.competency-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.check-item {
  font-size: 0.85rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-subtle);
}

.check-item:last-child { border-bottom: none; }

.check-item-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-item-text i {
  color: var(--accent-emerald);
  font-size: 0.8rem;
}

.tcode-pill {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Projects & App Screenshots */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-chip {
  font-size: 0.825rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.filter-chip.active, .filter-chip:hover {
  background: var(--accent-violet);
  color: #ffffff;
  border-color: var(--accent-violet);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

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

.p-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.p-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.p-badge {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.p-badge.sap { background: rgba(99, 102, 241, 0.15); color: var(--accent-violet-light); }
.p-badge.fmcg { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }

.p-date { font-size: 0.775rem; color: var(--text-muted); }

/* Compact Horizontal Scroll Multi-Photo Slider Frame */
.app-image-slider-frame {
  position: relative;
  width: 100%;
  height: 165px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
  background: #090d16;
}

.modal-carousel-frame {
  height: 290px !important;
  margin-bottom: 22px !important;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #080c16;
}

.modal-carousel-frame .app-scroll-item .app-img {
  object-fit: contain !important;
  background: #080c16;
}

.app-image-scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
  gap: 0;
  -webkit-overflow-scrolling: touch;
}

.app-image-scroll-container::-webkit-scrollbar {
  height: 4px;
}

.app-image-scroll-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.app-image-scroll-container::-webkit-scrollbar-thumb {
  background: var(--accent-violet-light);
  border-radius: 4px;
}

.app-scroll-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  position: relative;
}

.app-scroll-item .app-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-label {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  font-size: 0.725rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  border: 1px solid var(--border-subtle);
}

.slider-hint {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(19, 25, 41, 0.9);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  font-size: 0.725rem;
  padding: 4px 10px;
  border-radius: 6px;
  pointer-events: none;
  font-family: var(--font-mono);
  border: 1px solid var(--border-subtle);
  z-index: 5;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  z-index: 10;
  transition: var(--transition);
  opacity: 0.85;
}

.slider-btn:hover {
  background: var(--accent-violet);
  color: #ffffff;
  border-color: var(--accent-violet);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev-btn { left: 10px; }
.slider-btn.next-btn { right: 10px; }

.p-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.p-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.app-features-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-violet);
}

.app-features-list div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-metric {
  font-size: 0.825rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.app-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.app-tech-tags span {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 4px;
}

.p-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
}

.p-card-actions .card-action-btn {
  margin-top: 0;
  flex: 1;
}

.card-action-btn {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
  font-size: 0.825rem;
}

.btn-demo-globe {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 1.05rem;
  transition: var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}

.btn-demo-globe:hover {
  background: var(--accent-cyan);
  color: #090d16;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.45);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-demo-globe {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.4);
  color: #0284c7;
}

[data-theme="light"] .btn-demo-globe:hover {
  background: #0284c7;
  color: #ffffff;
}

.modal-bullet-list {
  list-style: none;
  margin-top: 8px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-bullet-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Metrics Strip */
.metrics-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 36px 0;
}

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

.metric-box {
  border-right: 1px solid var(--border-subtle);
  padding-right: 24px;
}

.metric-box:last-child { border-right: none; padding-right: 0; }

.metric-val {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 6px;
}

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

.metric-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* Contact Wrapper */
.contact-box-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.contact-left {
  padding: 40px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
}

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

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

.c-item i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  color: var(--accent-cyan);
}

.c-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.c-val {
  font-size: 0.95rem;
  font-weight: 600;
}

.c-val.c-link {
  color: var(--accent-cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.c-val.c-link:hover {
  color: var(--accent-violet-light);
  text-decoration: underline;
}

.contact-right { padding: 40px; }

.field-group { margin-bottom: 18px; }

.field-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-sub);
}

.c-input {
  width: 100%;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
}

.c-input:focus {
  outline: none;
  border-color: var(--accent-violet-light);
}

select.c-input {
  cursor: pointer;
}

select.c-input option {
  background-color: var(--bg-surface);
  color: var(--text-main);
  padding: 8px;
}

.c-input.textarea { resize: vertical; min-height: 100px; }

.err-text {
  font-size: 0.75rem;
  color: var(--accent-rose);
  margin-top: 4px;
  display: block;
}

.alert-box {
  margin-top: 14px;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: none;
}

.alert-box.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-body);
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.f-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-sub);
}

.f-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  font-size: 1rem;
}

.f-sep {
  color: var(--border-subtle);
}

.f-role {
  color: var(--text-muted);
}

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

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.modal-card.modal-lg { max-width: 720px; }

.modal-top {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-action-btn-max {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.modal-action-btn-max:hover {
  background: var(--accent-cyan);
  color: #080c16;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.modal-action-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-action-icon:hover {
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
}

.modal-card.modal-maximized {
  max-width: 96vw !important;
  width: 96vw !important;
  height: 94vh !important;
  max-height: 94vh !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card.modal-maximized .modal-content {
  max-height: none !important;
  flex: 1 !important;
  overflow-y: auto !important;
}

.modal-card.modal-maximized .modal-carousel-frame {
  height: 560px !important;
}

.slider-btn-maximize {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(6, 182, 212, 0.5);
  border-radius: 6px;
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: var(--transition);
}

.slider-btn-maximize:hover {
  background: var(--accent-cyan);
  color: #080c16;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.6);
  transform: translateY(-1px);
}

.modal-carousel-frame .app-scroll-item {
  cursor: zoom-in;
}

/* Fullscreen Lightbox */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.image-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0.94);
  backdrop-filter: blur(10px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 96vw;
  height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.lightbox-topbar {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
}

.lightbox-topbar > * {
  pointer-events: auto;
}

.lightbox-counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.85);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.lightbox-btn:hover {
  background: var(--accent-cyan);
  color: #080c16;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.5);
}

.lightbox-btn.lightbox-close:hover {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.5);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 5;
}

.lightbox-nav:hover {
  background: var(--accent-cyan);
  color: #090d16;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.5);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-image-wrap {
  flex: 1;
  width: 100%;
  max-width: 92vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.2s ease;
}

.lightbox-image-wrap img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border-subtle);
  cursor: zoom-in;
  transition: transform 0.25s ease;
  animation: lightboxFade 0.25s ease;
}

.lightbox-image-wrap.zoomed {
  overflow: auto;
  display: block;
  text-align: center;
}

.lightbox-image-wrap.zoomed img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  cursor: zoom-out;
}

@keyframes lightboxFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-caption {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.85);
  padding: 6px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.modal-top h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; }

.close-modal {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.modal-content {
  padding: 20px 24px;
  max-height: 65vh;
  overflow-y: auto;
  font-size: 0.95rem;
}

.cv-summary-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.cv-sub { font-size: 0.85rem; color: var(--accent-violet-light); margin-bottom: 16px; }

.modal-bottom,
.modal-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg-surface);
}

#cv-modal .modal-footer {
  padding: 20px 24px 26px;
  display: flex;
  justify-content: center;
}

#cv-modal .btn-download-cv-full {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#cv-modal .btn-download-cv-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* --- CERTIFICATES & TRAINING SECTION --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: var(--accent-violet-light);
  opacity: 0.4;
  transition: var(--transition);
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.cert-card:hover::before {
  opacity: 1;
  height: 4px;
}

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

.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-violet-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.cert-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
  font-weight: 600;
}

.cert-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--accent-violet-light);
  font-weight: 600;
  margin-bottom: 12px;
}

.cert-desc-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  margin-top: auto;
  width: 100%;
}

.cert-link:hover {
  background: var(--accent-cyan);
  color: #0b0f19;
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .nav-links { gap: 14px; }
  .hero-main-title { font-size: 3.1rem; }
}

@media (max-width: 900px) {
  .menu-toggle { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
  }
  
  .nav-links {
    position: fixed;
    top: 76px; left: -100%;
    width: 100%; height: calc(100vh - 76px);
    background: var(--bg-body);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    transition: var(--transition);
    border-top: 1px solid var(--border-subtle);
    z-index: 99;
    align-items: flex-start;
  }

  .nav-links.active { left: 0; }

  .mobile-cv-btn {
    display: inline-flex !important;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }

  #btn-download-cv-nav {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 50px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  #about,
  #certificates,
  #contact {
    min-height: auto;
    display: block;
    padding: 60px 0;
  }

  .hero-grid, .grid-2-col {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-box-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .contact-left {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 32px 24px;
  }

  .contact-right {
    padding: 32px 24px;
  }

  .hero-photo-column {
    margin-top: 24px;
  }

  .strip-grid, .grid-3-col, .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-box {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 16px;
    padding-right: 0;
  }

  .hero-main-title { font-size: 2.5rem; }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .nav-container {
    padding: 0 14px;
  }

  .brand-logo {
    gap: 8px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .nav-right {
    gap: 8px;
  }

  .theme-toggle .toggle-label {
    display: none;
  }

  .theme-toggle {
    padding: 6px 10px;
  }

  .lang-toggle {
    padding: 6px 10px;
  }

  .hero-section {
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .hero-status-pill {
    font-size: 0.72rem;
    padding: 5px 12px;
    margin-bottom: 14px;
    letter-spacing: 0.03em;
    line-height: 1.35;
    white-space: normal;
    display: inline-flex;
    text-align: left;
    max-width: 100%;
  }

  .hero-main-title {
    font-size: 2.1rem;
    line-height: 1.18;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
  }

  .hero-subtext {
    font-size: 0.925rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 20px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.9rem;
  }

  .tech-pills-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 20px;
  }

  .pill {
    font-size: 0.72rem;
    padding: 7px 10px;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: flex-start;
  }

  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 0;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
  }

  .hero-stat-item {
    align-items: center;
    text-align: center;
    gap: 2px;
  }

  .stat-number-wrap {
    font-size: 1.45rem;
    justify-content: center;
  }

  .stat-suffix {
    font-size: 1.05rem;
  }

  .stat-desc {
    font-size: 0.675rem;
    line-height: 1.25;
    text-align: center;
  }

  .stat-item-divider {
    display: none;
  }

  .hero-photo-column {
    margin-top: 24px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    gap: 20px;
  }

  .photo-frame, .photo-frame-backdrop {
    max-width: 280px;
    height: 310px;
  }

  .profile-photo-img {
    max-height: 300px;
  }

  .photo-glow-aura {
    width: 290px;
    height: 320px;
    filter: blur(35px);
  }

  .hero-social-row {
    max-width: 280px;
    gap: 8px;
    margin-top: 6px;
  }

  .hero-social-card {
    padding: 9px 8px;
    font-size: 0.75rem;
    gap: 6px;
  }

  .hero-social-card i {
    font-size: 0.9rem;
  }

  .strip-grid, .grid-3-col, .cert-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-heading {
    font-size: 1.85rem;
  }

  .about-highlights-card {
    padding: 20px 16px;
  }

  .contact-box-wrapper {
    padding: 0;
    border-radius: var(--radius-md);
  }

  .contact-left {
    padding: 24px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .contact-right {
    padding: 20px 16px;
  }

  .field-group {
    margin-bottom: 14px;
  }

  .c-input {
    padding: 10px 12px;
  }

  .footer-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .f-brand {
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.8rem;
  }

  .f-copy {
    font-size: 0.775rem;
  }

  .modal-backdrop {
    padding: 16px 12px;
  }

  .modal-card {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
  }

  .modal-content {
    padding: 16px 18px;
    flex: 1;
  }

  #cv-modal .modal-footer {
    padding: 16px 18px 22px;
  }
}

@media (max-width: 480px) {
  .hero-main-title {
    font-size: 1.95rem;
  }
}

/* ==========================================================================
   LIGHT MODE HARMONIOUS ENHANCEMENTS (NO GLARE, NO COLOR CLASH)
   ========================================================================== */
[data-theme="light"] .bg-glow-top {
  display: none !important; /* Eliminates the blinding hazy smear at the top */
}

[data-theme="light"] .bg-grid-pattern {
  background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .sub-label {
  color: #4f46e5;
  font-weight: 700;
}

/* Certificate Cards in Light Mode */
[data-theme="light"] .cert-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 2px 8px -1px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .cert-card::before {
  background: #e2e8f0;
  opacity: 1;
  height: 1px;
}

[data-theme="light"] .cert-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .cert-card:hover::before {
  background: #4f46e5;
  height: 3px;
}

[data-theme="light"] .cert-icon {
  background: #eef2ff;
  color: #4f46e5;
  border-color: #e0e7ff;
}

[data-theme="light"] .cert-badge {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

/* Project Cards in Light Mode */
[data-theme="light"] .p-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 2px 8px -1px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .p-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .p-badge.sap {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

[data-theme="light"] .p-badge.fmcg {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

[data-theme="light"] .app-image-slider-frame {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .slide-label {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

[data-theme="light"] .slider-hint {
  background: rgba(255, 255, 255, 0.95);
  color: #334155;
  border: 1px solid #cbd5e1;
}

[data-theme="light"] .slider-btn {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

[data-theme="light"] .slider-btn:hover {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

[data-theme="light"] .app-features-list {
  background: #f8fafc;
  border-left-color: #4f46e5;
  color: #334155;
}

[data-theme="light"] .p-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

[data-theme="light"] .p-view-details-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

[data-theme="light"] .p-view-details-btn:hover {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

[data-theme="light"] .filter-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .filter-chip:hover {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #f8fafc;
}

[data-theme="light"] .filter-chip.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

[data-theme="light"] .lang-toggle,
[data-theme="light"] .theme-toggle {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
}

[data-theme="light"] .lang-toggle:hover,
[data-theme="light"] .theme-toggle:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: none;
}
