/* ============================================================
   Abdul Qayyam Portfolio - Crimson Theme (High-Performance 120Hz)
   Color Palette: Crimson Red (#ff3b30), Warm Gold (#ffb703),
   Contrasted Dark Surfaces (#151726, #1c1f32, #21253c)
   Full Device & Mobile Responsive Suite
   ============================================================ */

:root {
  /* Core Palette */
  --accent-red: #ff3b30;
  --accent-red-hover: #ff5247;
  --accent-gold: #ffb703;
  --accent-cyan: #00d2ff;

  /* Layered Contrasted Surfaces */
  --bg-body-base: #0e0f18;
  --bg-chassis: #151726;
  --bg-sidebar: #10121d;
  --bg-section: #151726;
  --bg-floating-nav: #181a2b;

  --bg-card: #1c1f32;
  --bg-card-hover: #242842;

  /* Text Colors */
  --text-main: #ffffff;
  --text-muted: #a6aab8;
  --text-subtle: #767b8e;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-red: rgba(255, 59, 48, 0.4);
  --border-red-glow: rgba(255, 59, 48, 0.7);

  /* Fonts */
  --font-hero: 'Montserrat', sans-serif;
  --font-sub: 'Outfit', sans-serif;
  --font-body: 'Inter', 'Poppins', sans-serif;

  /* Shadows */
  --shadow-chassis: 0 25px 65px rgba(0, 0, 0, 0.75), 0 0 40px rgba(255, 59, 48, 0.12);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 59, 48, 0.25);
  --shadow-red-button: 0 12px 30px rgba(255, 59, 48, 0.45);
}

/* ============================================================
   1. Canvas & Base Resets
   ============================================================ */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  background: radial-gradient(circle at 10% 15%, rgba(255, 59, 48, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(255, 183, 3, 0.12) 0%, transparent 45%),
    #0e0f18 !important;
  color: var(--text-muted) !important;
  font-family: var(--font-body) !important;
  overflow-x: hidden !important;
  width: 100%;
  min-height: 100vh;
}

/* Interactive Parallax Background Pattern */
.lm-animated-bg {
  opacity: 0.8 !important;
  filter: contrast(1.1) !important;
  will-change: background-position;
}

/* Page Container Defaults */
.page {
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
}

.page-content {
  background-color: var(--bg-chassis) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: var(--shadow-chassis) !important;
  transform: translateZ(0);
  box-sizing: border-box;
}

.content-area {
  overflow: hidden !important;
  box-sizing: border-box;
}

.animated-sections {
  overflow: hidden !important;
  box-sizing: border-box;
}

.header {
  background-color: var(--bg-sidebar) !important;
  box-sizing: border-box;
}

/* Active Subpage Sections with Native Smooth Touch Scroll */
.animated-section {
  background-color: var(--bg-section) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  transform: translateZ(0);
  box-sizing: border-box;
}

/* Sleek Floating Custom Scrollbars */
.animated-section::-webkit-scrollbar,
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.animated-section::-webkit-scrollbar-track,
::-webkit-scrollbar-track {
  background: transparent !important;
}

.animated-section::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18) !important;
  border-radius: 10px !important;
}

.animated-section::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red) !important;
}

::selection {
  background: var(--accent-red);
  color: #ffffff;
}

