/* ==========================================================================
   SAGOR SHARIF PORTFOLIO - COMPONENTS STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. GOOGLE ANTIGRAVITY SPARKLE INTRO SECTION
   -------------------------------------------------------------------------- */
.antigravity-intro {
  height: 100vh;
  min-height: 640px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #fbfcfe 60%, #f1f5f9 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: #0f172a;
  z-index: 10;
}

.sparkle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.intro-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  transition: opacity 0.3s ease;
}

.intro-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: #090e17;
  text-decoration: none;
}

.intro-brand-name {
  letter-spacing: -0.02em;
}

.btn-intro-contact {
  padding: 0.55rem 1.35rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.88rem;
  background: #090e17;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-intro-contact:hover {
  background: #020617;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.intro-center-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 920px;
  padding: 0 1.5rem;
  margin: auto 0;
  will-change: transform, opacity, filter;
  transition: transform 0.15s linear, opacity 0.15s linear, filter 0.15s linear;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 100px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.intro-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00f2fe;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.8);
}

.intro-headline {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #090e17;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.32em;
  min-height: 1.15em;
}

.intro-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  filter: blur(8px);
  will-change: transform, opacity, filter;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-word.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.intro-name-highlight {
  background: linear-gradient(135deg, #090e17 25%, #0284c7 70%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.intro-cursor {
  display: inline-block;
  width: 4px;
  height: 0.82em;
  background: #0284c7;
  border-radius: 2px;
  margin-left: 2px;
  vertical-align: middle;
  animation: introCursorBlink 0.9s infinite;
  transition: opacity 0.4s ease;
}

.intro-cursor.is-hidden {
  opacity: 0;
  animation: none;
}

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

.intro-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #475569;
  font-weight: 500;
  line-height: 1.55;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-subtitle.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.intro-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-ctas.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-intro-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.25rem;
  border-radius: 100px;
  background: #090e17;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.btn-intro-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  background: #020617;
}

.btn-intro-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 2.25rem;
  border-radius: 100px;
  background: #ffffff;
  color: #090e17;
  border: 1.5px solid #e2e8f0;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-intro-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.intro-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.intro-scroll-hint:hover {
  color: #090e17;
  transform: translateX(-50%) translateY(2px);
}

.mouse-scroll-indicator {
  width: 22px;
  height: 36px;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.mouse-wheel-dot {
  width: 4px;
  height: 7px;
  border-radius: 2px;
  background: #090e17;
  animation: mouseWheelBounce 1.8s infinite;
}

@keyframes mouseWheelBounce {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (max-width: 640px) {
  .intro-topbar {
    padding: 1.25rem 1.25rem;
  }
  .intro-headline {
    font-size: 2.8rem;
  }
  .intro-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .btn-intro-primary,
  .btn-intro-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   1. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: all var(--transition-normal);
}

.navbar.navbar-hidden-intro {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-25px) !important;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.navbar.navbar-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-decoration: none;
}

.brand-logo-wrap,
.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
}

.nav-brand:hover .brand-logo-wrap,
.nav-brand:hover .brand-icon {
  transform: scale(1.05);
  border-color: var(--cyan-primary);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
}

.brand-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--emerald-primary);
  font-family: var(--font-mono);
  font-weight: 600;
  background: rgba(16, 185, 129, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--emerald-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

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

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

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover, .mobile-link:active {
  color: var(--cyan-primary);
  padding-left: 0.35rem;
}

@media (max-width: 992px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   2. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  overflow: hidden;
  background: transparent;
}

.hero-canvas {
  display: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.hero-content-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
}

@media (max-width: 992px) {
  .hero-content-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
}

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

@media (max-width: 992px) {
  .hero-left {
    align-items: center;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.hero-title {
  font-size: clamp(2.3rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--text-main);
  text-wrap: balance;
}

.hero-title span.glow {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 992px) {
  .hero-tags {
    justify-content: center;
  }
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
}

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

@media (max-width: 992px) {
  .hero-ctas {
    justify-content: center;
  }
}

/* Hero Right: Avatar & Hardware Tech Card */
.hero-avatar-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.avatar-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.avatar-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 15%;
  transition: transform var(--transition-slow);
}

.avatar-frame:hover img {
  transform: scale(1.03);
}

.avatar-floating-badge {
  position: relative;
  margin-top: 1rem;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  gap: 1rem;
  transition: all var(--transition-normal);
}

.avatar-floating-badge:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.floating-badge-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.floating-badge-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.floating-badge-sub {
  font-size: 0.8rem;
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.avatar-floating-badge .badge {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Quick Stats Bar */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 132, 199, 0.08);
  color: var(--cyan-primary);
  flex-shrink: 0;
}

.stat-icon.amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber-primary);
}

.stat-icon.emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-primary);
}

.stat-icon.purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple-accent);
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   3. INTERACTIVE HARDWARE SIMULATION WIDGET (SAND HOURGLASS)
   -------------------------------------------------------------------------- */
