/* Evan's Page Custom Styles - Optimized Version */

/* ============================================
   GLOBAL RESETS & BOX-SIZING
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ============================================
   CSS CUSTOM PROPERTIES (Variables)
   ============================================ */
:root {
  /* Colors */
  --evan-accent: #00ff88;
  --evan-accent-alt: #00d9ff;
  --evan-text: rgba(255, 255, 255, 0.88);
  --evan-text-light: rgba(255, 255, 255, 0.92);
  --evan-text-muted: rgba(255, 255, 255, 0.7);
  --evan-border: rgba(0, 255, 136, 0.3);
  --evan-bg-dark: rgba(20, 20, 20, 0.8);
  
  /* Typography */
  --font-mono: "JetBrains Mono", "Courier New", monospace;
  --text-base: 1.05rem;
  --line-height-base: 1.85;
  --letter-spacing-base: 0.01em;
  
  /* Spacing */
  --section-padding: 3rem;
  --card-padding: 2rem;
  --scroll-margin: 100px;
}

/* ============================================
   UNIFIED CONTENT TEXT STYLES
   ============================================ */
.profile-description,
.section-text,
.section-paragraph {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--evan-text);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
  overflow-wrap: break-word;
  text-align: center;
}

.profile-description {
  color: var(--evan-text-light) !important;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.section-text {
  line-height: 1.7;
}

/* ============================================
   SCROLL MARGIN FOR ANCHOR LINKS
   ============================================ */
#about,
#skills,
#certifications,
#homelab,
#hobbies,
#contact {
  scroll-margin-top: var(--scroll-margin);
}

/* ============================================
   SECTION SPACING
   ============================================ */
.section {
  padding: var(--section-padding) 0 !important;
}

.section-padding {
  padding: 2.5rem 0 !important;
}

.section-top-padding {
  padding-top: 6rem !important;
  padding-bottom: 3rem !important;
}

.section-bottom-spacing {
  margin-bottom: 2rem;
}

.section-bottom-spacing:last-child {
  margin-bottom: 0;
}

/* Reset BLK design system column padding */
.section [class*="col-"] {
  padding-top: 0 !important;
}

/* Row spacing */
.section .row,
.row {
  margin-left: 0;
  margin-right: 0;
}

.section .row + .row,
.row + .row {
  margin-top: 2rem;
}

.section .card-header {
  margin-bottom: 0;
}

/* ============================================
   CARD STYLES
   ============================================ */
/* Card header color variants */
.card-header-atom,
.card-header-molecule,
.card-header-planet,
.card-header-bulb,
.card-header-notes,
.card-header-world,
.card-header-single {
  margin-bottom: 0;
}

