/* ==========================================================================
   PERSONAL PORTFOLIO - TYPEWRITER MONOCHROME STYLING (LIGHT THEME ONLY)
   Font: Courier Prime ONLY
   Palette: Strictly Black (#000000) and White (#FFFFFF)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f9f9f9;
  --text-main: #000000;
  --text-muted: #333333;
  --border-color: #000000;
  --border-light: #e2e2e2;
  --shadow-offset: 4px 4px 0px #000000;
  --shadow-offset-lg: 8px 8px 0px #000000;
  --font-typewriter: 'Courier Prime', 'Courier New', Courier, monospace;
}

/* Enforce Typewriter Font Globally */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-typewriter) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #ffffff;
}
::-webkit-scrollbar-thumb {
  background: #000000;
  border-radius: 4px;
}

/* ==========================================================================
   CUSTOM CURSOR — Monochrome Theme Pack
   ========================================================================== */

/* Default cursor: sharp classic arrow pointer */
*, *::before, *::after {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'%3E%3Cpolygon points='2,2 2,20 7,15 11,22 13.5,21 9.5,14 17,14' fill='%23000000' stroke='%23ffffff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 2 2, default !important;
}

/* Pointer cursor: filled arrow with bold styling for clickable elements */
a, button, [role="button"], label, select, summary,
.filter-btn, .nav-link-item, .skill-pill-badge,
.social-icon-btn, .hamburger-btn, .btn-outline,
.contact-submit-btn, .skill-filter-btn {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpolygon points='3,2 3,18 8,13 12,20 14,19 10,12 17,12' fill='%23000000' stroke='%23ffffff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, pointer !important;
}

/* Text cursor for inputs */
input, textarea, [contenteditable] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='24' viewBox='0 0 16 24'%3E%3Cpath d='M4 2 Q8 2 8 6 Q8 2 12 2' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='8' y1='6' x2='8' y2='18' stroke='%23000000' stroke-width='2'/%3E%3Cpath d='M4 22 Q8 22 8 18 Q8 22 12 22' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 8 12, text !important;
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.5rem 3rem;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  column-gap: 2rem;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
  justify-self: start;
  transition: opacity 0.2s ease;
}

.nav-brand:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  justify-self: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 4px;
  transition: opacity 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--text-main);
  transition: width 0.25s ease;
}

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

/* Active nav link glow — highlights which section you're in */
.nav-links a.nav-active {
  text-shadow: 0 0 8px rgba(0,0,0,0.5), 0 0 16px rgba(0,0,0,0.25);
  opacity: 1;
}

.nav-links a.nav-active::after {
  width: 100%;
  background-color: var(--text-main);
  box-shadow: 0 0 6px rgba(0,0,0,0.6);
}

/* Header Button */
.btn-outline {
  justify-self: end;
  display: inline-block;
  text-decoration: none;
  color: var(--text-main);
  background: transparent;
  border: 2px solid var(--border-color);
  padding: 0.6rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 3px 3px 0px #000000;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-outline:hover {
  background: var(--text-main);
  color: var(--bg-primary);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #000000;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - 90px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 90px 1.2fr 1fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
}

/* Left Social Sidebar */
.social-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  padding: 1.8rem 0.8rem;
  gap: 1.4rem;
  box-shadow: var(--shadow-offset);
  width: fit-content;
}

.social-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-icon-btn:hover {
  background: var(--text-main);
  color: var(--bg-primary);
  transform: scale(1.12);
  box-shadow: 2px 2px 0px #000000;
}

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 1rem;
}

.hero-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  margin-bottom: 0.8rem;
  background: #000000;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 6px;
  width: fit-content;
  max-width: fit-content;
}