/* ============================================================
   2. Typography & Headings
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main) !important;
  font-family: var(--font-sub) !important;
  font-weight: 700;
}

p,
li,
span {
  color: var(--text-muted);
}

b,
strong {
  color: var(--text-main);
}

/* Home Subpage Titles & Shimmer Shine Line */
.title-block h2 {
  font-family: var(--font-hero) !important;
  font-weight: 800 !important;
  font-size: clamp(32px, 5.5vw, 52px) !important;
  letter-spacing: -0.5px !important;
  background: linear-gradient(120deg,
      #e2e4ed 0%,
      #e2e4ed 38%,
      #ffffff 46%,
      #ffffff 49%,
      #ff4d40 50.5%,
      #ffffff 52%,
      #ffffff 55%,
      #e2e4ed 63%,
      #e2e4ed 100%) !important;
  background-size: 260% 100% !important;
  color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: shineLineLeftToRight 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
  display: inline-block !important;
  filter: drop-shadow(0 0 20px rgba(255, 59, 48, 0.25));
  margin-bottom: 8px;
}

@keyframes shineLineLeftToRight {
  0% {
    background-position: 130% 0;
  }

  65%,
  100% {
    background-position: -130% 0;
  }
}

.title-block .sp-subtitle {
  color: var(--accent-red) !important;
  font-family: var(--font-sub) !important;
  font-weight: 600 !important;
  font-size: clamp(15px, 2.2vw, 19px) !important;
  text-shadow: 0 0 12px rgba(255, 59, 48, 0.35);
}

/* Subpage Titles */
.page-title h2 {
  font-family: var(--font-hero) !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px;
  color: var(--text-main) !important;
  font-size: clamp(24px, 4vw, 32px) !important;
}

.page-title h2 span,
.block-title h3 span {
  color: var(--accent-red) !important;
  text-shadow: 0 0 15px rgba(255, 59, 48, 0.45);
}

.block-title h3 {
  font-family: var(--font-hero) !important;
  font-weight: 700 !important;
  letter-spacing: -0.3px;
  font-size: clamp(18px, 3vw, 22px) !important;
}

/* Highlight Utilities */
.text-accent {
  color: var(--accent-red) !important;
  text-shadow: 0 0 10px rgba(255, 59, 48, 0.35);
}

.text-gold {
  color: var(--accent-gold) !important;
}

.text-cyan {
  color: var(--accent-cyan) !important;
}

/* ============================================================
   3. Profile Photo & DonVision Wave CTA Button
   ============================================================ */
.header-photo {
  border-radius: 50%;
  padding: 3px;
  background: var(--accent-red);
  box-shadow: 0 0 30px rgba(255, 59, 48, 0.55);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  margin: 0 auto 20px auto;
  max-width: 140px;
}

.header-photo img {
  border-radius: 50%;
  display: block;
  width: 100%;
  height: auto;
}

.header-photo:hover {
  transform: scale(1.04);
  box-shadow: 0 0 45px rgba(255, 59, 48, 0.8), 0 0 20px rgba(255, 183, 3, 0.4);
}

.header-titles h2 {
  font-family: var(--font-hero) !important;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: clamp(22px, 3vw, 28px) !important;
  background: linear-gradient(120deg,
      #e2e4ed 0%,
      #e2e4ed 38%,
      #ffffff 46%,
      #ffffff 49%,
      #ff4d40 50.5%,
      #ffffff 52%,
      #ffffff 55%,
      #e2e4ed 63%,
      #e2e4ed 100%) !important;
  background-size: 260% 100% !important;
  color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: shineLineLeftToRight 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
  display: inline-block;
  margin: 0 0 6px 0;
}

.header-titles h4 {
  color: var(--text-muted) !important;
  font-family: var(--font-sub) !important;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.4;
  margin: 0 0 4px 0;
}

/* DonVision Signature Red Wave Button */
.header-buttons .btn-primary,
.btn-primary {
  background: var(--accent-red) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-family: var(--font-sub) !important;
  font-weight: 700 !important;
  font-size: 14px;
  border-radius: 14px !important;
  padding: 12px 24px !important;
  box-shadow: var(--shadow-red-button) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.2s !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
}

.header-buttons .btn-primary::after,
.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 25%, rgba(255, 255, 255, 0.35) 50%, transparent 75%);
  transform: translate(-150%);
  pointer-events: none;
}

.header-buttons .btn-primary:hover::after,
.btn-primary:hover::after {
  animation: 1.2s linear infinite donvisionWave;
}

@keyframes donvisionWave {
  0% {
    transform: translate(-150%);
  }

  100% {
    transform: translate(200%);
  }
}

.header-buttons .btn-primary:hover,
.btn-primary:hover {
  background: var(--accent-red-hover) !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 16px 36px rgba(255, 59, 48, 0.7), 0 0 20px rgba(255, 183, 3, 0.3) !important;
  color: #ffffff !important;
}

/* Social Media Links */
.social-links {
  margin: 18px 0;
  text-align: center;
  width: 100%;
}

.social-links ul {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.social-links ul li {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.social-links ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.social-links ul li a svg.social-icon-svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  transition: all 0.3s ease;
  display: block;
}

.social-links ul li a i {
  font-size: 16px;
  line-height: 1;
}

.social-links ul li a:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px rgba(255, 59, 48, 0.55);
}

.social-links ul li a:hover svg.social-icon-svg {
  fill: #ffffff;
}

/* ============================================================
   4. Personal Info Box (About Me)
   ============================================================ */
.info-list ul {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  margin: 0;
  list-style: none;
}

.info-list ul li {
  border-bottom: 1px solid var(--border-subtle);
  padding: 9px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.info-list ul li:last-child {
  border-bottom: none;
}

.info-list ul li .title {
  color: var(--text-subtle);
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 14px;
}

.info-list ul li .value {
  color: var(--text-main);
  font-weight: 600;
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.3);
  padding: 3px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
  word-break: break-word;
}

