/* ==========================================================================
   PORTFOLIO DESIGN SYSTEM - MUHAMMAD RAYNOR RIFAT
   Light Theme | Professional IT & SQA Focused | Vanilla CSS3
   Optimized for Mobile, Tablet & Desktop
   ========================================================================== */

/* --- 1. CSS Custom Properties / Design Tokens --- */
:root {
  /* Color Palette */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-card-hover: #ffffff;
  
  --primary: #1d4ed8;         /* Professional Deep Blue */
  --primary-hover: #1e40af;
  --primary-light: #eff6ff;   /* Soft Ice Blue */
  --primary-border: #bfdbfe;
  
  --accent-cyan: #0284c7;     /* Sky/Cyan accent */
  --accent-emerald: #059669;  /* Quality Assurance Green */
  --accent-emerald-light: #ecfdf5;
  --accent-amber: #d97706;    /* Amber badge */
  --accent-amber-light: #fffbeb;
  
  --text-primary: #0f172a;    /* Slate 900 */
  --text-secondary: #475569;  /* Slate 600 */
  --text-muted: #64748b;      /* Slate 500 */
  --text-light: #94a3b8;      /* Slate 400 */
  
  --border-light: #e2e8f0;    /* Slate 200 */
  --border-subtle: #edf2f7;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 30px -10px rgba(15, 23, 42, 0.12);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.04);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout & Transitions */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;
  
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  --nav-height: 72px;
  --max-width: 1200px;
}