.sand-widget-section {
  background: transparent;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.simulation-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 992px) {
  .simulation-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

.sim-info h3 {
  font-size: 1.85rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.sim-info p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.sim-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.sim-specs-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.sim-specs-list svg {
  width: 18px;
  height: 18px;
  color: var(--cyan-primary);
  flex-shrink: 0;
}

/* Virtual Hourglass Frame */
.hourglass-device-mockup {
  background: #090e17;
  border: 3px solid #1e293b;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.08),
    var(--shadow-xl),
    inset 0 0 30px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.device-header-strip {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.device-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94a3b8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.device-status-leds {
  display: flex;
  gap: 0.5rem;
}

.tiny-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
}

.tiny-led.active-cyan {
  background: var(--cyan-primary);
  box-shadow: 0 0 8px var(--cyan-primary);
}

.tiny-led.active-amber {
  background: var(--amber-primary);
  box-shadow: 0 0 8px var(--amber-primary);
}

/* The Simulation Canvas Display */
.matrix-display-housing {
  background: radial-gradient(circle at 50% 50%, #0b1724 0%, #020408 68%);
  border: 2px solid #223247;
  border-radius: 50%;
  padding: 0.9rem;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.95), 0 0 18px rgba(0, 229, 245, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.matrix-display-housing.flipping {
  animation: hourglass-flip 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes hourglass-flip {
  to { transform: rotate(360deg); }
}

#sandCanvas {
  display: block;
  background: transparent;
  border-radius: 4px;
  max-width: 100%;
}

.sim-controls-panel {
  width: 100%;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sim-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.sim-timer-presets {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.preset-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.preset-btn:hover, .preset-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #090e17;
  box-shadow: var(--shadow-sm);
}

.sim-readout {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--amber-primary);
  text-align: center;
}

/* --------------------------------------------------------------------------
   4. PROJECTS & CASE STUDIES SHOWCASE
   -------------------------------------------------------------------------- */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
  background: #f8fafc;
}

.filter-btn.active {
  background: #090e17;
  border-color: #090e17;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(9, 14, 23, 0.18);
}

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

@media (max-width: 500px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

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

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

.project-card-header {
  padding: 1.5rem 1.75rem 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-subtle);
}

.project-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  transition: color var(--transition-fast);
}

.project-card:hover .project-title {
  color: var(--cyan-primary);
}

.project-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-subtle);
}

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

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

.project-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(9, 14, 23, 0.4) 100%);
  pointer-events: none;
}

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

.project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

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

.project-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-icon-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.project-icon-link:hover {
  background: #090e17;
  border-color: #090e17;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   5. CASE STUDY MODAL DIALOG
   -------------------------------------------------------------------------- */
.case-study-dialog {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--text-main);
  max-width: 900px;
  width: 92vw;
  max-height: 88vh;
  margin: auto;
  padding: 0;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  outline: none;
}

.case-study-dialog::backdrop {
  background: rgba(9, 14, 23, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dialog-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-alt);
}

.dialog-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dialog-category {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dialog-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
}

.dialog-close-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.dialog-body {
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(88vh - 90px);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dialog-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.dialog-specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.dialog-specs-table th, .dialog-specs-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.dialog-specs-table th {
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  font-weight: 600;
  width: 35%;
  background: rgba(2, 132, 199, 0.05);
}

.dialog-specs-table td {
  color: var(--text-main);
}

.dialog-section-block h4 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dialog-section-block h4 svg {
  color: var(--cyan-primary);
}

.dialog-features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.dialog-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.dialog-features-list svg {
  width: 16px;
  height: 16px;
  color: var(--emerald-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   6. SKILLS & TOOLKIT GRID (2x2 Layout)
   -------------------------------------------------------------------------- */
.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

@media (max-width: 860px) {
  .skills-categories-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.skill-category-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.skill-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.skill-category-card.cyan-theme::before {
  background: linear-gradient(90deg, var(--cyan-primary), #38bdf8);
}
.skill-category-card.amber-theme::before {
  background: linear-gradient(90deg, var(--amber-primary), #fbbf24);
}
.skill-category-card.emerald-theme::before {
  background: linear-gradient(90deg, var(--emerald-primary), #34d399);
}
.skill-category-card.purple-theme::before {
  background: linear-gradient(90deg, var(--purple-accent), #a78bfa);
}

.skill-category-card:hover::before {
  opacity: 1;
}

.skill-category-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.skill-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.skill-card-title-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.skill-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(2, 132, 199, 0.08);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-card-icon.amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber-primary);
}

.skill-card-icon.emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-primary);
}

.skill-card-icon.purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple-accent);
}

.skill-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.skill-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-content: flex-start;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  font-weight: 500;
  color: #334155;
  transition: all var(--transition-fast);
}

.skill-chip:hover {
  background: #ffffff;
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

.skill-category-card.cyan-theme .skill-chip:hover {
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
}

.skill-category-card.amber-theme .skill-chip:hover {
  border-color: var(--amber-primary);
  color: var(--amber-primary);
}

.skill-category-card.emerald-theme .skill-chip:hover {
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
}

.skill-category-card.purple-theme .skill-chip:hover {
  border-color: var(--purple-accent);
  color: var(--purple-accent);
}

/* --------------------------------------------------------------------------
   7. COMPETITIVE PROGRAMMING & ACHIEVEMENTS (2x2 Layout)
   -------------------------------------------------------------------------- */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 860px) {
  .awards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.award-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.award-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.award-card:has(.medal-gold)::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.award-card:has(.medal-cyan)::before {
  background: linear-gradient(90deg, var(--cyan-primary), #38bdf8);
}

.award-card:has(.medal-emerald)::before {
  background: linear-gradient(90deg, var(--emerald-primary), #34d399);
}

.award-card:has(.medal-gold) {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
}

.award-card:has(.medal-cyan) {
  border-color: rgba(2, 132, 199, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.08);
}

.award-card:has(.medal-emerald) {
  border-color: rgba(16, 185, 129, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08);
}

.award-card.featured-gold {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
}

.award-card.featured-gold::before {
  opacity: 1;
}

.award-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

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

.award-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.award-top-row .badge {
  white-space: nowrap;
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
}

.award-medal {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.medal-gold {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
}

.medal-cyan {
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.3);
  color: var(--cyan-primary);
}

.medal-emerald {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-primary);
}

.award-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.award-content h4 {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.award-org {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan-primary);
  margin-bottom: 0.65rem;
  line-height: 1.4;
}

.award-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. TRAINING & STEM MENTORING
   -------------------------------------------------------------------------- */
.mentoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.mentoring-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

.mentoring-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.mentoring-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber-primary);
}

.mentoring-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.mentoring-org {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--cyan-primary);
  font-weight: 600;
}

