/* Card Tags Responsive */
@media (min-width: 992px) { .specific-card-tags { margin-left: 20%; } }
@media (min-width: 700px) and (max-width: 991px) { .specific-card-tags { margin-left: 5%; } }

/* Custom SVG and Utilities */
.custom-svg { width: 24px; height: 24px; }
.hidden-address { display: none; }
.programming-card { background-color: rgba(0, 0, 0, 0.35); color: #fff; }
.programming-card i { color: #fff; }

/* Theme Transition Overlay */
.theme-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}
.theme-transition-overlay.active {
  opacity: 1;
}

/* CSS Variables */
:root {
  --scrollbar-thumb: #000;
  --scrollbar-track: rgba(0, 0, 0, 0.05);
  --contact-border: #000;
  --contrast-color: #fff;
  --content-bg: rgba(0, 0, 0, 0.03);
  --content-item-bg: rgba(0, 0, 0, 0.06);
  --nav-hover-bg: rgba(0, 0, 0, 0.05);
  --nav-active-bg: rgba(0, 0, 0, 0.08);
  --nav-border-color: rgba(0, 0, 0, 0.1);
}

/* Reduce section heights for denser layout */
.section { min-height: auto !important; }
.section-body { padding-top: 3rem !important; padding-bottom: 2rem !important; }
.section-title { margin-bottom: 2.5rem; }
.section-footer { padding-bottom: 1.5rem; }

/* Keep hero section full height to hide content below initially */
#section-01 { min-height: 100vh !important; }
#section-01 .section-body { padding-top: 4rem !important; }

/* ============ MODERN HERO SECTION ============ */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - 12rem);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--contact-border);
  color: var(--contrast-color) !important;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  margin-top: 2rem;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: var(--contrast-color) !important;
  text-decoration: none !important;
}
@media (max-width: 991px) {
  .hero-badge { margin-top: 0; }
}
.hero-badge i { font-size: 0.85rem; }
.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

.hero-headline {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -1px;
}
.hero-headline-accent {
  display: block;
  position: relative;
}
.hero-headline-accent::after {
  content: '';
  position: absolute;
  bottom: 0.15em;
  left: 0;
  right: 0;
  height: 0.15em;
  background: var(--contact-border);
  z-index: -1;
}

.hero-tagline {
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: 0.85;
  max-width: 480px;
}
.hero-tagline strong {
  color: var(--contact-border);
  background: var(--contact-border);
  color: var(--contrast-color);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.hero-stat {
  text-align: left;
}
.hero-stat-value {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}
.hero-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
  margin-top: 0.25rem;
  display: block;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--contact-border);
  color: var(--contrast-color);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  color: var(--contrast-color);
  text-decoration: none;
}
.hero-cta-primary i { transition: transform 0.25s; }
.hero-cta-primary:hover i { transform: translateX(4px); }

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: transparent;
  border: 2px solid var(--contact-border);
  color: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 50px;
  transition: background 0.25s, color 0.25s;
}
.hero-cta-secondary:hover {
  background: var(--contact-border);
  color: var(--contrast-color);
  text-decoration: none;
}

