/**
 * Modern Portfolio & CV Design - SAPUTRA (Programmer / Welder)
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
  --primary-deep: #0f4c81;
  --primary: #0284c7;
  --primary-light: #38bdf8;
  --primary-cyan: #06b6d4;
  --accent-orange: #f97316;
  --accent-blue: #0284c7;
  --dark-bg: #0b132b;
  --dark-card: #1c2541;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --bg-light: #f8fafc;
  --border-light: #e2e8f0;
  --card-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --card-hover-shadow: 0 20px 35px -10px rgba(2, 132, 199, 0.2), 0 10px 15px -5px rgba(0, 0, 0, 0.06);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-code: 'Fira Code', monospace;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ==================== NAVBAR ==================== */
.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}

.navbar-custom.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0f172a;
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  transition: var(--transition);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-cyan));
  transition: var(--transition);
  border-radius: 2px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-cv:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
  color: #fff;
}

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.52rem 1rem;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  transition: var(--transition);
}

.btn-admin:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Language Switcher */
.lang-switch-wrap {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 4px;
  gap: 2px;
  font-size: 0.76rem;
  font-weight: 700;
}

.lang-btn {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  color: #64748b;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-btn.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.lang-sep {
  color: #cbd5e1;
  font-size: 0.72rem;
  user-select: none;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #1e293b;
  cursor: pointer;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  position: relative;
  padding-top: 6.5rem;
  padding-bottom: 4rem;
  background: radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.14) 0%, transparent 45%),
              radial-gradient(circle at 15% 45%, rgba(2, 132, 199, 0.1) 0%, transparent 40%),
              #ffffff;
  overflow: hidden;
}

.hero-wave-bg {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 240px;
  background: linear-gradient(135deg, #0f4c81 0%, #0284c7 50%, #38bdf8 100%);
  clip-path: ellipse(80% 65% at 50% 25%);
  opacity: 0.95;
  z-index: 1;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.hero-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 45px -12px rgba(2, 132, 199, 0.15), 0 1px 3px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(20px);
  margin-top: 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-avatar-wrapper {
  text-align: center;
  position: relative;
}

.avatar-ring {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, #0284c7, #38bdf8, #06b6d4);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.35);
  position: relative;
  animation: pulse-ring 4s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 12px 30px rgba(2, 132, 199, 0.35); }
  50% { box-shadow: 0 16px 40px rgba(6, 182, 212, 0.5); }
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #ffffff;
  display: block;
}

.hero-status-pill {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: #ffffff;
  color: #10b981;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.8s infinite;
}

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

.hero-info-header {
  margin-bottom: 1.25rem;
}

.hero-subtitle-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  background: #e0f2fe;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: #0f172a;
  line-height: 1.05;
  margin-bottom: 0.4rem;
}

.hero-role {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: #ea580c;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-role .divider {
  color: #cbd5e1;
  font-weight: 400;
}

.hero-bio {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 800px;
}

.hero-contact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.85rem;
}

.contact-pill-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: #334155;
  transition: var(--transition);
}

.contact-pill-item:hover {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
  transform: translateY(-2px);
}

.contact-pill-item i {
  color: var(--primary);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-primary-gradient {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
  transition: var(--transition);
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.45);
  color: #fff;
}

.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.65rem;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  color: #334155;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  transition: var(--transition);
}

.btn-secondary-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0f9ff;
  transform: translateY(-2px);
}

/* ==================== STATS BAR ==================== */
.stats-section {
  padding: 1.5rem 0 3.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: var(--transition);
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
  border-color: #bae6fd;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.blue { background: #e0f2fe; color: #0284c7; }
.stat-icon.cyan { background: #cffafe; color: #0891b2; }
.stat-icon.orange { background: #ffedd5; color: #ea580c; }
.stat-icon.green { background: #dcfce7; color: #16a34a; }

.stat-content h3 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.stat-content p {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.2rem;
}

/* ==================== SECTION COMMON ==================== */
.section-pad {
  padding: 5rem 0;
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  background: #e0f2fe;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ==================== ABOUT & DUAL PROFILE ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.about-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.about-card-title i {
  color: var(--primary);
}

.about-card-body p {
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #334155;
}

.feature-item i {
  color: #10b981;
  font-size: 1rem;
  margin-top: 0.2rem;
}

/* ==================== SKILLS & BARS ==================== */
.skills-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.skills-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--card-shadow);
}

.skill-row {
  margin-bottom: 1.35rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: #1e293b;
}

.skill-percent {
  color: var(--primary);
  font-family: var(--font-code);
  font-weight: 700;
}

.skill-bar-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-bar-fill.orange {
  background: linear-gradient(90deg, #ea580c, #f97316);
}

/* ==================== TIMELINE (EXPERIENCE & EDUCATION) ==================== */
.timeline-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.timeline-column-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.timeline-column-title .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px #e0f2fe;
}

.timeline-list {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid #e2e8f0;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.25rem;
}

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

.timeline-badge-dot {
  position: absolute;
  left: -2rem;
  top: 4px;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 3px #ffffff;
}

.timeline-date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.timeline-company {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.timeline-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ea580c;
  margin-bottom: 0.45rem;
}

.timeline-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
  white-space: pre-line;
}

/* ==================== PROJECTS ==================== */
.filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.75rem;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
  border-color: #bae6fd;
}