.card-header-atom { background-color: #e14eca; }
.card-header-molecule { background-color: #00f2c3; }
.card-header-planet { background-color: #1d8cf8; }
.card-header-bulb { background-color: #ffc107; }
.card-header-notes { background-color: #000; }
.card-header-world { background-color: #ff0707; }
.card-header-single { background-color: var(--evan-accent); }

/* Card body */
.card-body-reduced {
  padding: 2.5rem 2rem;
}

.card-body-reduced .row {
  margin-bottom: 1rem;
}

.card-body-reduced .row:last-child {
  margin-bottom: 0;
}

/* Card titles */
.card-coin.card-plain .card-body h3 {
  margin-bottom: 0;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.card-coin.card-plain .card-body .section-text {
  margin-bottom: 0;
}

/* Card HR dividers */
.card-coin.card-plain .card-body hr {
  margin: 1rem auto 1.5rem auto !important;
  width: 15% !important;
}

/* Profile bio card - keeping for backwards compatibility */
.profile-bio-card {
  background: var(--evan-bg-dark);
  padding: var(--card-padding);
  border-radius: 20px;
  border: 2px solid var(--evan-border);
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.2), inset 0 0 20px rgba(0, 255, 136, 0.05);
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.profile-bio-card .card-body {
  overflow: visible;
  width: 100%;
  padding: 1rem 0.5rem !important;
}

/* Override BLK Design System negative margin */
.profile-page .profile-description,
.profile-bio-card .profile-description {
  margin-top: 0;
  max-width: 100%;
}

/* ============================================
   CERTIFICATION STYLES
   ============================================ */
.cert-badge-container,
.cert-badge-wrapper {
  margin-bottom: 1rem;
}

.cert-badge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.cert-name {
  font-size: 1rem;
  font-weight: 400;
  color: var(--evan-text);
  margin-top: 0.5rem;
  margin-bottom: 0;
  text-align: center;
}

.cert-grid-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.cert-grid-row:last-child {
  margin-bottom: 0;
}

.cert-grid-item {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-title {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  color: var(--evan-accent);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.contact-description {
  font-size: 1.1rem;
  color: var(--evan-text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-contact-cta.evan-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #000fff 0%, #0220ff81 100%);
  color: #000;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-contact-cta.evan-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 255, 136, 0.6);
  color: #000;
}

.btn-contact-cta.drew-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #00a9e0 0%, #0dd4ff 100%);
  color: #000;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 169, 224, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-contact-cta.drew-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 169, 224, 0.6);
  color: #000;
}

.btn-contact-cta .icon {
  font-size: 1.3rem;
}

#contact {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

#contact .container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#contact .row {
  padding: 2rem 0 !important;
}

#contact .contact-title {
  margin-bottom: 1.5rem;
}

#contact .contact-description {
  margin-bottom: 2.5rem;
}

/* ============================================
   PROFILE & TITLE ELEMENTS
   ============================================ */
.profile-image-spacing {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.profile-title-wrapper {
  position: relative;
  padding-bottom: 2rem;
  margin-bottom: 0.5rem;
}

.section-title-wrapper {
  margin-bottom: 2rem;
}

/* ============================================
   TECHNOLOGY BADGES
   ============================================ */
.tech-badges-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
  padding: 1rem 0;
  margin-bottom: 0;
  height: 100%;
}

.tech-badges-wrapper .btn {
  font-size: 0.8rem;
  padding: 0.45rem 0.7rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.tech-badge-icon {
  width: auto;
  height: 16px;
  margin-left: 5px;
}

/* ============================================
   GITHUB METRICS
   ============================================ */
.github-metrics-card {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1rem 0;
}

.github-metrics-card img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* GitHub metrics link wrapper */
.github-metrics-link {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   LEGACY PAGE STYLES
   ============================================ */
.legacy-card-body {
  text-align: center;
}

.legacy-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.legacy-title {
  margin-bottom: 1.5rem;
}

.legacy-text {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.legacy-quote {
  margin: 1.5rem auto;
  max-width: 600px;
}

.legacy-btn-wrapper {
  text-align: center;
}

.legacy-description {
  max-width: 800px;
  line-height: 1.8;
}

/* Accent text color */
.accent-text {
  color: var(--evan-accent);
}

/* ============================================
   ERROR PAGE STYLES
   ============================================ */
.error-page-header {
  padding-bottom: 3%;
  padding-top: 8rem;
}

.error-title-wrapper {
  position: relative;
  padding-bottom: 1.5%;
}

.error-card {
  background: rgba(20, 20, 20, 0.8);
  padding: 3rem;
  border-radius: 20px;
  margin-bottom: 2rem;
}

.error-card-404 {
  border: 2px solid rgba(232, 62, 140, 0.3);
  box-shadow:
    0 8px 32px rgba(232, 62, 140, 0.2),
    inset 0 0 20px rgba(232, 62, 140, 0.05);
}

.error-card-500 {
  border: 2px solid rgba(255, 0, 0, 0.3);
  box-shadow:
    0 8px 32px rgba(255, 0, 0, 0.2),
    inset 0 0 20px rgba(255, 0, 0, 0.05);
}

.error-card-body {
  padding: 0;
  text-align: center;
}

.error-title {
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 1rem;
}

.error-title-404 {
  color: #e83e8c;
}

.error-title-500 {
  color: #ff0000;
}

.error-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.error-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.error-message-card {
  background: rgba(20, 20, 20, 0.6);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  margin-bottom: 2rem;
}

.error-blockquote {
  border-left: 3px solid rgba(0, 255, 136, 0.5);
  padding-left: 1rem;
  margin: 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

.error-ip-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.error-ip-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.error-ip-icon {
  margin-right: 0.5rem;
}

.error-btn-wrapper {
  text-align: center;
}

/* Noscript warning banner */
.noscript-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffc107;
  color: #000;
  padding: 1rem;
  text-align: center;
  z-index: 99999;
  font-family: system-ui, -apple-system, sans-serif;
}

.noscript-link {
  color: #000;
  text-decoration: underline;
}

/* Footer icon colors */
.footer-icon-org {
  color: #00ff88;
}

.footer-icon-drew {
  color: #e83e8c;
}

.footer-icon-evan {
  color: #00d9ff;
}

/* ============================================
   MISCELLANEOUS
   ============================================ */
.abuseipdb-badge {
  max-width: 400px;
  background-color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

/* Horizontal rules */
hr {
  margin: 3rem auto !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  display: block;
  width: 100%;
}

#about + hr {
  margin: 4rem auto !important;
  width: 80%;
}

/* Disable hover transforms - prevent layout shifts */
.section .col-md-12:hover,
.section .col-md-12:hover .card-header,
.section .col-md-6:hover,
.card.card-plain,
.card.card-plain:hover,
.card-coin.card-plain,
.card-coin.card-plain:hover,
.card-plain *,
.card-plain *:hover {
  transform: none !important;
  box-shadow: none !important;
  will-change: auto !important;
}

/* ============================================
   SECTION-SPECIFIC OVERRIDES
   ============================================ */
/* About */
#about .profile-title-wrapper {
  padding-bottom: 1rem;
}

#about .profile-image {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

#about > .container > .row:nth-child(3) {
  display: flex;
  align-items: stretch;
}

#about > .container > .row:nth-child(3) > .col-md-6 {
  display: flex;
  flex-direction: column;
}

#about > .container > .row:last-child {
  margin-top: 0;
  padding-top: 0;
}

/* Skills */
#skills .row > .col-md-12 {
  margin-bottom: 2.5rem;
}

#skills .row > .col-md-12:last-child {
  margin-bottom: 0;
}

#skills > .container > .row:first-child {
  margin-bottom: 2rem;
}

#skills h1 {
  margin-bottom: 0;
}

/* Certifications */
#certifications .cert-grid-row {
  margin-top: 1.5rem;
}