.role-badge-wrapper {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.role-pill {
  font-size: 0.88rem;
  font-weight: 700;
  border: 2px solid #000000;
  padding: 6px 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 3px 3px 0px #000000;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.hero-title .dash {
  display: inline-block;
  font-weight: 400;
  margin-right: 0.3rem;
}

.hero-subtitle-wrapper {
  margin-bottom: 2.2rem;
}

.typing-line-container {
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.8rem;
  min-height: 28px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.hero-bio-paragraph {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
  border-left: 3px solid var(--border-color);
  padding-left: 1rem;
}

.typing-cursor {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  background-color: var(--text-main);
  vertical-align: text-bottom;
  animation: blink 0.8s infinite;
  margin-left: 2px;
}

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

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #ffffff;
  background-color: #000000;
  border: 2px solid #000000;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  width: fit-content;
  box-shadow: var(--shadow-offset);
  transition: all 0.2s ease;
}

.btn-solid:hover {
  background-color: #ffffff;
  color: #000000;
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px #000000;
}

.btn-solid svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.btn-solid:hover svg {
  transform: translateX(4px);
}

/* Hero Visual & Photo Frame */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 1rem;
}

.photo-frame-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.photo-container-wrapper {
  position: relative;
  width: 100%;
}

.photo-frame-offset {
  position: absolute;
  top: 16px;
  left: -16px;
  width: 100%;
  height: 100%;
  border: 2.5px solid var(--border-color);
  border-radius: 24px;
  z-index: 1;
  background: transparent;
  pointer-events: none;
}

.photo-container {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 4 / 4.8;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-offset-lg);
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-container:hover .hero-portrait-img {
  transform: scale(1.03);
}

.floating-badge {
  position: absolute;
  top: 8%;
  left: -35px;
  z-index: 4;
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  padding: 0.75rem 1.6rem;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 1px;
  box-shadow: 4px 4px 0px #000000;
  transform: rotate(-7deg);
  animation: floatBadge 3.5s ease-in-out infinite alternate;
  user-select: none;
}

.floating-badge::before {
  content: '';
  position: absolute;
  bottom: -9px;
  right: 28px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  transform: rotate(45deg);
}

@keyframes floatBadge {
  0% { transform: rotate(-7deg) translateY(0px); }
  100% { transform: rotate(-4deg) translateY(-8px); }
}

.hero-stats {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
  padding: 1.2rem 1rem;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 16px;
  box-shadow: var(--shadow-offset);
}

.stat-item { text-align: center; }
.stat-num { font-size: 1.5rem; font-weight: 700; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

/* ==========================================================================
   PERSONAL DETAILS GRID & ABOUT STYLES
   ========================================================================== */
.subsection-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #000000;
  letter-spacing: 0.5px;
}

.personal-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.personal-detail-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  box-shadow: 3px 3px 0px #000000;
  transition: all 0.2s ease;
}

.personal-detail-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #000000;
}

.detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid #000000;
  border-radius: 12px;
  background: #f7f7f7;
  flex-shrink: 0;
}

.detail-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #000000;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-content {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.8rem;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 1rem;
  font-weight: 700;
  color: #000000;
  margin-top: 2px;
  word-break: break-word;
}

.about-bio-block {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border-left: 3px solid #000000;
  padding-left: 1.4rem;
}

.about-text-lead {
  font-size: 1.05rem;
  color: #000000;
  line-height: 1.8;
}

.about-text-body {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.automation-badge-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.auto-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  box-shadow: 3px 3px 0px #000000;
}

.auto-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  background: #000000;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

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

/* ==========================================================================
   GLOBAL SECTION WRAPPER & HEADERS
   ========================================================================== */
.section-container {
  padding: 6rem 3rem;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  border-top: 1px dashed #e0e0e0;
}

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

.section-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  margin-bottom: 0.8rem;
  background: var(--bg-secondary);
  padding: 4px 14px;
  border: 1px solid #000000;
  border-radius: 20px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-offset);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px #000000;
}

.service-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: #888888;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.service-tags li {
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #000000;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--bg-secondary);
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #ffffff;
  border: 1.5px solid #000000;
  padding: 0.6rem 1.4rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: #000000;
  color: #ffffff;
  box-shadow: 2px 2px 0px #000000;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-offset);
  transition: all 0.25s ease;
}

.project-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px #000000;
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-bottom: 2px solid #000000;
  overflow: hidden;
  background: #f0f0f0;
}

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