.mentoring-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mentoring-highlights li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mentoring-highlights svg {
  width: 14px;
  height: 14px;
  color: var(--cyan-primary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   9. ABOUT & EDUCATION
   -------------------------------------------------------------------------- */
.about-box {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: all var(--transition-normal);
}

.about-box:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

@media (max-width: 992px) {
  .about-box {
    padding: 2.25rem 1.5rem;
    border-radius: var(--radius-lg);
  }
}

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

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

.about-story {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.about-story p strong {
  color: var(--text-main);
}

.education-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--cyan-primary);
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}

.edu-year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan-primary);
  background: rgba(2, 132, 199, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.edu-degree {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
}

.edu-institution {
  font-size: 1.05rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   10. CONTACT SECTION & TOAST
   -------------------------------------------------------------------------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.channel-card:hover {
  border-color: var(--cyan-primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.channel-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(2, 132, 199, 0.08);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-title {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.channel-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Contact Form */
.contact-form-panel {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

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

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

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: var(--bg-alt);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--cyan-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  color: var(--emerald-primary);
  display: flex;
}

@media (max-width: 640px) {
  .antigravity-intro {
    min-height: 100svh;
    height: 100svh;
  }

  .intro-topbar {
    padding: 1rem;
  }

  .intro-brand {
    font-size: 1rem;
    gap: 0.55rem;
  }

  .btn-intro-contact {
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
  }

  .intro-center-content {
    width: 100%;
    padding: 0 1rem;
  }

  .intro-headline {
    font-size: clamp(2.2rem, 12vw, 2.8rem);
    gap: 0.2em;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding: 3.5rem 0;
  }

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

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

  .hero-title {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-ctas,
  .hero-ctas .btn {
    width: 100%;
  }

  .avatar-floating-badge {
    align-items: flex-start;
    padding: 0.85rem 1rem;
  }

  .floating-badge-title,
  .floating-badge-sub {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .simulation-card,
  .about-box,
  .contact-form-panel {
    padding: 1.25rem;
  }

  .simulation-card > * {
    min-width: 0;
  }

  .hourglass-device-mockup {
    padding: 1rem;
  }

  .matrix-display-housing {
    width: 100%;
    padding: 0.75rem;
  }

  #sandCanvas {
    width: 100%;
    height: auto;
  }

  .projects-grid,
  .mentoring-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper > * {
    min-width: 0;
  }

  .channel-value {
    overflow-wrap: anywhere;
  }

  .project-card-header,
  .project-body,
  .skill-category-card,
  .award-card,
  .mentoring-card,
  .education-card {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .award-top-row {
    align-items: flex-start;
  }

  .award-top-row .badge {
    white-space: normal;
    text-align: right;
  }

  .dialog-header,
  .dialog-body {
    padding: 1.25rem;
  }

  .dialog-title {
    font-size: 1.25rem;
    padding-right: 0.5rem;
  }

  .dialog-specs-table {
    display: block;
    overflow-x: auto;
  }

  .dialog-specs-table th,
  .dialog-specs-table td {
    min-width: 130px;
    padding: 0.7rem 0.8rem;
  }

  .dialog-features-list {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
  }
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 10;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.02);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