/* Home Lab & Hobbies - shared card body padding */
#homelab .card-body-reduced,
#hobbies .card-body-reduced {
  padding: 2.5rem 2rem !important;
}

#homelab {
  margin-top: 2.5rem;
}

#homelab .section-paragraph {
  margin-bottom: 0;
  padding-top: 0.5rem;
}

#hobbies .card-body-reduced .row {
  margin-bottom: 1.5rem;
}

#hobbies .card-body-reduced .row:last-child {
  margin-bottom: 0;
}

#hobbies .section-text {
  margin-bottom: 0.5rem;
}

#hobbies .section-text:last-of-type {
  margin-bottom: 0;
}

#hobbies .card-body .btn {
  margin-top: 1rem;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
#footer {
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--evan-border);
  background: linear-gradient(180deg, rgba(24, 20, 27, 0.8) 0%, rgba(18, 14, 21, 0.95) 100%) !important;
  margin-top: 0 !important;
}

#footer .container {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0 2.5rem 0 !important;
}

#footer .footer-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  pointer-events: none;
}

#footer h4 {
  font-family: var(--font-mono);
  color: var(--evan-accent);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

#footer h4 i {
  margin-right: 0.5rem;
}

#footer p,
#footer .footer-link,
#footer .footer-copyright span {
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

#footer p {
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto;
}

#footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

#footer .footer-link {
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.25rem 0;
}

#footer .footer-link i {
  margin-right: 0.5rem;
}

#footer .footer-link:hover {
  color: var(--evan-accent) !important;
  transform: translateX(5px);
}

#footer .footer-main-row {
  margin-bottom: 2rem;
}

#footer .row {
  margin-bottom: 1.5rem;
}

#footer .row:last-child {
  margin-bottom: 0;
}

#footer .col-lg-5,
#footer .col-md-6 {
  margin-bottom: 1.5rem;
}

#footer .footer-quote {
  border-left: 3px solid rgba(0, 255, 136, 0.5);
  padding-left: 1rem;
  font-style: italic;
  margin-bottom: 2rem;
}

#footer .footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--evan-accent), var(--evan-accent-alt), transparent);
  margin: 2rem 0;
}

#footer .footer-copyright {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