/* Hero Visual Side */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
}
.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--contact-border);
  position: relative;
  z-index: 2;
}
.hero-avatar-ring {
  position: absolute;
  inset: -20px;
  border: 2px dashed var(--contact-border);
  border-radius: 50%;
  opacity: 0.3;
  animation: rotate-slow 30s linear infinite;
}
.hero-avatar-ring-2 {
  inset: -40px;
  animation-direction: reverse;
  animation-duration: 45s;
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Floating Tech Badges */
.hero-float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--contact-border);
  color: var(--contrast-color);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 3;
  animation: float 3s ease-in-out infinite;
}
.hero-float-domain {
  bottom: 15%;
  left: -5%;
  padding: 0.5rem 0.9rem;
  font-size: 0.7rem;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Rotating Domain Badge */
.hero-domain-rotator {
  position: relative;
  min-width: 80px;
  height: 1.3em;
  overflow: hidden;
  line-height: 1.3;
}
.hero-domain-item {
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateY(100%);
  animation: domain-rotate 14s infinite;
}
.hero-domain-item:nth-child(1) { animation-delay: 0s; }
.hero-domain-item:nth-child(2) { animation-delay: 2s; }
.hero-domain-item:nth-child(3) { animation-delay: 4s; }
.hero-domain-item:nth-child(4) { animation-delay: 6s; }
.hero-domain-item:nth-child(5) { animation-delay: 8s; }
.hero-domain-item:nth-child(6) { animation-delay: 10s; }
.hero-domain-item:nth-child(7) { animation-delay: 12s; }
@keyframes domain-rotate {
  0%, 2% { opacity: 0; transform: translateY(100%); }
  4%, 11% { opacity: 1; transform: translateY(0); }
  14%, 100% { opacity: 0; transform: translateY(-100%); }
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    min-height: auto;
    padding: 1rem 0;
  }
  .hero-content { align-items: center; order: 2; }
  .hero-visual { order: 1; padding: 2rem; }
  .hero-badge { margin: 0 auto; }
  .hero-headline { font-size: 2.5rem; }
  .hero-tagline { max-width: 100%; }
  .hero-stats { justify-content: center; }
  .hero-stat { text-align: center; }
  .hero-cta-group { justify-content: center; }
  .hero-avatar-wrapper { width: 180px; height: 180px; }
  .hero-avatar-ring { inset: -12px; }
  .hero-avatar-ring-2 { inset: -24px; }
  .hero-float-badge { display: none; }
}
@media (max-width: 575px) {
  .hero-container { gap: 1rem; padding: 0; }
  .hero-visual { padding: 2.5rem 3.5rem; }
  .hero-avatar-wrapper { width: 130px; height: 130px; }
  .hero-avatar-ring { inset: -10px; }
  .hero-avatar-ring-2 { inset: -20px; }
  .hero-headline { font-size: 1.6rem; }
  .hero-tagline { font-size: 0.95rem; }
  .hero-stats { gap: 0.75rem; padding: 1rem 0; }
  .hero-stat-value { font-size: 1.25rem; }
  .hero-stat-label { font-size: 0.6rem; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-primary, .hero-cta-secondary { width: 100%; justify-content: center; padding: 0.75rem 1.25rem; font-size: 0.8rem; }
}

/* ============ MODERN NAVIGATION SIDEBAR ============ */
.sections-nav-item {
  position: relative;
  margin-bottom: 0.25rem;
}
.sections-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.sections-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: currentColor;
  border-radius: 0 3px 3px 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sections-nav-link:hover::before,
.sections-nav-link.active::before {
  transform: translateY(-50%) scaleY(1);
}
.sections-nav-link:hover {
  background: var(--nav-hover-bg, rgba(0,0,0,0.05));
}
.sections-nav-link.active {
  background: var(--nav-active-bg, rgba(0,0,0,0.08));
}
.sections-nav-counter {
  font-size: 0.8rem;
  opacity: 0.4;
  font-weight: 500;
  min-width: 1.5rem;
  transition: opacity 0.25s;
}
.sections-nav-link:hover .sections-nav-counter,
.sections-nav-link.active .sections-nav-counter {
  opacity: 0.7;
}
.sections-nav-icon {
  font-size: 1.1rem;
  opacity: 0.6;
  transition: all 0.25s;
  width: 1.5rem;
  text-align: center;
}
.sections-nav-link:hover .sections-nav-icon,
.sections-nav-link.active .sections-nav-icon {
  opacity: 1;
  transform: scale(1.1);
}
.sections-nav-label {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CTA buttons in nav */
.sections-nav-info {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nav-border-color, rgba(0,0,0,0.1));
}
.sections-nav-info .contact-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sections-nav-info .contact-icon {
  padding: 0.6rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 2px solid var(--contact-border);
  background: transparent;
  transition: all 0.25s;
}
.sections-nav-info .contact-icon:hover {
  background: var(--contact-border);
  color: var(--contrast-color);
  transform: translateY(-2px);
}

/* Mobile nav overflow fix */
@media (max-width: 1199px) {
  .sections-nav-container {
    max-height: 100vh;
    overflow-y: auto;
    padding-bottom: 2rem;
  }
  .sections-nav {
    padding-bottom: 2rem !important;
  }
}

/* ============ MODERN MOBILE MENU ============ */
.sections-nav-toggler {
  width: 48px;
  height: 48px;
  background: var(--contact-border);
  border: none;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.sections-nav-toggler:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.sections-nav-toggler-bar {
  width: 22px;
  height: 2.5px;
  background: var(--contrast-color);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
}
.sections-nav-toggler-bar:nth-child(2),
.sections-nav-toggler-bar:nth-child(3) {
  width: 16px;
}
.sections-nav-in .sections-nav-toggler-bar:nth-child(1) { opacity: 0; transform: translateY(8px); }
.sections-nav-in .sections-nav-toggler-bar:nth-child(4) { opacity: 0; transform: translateY(-8px); }
.sections-nav-in .sections-nav-toggler-bar:nth-child(2) { transform: rotate(45deg) translateY(2px); width: 22px; }
.sections-nav-in .sections-nav-toggler-bar:nth-child(3) { transform: rotate(-45deg) translateY(-2px); width: 22px; }

@media (min-width: 1200px) {
  .sections-nav-toggler { display: none; }
}

/* ============ MODERN THEME SELECTOR ============ */
.preview-themes {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--theme-pill-bg, rgba(0,0,0,0.85));
  backdrop-filter: blur(10px);
  border-radius: 50px;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  width: auto;
  height: auto;
  transition: background-color 0.3s ease;
}
.preview-theme {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--theme-swatch-border, rgba(255,255,255,0.2));
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.preview-theme:hover {
  transform: scale(1.2);
  border-color: var(--theme-swatch-hover, rgba(255,255,255,0.5));
}
.preview-theme.active {
  border-color: var(--theme-swatch-active, #fff);
  box-shadow: 0 0 0 2px var(--theme-swatch-glow, rgba(255,255,255,0.3));
}
.preview-color-yellow-black { background: linear-gradient(135deg, #ffdb67 50%, #000 50%); }
.preview-color-black-white { background: linear-gradient(135deg, #000 50%, #fff 50%); }
.preview-color-pink-black { background: linear-gradient(135deg, #f8a2d5 50%, #000 50%); }
.preview-color-blue-black { background: linear-gradient(135deg, #9fbbff 50%, #000 50%); }

/* Initial attention animation */
.preview-themes.attention {
  animation: theme-attention 0.6s ease-out;
}
@keyframes theme-attention {
  0% { transform: translateX(-50%) translateY(-100%); opacity: 0; }
  60% { transform: translateX(-50%) translateY(5px); opacity: 1; }
  100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.preview-themes.attention .preview-theme {
  animation: theme-pop 0.4s ease-out backwards;
}
.preview-themes.attention .preview-theme:nth-child(1) { animation-delay: 0.3s; }
.preview-themes.attention .preview-theme:nth-child(2) { animation-delay: 0.4s; }
.preview-themes.attention .preview-theme:nth-child(3) { animation-delay: 0.5s; }
.preview-themes.attention .preview-theme:nth-child(4) { animation-delay: 0.6s; }
@keyframes theme-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@media (max-width: 575px) {
  .preview-themes { padding: 0.4rem 0.75rem; gap: 0.4rem; }
  .preview-theme { width: 18px; height: 18px; }
}

/* Tighter grids */
.services-grid, .expertise-grid { margin-bottom: 0 !important; }
.projects-grid { gap: 1.25rem; }
.exp-grid, .honors-grid, .edu-grid { gap: 1rem; }

/* Reduce margins on content sections */
#section-03 .section-body,
#section-04 .section-body,
#section-05 .section-body { padding-bottom: 1rem !important; }

/* Scrollbar Styles */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--scrollbar-thumb); opacity: 0.8; }
html { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); scroll-behavior: smooth; }

/* Contact Icons */
.contact-icons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.contact-icon { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.85rem; background: transparent; border: 2px solid var(--contact-border); border-radius: 25px; text-decoration: none; font-size: 0.8rem; font-weight: 600; color: inherit; transition: all 0.25s ease; }
.contact-icon i { font-size: 0.9rem; }
.contact-icon span:last-of-type:not(.hidden-address) { display: inline; }
.contact-icon:hover { background: var(--contact-border); color: var(--contrast-color); transform: translateY(-2px); }

/* ============ MODERN CONTACT SECTION ============ */
.contact-hero { background: var(--content-bg); border: 2px solid var(--contact-border); border-radius: 20px; padding: 2.5rem; margin-bottom: 2rem; text-align: center; }
.contact-hero-title { font-size: 1.75rem; font-weight: 800; margin: 0 0 0.75rem; }
.contact-hero-text { font-size: 1rem; opacity: 0.85; margin: 0 0 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.contact-cta { display: inline-flex; align-items: center; gap: 0.75rem; padding: 1rem 2rem; background: var(--contact-border); color: var(--contrast-color); border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: transform 0.25s, box-shadow 0.25s; }
.contact-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); color: var(--contrast-color); text-decoration: none; }
.contact-cta i { transition: transform 0.25s; }
.contact-cta:hover i { transform: translateX(4px); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.contact-card { background: var(--content-bg); border: 2px solid var(--contact-border); border-radius: 16px; padding: 1.5rem; text-align: center; transition: transform 0.25s, border-color 0.25s; }
.contact-card:hover { transform: translateY(-4px); }
.contact-card-icon { width: 50px; height: 50px; background: var(--contact-border); color: var(--contrast-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin: 0 auto 1rem; }
.contact-card-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.35rem; }
.contact-card-text { font-size: 0.85rem; opacity: 0.7; margin: 0 0 1rem; }
.contact-card .contact-icons { justify-content: center; }

.contact-footer { text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--content-item-bg); }
.contact-copyright { font-size: 0.85rem; opacity: 0.6; margin: 0; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-hero { padding: 1.75rem; }
  .contact-hero-title { font-size: 1.4rem; }
  .contact-cta { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
}

/* No decoration utility */
.no-decoration, .no-decoration:hover, .no-decoration:focus { text-decoration: none !important; }

/* Expertise Grid */
.expertise-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
@media (max-width: 1100px) { .expertise-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .expertise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .expertise-grid { grid-template-columns: 1fr; } }

/* Expertise Cards - Modern Design */
.expertise-item .domain-card {
  background: var(--content-bg);
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 2px solid var(--contact-border);
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.expertise-item .domain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--contact-border);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.expertise-item .domain-card:hover::before { transform: scaleX(1); }
.expertise-item .domain-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }

.expertise-item .domain-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  width: 70px;
  height: 70px;
  line-height: 70px;
  margin: 0 auto 1.25rem;
  background: var(--contact-border);
  color: var(--contrast-color);
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.expertise-item .domain-card:hover i { transform: scale(1.1); }

.expertise-item .domain-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}
.expertise-item .domain-card small {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: transparent;
  border: 2px solid var(--contact-border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.85;
}

/* Hide arrow indicators on expertise cards */
.expertise-item .domain-card::after { display: none; }

/* ============ SERVICES GRID ============ */
.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  display: block;
  background: var(--content-bg);
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 2px solid var(--contact-border);
  border-radius: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--contact-border);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); text-decoration: none; color: inherit; }

.service-card i {
  font-size: 2.5rem;
  display: block;
  width: 70px; height: 70px; line-height: 70px;
  margin: 0 auto 1.25rem;
  background: var(--contact-border);
  color: var(--contrast-color);
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.service-card:hover i { transform: scale(1.1); }
.service-card h4 { font-size: 1.25rem; font-weight: 800; margin: 0; letter-spacing: -0.5px; }

/* ============ PROJECTS GRID ============ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.project-item {
  display: block;
}

.project-card {
  display: block;
  background: var(--content-bg);
  border: 3px solid var(--contact-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover,
.project-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
  text-decoration: none;
  color: inherit;
}

.project-card-img {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--content-item-bg);
  margin: 0;
}
.project-card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.project-card:hover .project-card-img img {
  transform: scale(1.05);
}

.project-card-content {
  padding: 1.25rem;
}
.project-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.project-card-desc {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0 0 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

@media (max-width: 991px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 575px) {
  .projects-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .project-card-content { padding: 1rem; }
  .project-card-title { font-size: 1rem; }
}

/* Hide old detailed skills */
#section-04 .progress, #section-04 .progress-label, #section-04 .section-subtitle,
#section-04 .timeline, #section-04 .month-counter, #section-04 .year-counter,
#section-04 .y-counter, #section-04 .m-counter { display: none !important; }

/* Skill Pills */
.skill-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-start; }
.skill-pill { display: inline-block; font-size: 0.65rem; padding: 0.25rem 0.5rem; background: var(--contact-border); color: var(--contrast-color); border-radius: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; }
.skill-more { background: transparent; border: 1.5px solid var(--contact-border); color: inherit; }

@media (max-width: 767px) {
  .skill-pill { font-size: 0.6rem; padding: 0.2rem 0.4rem; }
}

/* Click-hint chevron (desktop only - hidden on mobile) */
.domain-card { position: relative; }
.domain-card::after { content: '\203A'; position: absolute; right: 16px; bottom: 12px; font-size: 32px; line-height: 1; color: var(--contact-border); opacity: 0; transition: opacity .25s, color .25s; }
.domain-card:hover::after { opacity: 1; color: #fff; }

/* Tablet layout */
@media (min-width: 768px) and (max-width: 991px) {
  #section-04 .col-md-3, #section-03 .col-md-4 { max-width: 50% !important; flex: 0 0 50% !important; }
}

/* Arrow left variant */
.domain-card.arrow-left::after { content: '\2039'; left: 16px; right: auto; }

/* Mobile: hide chevron arrows completely - they don't work well on touch */
@media (max-width: 575px) {
  .domain-card::after { display: none; }
  .domain-card.arrow-left::after { display: none; }
}

/* Popover styles */
.popover-preview { max-width: 280px; }
.popover-preview img { max-width: 100%; height: auto; }
.popover { max-width: 280px; width: auto; }
@media (min-width: 576px) { .popover { max-width: 340px; } }
@media (min-width: 768px) { .popover { max-width: 560px; } }
@media (min-width: 992px) { .popover { max-width: 560px; } }
@media (min-width: 1200px) { .popover { max-width: 760px; } }
@media (min-width: 1400px) { .popover { max-width: 860px; } }
.popover-preview .row { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.popover-preview [class*='col-'] { flex: 1 1 140px; max-width: 160px; padding: 0 .5rem; display: flex; flex-direction: column; align-items: center; }
.popover-preview .card { box-shadow: none; border: none; background: transparent; }
.popover-preview h4 { font-size: 0.9rem; margin-top: .5rem; white-space: nowrap; }
.popover-preview i { font-size: 1.75rem; }
.popover-preview h2 { font-size: 1.25rem; line-height: 1.3; margin-bottom: .75rem; }

/* Modal cards */
.modal-body .card { background: transparent; border: 2px solid var(--contact-border); border-radius: 12px; text-align: center; transition: background-color .25s, color .25s; }
.modal-body .card:hover { background: var(--contact-border); color: var(--contrast-color); }
.modal-body .card:hover *, .modal-body .card:hover i { color: var(--contrast-color); }
.modal-body .card i { font-size: 3rem; margin-bottom: .75rem; }
@media (min-width: 768px) { .modal-body .card i { font-size: 2.2rem; } }

/* Modern Modal Close Button */
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border: 2px solid var(--contact-border); border-radius: 50%; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s, transform 0.2s; z-index: 10; }
.modal-close:hover { background: var(--contact-border); transform: rotate(90deg); }
.modal-close::before, .modal-close::after { content: ''; position: absolute; width: 18px; height: 2px; background: var(--contact-border); transition: background-color 0.2s; }
.modal-close::before { transform: rotate(45deg); }
.modal-close::after { transform: rotate(-45deg); }
.modal-close:hover::before, .modal-close:hover::after { background: var(--contrast-color); }
.modal-close .d-none { display: none !important; }
.modal-header { position: relative; border: none; padding: 0; min-height: 60px; }

/* ============ ENHANCED PROJECT MODALS ============ */
.project-modal .modal-body { padding: 2rem; }

/* Project Header */
.project-header { margin-bottom: 1.5rem; text-align: center; }
.project-modal-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.75rem; line-height: 1.2; }
.project-title-link { text-decoration: none; color: inherit; }
.project-title-link:hover { color: var(--contact-border); }
.project-title-link .fa-external-link { font-size: 0.6em; opacity: 0.6; margin-left: 0.5rem; }
.project-modal-subtitle { font-size: 1.1rem; opacity: 0.85; margin-bottom: 1.25rem; max-width: 800px; margin-left: auto; margin-right: auto; }

/* Tech Tags Pills */
.tech-tags-container { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
.tech-tag { display: inline-block; padding: 0.35rem 0.75rem; background: var(--contact-border); color: var(--contrast-color); border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* Project Gallery */
.project-gallery { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; justify-content: center; }
.project-img-wrapper { border-radius: 8px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.project-img-wrapper:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.project-modal-img { width: 100%; height: auto; display: block; border-radius: 8px; }
.gallery-single .project-img-wrapper { max-width: 100%; }
.gallery-collage .project-img-wrapper { flex: 0 0 calc(50% - 0.5rem); max-width: calc(50% - 0.5rem); }
@media (max-width: 575px) { .gallery-collage .project-img-wrapper { flex: 0 0 100%; max-width: 100%; } }

/* Project Content - Theme Adaptive (subtle backgrounds) */
:root {
  --content-bg: rgba(0, 0, 0, 0.03);
  --content-item-bg: rgba(0, 0, 0, 0.02);
  --content-item-hover: rgba(0, 0, 0, 0.05);
  --content-blockquote-bg: rgba(0, 0, 0, 0.025);
}

.project-content { max-width: 900px; margin: 0 auto; padding: 1.5rem; background: var(--content-bg); border-radius: 12px; border: 1px solid var(--contact-border); }
.project-content p { margin-bottom: 1rem; line-height: 1.8; font-size: 1.05rem; }
.project-content ul { margin-bottom: 1rem; padding-left: 0; list-style: none; }
.project-content li { margin-bottom: 0.75rem; padding: 0.75rem 1rem; background: var(--content-item-bg); border-radius: 8px; border-left: 3px solid var(--contact-border); transition: transform 0.2s, background 0.2s; }
.project-content li:hover { transform: translateX(4px); background: var(--content-item-hover); }
.project-content li::before { content: '\2713'; margin-right: 0.5rem; font-weight: bold; color: var(--contact-border); }
.project-content blockquote { background: var(--content-blockquote-bg); border-left: 4px solid var(--contact-border); padding: 1.25rem 1.5rem; margin: 1.5rem 0; border-radius: 0 12px 12px 0; }
.project-content blockquote h3 { margin-top: 0; }
.project-content h3 { font-size: 1.3rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.project-content h3::before { content: '\25C6'; color: var(--contact-border); font-size: 0.8em; }

/* Highlighted metrics in content */
.project-content strong, .project-content b { color: var(--contact-border); }

/* Feature cards within content */
.feature-highlight { display: inline-block; background: var(--contact-border); color: var(--contrast-color); padding: 0.2rem 0.6rem; border-radius: 4px; font-weight: 600; font-size: 0.9em; }

/* ============ UNIFIED CARD STYLES (Experiences, Honors, Education) ============ */
.info-card { background: var(--content-bg); border: 2px solid var(--contact-border); border-radius: 16px; padding: 1.5rem; transition: border-color 0.25s ease; }
.info-card:hover, .info-card:focus-within { border-color: var(--contact-border); }
@media (hover: hover) { .info-card:hover { border-width: 3px; padding: calc(1.5rem - 1px); } }

/* ============ EXPERIENCE CARDS ============ */
.exp-timeline { display: flex; flex-direction: column; gap: 1.25rem; }

.exp-header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.exp-icon { width: 48px; height: 48px; background: var(--contact-border); color: var(--contrast-color); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.exp-info { flex: 1; }
.exp-date { font-size: 0.8rem; opacity: 0.7; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.exp-title { font-size: 1.4rem; font-weight: 800; margin: 0.25rem 0; line-height: 1.2; }
.exp-role { font-size: 0.95rem; opacity: 0.85; font-weight: 500; }

.exp-metrics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.exp-metric { display: inline-block; padding: 0.35rem 0.75rem; background: var(--contact-border); color: var(--contrast-color); border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }

.exp-highlights { list-style: none; padding: 0; margin: 0 0 1rem 0; }
.exp-highlights li { padding: 0.5rem 0; padding-left: 1.5rem; position: relative; font-size: 0.95rem; line-height: 1.5; border-bottom: 1px solid var(--content-item-bg); }
.exp-highlights li:last-child { border-bottom: none; }
.exp-highlights li::before { content: '\2192'; position: absolute; left: 0; color: var(--contact-border); font-weight: bold; }
.exp-highlights strong { color: var(--contact-border); }

.exp-tech { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tech-pill-sm { font-size: 0.65rem; padding: 0.2rem 0.5rem; background: transparent; border: 1.5px solid var(--contact-border); color: inherit; border-radius: 12px; font-weight: 600; text-transform: uppercase; }
.tech-more { opacity: 0.7; }

/* Mobile adjustments for experience cards */
@media (max-width: 575px) {
  .exp-card { padding: 1rem; }
  .exp-icon { width: 40px; height: 40px; font-size: 1rem; }
  .exp-title { font-size: 1.2rem; }
  .exp-highlights li { font-size: 0.9rem; }
}

/* ============ HONOR CARDS ============ */
.honors-grid { display: grid; gap: 1.25rem; }
.honor-card { display: flex; gap: 1rem; align-items: flex-start; }

/* ============ EDUCATION CARDS ============ */
.edu-grid { display: grid; gap: 1.25rem; }
.edu-card { display: flex; gap: 1rem; align-items: flex-start; }

.edu-icon { width: 56px; height: 56px; background: var(--contact-border); color: var(--contrast-color); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.edu-content { flex: 1; }
.edu-date { font-size: 0.8rem; opacity: 0.7; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.edu-title { font-size: 1.4rem; font-weight: 800; margin: 0.25rem 0 0.5rem; line-height: 1.2; }
.edu-degree { display: inline-block; padding: 0.35rem 0.75rem; background: var(--contact-border); color: var(--contrast-color); border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.5rem; }
.edu-desc { font-size: 0.95rem; opacity: 0.9; margin: 0; line-height: 1.5; }

@media (max-width: 575px) {
  .edu-card { flex-direction: column; text-align: center; }
  .edu-icon { margin: 0 auto; }
}

.honor-icon { width: 56px; height: 56px; background: var(--contact-border); color: var(--contrast-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.honor-content { flex: 1; }
.honor-date { font-size: 0.8rem; opacity: 0.7; font-weight: 600; }
.honor-title { font-size: 1.25rem; font-weight: 800; margin: 0.25rem 0 0.5rem; }
.honor-metric { display: inline-block; padding: 0.3rem 0.75rem; background: var(--contact-border); color: var(--contrast-color); border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.honor-desc { font-size: 0.95rem; opacity: 0.9; margin: 0.5rem 0; line-height: 1.5; }
.honor-details { list-style: none; padding: 0; margin: 0.5rem 0 0; font-size: 0.85rem; opacity: 0.8; }
.honor-details li { padding-left: 1.25rem; position: relative; }
.honor-details li::before { content: '\2022'; position: absolute; left: 0; color: var(--contact-border); }

@media (max-width: 575px) {
  .honor-card { flex-direction: column; text-align: center; }
  .honor-icon { margin: 0 auto; }
  .honor-details li { padding-left: 0; }
  .honor-details li::before { display: none; }
}

/* ============ MODERN TESTIMONIALS ============ */
.testimonial-carousel { position: relative; padding-top: 2rem; }
.testimonial-carousel .carousel-inner { overflow: visible; }

/* Artistic decorative line */
.testimonial-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--contact-border), transparent);
  border-radius: 2px;
}

/* Hide the default carousel indicator line */
.testimonial-dots::before { display: none !important; }
.carousel-indicators::before { display: none; }

.testimonial-card { background: var(--content-bg); border: 2px solid var(--contact-border); border-radius: 20px; padding: 2.5rem; position: relative; max-width: 800px; margin: 0 auto; }
.testimonial-quote { position: absolute; top: -14px; left: 2.5rem; width: 44px; height: 44px; background: var(--contact-border); color: var(--contrast-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }

.testimonial-text { font-size: 1.15rem; line-height: 1.75; margin-bottom: 1.5rem; font-style: italic; opacity: 0.95; }

.testimonial-author { display: flex; align-items: center; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--content-item-bg); }
.testimonial-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--contact-border); flex-shrink: 0; }
.testimonial-info { flex: 1; }
.testimonial-name { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.25rem; }
.testimonial-role { font-size: 0.9rem; opacity: 0.75; margin: 0; }
.testimonial-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--contact-border); text-decoration: none; margin-top: 0.4rem; font-weight: 600; transition: opacity 0.2s; }
.testimonial-link:hover { opacity: 0.8; text-decoration: underline; }

/* Navigation */
.testimonial-nav { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.testimonial-arrow { width: 48px; height: 48px; border: 2px solid var(--contact-border); border-radius: 50%; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 0.25s, color 0.25s, transform 0.25s; color: inherit; }
.testimonial-arrow:hover { background: var(--contact-border); color: var(--contrast-color); transform: scale(1.05); }

.testimonial-dots { display: flex; gap: 0.6rem; position: static; margin: 0; padding: 0; list-style: none; }
.testimonial-dots li { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--contact-border); background: transparent; cursor: pointer; padding: 0; margin: 0; text-indent: 0; transition: background-color 0.25s, transform 0.25s; flex: none; }
.testimonial-dots li.active, .testimonial-dots li:hover { background: var(--contact-border); transform: scale(1.25); }

/* Mobile */
@media (max-width: 575px) {
  .testimonial-card { padding: 1.75rem; padding-top: 2.25rem; }
  .testimonial-text { font-size: 1rem; }
  .testimonial-author { flex-direction: column; text-align: center; gap: 0.75rem; }
  .testimonial-avatar { margin: 0 auto; }
  .testimonial-info { text-align: center; }
  .testimonial-quote { left: 50%; transform: translateX(-50%); }
  .testimonial-nav { gap: 1rem; }
  .testimonial-arrow { width: 40px; height: 40px; }
}

/* See More Reviews Link */
.testimonial-more { text-align: center; margin-top: 2rem; }
.testimonial-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  background: transparent;
  border: 2px solid var(--contact-border);
  border-radius: 50px;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.testimonial-more-link:hover {
  background: var(--contact-border);
  color: var(--contrast-color);
  transform: translateY(-2px);
  text-decoration: none;
}
.testimonial-more-link .fa-star { color: #ffc107; }
.testimonial-more-link:hover .fa-star { color: var(--contrast-color); }
.testimonial-more-link .fa-external-link { font-size: 0.75rem; opacity: 0.7; }

@media (max-width: 575px) {
  .testimonial-more-link { font-size: 0.8rem; padding: 0.75rem 1.25rem; }
}

/* ============ MODERN ABOUT ME ============ */
.about-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  overflow: hidden;
}
/* Fix: Right-side elements should translate right, not left */
.about-sidebar.animation-translate {
  transform: translate(100%);
}
.interaction-in .about-sidebar.animation-translate {
  animation: animation-translate-right 0.35s cubic-bezier(0.75, 0, 0.45, 1.1) forwards;
}
.interaction-in .about-sidebar.animation-item-3 {
  animation-delay: 0.2s;
}
@keyframes animation-translate-right {
  0% { transform: translate(100%); }
  100% { transform: translate(0); }
}

.about-hero {
  margin-bottom: 2rem;
}
.about-wave {
  font-size: 3rem;
  display: inline-block;
  margin-bottom: 0.5rem;
  animation: wave 2.5s infinite;
  transform-origin: 70% 70%;
}
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(-4deg); }
  50%, 100% { transform: rotate(0deg); }
}
.about-name {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -1px;
}
.about-role {
  font-size: 1.1rem;
  opacity: 0.7;
  margin: 0;
  font-weight: 500;
}

.about-mission {
  background: var(--content-bg);
  border-left: 4px solid var(--contact-border);
  padding: 1.5rem 2rem;
  margin: 0 0 2rem;
  border-radius: 0 16px 16px 0;
}
.about-mission p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0;
}
.about-mission em {
  font-style: normal;
  background: linear-gradient(120deg, var(--contact-border) 0%, var(--contact-border) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.3em;
  background-position: 0 88%;
}

.about-section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 1rem;
  opacity: 0.6;
  font-weight: 700;
}
.about-section-title i {
  margin-right: 0.5rem;
}

.about-what {
  margin-bottom: 2rem;
}
.about-what p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}
.about-what strong {
  color: var(--contact-border);
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.about-skill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 2px solid var(--contact-border);
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.25s;
}
.about-skill i { font-size: 0.75rem; }
.about-skill:hover {
  background: var(--contact-border);
  color: var(--contrast-color);
  transform: translateY(-2px);
}

/* Stats Sidebar Card */
.about-stats-card {
  background: var(--contact-border);
  color: var(--contrast-color);
  border-radius: 24px;
  padding: 2rem;
}
/* Only make sticky after section is revealed */
.section.interaction-in .about-stats-card {
  position: sticky;
  top: 6rem;
}
.about-stat {
  text-align: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.about-stat:last-of-type { border-bottom: none; }
.about-stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}
.about-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.75;
  letter-spacing: 0.5px;
  margin-top: 0.35rem;
  display: block;
}

.about-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.about-badge i { font-size: 1rem; }

@media (max-width: 991px) {
  .about-container { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats-card { position: static; }
  .about-name { font-size: 2rem; }
}
@media (max-width: 575px) {
  .about-wave { font-size: 2.5rem; }
  .about-name { font-size: 1.75rem; }
  .about-mission { padding: 1rem 1.25rem; }
  .about-mission p { font-size: 1rem; }
  .about-stats-card { padding: 1.5rem; }
  .about-stat-number { font-size: 1.75rem; }
}

/* ============ MODERN PROFILE MODAL ============ */
.profile-modal-content {
  background: var(--content-bg);
  border: 3px solid var(--contact-border);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}
.profile-modal-header {
  text-align: center;
  margin-bottom: 2rem;
}
.profile-modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.5px;
}
.profile-modal-subtitle {
  font-size: 0.9rem;
  opacity: 0.6;
  margin: 0;
}
.profile-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: 2px solid var(--contact-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}
.profile-link-card:hover {
  background: var(--contact-border);
  color: var(--contrast-color);
  transform: translateX(6px);
  text-decoration: none;
}
.profile-link-icon {
  width: 48px;
  height: 48px;
  background: var(--contact-border);
  color: var(--contrast-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.profile-link-card:hover .profile-link-icon {
  background: var(--contrast-color);
  color: var(--contact-border);
}
.profile-link-label {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 700;
}
.profile-link-arrow {
  font-size: 0.85rem;
  opacity: 0.4;
  transition: opacity 0.25s, transform 0.25s;
}
.profile-link-card:hover .profile-link-arrow {
  opacity: 1;
  transform: translateX(4px);
}

@media (max-width: 575px) {
  .profile-modal-content { padding: 1.75rem; border-radius: 20px; }
  .profile-modal-title { font-size: 1.5rem; }
  .profile-link-card { padding: 0.85rem 1rem; }
  .profile-link-icon { width: 40px; height: 40px; font-size: 1rem; }
  .profile-link-label { font-size: 1rem; }
}

/* ============ AVATAR DIALOG ============ */
.avatar-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.avatar-dialog-overlay.active {
  opacity: 1;
  visibility: visible;
}
.avatar-dialog {
  position: relative;
  max-width: 420px;
  width: 90vw;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.avatar-dialog-overlay.active .avatar-dialog {
  transform: scale(1);
}
.avatar-dialog-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  border: 3px solid var(--contact-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.avatar-dialog-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--contact-border);
  background: var(--contrast-color);
  color: var(--contact-border);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
  padding: 0;
}
.avatar-dialog-close:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

@media (max-width: 480px) {
  .avatar-dialog { max-width: 85vw; }
  .avatar-dialog-close { width: 34px; height: 34px; top: -10px; right: -10px; font-size: 1.2rem; }
}