.info-list ul li a.value:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 59, 48, 0.45);
}

/* ============================================================
   5. Services / Info Blocks ("What I Do")
   ============================================================ */
.info-block-w-icon {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 18px !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s !important;
  box-shadow: var(--shadow-card) !important;
  position: relative;
  overflow: hidden;
}

.info-block-w-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-red), var(--accent-gold));
  opacity: 0.8;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.info-block-w-icon:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover) !important;
  border-color: rgba(255, 59, 48, 0.55) !important;
  box-shadow: var(--shadow-card-hover) !important;
}

.info-block-w-icon:hover::before {
  opacity: 1;
  width: 6px;
}

.info-block-w-icon .ci-icon {
  color: var(--accent-red) !important;
  font-size: 32px;
  margin-bottom: 12px;
  text-shadow: 0 0 16px rgba(255, 59, 48, 0.6);
}

.info-block-w-icon .ci-text h4 {
  color: var(--text-main) !important;
  font-size: 18px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 12px;
}

.info-block-w-icon ul {
  padding-left: 18px;
}

.info-block-w-icon ul li {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 8px;
}

/* ============================================================
   6. Client Guarantees Strip (About Me)
   ============================================================ */
.guarantees-strip {
  margin-top: 5px;
  margin-bottom: 5px;
}

.guarantee-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 20px;
  height: calc(100% - 20px);
  min-height: 130px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
}

.guarantee-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 59, 48, 0.55);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card-hover);
}

.guarantee-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 59, 48, 0.09);
  border: 1px solid rgba(255, 59, 48, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.guarantee-icon i {
  color: var(--accent-red) !important;
  font-size: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  transition: all 0.3s ease;
}

.guarantee-item:hover .guarantee-icon {
  background: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(255, 59, 48, 0.6);
}

.guarantee-item:hover .guarantee-icon i {
  color: #ffffff !important;
}

.guarantee-item h5 {
  font-family: var(--font-hero);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px 0;
  letter-spacing: -0.2px;
}

.guarantee-item span {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  display: block;
}

/* ============================================================
   7. Testimonials (Equal Height Cards)
   ============================================================ */
.testimonials.owl-carousel .owl-stage-outer {
  padding: 10px 0 20px 0;
}

.testimonials.owl-carousel .owl-stage {
  display: flex !important;
  align-items: stretch !important;
}

.testimonials.owl-carousel .owl-item {
  display: flex !important;
  height: auto !important;
}

.testimonials .testimonial {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 18px !important;
  padding: 24px 22px !important;
  box-shadow: var(--shadow-card) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.testimonials .testimonial:hover {
  border-color: rgba(255, 59, 48, 0.55) !important;
  background: var(--bg-card-hover) !important;
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover) !important;
}

.testimonials .testimonial-header h3 {
  font-size: 18px !important;
  font-family: var(--font-hero) !important;
  font-weight: 800 !important;
  margin: 0 0 12px 0 !important;
  color: var(--text-main) !important;
}

.testimonials .testimonial-header h3 span {
  color: var(--accent-red) !important;
}

.testimonials .testimonial .text {
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.testimonials .testimonial .text p {
  color: var(--text-muted) !important;
  line-height: 1.75 !important;
  font-size: 14px !important;
  font-style: italic !important;
  margin: 0 !important;
}

.testimonials .testimonial .text strong {
  color: var(--text-main) !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  font-style: normal !important;
  transition: color 0.2s ease !important;
}

.testimonials .testimonial .text strong:hover {
  color: var(--accent-red) !important;
}

/* ============================================================
   8. Core Tech Stack & Architecture Grid
   ============================================================ */
.tech-stack-grid {
  margin-top: 5px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px 20px;
  margin-bottom: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  height: calc(100% - 24px);
  display: flex;
  flex-direction: column;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 59, 48, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 59, 48, 0.45);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card-hover);
}

.tech-card:hover::before {
  opacity: 1;
}

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

.tech-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.tech-icon-wrap i {
  font-size: 20px !important;
  color: var(--accent-red) !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  transition: all 0.3s ease;
}

.tech-card:hover .tech-icon-wrap {
  background: rgba(255, 59, 48, 0.2);
  border-color: var(--accent-red);
  transform: scale(1.06);
  box-shadow: 0 0 16px rgba(255, 59, 48, 0.4);
}

.tech-card:hover .tech-icon-wrap i {
  color: #ffffff !important;
}