.project-card:hover .project-img {
  transform: scale(1.04);
  filter: grayscale(100%) contrast(110%);
}

.project-placeholder-graphic {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  border: 2px dashed #000000;
}

.placeholder-code {
  font-weight: 700;
  font-size: 1.1rem;
}

.project-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #000000;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
}

.project-info {
  padding: 1.8rem;
}

.project-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  border-bottom: 1px dashed #e0e0e0;
  padding-bottom: 0.5rem;
}

.project-cat {
  font-size: 0.85rem;
  font-weight: 700;
  color: #666666;
}

.project-card-tag {
  background: #000000;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 12px;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.project-purpose {
  font-size: 0.92rem;
  color: #000000;
  margin-bottom: 1rem;
  line-height: 1.5;
  background: var(--bg-secondary);
  padding: 8px 12px;
  border-left: 3px solid #000000;
  border-radius: 4px;
}

.project-details-block {
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.project-subhead {
  font-size: 0.82rem;
  font-weight: 700;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.4rem;
}

.project-bullet-list {
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 0.4rem;
}

.project-bullet-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 3px;
}

.project-bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #000000;
  font-weight: 700;
}

.project-desc-sm {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.project-link {
  display: inline-block;
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.project-link:hover {
  transform: translateX(5px);
}

/* ==========================================================================
   ABOUT & TIMELINE SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.about-heading {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #000000;
}

/* ── EXP-EDU FLAT GRID ──────────────────────────────────────────────────
   Desktop: 2 columns — each pair (work | edu) on the same row
   Mobile:  1 column  — all work items first, then all edu items (via order)
   ──────────────────────────────────────────────────────────────────────── */
.exp-edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 4rem;
  align-items: start;
}

/* Column headings row */
.exp-col-head {
  padding-bottom: 0.5rem;
}

/* Each paired item */
.exp-item,
.edu-item {
  padding: 1.5rem 0;
  border-top: 1px dashed #e0e0e0;
}

/* Two-Column Timeline Layout (kept for backward compat) */
.timeline-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.timeline-section {
  width: 100%;
}

/* Keep old classes for compatibility */
.timeline-header-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 1rem;
}

.timeline-rows-container {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.timeline-pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.timeline-col {
  width: 100%;
}

.timeline {
  display: flex;
  flex-direction: column;
  border-left: 2px solid #000000;
  padding-left: 1.5rem;
  margin-left: 0.5rem;
  height: 100%;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.9rem;
  top: 4px;
  width: 12px;
  height: 12px;
  background: #000000;
  border-radius: 50%;
}

.timeline-year {
  font-size: 0.85rem;
  font-weight: 700;
  background: #000000;
  color: #ffffff;
  padding: 2px 10px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
}

.timeline-company {
  font-size: 0.95rem;
  font-weight: 700;
  color: #555555;
  margin-bottom: 0.6rem;
}

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

/* Skills Pill Cloud */
.skills-pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.skill-pill-badge {
  display: inline-block;
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  padding: 0.75rem 1.6rem;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 3px 3px 0px #000000;
  transition: all 0.2s ease;
  user-select: none;
  cursor: pointer;
}

.skill-pill-badge:hover {
  background: #000000;
  color: #ffffff;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #000000;
}

/* Software Pill Cloud */
.software-pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.8rem;
  margin-bottom: 2rem;
}

.software-badge {
  display: inline-block;
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 4px 4px 0px #888888;
  transition: all 0.2s ease;
  user-select: none;
}

.software-badge:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: 5px 5px 0px #000000;
  transform: translate(-2px, -2px);
}

/* Quote Box */
.quote-box {
  margin-top: 3.5rem;
  background: var(--bg-secondary);
  border: 2.5px solid #000000;
  padding: 2.2rem 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-offset-lg);
  text-align: center;
  position: relative;
}

.quote-text {
  font-style: italic;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #000000;
  max-width: 850px;
  margin: 0 auto;
}

/* Diplomas Grid */
.diplomas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.diploma-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-offset);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.diploma-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px #000000;
}