#footer .footer-copyright .icon-world {
  font-size: 1rem;
  vertical-align: middle;
  margin-right: 0.3rem;
  color: var(--evan-accent);
}

#footer .footer-copyright .bracket {
  color: var(--evan-accent);
}

#footer .footer-copyright .heart {
  color: #ff0080;
}

#footer .footer-grid-lines {
  background-image:
    linear-gradient(90deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  width: 100%;
  height: 100%;
  animation: footer-grid-move 20s linear infinite;
}

@keyframes footer-grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* ============================================
   RESPONSIVE: TABLET (max-width: 991.98px)
   ============================================ */
@media (max-width: 991.98px) {
  :root {
    --scroll-margin: 90px;
  }

  .section {
    padding: 2.5rem 0 !important;
  }

  .section-top-padding {
    padding-top: 5rem !important;
  }

  #footer .container {
    padding: 2.5rem 1rem 2rem 1rem !important;
  }

  #footer .col-lg-5,
  #footer .col-md-6 {
    text-align: center !important;
  }

  #footer .col-lg-5 div,
  #footer .col-md-6 div {
    align-items: center !important;
  }

  #footer .footer-copyright {
    gap: 1rem;
    flex-direction: column;
  }

  #contact {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

/* ============================================
   RESPONSIVE: MOBILE (max-width: 767.98px)
   ============================================ */
@media (max-width: 767.98px) {
  :root {
    --scroll-margin: 80px;
  }

  /* Section spacing */
  .section {
    padding: 1.5rem 0 !important;
    overflow-x: hidden;
    max-width: 100vw;
  }

  .section-top-padding {
    padding-top: 4.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .section-bottom-spacing {
    margin-bottom: 1.5rem;
  }

  .section .container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Row fixes for mobile */
  .section .row {
    max-width: 100%;
  }

  .section .row > [class*='col-'] {
    padding-left: 10px;
    padding-right: 10px;
  }

  .section .row + .row,
  .row + .row {
    margin-top: 1rem;
  }

  /* Unified content text - mobile */
  .profile-description,
  .section-text,
  .section-paragraph {
    font-size: 0.95rem;
    line-height: 1.85;
    letter-spacing: 0.01em;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: 0;
    margin-right: 0;
  }

  .section-paragraph {
    hyphens: none;
    -webkit-hyphens: none;
  }

  .section-text {
    margin-bottom: 0.35rem;
  }

  /* Card body - mobile */
  .card-body-reduced {
    padding: 1.25rem !important;
  }

  .card-body-reduced .row > [class*='col-'] {
    padding-left: 0;
    padding-right: 0;
  }

  .card-body-reduced p {
    line-height: 1.85;
  }

  .section .card.card-coin {
    padding: 0 !important;
  }

  /* Card titles - mobile */
  .card-coin.card-plain .card-body h3 {
    font-size: 1rem;
    letter-spacing: 0.08em;
    line-height: 1.4;
  }

  .card-coin.card-plain .card-body .section-text {
    margin-bottom: 0.35rem;
  }

  .card-coin.card-plain .card-body hr {
    margin: 0.5rem auto 1rem auto !important;
    width: 30% !important;
  }

  /* Profile bio card - mobile */
  .profile-bio-card {
    padding: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .profile-bio-card .card-body {
    padding: 1rem 0.5rem 0.5rem 0.5rem !important;
    max-width: 100%;
    overflow: visible;
  }

  /* Profile elements - mobile */
  .profile-image {
    width: 150px !important;
    height: 150px !important;
  }

  .profile-image-spacing {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .profile-title-wrapper {
    padding-bottom: 1rem;
    margin-bottom: 0;
  }

  .profile-title-wrapper .text-on-back {
    font-size: 4rem;
  }

  .profile-title-wrapper .profile-title {
    font-size: 1.5rem;
  }

  .section-title-wrapper {
    margin-bottom: 1.25rem;
  }

  .section-title-wrapper h1 {
    font-size: 1.5rem;
  }

  /* Tech badges - mobile */
  .tech-badges-wrapper {
    gap: 0.4rem;
    padding: 0 0.5rem;
  }

  .tech-badges-wrapper .btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

  .tech-badge-icon {
    height: 12px;
    margin-left: 4px;
  }

  /* GitHub metrics - mobile */
  .github-metrics-card {
    margin-top: 1.5rem;
    max-width: 100%;
    overflow: hidden;
  }

  .github-metrics-card img {
    width: 100%;
  }

  /* Contact - mobile */
  .contact-title {
    font-size: 1.8rem;
  }

  .contact-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
    line-height: 1.7;
  }

  #contact {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  #contact .row {
    padding: 1rem 0 !important;
  }

  /* Certifications - mobile */
  .cert-badge-wrapper {
    margin-bottom: 1.5rem;
  }

  .cert-grid-row {
    gap: 1rem;
  }

  .cert-grid-item {
    min-width: 45%;
    max-width: 48%;
  }

  .cert-name {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* Skills - mobile */
  #skills .row > .col-md-12 {
    margin-bottom: 1.5rem;
  }

  /* About - mobile */
  #about .row .col-md-6 {
    margin-bottom: 1rem;
    padding-left: 10px;
    padding-right: 10px;
  }

  #about .row .col-md-6:last-child {
    margin-bottom: 0;
  }

  /* Home Lab - mobile */
  #homelab {
    margin-top: 1rem;
  }

  /* Hobbies - mobile */
  #hobbies .section-text {
    margin-bottom: 0.25rem;
  }

  /* Card headers - mobile */
  .card-header {
    padding: 0.75rem 1rem;
  }

  /* HR - mobile */
  #about + hr {
    margin: 2rem 0 !important;
  }

  /* Footer - mobile */
  #footer .container {
    padding: 2rem 1rem 1.5rem 1rem !important;
  }

  #footer h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  #footer p,
  #footer .footer-link,
  #footer .footer-copyright span {
    font-size: 0.8rem;
  }

  #footer p {
    line-height: 1.5;
  }

  #footer .footer-link {
    padding: 0.2rem 0;
  }

  #footer .footer-divider {
    margin: 1.25rem 0;
  }

  #footer .footer-main-row {
    margin-bottom: 1rem;
  }

  #footer .col-lg-5,
  #footer .col-md-6 {
    margin-bottom: 1rem;
  }
}