.tech-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-gold);
  background: rgba(255, 183, 3, 0.08);
  border: 1px solid rgba(255, 183, 3, 0.25);
  padding: 3px 9px;
  border-radius: 20px;
}

.tech-card h4 {
  font-size: 16px;
  font-family: var(--font-hero);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.tech-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* ============================================================
   9. Performance & Impact Metrics (Fun Facts Upgrade)
   ============================================================ */
.metrics-grid {
  margin-top: 5px;
}

.metrics-grid .fun-fact {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 18px !important;
  padding: 24px 16px !important;
  text-align: center;
  margin-bottom: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card) !important;
  height: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.metrics-grid .fun-fact:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 59, 48, 0.6) !important;
  background: var(--bg-card-hover) !important;
  box-shadow: var(--shadow-card-hover) !important;
}

.metric-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.09);
  border: 1px solid rgba(255, 59, 48, 0.2);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 14px auto !important;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.metric-icon-wrap i,
.metrics-grid .fun-fact .metric-icon-wrap i,
.fun-fact .metric-icon-wrap i {
  font-size: 20px !important;
  color: var(--accent-red) !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  transition: all 0.3s ease;
}

.metrics-grid .fun-fact:hover .metric-icon-wrap {
  background: rgba(255, 59, 48, 0.22);
  border-color: var(--accent-red);
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(255, 59, 48, 0.45);
}

.metrics-grid .fun-fact:hover .metric-icon-wrap i,
.fun-fact:hover .metric-icon-wrap i {
  color: var(--accent-gold) !important;
}

.metrics-grid .fun-fact-block-value {
  font-size: 30px;
  font-family: var(--font-hero);
  font-weight: 800;
  color: var(--text-main);
  display: block;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  line-height: 1.1;
}

.metrics-grid .fun-fact h4 {
  font-size: 15px;
  font-family: var(--font-hero);
  color: #ffffff;
  margin-bottom: 6px;
  font-weight: 700;
}

.metric-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* ============================================================
   10. Timeline (Education & Experience)
   ============================================================ */
.timeline-second-style .timeline-item {
  margin-bottom: 24px;
}

.timeline-second-style .left-part {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 16px;
}

.timeline-second-style .item-period {
  color: var(--accent-red);
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 4px 0;
}

.timeline-second-style .item-company {
  color: var(--text-subtle);
  font-size: 13px;
  font-weight: 500;
}

.timeline-second-style .divider {
  background: var(--border-subtle);
}

.timeline-second-style .divider:after {
  background-color: var(--accent-red);
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.8);
  border-color: #151726;
}

.timeline-second-style .right-part {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px 24px;
  transition: all 0.25s ease;
}

.timeline-second-style .timeline-item:hover .right-part {
  border-color: var(--border-red);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-card-hover);
}

.timeline-second-style .right-part .item-title {
  color: var(--text-main) !important;
  font-family: var(--font-sub) !important;
  font-weight: 700;
  font-size: 17px;
  margin-top: 0;
  margin-bottom: 8px;
}

.timeline-second-style .right-part p,
.timeline-second-style .right-part li {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ============================================================
   11. Key Achievements & Developer Profiles (Resume Page)
   ============================================================ */
.achievements-grid {
  margin-top: 5px;
}

.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px 20px;
  margin-bottom: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
  height: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 59, 48, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 59, 48, 0.5);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card-hover);
}

.achievement-card:hover::before {
  opacity: 1;
}

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

.achievement-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 59, 48, 0.09);
  border: 1px solid rgba(255, 59, 48, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.achievement-icon-wrap i {
  font-size: 20px !important;
  color: var(--accent-red) !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon-wrap {
  background: rgba(255, 59, 48, 0.22);
  border-color: var(--accent-red);
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(255, 59, 48, 0.45);
}

.achievement-card:hover .achievement-icon-wrap i {
  color: var(--accent-gold) !important;
}

.achievement-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-gold);
  background: rgba(255, 183, 3, 0.08);
  border: 1px solid rgba(255, 183, 3, 0.25);
  padding: 3px 9px;
  border-radius: 20px;
}

.achievement-card h4 {
  font-size: 16px;
  font-family: var(--font-hero);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.achievement-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.achievement-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-red);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.achievement-link i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.achievement-link:hover {
  color: var(--accent-gold);
}

.achievement-link:hover i {
  transform: translateX(4px);
}

/* ============================================================
   12. Portfolio Grid & Cards (Creator Showcase)
   ============================================================ */
.portfolio-grid,
.grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 20px !important;
  justify-content: center !important;
  padding: 15px 5px 25px 5px !important;
}