.diploma-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.diploma-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid #000000;
  border-radius: 12px;
  background: #f7f7f7;
}

.diploma-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #000000;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diploma-year {
  background: #000000;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 20px;
}

.diploma-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #000000;
}

.diploma-meta {
  font-size: 0.88rem;
  font-weight: 700;
  color: #555555;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px dashed #e0e0e0;
  padding-bottom: 0.8rem;
}

.diploma-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.diploma-bullets li {
  position: relative;
  padding-left: 1.3rem;
  line-height: 1.6;
}

.diploma-bullets li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #000000;
  font-weight: 700;
}

/* ==========================================================================
   CONTACT SECTION (2-COLUMN GRID)
   ========================================================================== */
.contact-grid-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Left Column: Direct Contact Info Card */
.contact-info-card {
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-offset-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #000000;
}

.contact-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border: 2px solid #000000;
  border-radius: 14px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #000000;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item-text {
  display: flex;
  flex-direction: column;
}

.contact-item-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #777777;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.contact-item-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: #000000;
  margin-top: 2px;
}

.contact-link {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.whatsapp-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-decoration: none;
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 4px 4px 0px #000000;
  transition: all 0.2s ease;
  width: 100%;
}

.whatsapp-quick-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-quick-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000000;
}

.whatsapp-quick-btn:hover svg {
  stroke: #000000;
}

/* Right Column: Contact Form Card */
.contact-form-card {
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-offset-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: #000000;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 2px solid #000000;
  border-radius: 12px;
  background: #ffffff;
  font-size: 0.95rem;
  color: #000000;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
  box-shadow: 4px 4px 0px #000000;
}

.contact-submit-btn {
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .contact-grid-container {
    grid-template-columns: 1fr;
  }
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #000000;
  color: #ffffff;
  padding: 4rem 3rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: #cccccc;
  margin-top: 0.4rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: #aaaaaa;
}

/* ==========================================================================
   NAVBAR — NAV-ACTIONS & HAMBURGER BASE STYLES
   ========================================================================== */
.nav-actions {
  display: flex;
  gap: 0.8rem;
  justify-self: end;
  align-items: center;
  margin-left: 2rem;
}

.nav-btn-dark {
  background: #000000 !important;
  color: #ffffff !important;
}

/* Hamburger button — hidden on desktop */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 2px solid #000000;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  z-index: 1100;
  transition: background 0.2s ease;
}

.hamburger-btn:hover {
  background: #000000;
}

.hamburger-btn:hover .ham-line {
  background: #ffffff;
}

.ham-line {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #000000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger open state → X animation */
.hamburger-btn.open .ham-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger-btn.open .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.open .ham-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}
.hamburger-btn.open .ham-line {
  background: #ffffff;
}
.hamburger-btn.open {
  background: #000000;
}

/* ==========================================================================
   LARGE LED / WIDE SCREENS  (≥ 1600px)
   ========================================================================== */
@media (min-width: 1600px) {
  .navbar {
    padding: 1.8rem 5rem;
  }
  .nav-brand { font-size: 1.75rem; }
  .nav-links { gap: 3rem; }
  .nav-links a { font-size: 1.1rem; }
  .btn-outline { padding: 0.9rem 2rem; font-size: 1rem; }

  .hero-section { padding: 5rem 5rem; }
  .hero-grid { grid-template-columns: 100px 1.3fr 1fr; gap: 5rem; }
  .hero-title { font-size: 5rem; }
  .hero-bio-paragraph { font-size: 1.1rem; max-width: 680px; }
  .photo-frame-wrapper { max-width: 520px; }

  .section-container { padding: 7rem 5rem; }
  .section-title { font-size: 3.2rem; }
  .section-subtitle { font-size: 1.2rem; }

  .personal-details-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .about-grid { gap: 5rem; }
  .timeline-pair-row { gap: 5rem; }
  .diplomas-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
  .contact-grid-container { gap: 3rem; }

  .footer { padding: 5rem; }
  .footer-logo { font-size: 1.4rem; }
}