/* ============================================
   RESPONSIVE: SMALL MOBILE (max-width: 575.98px)
   ============================================ */
@media (max-width: 575.98px) {
  .section-top-padding {
    padding-top: 4rem !important;
  }

  /* Content text - small mobile */
  .profile-description,
  .section-text,
  .section-paragraph {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .section-text {
    line-height: 1.7;
  }

  /* Card body - small mobile */
  .card-body-reduced {
    padding: 0.75rem 0.25rem !important;
  }

  /* Card titles - small mobile */
  .card-coin.card-plain .card-body h3 {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
  }

  .card-coin.card-plain .card-body .section-text {
    margin-bottom: 0.4rem;
    line-height: 1.8;
  }

  .card-coin.card-plain .card-body hr {
    margin: 0.5rem auto 0.75rem auto !important;
    width: 35% !important;
  }

  /* Profile bio card - small mobile */
  .profile-bio-card {
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .profile-bio-card .card-body {
    padding: 0.75rem 0.25rem 0.25rem 0.25rem !important;
  }

  .profile-image {
    width: 130px !important;
    height: 130px !important;
  }

  .section-title-wrapper h1 {
    font-size: 1.25rem;
  }

  /* Tech badges - small mobile */
  .tech-badges-wrapper .btn {
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
  }

  .tech-badge-icon {
    height: 10px;
    margin-left: 3px;
  }

  /* Contact - small mobile */
  .contact-title {
    font-size: 1.5rem;
  }

  .contact-description {
    font-size: 0.9rem;
    padding: 0 0.75rem;
    line-height: 1.65;
  }

  .btn-contact-cta.evan-accent,
  .btn-contact-cta.drew-accent {
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
  }

  #contact {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* Certifications - small mobile */
  .cert-grid-item {
    min-width: 100%;
    max-width: 100%;
  }

  .cert-name {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  /* Footer - small mobile */
  #footer .container {
    padding: 1.5rem 0.75rem 1.25rem 0.75rem !important;
  }

  #footer h4 {
    font-size: 0.9rem;
  }

  #footer p,
  #footer .footer-link,
  #footer .footer-copyright span {
    font-size: 0.75rem;
  }
}