.card {
  position: relative !important;
  background: var(--bg-card) !important;
  border-radius: 16px !important;
  border: 1px solid var(--border-subtle) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-card) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 10px !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
}

.card .card-img-top,
.card img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease !important;
  display: block !important;
}

/* Hover: Blur & Darken image */
.card:hover .card-img-top,
.card:hover img {
  transform: scale(1.08) !important;
  filter: blur(5px) brightness(0.35) !important;
}

/* Hover: Pop creator/project title in middle */
.card-overlay {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
  text-align: center !important;
  z-index: 5 !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transform: scale(0.75) !important;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.card:hover .card-overlay {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.card-title {
  font-family: var(--font-hero) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.2px !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 16px rgba(255, 59, 48, 0.7) !important;
  background: rgba(14, 15, 24, 0.9) !important;
  border: 1px solid rgba(255, 59, 48, 0.55) !important;
  border-radius: 10px !important;
  padding: 7px 14px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 16px rgba(255, 59, 48, 0.4) !important;
  display: inline-block !important;
  white-space: nowrap !important;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card:hover {
  transform: translateY(-6px) scale(1.015) !important;
  background: var(--bg-card-hover) !important;
  border-color: rgba(255, 59, 48, 0.6) !important;
  box-shadow: var(--shadow-card-hover) !important;
}

/* "Your name could be next" Outline Box */
.card-next-cta {
  border: 2px dashed rgba(255, 59, 48, 0.45) !important;
  background: rgba(28, 31, 50, 0.55) !important;
  min-height: 160px;
  text-decoration: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 18px 12px !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card-next-cta .next-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.card-next-cta .next-cta-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  font-size: 18px;
  transition: all 0.3s ease;
}

.card-next-cta .next-cta-text {
  font-family: var(--font-hero);
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin: 0;
  transition: color 0.3s ease;
}

.card-next-cta:hover {
  border: 2px dashed var(--accent-red) !important;
  background: rgba(255, 59, 48, 0.12) !important;
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 59, 48, 0.35) !important;
}

.card-next-cta:hover .next-cta-icon {
  background: var(--accent-red);
  color: #ffffff;
  transform: scale(1.12) rotate(90deg);
  box-shadow: 0 0 18px rgba(255, 59, 48, 0.6);
}

.card-next-cta:hover .next-cta-text {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 59, 48, 0.6);
}

/* ============================================================
   13. Interactive Commission Modal
   ============================================================ */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

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

.custom-modal-dialog {
  background: #141624;
  border: 1px solid rgba(255, 59, 48, 0.4);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 59, 48, 0.2);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: border-box;
}

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

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
}