/* --- 2. CSS Reset & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

/* Subtle background pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- 3. Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

section {
  padding-block: 5.5rem;
  position: relative;
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-border);
  margin-bottom: 0.875rem;
}

.section-title {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- 4. Component: Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.28);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.38);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

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

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.8125rem;
  min-height: 36px;
  border-radius: var(--radius-sm);
}

/* --- 5. Navbar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-light);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-role {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.35rem 0;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

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

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

/* Hamburger Menu Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 8px;
  z-index: 1001;
  flex-shrink: 0;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  width: 0%;
  transition: width 0.1s linear;
}

/* --- 6. Hero Section --- */
.hero {
  padding-top: calc(var(--nav-height) + 3.5rem);
  padding-bottom: 5.5rem;
  background: radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 10% 60%, rgba(2, 132, 199, 0.06) 0%, transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
  width: fit-content;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-name {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-headline {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Visual / Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-card-frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card-subtle);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

.hero-card-frame:hover .hero-image-wrapper img {
  transform: scale(1.03);
}

.hero-badge-tag {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hero-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-badge-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-badge-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- 7. About Me Section --- */
.about {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.5;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.highlight-box {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-fast);
}

.highlight-box:hover {
  background: #ffffff;
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
  transform: translateY(-2px);
}

.highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.highlight-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.highlight-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.about-card-info {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-item-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.info-item-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.info-label {
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.info-val {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

/* --- 8. Skills Section --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.skill-category-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.skill-category-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
  transform: translateY(-4px);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.skill-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-cat-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-cat-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background-color: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.skill-badge:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
  transform: translateY(-1px);
}

.skill-badge.highlight {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.skill-badge.highlight:hover {
  background-color: #dcfce7;
}

/* --- 9. Projects Section --- */
.projects {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

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

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

.project-thumb {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--bg-card-subtle);
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.project-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-org {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

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

.tech-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background-color: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

/* --- 10. Interactive Project Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.modal-container {
  background-color: #ffffff;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: all var(--transition-normal);
  -webkit-overflow-scrolling: touch;
}

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

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.modal-content-wrapper {
  padding: 2.25rem;
}

.modal-gallery {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.75rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
}

.modal-gallery-main {
  width: 100%;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.modal-gallery-main img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

.modal-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #ffffff;
  overflow-x: auto;
  border-top: 1px solid var(--border-light);
}

.gallery-thumb-item {
  width: 70px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.gallery-thumb-item.active,
.gallery-thumb-item:hover {
  opacity: 1;
  border-color: var(--primary);
}

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

.modal-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.modal-text-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: -0.5rem;
}

.modal-section-h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-bullet-list {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.modal-bullet-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-sidebar {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: fit-content;
}

.sidebar-info-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-info-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sidebar-info-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- 11. Experience Section (Timeline) --- */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background-color: var(--border-light);
}

@media (min-width: 769px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 769px) {
  .timeline-item {
    width: 50%;
  }

  .timeline-item.left {
    align-self: flex-start;
    padding-right: 2.5rem;
    text-align: right;
  }

  .timeline-item.right {
    align-self: flex-end;
    padding-left: 2.5rem;
    text-align: left;
  }

  .timeline-item.left .timeline-content {
    text-align: left;
  }
}

.timeline-marker {
  position: absolute;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 0 0 5px rgba(29, 78, 216, 0.12);
  z-index: 2;
}

@media (min-width: 769px) {
  .timeline-item.left .timeline-marker {
    right: -21px;
    top: 0;
  }

  .timeline-item.right .timeline-marker {
    left: -21px;
    top: 0;
  }
}

.timeline-content {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.timeline-period {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.timeline-role {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.timeline-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.85rem;
}

.timeline-duties {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.timeline-gallery-link:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
}

/* --- 12. Education & Certifications Section --- */
.edu-cert {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.edu-card {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.edu-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.edu-details {
  flex-grow: 1;
}

.edu-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.edu-institution {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.edu-year {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.edu-degree {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.edu-ipk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

.edu-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Certifications Filter & Grid */
.cert-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.filter-btn {
  padding: 0.5rem 1.15rem;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-btn:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}

.cert-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

.cert-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
  transform: translateY(-2px);
}

.cert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.cert-issuer-badge {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.badge-simplilearn { background: #fef3c7; color: #92400e; }
.badge-toyota { background: #fee2e2; color: #991b1b; }
.badge-oracle { background: #ffedd5; color: #9a3412; }
.badge-cisco { background: #e0f2fe; color: #075985; }

.cert-type-icon {
  color: var(--text-muted);
}

.cert-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  flex-grow: 1;
}

.cert-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

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

.cert-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* --- 13. Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.contact-card-cta {
  background: linear-gradient(145deg, #ffffff, var(--primary-light));
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.cta-header h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.cta-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-method-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.contact-method-item:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.method-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.method-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.method-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

.method-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* --- 14. Footer --- */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding-block: 2.5rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

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

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--primary);
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.back-to-top:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* --- 15. Toast Notification --- */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 3000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-normal);
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- 16. Lightbox for Internship Photos --- */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.image-lightbox img {
  max-width: 92vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* --- 17. Scroll Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   18. COMPREHENSIVE RESPONSIVE STYLES (TABLET & MOBILE)
   ========================================================================== */

/* Tablet & Mobile Nav Drawer (max-width: 991px) */
@media (max-width: 991px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(85vw, 360px);
    height: 100vh;
    background: #ffffff;
    box-shadow: var(--shadow-xl);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 2rem 2rem;
    gap: 2rem;
    transition: right var(--transition-slow);
    z-index: 999;
    border-left: 1px solid var(--border-light);
    overflow-y: auto;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .nav-link {
    font-size: 1.05rem;
    width: 100%;
    display: block;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-actions {
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.75rem;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-desc {
    margin-inline: auto;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-metrics {
    width: 100%;
    max-width: 520px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Tablet & Mobile Layout Refinements (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  section {
    padding-block: 4rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-desc {
    font-size: 0.95rem;
  }

  /* Timeline on Mobile */
  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    padding-left: 2.75rem;
    margin-bottom: 2.25rem;
    width: 100% !important;
    text-align: left !important;
  }

  .timeline-marker {
    left: 0 !important;
    top: 2px !important;
    width: 32px;
    height: 32px;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
  }

  .timeline-marker svg {
    width: 14px;
    height: 14px;
  }

  .timeline-content {
    padding: 1.25rem;
  }

  .timeline-role {
    font-size: 1.1rem;
  }

  .timeline-company {
    font-size: 0.875rem;
  }

  .timeline-duties {
    font-size: 0.85rem;
    gap: 0.5rem;
    padding-left: 1.1rem;
  }

  /* Modal on Mobile */
  .modal-overlay {
    padding: 0.75rem;
  }

  .modal-container {
    max-height: 94vh;
    border-radius: var(--radius-lg);
  }

  .modal-close-btn {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
  }

  .modal-content-wrapper {
    padding: 1.25rem;
  }

  .modal-gallery-main {
    max-height: 240px;
  }

  .modal-details-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-section-h4 {
    font-size: 0.95rem;
  }

  .modal-bullet-list li {
    font-size: 0.85rem;
  }

  /* Education card */
  .edu-card {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }

  .edu-institution {
    font-size: 1.15rem;
  }

  .edu-degree {
    font-size: 0.95rem;
  }

  /* Toast notification on mobile */
  .toast-notice {
    bottom: 1.25rem;
    right: 1.25rem;
    left: 1.25rem;
    justify-content: center;
    text-align: center;
  }
}

/* Smartphone Specific Optimizations (max-width: 576px) */
@media (max-width: 576px) {
  .container {
    padding-inline: 1.125rem;
  }

  /* Header on Smartphone */
  .brand-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
  }

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

  .brand-role {
    font-size: 0.675rem;
  }

  .hamburger {
    width: 38px;
    height: 38px;
    padding: 7px;
  }

  /* Hero Section on Smartphone */
  .hero {
    padding-top: calc(var(--nav-height) + 1.75rem);
    padding-bottom: 3.5rem;
  }

  .hero-status-pill {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
  }

  .hero-name {
    font-size: 1.95rem;
    line-height: 1.2;
  }

  .hero-headline {
    font-size: 1.1rem;
    line-height: 1.35;
  }

  .hero-desc {
    font-size: 0.925rem;
    line-height: 1.65;
  }

  /* Balanced Symmetrical CTA Buttons on Mobile */
  .hero-cta-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    width: 100%;
    margin-top: 0.25rem;
  }

  .hero-cta-group .btn {
    padding: 0.7rem 0.5rem;
    font-size: 0.875rem;
    width: 100%;
  }

  .hero-cta-group .btn-outline-primary {
    grid-column: 1 / -1;
  }

  /* Hero Metrics in 3 Clean Cards */
  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
  }

  .metric-item {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.35rem;
    text-align: center;
    box-shadow: var(--shadow-xs);
  }

  .metric-number {
    font-size: 1.25rem;
    line-height: 1.15;
  }

  .metric-label {
    font-size: 0.6875rem;
    margin-top: 0.2rem;
  }

  /* Hero Image on Smartphone */
  .hero-card-frame {
    padding: 0.85rem;
    border-radius: var(--radius-lg);
  }

  .hero-image-wrapper {
    height: 280px;
    border-radius: var(--radius-md);
  }

  .hero-badge-tag {
    position: static;
    margin-top: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-md);
  }

  .hero-badge-title {
    font-size: 0.8125rem;
  }

  .hero-badge-subtitle {
    font-size: 0.7rem;
  }

  /* About Me on Smartphone */
  .about-highlights {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .highlight-box {
    padding: 1rem;
  }

  .about-card-info {
    padding: 1.25rem;
    gap: 1.15rem;
  }

  .info-item-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
  }

  .info-item-icon svg {
    width: 18px;
    height: 18px;
  }

  .info-val {
    font-size: 0.875rem;
  }

  /* Skills on Smartphone */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .skill-category-card {
    padding: 1.25rem;
  }

  .skill-cat-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    gap: 0.75rem;
  }

  .skill-cat-icon {
    width: 38px;
    height: 38px;
  }

  .skill-cat-icon svg {
    width: 18px;
    height: 18px;
  }

  .skill-cat-title {
    font-size: 1rem;
  }

  .skill-badge {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
  }

  /* Projects on Smartphone */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-thumb {
    height: 190px;
  }

  .project-body {
    padding: 1.25rem;
  }

  .project-title {
    font-size: 1.1rem;
  }

  .project-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 1rem;
  }

  .project-footer {
    padding-top: 0.85rem;
  }

  .project-footer .btn {
    width: 100%;
    justify-content: center;
  }

  /* Experience Documentation Buttons on Smartphone */
  .timeline-duties {
    padding-left: 1rem;
  }

  .timeline-gallery-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Horizontal Swipeable Filters for Certifications on Mobile */
  .cert-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-inline: 0.25rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
  }

  .cert-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 0.45rem 0.95rem;
    font-size: 0.8rem;
  }

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

  .cert-card {
    padding: 1rem;
  }

  .cert-name {
    font-size: 0.875rem;
  }

  /* Contact on Smartphone */
  .contact-card-cta {
    padding: 1.5rem;
  }

  .cta-header h3 {
    font-size: 1.35rem;
  }

  .cta-header p {
    font-size: 0.875rem;
  }

  .contact-method-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
  }

  .method-info {
    width: 100%;
  }

  .method-icon {
    width: 38px;
    height: 38px;
  }

  .method-icon svg {
    width: 18px;
    height: 18px;
  }

  .method-value {
    font-size: 0.875rem;
  }

  .method-actions {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }

  .method-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  /* Footer on Smartphone */
  .footer {
    padding-block: 2rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-nav {
    justify-content: center;
    gap: 1rem;
  }
}