/* ==========================================================================
   LAPTOP / SMALL DESKTOP  (≤ 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
  .navbar { padding: 1.4rem 2rem; }
  .nav-links { gap: 1.8rem; }
  .nav-links a { font-size: 0.95rem; }
  .btn-outline { padding: 0.65rem 1.4rem; font-size: 0.88rem; }

  .hero-section { padding: 3.5rem 2rem; }
  .hero-grid { grid-template-columns: 80px 1.1fr 1fr; gap: 3rem; }
  .hero-title { font-size: 3.5rem; }

  .section-container { padding: 5rem 2rem; }
  .section-title { font-size: 2.5rem; }

  .timeline-pair-row { gap: 3rem; }
  .timeline-header-row { gap: 3rem; }
  .about-grid { gap: 3rem; }
  .diplomas-grid { gap: 1.5rem; }
  .portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

/* ==========================================================================
   TABLET / IPAD  (≤ 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  /* Navbar */
  .navbar { padding: 1.2rem 2rem; }
  .nav-links { gap: 1.4rem; }
  .nav-links a { font-size: 0.9rem; }
  .btn-outline { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

  /* Hero */
  .hero-section { padding: 3rem 2rem; min-height: auto; }
  .hero-grid { grid-template-columns: 70px 1fr; gap: 2.5rem; }
  .hero-visual { grid-column: span 2; display: flex; justify-content: center; margin-top: 2rem; }
  .photo-frame-wrapper { max-width: 350px; }
  .hero-title { font-size: 3rem; }
  .hero-bio-paragraph { max-width: 100%; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .personal-details-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }

  /* Timeline */
  .timeline-header-row { grid-template-columns: 1fr; gap: 0; }
  .timeline-header-row h3:last-child { display: none; }
  .timeline-pair-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .timeline-rows-container { gap: 0; }
  .timeline-two-col { grid-template-columns: 1fr; gap: 2.5rem; }

  /* exp-edu-grid → 1 column, reorder: Work heading → W1→W2→W3 → Edu heading → E1→E2→E3 */
  .exp-edu-grid { grid-template-columns: 1fr; column-gap: 0; }
  .exp-edu-grid > :nth-child(1) { order: 1; } /* // WORK EXPERIENCE heading */
  .exp-edu-grid > :nth-child(2) { order: 5; } /* // ACADEMIC EDUCATION heading */
  .exp-edu-grid > :nth-child(3) { order: 2; } /* Work item 1 */
  .exp-edu-grid > :nth-child(4) { order: 6; } /* Edu  item 1 */
  .exp-edu-grid > :nth-child(5) { order: 3; } /* Work item 2 */
  .exp-edu-grid > :nth-child(6) { order: 7; } /* Edu  item 2 */
  .exp-edu-grid > :nth-child(7) { order: 4; } /* Work item 3 */
  .exp-edu-grid > :nth-child(8) { order: 8; } /* Edu  item 3 */
  /* Education heading needs border-top separator */
  .exp-edu-grid > :nth-child(2) { margin-top: 2rem; border-top: 2px solid #000000; padding-top: 1.5rem; }

  /* Diplomas */
  .diplomas-grid { grid-template-columns: repeat(2, 1fr); }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

  /* Contact */
  .contact-grid-container { grid-template-columns: 1fr; }
  .form-row-2col { grid-template-columns: 1fr; }

  /* Section */
  .section-container { padding: 4rem 2rem; }
  .section-title { font-size: 2.2rem; }
}

/* ==========================================================================
   TABLET PORTRAIT / LARGE MOBILE  (≤ 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* ---- NAVBAR ---- */
  .navbar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    position: relative;
  }

  .nav-brand { font-size: 1.3rem; }

  /* Show hamburger */
  .hamburger-btn { display: flex; }

  /* Hide desktop nav-actions buttons */
  .nav-actions { display: none; }

  /* Nav links: hidden by default, shown when open */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-top: 0.5rem;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 16px;
    padding: 1rem 0;
    box-shadow: 4px 4px 0px #000000;
    order: 3; /* push below brand + hamburger row */
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px dashed #e0e0e0;
  }
  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
  }

  .nav-links a::after { display: none; }

  /* Mobile nav: download CV + get in touch as full-width row at bottom of menu */
  .nav-links::after {
    content: none;
  }

  /* ---- HERO ---- */
  .hero-section { padding: 2.5rem 1.2rem; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }

  .social-sidebar {
    flex-direction: row;
    width: 100%;
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
    justify-content: center;
    gap: 1rem;
  }
  .social-title {
    writing-mode: horizontal-tb;
    transform: none;
    margin-bottom: 0;
    margin-right: 0.5rem;
    font-size: 0.9rem;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    padding-right: 0;
  }

  .hero-tag { font-size: 0.65rem; }
  .hero-title { font-size: 2.4rem; letter-spacing: -1px; }
  .hero-bio-paragraph {
    border-left: none;
    border-top: 3px solid #000000;
    padding-left: 0;
    padding-top: 0.8rem;
    font-size: 0.92rem;
    max-width: 100%;
    text-align: left;
  }

  .typing-line-container { justify-content: center; font-size: 0.9rem; }

  .hero-visual { grid-column: span 1; margin-top: 1rem; }
  .photo-frame-wrapper { max-width: 280px; }
  .floating-badge { left: -15px; font-size: 1rem; padding: 0.6rem 1.2rem; }

  .hero-stats { flex-direction: row; gap: 0; }
  .stat-num { font-size: 1.2rem; }
  .stat-label { font-size: 0.65rem; }

  /* ---- SECTIONS ---- */
  .section-container { padding: 3.5rem 1.2rem; }
  .section-title { font-size: 2rem; letter-spacing: -0.5px; }
  .section-subtitle { font-size: 1rem; }
  .section-header { margin-bottom: 2.5rem; }

  /* ---- ABOUT ---- */
  .personal-details-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .personal-detail-card { padding: 1rem 1.1rem; gap: 0.9rem; }
  .detail-value { font-size: 0.92rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem !important; }
  .about-text-lead { font-size: 0.98rem; }
  .about-text-body { font-size: 0.92rem; }

  /* ---- TIMELINE ---- */
  .timeline-header-row { grid-template-columns: 1fr; gap: 0; }
  .timeline-header-row h3:last-child { display: none; }
  .timeline-pair-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .timeline-rows-container { gap: 0; }
  .timeline-two-col { grid-template-columns: 1fr; gap: 2rem; }
  .timeline-role { font-size: 1.05rem; }
  .timeline-company { font-size: 0.88rem; }
  .timeline-desc { font-size: 0.85rem; }

  /* exp-edu-grid → single column with work first, then education */
  .exp-edu-grid { grid-template-columns: 1fr; column-gap: 0; }
  .exp-edu-grid > :nth-child(1) { order: 1; }
  .exp-edu-grid > :nth-child(2) { order: 5; margin-top: 2rem; border-top: 2px solid #000000; padding-top: 1.5rem; }
  .exp-edu-grid > :nth-child(3) { order: 2; }
  .exp-edu-grid > :nth-child(4) { order: 6; }
  .exp-edu-grid > :nth-child(5) { order: 3; }
  .exp-edu-grid > :nth-child(6) { order: 7; }
  .exp-edu-grid > :nth-child(7) { order: 4; }
  .exp-edu-grid > :nth-child(8) { order: 8; }

  /* ---- SKILLS ---- */
  .filter-bar { gap: 0.6rem; }
  .filter-btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
  .skill-pill-badge { padding: 0.6rem 1.2rem; font-size: 0.88rem; }
  .software-badge { padding: 0.65rem 1.4rem; font-size: 0.9rem; }

  /* ---- CERTIFICATIONS ---- */
  .diplomas-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .diploma-title { font-size: 1.2rem; }

  /* ---- PORTFOLIO ---- */
  .portfolio-grid { grid-template-columns: 1fr; gap: 1.8rem; }

  /* ---- CONTACT ---- */
  .contact-grid-container { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-row-2col { grid-template-columns: 1fr; }
  .contact-info-card { padding: 1.8rem; }
  .contact-form-card { padding: 1.8rem; }
  .contact-card-title { font-size: 1.5rem; }

  /* ---- FOOTER ---- */
  .footer { padding: 3rem 1.5rem; }
  .footer-content { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-logo { font-size: 1.1rem; }
}

/* ==========================================================================
   MOBILE  (≤ 480px)
   ========================================================================== */
@media (max-width: 480px) {
  /* ---- NAVBAR ---- */
  .navbar { padding: 0.9rem 1rem; }
  .nav-brand { font-size: 1.15rem; }
  .nav-links a { padding: 0.75rem 1.2rem; font-size: 0.95rem; }

  /* ---- HERO ---- */
  .hero-section { padding: 2rem 1rem; }
  .hero-tag { font-size: 0.6rem; padding: 4px 8px; }
  .hero-title { font-size: 2rem; }
  .hero-bio-paragraph { font-size: 0.88rem; }
  .btn-solid { padding: 0.85rem 1.8rem; font-size: 0.95rem; }
  .photo-frame-wrapper { max-width: 240px; }
  .floating-badge { display: none; } /* hide on tiny screens to avoid overflow */

  .hero-stats { padding: 0.9rem 0.5rem; }
  .stat-num { font-size: 1.1rem; }
  .stat-label { font-size: 0.6rem; }

  /* ---- SECTIONS ---- */
  .section-container { padding: 3rem 1rem; }
  .section-title { font-size: 1.7rem; }
  .section-subtitle { font-size: 0.92rem; }

  /* ---- ABOUT ---- */
  .personal-details-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .personal-detail-card { padding: 0.9rem 1rem; }
  .detail-icon { width: 38px; height: 38px; }

  /* ---- TIMELINE ---- */
  .timeline { padding-left: 1.2rem; }
  .timeline-item::before { left: -1.55rem; width: 10px; height: 10px; }
  .timeline-year { font-size: 0.78rem; }
  .timeline-role { font-size: 1rem; }

  /* ---- SKILLS ---- */
  .filter-bar { gap: 0.5rem; }
  .filter-btn { padding: 0.45rem 0.85rem; font-size: 0.8rem; }
  .skills-pill-cloud { gap: 0.8rem; }
  .skill-pill-badge { padding: 0.55rem 1rem; font-size: 0.82rem; }
  .software-pill-cloud { gap: 0.8rem; }
  .software-badge { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

  /* ---- CERTIFICATIONS ---- */
  .diplomas-grid { gap: 1.2rem; }
  .diploma-card { padding: 1.5rem; }
  .diploma-title { font-size: 1.1rem; }

  /* ---- PORTFOLIO ---- */
  .portfolio-grid { gap: 1.4rem; }
  .project-title { font-size: 1.2rem; }
  .project-info { padding: 1.4rem; }

  /* ---- CONTACT ---- */
  .contact-info-card { padding: 1.4rem; }
  .contact-form-card { padding: 1.4rem; }
  .contact-card-title { font-size: 1.3rem; }
  .form-group input, .form-group textarea { font-size: 0.9rem; padding: 0.8rem 0.9rem; }
  .contact-submit-btn { font-size: 0.95rem; }

  /* ---- FOOTER ---- */
  .footer { padding: 2.5rem 1rem; }
  .footer-logo { font-size: 1rem; }
  .footer-tagline { font-size: 0.82rem; }
  .footer-copy { font-size: 0.8rem; }
}

/* ==========================================================================
   EXTRA SMALL MOBILE  (≤ 360px)
   ========================================================================== */
@media (max-width: 360px) {
  .hero-title { font-size: 1.75rem; }
  .section-title { font-size: 1.5rem; }
  .nav-brand { font-size: 1.05rem; }
  .btn-solid { padding: 0.75rem 1.5rem; font-size: 0.88rem; }
  .social-sidebar { gap: 0.6rem; padding: 0.6rem 0.8rem; }
  .social-icon-btn { width: 36px; height: 36px; }
}