.modal-header-content {
  text-align: center;
  margin-bottom: 20px;
  padding-right: 25px;
  padding-left: 25px;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(255, 183, 3, 0.1);
  border: 1px solid rgba(255, 183, 3, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.modal-header-content h3 {
  font-family: var(--font-hero);
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 6px 0;
}

.modal-header-content h3 span {
  color: var(--accent-red);
}

.modal-header-content p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.modal-step-card {
  background: rgba(22, 25, 41, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-info {
  flex-grow: 1;
  min-width: 0;
}

.step-info h4 {
  font-size: 13.5px;
  color: var(--text-main);
  font-weight: 700;
  margin: 0 0 2px 0;
}

.step-info p {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0;
}

.btn-copy-action,
.btn-join-action {
  background: rgba(255, 59, 48, 0.14);
  border: 1px solid rgba(255, 59, 48, 0.35);
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-copy-action:hover,
.btn-join-action:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 59, 48, 0.4);
}

.btn-copy-action.copied {
  background: #2ecc71;
  border-color: #2ecc71;
}

.modal-template-box {
  background: rgba(14, 15, 24, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 14px;
}

.template-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--accent-gold);
  font-weight: 700;
  gap: 8px;
}

.btn-copy-template {
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.3);
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-copy-template:hover {
  background: var(--accent-gold);
  color: #0e0f18;
}

.btn-copy-template.copied {
  background: #2ecc71;
  border-color: #2ecc71;
  color: #ffffff;
}

.modal-template-box pre {
  margin: 0;
  font-family: 'Inter', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  white-space: pre-wrap;
  user-select: all;
  max-height: 140px;
  overflow-y: auto;
}

/* ============================================================
   14. Mobile Backdrop Overlay
   ============================================================ */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 18, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ============================================================
   15. Responsive Architecture & Media Queries
   ============================================================ */

/* ------------------------------------------------------------
   Desktop Layout (min-width: 1025px)
   ------------------------------------------------------------ */
@media only screen and (min-width: 1025px) {
  .page {
    padding: 0 100px;
  }

  .page-content {
    max-width: 1280px;
    min-height: 80vh;
    margin: 10vh auto;
    border-radius: 32px !important;
  }

  .content-area {
    border-radius: 0 32px 32px 0 !important;
    max-width: calc(100% - 380px) !important;
  }

  .animated-sections {
    border-radius: 0 32px 32px 0 !important;
  }

  .header {
    border-right: 1px solid var(--border-subtle) !important;
    border-radius: 32px 0 0 32px !important;
    max-width: 380px !important;
    width: 100% !important;
    display: inline-block;
    float: left;
    height: 100%;
    min-height: inherit;
    text-align: center;
    padding: 60px 30px 40px;
    overflow: auto;
  }

  .animated-section {
    border-radius: 0 30px 30px 0 !important;
  }

  /* Desktop Floating Right Navigation Menu */
  ul.main-menu {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    right: -90px !important;
    z-index: 999 !important;
    background-color: var(--bg-floating-nav) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    border-radius: 35px !important;
    padding: 15px 0 !important;
    width: 70px !important;
  }

  ul.main-menu a {
    color: #8c90a2 !important;
    transition: all 0.25s ease !important;
  }

  ul.main-menu a.active,
  ul.main-menu a:hover,
  ul.main-menu a:focus {
    color: var(--accent-red) !important;
  }

  ul.main-menu a.active .menu-icon,
  ul.main-menu a:hover .menu-icon {
    color: var(--accent-red) !important;
    text-shadow: 0 0 14px rgba(255, 59, 48, 0.7);
  }

  ul.main-menu .link-text {
    background-color: var(--accent-red) !important;
    color: #ffffff !important;
    font-family: var(--font-sub) !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4) !important;
  }

  /* Desktop Floating Arrows Nav */
  .lmpixels-arrows-nav {
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    right: -80px !important;
    z-index: 98 !important;
    background-color: var(--bg-floating-nav) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    border-radius: 35px !important;
    padding: 10px 0 !important;
    width: 60px !important;
  }

  .lmpixels-arrows-nav div {
    color: #8c90a2 !important;
  }

  .lmpixels-arrows-nav div:hover {
    color: var(--accent-red) !important;
    text-shadow: 0 0 12px rgba(255, 59, 48, 0.7);
  }

  .menu-toggle {
    display: none !important;
  }
}

/* ------------------------------------------------------------
   Laptop / Wide Tablet Offset Adjustment (1025px - 1280px)
   ------------------------------------------------------------ */
@media only screen and (min-width: 1025px) and (max-width: 1280px) {
  .page {
    padding: 0 85px 0 20px;
  }

  .header {
    max-width: 320px !important;
    padding: 45px 20px 30px;
  }

  .content-area {
    max-width: calc(100% - 320px) !important;
  }
}

/* ------------------------------------------------------------
   Tablets & Mobile Devices (max-width: 1024px)
   ------------------------------------------------------------ */
@media only screen and (max-width: 1024px) {
  .page {
    padding: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
  }

  .page-content {
    margin: 0 !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 100vh !important;
    border: none !important;
    box-shadow: none !important;
  }

  .content-area {
    border-radius: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 100vh !important;
  }

  .animated-sections {
    border-radius: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
  }

  .animated-section {
    border-radius: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    padding: 30px 24px 90px 24px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Sleek Modern Red Hamburger Menu Toggle */
  .menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    top: 14px !important;
    right: 14px !important;
    width: 48px !important;
    height: 48px !important;
    background: rgba(20, 22, 36, 0.95) !important;
    border: 1px solid rgba(255, 59, 48, 0.5) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65), 0 0 16px rgba(255, 59, 48, 0.35) !important;
    border-radius: 14px !important;
    z-index: 10001 !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .menu-toggle:hover {
    border-color: var(--accent-red) !important;
    box-shadow: 0 6px 24px rgba(255, 59, 48, 0.5) !important;
    transform: scale(1.04);
  }

  .menu-toggle span {
    display: block !important;
    position: absolute !important;
    height: 2.5px !important;
    width: 22px !important;
    background: #ffffff !important;
    border-radius: 3px !important;
    left: 12px !important;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .menu-toggle span:nth-child(1) {
    top: 15px !important;
  }

  .menu-toggle span:nth-child(2) {
    top: 22.5px !important;
  }

  .menu-toggle span:nth-child(3) {
    top: 30px !important;
  }

  .menu-toggle.open span:nth-child(1) {
    top: 22.5px !important;
    transform: rotate(45deg) !important;
    background: var(--accent-red) !important;
  }

  .menu-toggle.open span:nth-child(2) {
    width: 0 !important;
    opacity: 0 !important;
  }

  .menu-toggle.open span:nth-child(3) {
    top: 22.5px !important;
    transform: rotate(-45deg) !important;
    background: var(--accent-red) !important;
  }

  /* Mobile Slide-In Header Drawer */
  .header {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 320px !important;
    height: 100% !important;
    max-height: 100% !important;
    background: rgba(16, 18, 29, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-left: 1px solid var(--border-subtle) !important;
    border-right: none !important;
    border-radius: 0 !important;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.85) !important;
    z-index: 10000 !important;
    padding: 30px 22px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-align: center !important;
  }

  .header.mobile-menu-hide {
    transform: translateX(105%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .header .header-photo {
    max-width: 110px !important;
    margin: 0 auto 16px auto !important;
  }

  .header .header-titles h2 {
    font-size: 24px !important;
    margin-bottom: 6px !important;
  }

  .header .header-titles h4 {
    font-size: 13px !important;
  }

  /* Mobile Drawer Vertical Main Menu */
  ul.main-menu {
    position: static !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 20px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  ul.main-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    list-style: none !important;
  }

  ul.main-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    background: rgba(28, 31, 50, 0.65) !important;
    border: 1px solid var(--border-subtle) !important;
    color: #ffffff !important;
    font-family: var(--font-sub) !important;
    font-weight: 600 !important;
    font-size: 14.5px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box !important;
  }

  ul.main-menu a:hover,
  ul.main-menu a.active {
    background: rgba(255, 59, 48, 0.18) !important;
    border-color: var(--accent-red) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.25) !important;
    transform: translateX(3px);
  }

  ul.main-menu a .menu-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 1 !important;
    color: var(--accent-red) !important;
    position: static !important;
  }

  ul.main-menu a .link-text {
    display: inline !important;
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  /* Drawer Social Links & Commission Button */
  .header .social-links {
    margin: 15px 0 !important;
  }

  .header .header-buttons {
    width: 100% !important;
    margin: 10px 0 !important;
  }

  .header .header-buttons .btn-primary {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 14px !important;
    font-size: 13.5px !important;
  }

  .header .copyrights {
    position: static !important;
    width: 100% !important;
    margin-top: 18px !important;
    font-size: 12px !important;
  }

  /* Mobile Floating Arrows Navigation */
  .lmpixels-arrows-nav {
    display: block !important;
    position: fixed !important;
    bottom: 16px !important;
    right: 16px !important;
    width: 44px !important;
    padding: 6px 0 !important;
    border-radius: 22px !important;
    background: rgba(20, 22, 36, 0.94) !important;
    border: 1px solid rgba(255, 59, 48, 0.45) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 59, 48, 0.3) !important;
    z-index: 9997 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  .lmpixels-arrows-nav div {
    font-size: 18px !important;
    padding: 4px 0 !important;
    color: #ffffff !important;
  }

  /* Home Section Centering */
  .section-content.vcentered {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 75vh !important;
    text-align: center !important;
  }
}

/* ------------------------------------------------------------
   Small Tablets & Mobile Phones (max-width: 768px)
   ------------------------------------------------------------ */
@media only screen and (max-width: 768px) {
  .animated-section {
    padding: 24px 16px 85px 16px !important;
  }

  /* Subpage Titles */
  .page-title {
    margin-bottom: 22px !important;
  }

  .page-title h2 {
    font-size: 26px !important;
  }

  .block-title {
    margin-bottom: 18px !important;
  }

  .block-title h3 {
    font-size: 19px !important;
  }

  /* Home Titles */
  .title-block h2 {
    font-size: clamp(30px, 7.5vw, 42px) !important;
  }

  .title-block .sp-subtitle {
    font-size: 16px !important;
  }

  /* Guarantees 2x2 Grid */
  .guarantees-strip {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin: 10px 0 20px 0 !important;
  }

  .guarantees-strip > div {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .guarantee-item {
    margin-bottom: 0 !important;
    height: 100% !important;
    min-height: 120px !important;
    padding: 14px 10px !important;
  }

  .guarantee-item h5 {
    font-size: 13px !important;
    white-space: normal !important;
  }

  .guarantee-item span {
    font-size: 11px !important;
  }

  /* Tech Stack Grid: 2 Columns on Tablet / Large Phone */
  .tech-stack-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .tech-stack-grid > div {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .tech-card {
    height: 100% !important;
    margin-bottom: 0 !important;
    padding: 18px 16px !important;
  }

  /* Metrics Grid: 2x2 Layout */
  .metrics-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .metrics-grid > div {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .metrics-grid .fun-fact {
    height: 100% !important;
    margin-bottom: 0 !important;
    padding: 18px 12px !important;
  }

  .metrics-grid .fun-fact-block-value {
    font-size: 26px !important;
  }

  .metrics-grid .fun-fact h4 {
    font-size: 13.5px !important;
  }

  /* Stacked Timeline */
  .timeline-second-style .timeline-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    position: relative !important;
    padding-left: 20px !important;
    border-left: 2px solid var(--border-subtle) !important;
    margin-bottom: 22px !important;
  }

  .timeline-second-style .divider {
    display: none !important;
  }

  .timeline-second-style .left-part {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 14px !important;
    text-align: left !important;
    float: none !important;
    box-sizing: border-box !important;
  }

  .timeline-second-style .right-part {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 16px !important;
    text-align: left !important;
    float: none !important;
    box-sizing: border-box !important;
  }

  .timeline-second-style .right-part .item-title {
    font-size: 15px !important;
  }

  .timeline-second-style .right-part ul {
    padding-left: 18px !important;
    margin: 0 !important;
  }

  .timeline-second-style .right-part li {
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }

  /* Achievements Grid: 1 or 2 Columns */
  .achievements-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .achievements-grid > div {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .achievement-card {
    height: 100% !important;
    margin-bottom: 0 !important;
    padding: 18px 16px !important;
  }

  /* Portfolio Grid: 2 Columns */
  .portfolio-grid,
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 14px !important;
  }

  /* Modal Optimization */
  .custom-modal-dialog {
    padding: 22px 16px 18px 16px !important;
    border-radius: 16px !important;
  }

  .modal-header-content {
    padding-right: 15px !important;
    padding-left: 15px !important;
    margin-bottom: 16px !important;
  }

  .modal-step-card {
    padding: 10px 12px !important;
  }
}

/* ------------------------------------------------------------
   Standard Mobile Phones (max-width: 575px)
   ------------------------------------------------------------ */
@media only screen and (max-width: 575px) {
  .animated-section {
    padding: 20px 14px 80px 14px !important;
  }

  /* Header Drawer on Small Mobile */
  .header {
    max-width: 290px !important;
    padding: 24px 16px !important;
  }

  /* Hero Title on Phones */
  .title-block h2 {
    font-size: clamp(26px, 8.5vw, 36px) !important;
  }

  .title-block .sp-subtitle {
    font-size: 15px !important;
  }

  /* Personal Info List */
  .info-list ul {
    padding: 12px 14px !important;
  }

  .info-list ul li {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 8px 0 !important;
  }

  /* Info Blocks (What I Do) */
  .info-block-w-icon {
    padding: 18px 14px !important;
    border-radius: 14px !important;
  }

  .info-block-w-icon .ci-text h4 {
    font-size: 16px !important;
  }

  .info-block-w-icon ul {
    padding-left: 14px !important;
  }

  /* Tech Stack: 1 Column on Mobile */
  .tech-stack-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Portfolio Grid: Crisp 2-Column Grid on Mobile */
  .portfolio-grid,
  .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 10px 0 20px 0 !important;
  }

  .card {
    padding: 7px !important;
    border-radius: 12px !important;
  }

  .card-title {
    font-size: 11.5px !important;
    padding: 5px 10px !important;
  }

  .card-next-cta {
    min-height: 130px !important;
    padding: 12px 8px !important;
  }

  .card-next-cta .next-cta-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 15px !important;
  }

  .card-next-cta .next-cta-text {
    font-size: 12px !important;
  }

  /* Modal Dialog on Mobile */
  .custom-modal-overlay {
    padding: 12px !important;
  }

  .custom-modal-dialog {
    padding: 20px 14px 16px 14px !important;
    max-height: 92vh !important;
  }

  .modal-step-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .modal-step-card .btn-copy-action,
  .modal-step-card .btn-join-action {
    width: 100% !important;
    justify-content: center !important;
  }

  .template-header {
    flex-wrap: wrap !important;
  }

  .modal-template-box pre {
    font-size: 10.5px !important;
  }
}

/* ------------------------------------------------------------
   Extra Small Mobile Phones (max-width: 360px)
   ------------------------------------------------------------ */
@media only screen and (max-width: 360px) {
  .animated-section {
    padding: 16px 10px 75px 10px !important;
  }

  .guarantees-strip {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .metrics-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .title-block h2 {
    font-size: 24px !important;
  }

  .header {
    max-width: 260px !important;
  }
}