.project-image-box {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #0f172a;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  letter-spacing: 0.5px;
}

.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.project-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tech-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
}

.project-footer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.btn-link-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.btn-link-action:hover {
  color: #0369a1;
  text-decoration: underline;
}

/* ==================== CERTIFICATES ==================== */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.cert-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.cert-preview-box {
  height: 180px;
  background: #0f172a;
  position: relative;
  overflow: hidden;
}

.cert-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cert-year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(2, 132, 199, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.cert-gallery-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  z-index: 2;
}

.cert-card:hover .cert-gallery-badge {
  background: rgba(2, 132, 199, 0.95);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.4);
}

.cert-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cert-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.cert-issuer {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cert-id-tag {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 0.78rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.cert-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.cert-actions {
  display: flex;
  gap: 0.75rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

.btn-cert-view {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  border: none;
  background: transparent;
}

.btn-cert-view:hover {
  text-decoration: underline;
}

/* ==================== CONTACT SECTION ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-info-card {
  background: linear-gradient(135deg, #0f4c81 0%, #0284c7 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(2, 132, 199, 0.35);
}

.contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contact-info-card p {
  color: #e0f2fe;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-bottom: 2.5rem;
}

.method-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.method-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
}

.method-detail span {
  display: block;
  font-size: 0.78rem;
  color: #bae6fd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.method-detail strong {
  font-size: 0.95rem;
  color: #ffffff;
  word-break: break-all;
}

.contact-social-links {
  display: flex;
  gap: 0.75rem;
}

.social-circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-circle-btn:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-3px);
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: #1e293b;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* ==================== FOOTER ==================== */
.footer-custom {
  background: #0b132b;
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid #1e293b;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1e293b;
}

.footer-brand h2 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.45rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: #ffffff;
  border-radius: 20px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #64748b;
  transition: var(--transition);
  z-index: 20;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Project Card Gallery Count Badge */
.project-gallery-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(2, 132, 199, 0.9);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  z-index: 2;
}

.project-card:hover .project-gallery-badge {
  background: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.4);
}

/* Modal Multi-Image Gallery Styles */
.modal-gallery-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #1e293b;
  background: #090d16;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.modal-gallery-img {
  width: 100%;
  height: 400px;
  max-height: 52vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease-in-out;
}

.modal-gallery-counter {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 5;
  pointer-events: none;
}

.modal-gallery-full-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
  z-index: 5;
}

.modal-gallery-full-btn:hover {
  background: #0284c7;
  color: #ffffff;
  transform: scale(1.1);
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  z-index: 5;
}

.gallery-nav-btn:hover {
  background: #0284c7;
  border-color: #38bdf8;
  transform: translateY(-50%) scale(1.12);
}

.gallery-nav-btn.prev {
  left: 14px;
}

.gallery-nav-btn.next {
  right: 14px;
}

.modal-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(9, 13, 22, 0.95), rgba(9, 13, 22, 0));
  color: #e2e8f0;
  padding: 1.5rem 1.25rem 0.65rem;
  font-size: 0.84rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

/* Thumbnail Filmstrip */
.modal-thumbnails-strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.35rem 0.2rem 0.65rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.modal-thumbnails-strip::-webkit-scrollbar {
  height: 6px;
}

.modal-thumbnails-strip::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.modal-thumb-item {
  flex: 0 0 85px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #0f172a;
  transition: all 0.2s ease;
  opacity: 0.65;
}

.modal-thumb-item:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

.modal-thumb-item.active {
  opacity: 1;
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.35);
  transform: scale(1.04);
}

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

/* ==================== RESPONSIVE MEDIA QUERIES ==================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-contact-row {
    justify-content: center;
  }
  .hero-cta-buttons {
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-wrapper, .skills-container, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-admin {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-name {
    font-size: 2.3rem;
  }
  .hero-role {
    font-size: 1.3rem;
    justify-content: center;
  }
  .hero-card {
    padding: 2rem 1.25rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid, .certificates-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #ffffff;
  z-index: 1500;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.drawer-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
