/* ==========================================================================
   RFO.IM - Google Tech / Material 3 Design System
   ========================================================================== */

:root {
  /* Google Brand Palette */
  --g-blue: #1a73e8;
  --g-blue-hover: #1557b0;
  --g-blue-light: #e8f0fe;
  --g-blue-container: #d2e3fc;
  
  --g-red: #ea4335;
  --g-red-light: #fce8e6;
  
  --g-yellow: #fbbc04;
  --g-yellow-light: #fef7e0;
  
  --g-green: #34a853;
  --g-green-light: #e6f4ea;

  /* Surfaces & Backgrounds (Material 3) */
  --md-sys-color-background: #f8fafd;
  --md-sys-color-surface: #ffffff;
  --md-sys-color-surface-variant: #f1f4f9;
  --md-sys-color-surface-container: #ffffff;
  --md-sys-color-surface-container-high: #f8f9fa;
  
  /* Text & Contrast */
  --md-sys-color-on-surface: #1f1f1f;
  --md-sys-color-on-surface-variant: #444746;
  --md-sys-color-outline: #c4c7c5;
  --md-sys-color-outline-variant: #e0e3e1;
  --md-sys-color-primary: #1a73e8;
  --md-sys-color-on-primary: #ffffff;
  
  /* Typography */
  --font-family-google-sans: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-roboto: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Elevation Shadows */
  --elevation-1: 0 1px 3px 0 rgba(60, 64, 67, 0.12), 0 1px 2px 0 rgba(60, 64, 67, 0.08);
  --elevation-2: 0 2px 6px 2px rgba(60, 64, 67, 0.12), 0 1px 2px 0 rgba(60, 64, 67, 0.16);
  --elevation-3: 0 4px 12px 3px rgba(60, 64, 67, 0.12), 0 1px 3px 0 rgba(60, 64, 67, 0.18);
  --elevation-4: 0 6px 18px 4px rgba(60, 64, 67, 0.14), 0 2px 4px 0 rgba(60, 64, 67, 0.20);
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  /* Layout */
  --max-width: 1200px;
  --nav-height: 68px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family-roboto);
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Top Google 4-Color Accent Line */
.google-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    #4285F4 0%, #4285F4 25%, 
    #EA4335 25%, #EA4335 50%, 
    #FBBC05 50%, #FBBC05 75%, 
    #34A853 75%, #34A853 100%);
  z-index: 1001;
}

/* Header & Navigation */
.header-nav {
  position: sticky;
  top: 4px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.header-nav.scrolled {
  box-shadow: var(--elevation-2);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--md-sys-color-on-surface);
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), max-width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), margin 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
  max-width: 340px;
  overflow: hidden;
  white-space: nowrap;
}

.header-nav.at-home .nav-brand,
.nav-brand.brand-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  max-width: 0;
  margin-right: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-family-google-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #202124;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--g-blue);
  font-weight: 500;
  display: block;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
  margin-left: auto;
  margin-right: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.nav-link {
  font-family: var(--font-family-google-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--g-blue);
  background-color: var(--g-blue-light);
}

.nav-cta-btn {
  background: var(--g-blue);
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.3);
}

.nav-cta-btn:hover {
  background: var(--g-blue-hover) !important;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.4);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  margin-left: auto;
}

/* Main Container */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 85vh 24px 80px;
  position: relative;
  z-index: 10;
}

/* Sections */
section {
  margin-bottom: 72px;
  scroll-margin-top: 90px;
}

.section-header {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-family-google-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g-blue);
}

.section-title {
  font-family: var(--font-family-google-sans);
  font-size: 2rem;
  font-weight: 700;
  color: #202124;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--md-sys-color-on-surface-variant);
  max-width: 720px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-card {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--elevation-1);
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
  background-image: 
    radial-gradient(circle at 90% 10%, rgba(66, 133, 244, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(26, 115, 232, 0.05) 0%, transparent 45%);
}

.hero-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #c4d7f8;
  color: #1a73e8;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-family-google-sans);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.12);
  margin-bottom: 18px;
}

.badge-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--g-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(26, 115, 232, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(26, 115, 232, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0); }
}

.hero-name {
  font-family: var(--font-family-google-sans);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  color: #202124;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-family: var(--font-family-google-sans);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--g-blue);
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--md-sys-color-on-surface-variant);
  max-width: 780px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--g-blue);
  color: #ffffff;
  min-height: 44px;
  height: auto;
  padding: 10px 22px;
  box-sizing: border-box;
  border-radius: var(--radius-pill);
  font-family: var(--font-family-google-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.35);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--g-blue-hover);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.45);
  transform: translateY(-1px);
}

.btn-tonal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--g-blue-light);
  color: var(--g-blue);
  min-height: 44px;
  height: auto;
  padding: 10px 22px;
  box-sizing: border-box;
  border-radius: var(--radius-pill);
  font-family: var(--font-family-google-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #c4d7f8;
  cursor: pointer;
  white-space: nowrap;
}

.btn-tonal:hover {
  background: #d9e7fd;
  transform: translateY(-1px);
}

.btn-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--md-sys-color-on-surface);
  min-height: 44px;
  height: auto;
  padding: 10px 22px;
  box-sizing: border-box;
  border-radius: var(--radius-pill);
  font-family: var(--font-family-google-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--md-sys-color-outline);
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-outlined:hover {
  background: var(--md-sys-color-surface-variant);
  border-color: #202124;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

.stat-number {
  font-family: var(--font-family-google-sans);
  font-size: 2.25rem;
  font-weight: 700;
  color: #202124;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-number.blue { color: var(--g-blue); }
.stat-number.green { color: var(--g-green); }
.stat-number.yellow { color: #d69400; }
.stat-number.red { color: var(--g-red); }

.stat-label {
  font-size: 0.85rem;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

/* Rating Stat Simple Box */
.stat-rating-box {
  background: #f8fafd;
  border: 1px solid #d2e3fc;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(66, 133, 244, 0.08);
  height: 100%;
}

.rating-stat-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.rating-stat-title {
  font-family: var(--font-family-google-sans);
  font-size: 0.76rem;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rating-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  outline: none;
}

.rating-info-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--g-blue);
  border: 1px solid #c4d7f8;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
}

.rating-tooltip-wrap:hover .rating-info-icon,
.rating-tooltip-wrap:focus .rating-info-icon {
  background: var(--g-blue);
  color: #ffffff;
  border-color: var(--g-blue);
}

.rating-tooltip-box {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #202124;
  color: #ffffff;
  font-family: var(--font-family-google-sans);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.35;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 50;
}

.rating-tooltip-box::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #202124 transparent transparent transparent;
}

.rating-tooltip-wrap:hover .rating-tooltip-box,
.rating-tooltip-wrap:focus .rating-tooltip-box {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.rating-scores-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.mini-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mini-score-label {
  font-family: var(--font-family-google-sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1;
  margin-bottom: 2px;
}

.mini-score-number {
  font-family: var(--font-family-google-sans);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g-blue);
  line-height: 1.1;
}

.mini-score-bar-track {
  width: 48px;
  height: 5px;
  background: #dbe7f9;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.mini-score-bar-fill {
  height: 100%;
  background: #1a73e8;
  border-radius: 3px;
}

.hero-avatar-wrap {
  flex-shrink: 0;
  position: relative;
}

.hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: contain;
  background: #ffffff;
  padding: 8px;
  border: 1px solid var(--md-sys-color-outline-variant);
  box-shadow: var(--elevation-2);
}

.hero-avatar-badge {
  display: none;
}

.hero-avatar-badge img {
  width: 36px;
  height: 36px;
}

/* ==========================================================================
   Architecture Pillars Section
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--elevation-1);
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--g-blue);
}

.pillar-card.pillar-ai::before {
  background: linear-gradient(90deg, #4285f4, #9b51e0, #ea4335, #fbbc05, #34a853);
}

.pillar-card.pillar-data::before {
  background: linear-gradient(90deg, #fbbc04, #f9ab00);
}

.pillar-card.pillar-cloud::before {
  background: linear-gradient(90deg, #4285f4, #1a73e8);
}

.pillar-card.pillar-advisory::before {
  background: linear-gradient(90deg, #ea4335, #d93025);
}

.pillar-card.pillar-enablement::before {
  background: linear-gradient(90deg, #a142f4, #8430ce);
}

.pillar-card.pillar-craft::before {
  background: linear-gradient(90deg, #00897b, #26a69a);
}

.pillar-card.pillar-maker::before {
  background: linear-gradient(90deg, #ff7043, #f4511e);
}

.pillar-card.pillar-ai-agents::before {
  background: linear-gradient(90deg, #34a853, #1e8e3e);
}

/* Themed Radial Glow Shadows and Hover Effects */
.pillar-card:hover,
.pillar-card.revealed:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 10px 28px rgba(26, 115, 232, 0.18) !important;
  border-color: #c4d7f8 !important;
}

.pillar-card.pillar-ai {
  background-image: radial-gradient(circle at 92% 12%, rgba(66, 133, 244, 0.08) 0%, rgba(234, 67, 53, 0.03) 45%, transparent 70%);
}
.pillar-card.pillar-ai:hover,
.pillar-card.pillar-ai.revealed:hover {
  transform: translateY(-6px) !important;
  border-color: #a1c2fa !important;
  box-shadow: 0 10px 28px rgba(66, 133, 244, 0.22) !important;
}

.pillar-card.pillar-data {
  background-image: radial-gradient(circle at 92% 12%, rgba(251, 188, 4, 0.09) 0%, transparent 65%);
}
.pillar-card.pillar-data:hover,
.pillar-card.pillar-data.revealed:hover {
  transform: translateY(-6px) !important;
  border-color: #fedb80 !important;
  box-shadow: 0 10px 28px rgba(251, 188, 4, 0.22) !important;
}

.pillar-card.pillar-cloud {
  background-image: radial-gradient(circle at 92% 12%, rgba(26, 115, 232, 0.08) 0%, transparent 65%);
}
.pillar-card.pillar-cloud:hover,
.pillar-card.pillar-cloud.revealed:hover {
  transform: translateY(-6px) !important;
  border-color: #a1c2fa !important;
  box-shadow: 0 10px 28px rgba(26, 115, 232, 0.22) !important;
}

.pillar-card.pillar-advisory {
  background-image: radial-gradient(circle at 92% 12%, rgba(234, 67, 53, 0.08) 0%, transparent 65%);
}
.pillar-card.pillar-advisory:hover,
.pillar-card.pillar-advisory.revealed:hover {
  transform: translateY(-6px) !important;
  border-color: #f6aea9 !important;
  box-shadow: 0 10px 28px rgba(234, 67, 53, 0.22) !important;
}

.pillar-card.pillar-enablement {
  background-image: radial-gradient(circle at 92% 12%, rgba(161, 66, 244, 0.09) 0%, transparent 65%);
}
.pillar-card.pillar-enablement:hover,
.pillar-card.pillar-enablement.revealed:hover {
  transform: translateY(-6px) !important;
  border-color: #d7aefb !important;
  box-shadow: 0 10px 28px rgba(161, 66, 244, 0.22) !important;
}

.pillar-card.pillar-craft {
  background-image: radial-gradient(circle at 92% 12%, rgba(0, 137, 123, 0.09) 0%, transparent 65%);
}
.pillar-card.pillar-craft:hover,
.pillar-card.pillar-craft.revealed:hover {
  transform: translateY(-6px) !important;
  border-color: #80cbc4 !important;
  box-shadow: 0 10px 28px rgba(0, 137, 123, 0.22) !important;
}

.pillar-card.pillar-maker {
  background-image: radial-gradient(circle at 92% 12%, rgba(255, 112, 67, 0.09) 0%, transparent 65%);
}
.pillar-card.pillar-maker:hover,
.pillar-card.pillar-maker.revealed:hover {
  transform: translateY(-6px) !important;
  border-color: #ffab91 !important;
  box-shadow: 0 10px 28px rgba(255, 112, 67, 0.22) !important;
}

.pillar-card.pillar-ai-agents {
  background-image: radial-gradient(circle at 92% 12%, rgba(52, 168, 83, 0.09) 0%, transparent 65%);
}
.pillar-card.pillar-ai-agents:hover,
.pillar-card.pillar-ai-agents.revealed:hover {
  transform: translateY(-6px) !important;
  border-color: #81c995 !important;
  box-shadow: 0 10px 28px rgba(52, 168, 83, 0.22) !important;
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pillar-icon-box.blue { background: var(--g-blue-light); color: var(--g-blue); }
.pillar-icon-box.green { background: var(--g-green-light); color: var(--g-green); }
.pillar-icon-box.yellow { background: var(--g-yellow-light); color: #b07c00; }
.pillar-icon-box.red { background: var(--g-red-light); color: var(--g-red); }
.pillar-icon-box.purple { background: #f3e8fd; color: #9334e6; }
.pillar-icon-box.teal { background: #e0f2f1; color: #00897b; }
.pillar-icon-box.orange { background: #fff3e0; color: #e65100; }

.pillar-title {
  font-family: var(--font-family-google-sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: #202124;
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: 0.92rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.pillar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-chip {
  background: var(--md-sys-color-surface-variant);
  color: var(--md-sys-color-on-surface-variant);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-family-google-sans);
}

/* Craft & Outside the Cloud Section */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
  margin-bottom: 48px;
}

.craft-card {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--elevation-1);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.craft-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--elevation-3);
  border-color: #c4d7f8;
}

.craft-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4285f4, #34a853, #fbbc05, #ea4335);
}

.craft-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--g-blue-light);
  color: var(--g-blue);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-family-google-sans);
  margin-bottom: 16px;
}

.craft-card h3 {
  font-family: var(--font-family-google-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: #202124;
  margin-bottom: 12px;
}

.craft-card p {
  font-size: 0.95rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.65;
}

/* ==========================================================================
   Credentials & Badges Section
   ========================================================================== */
.credentials-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  font-family: var(--font-family-google-sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface-variant);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  background: var(--md-sys-color-surface-variant);
  color: #202124;
}

.filter-btn.active {
  background: var(--g-blue);
  color: #ffffff;
  border-color: var(--g-blue);
  box-shadow: 0 1px 4px rgba(26, 115, 232, 0.3);
}

.filter-count {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.search-box-wrap {
  position: relative;
  min-width: 240px;
}

.search-input {
  width: 100%;
  padding: 8px 16px 8px 36px;
  font-family: var(--font-family-roboto);
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--g-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--md-sys-color-outline);
  pointer-events: none;
  font-size: 1rem;
}

.badge-status-banner {
  background: var(--g-blue-light);
  border: 1px solid #c4d7f8;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #1a73e8;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.credly-verify-link {
  font-weight: 600;
  color: var(--g-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.credly-verify-link:hover {
  text-decoration: underline;
}

/* Badges Grid */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.badge-card {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--elevation-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at 90% 10%, rgba(66, 133, 244, 0.07) 0%, transparent 60%);
}

.badge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4285f4, #1a73e8);
}

.badge-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 115, 232, 0.16);
  border-color: #c4d7f8;
}

.badge-card:hover::before {
  background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853);
}

.badge-img-wrap {
  width: 130px;
  height: 130px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.badge-issuer {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--g-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-title {
  font-family: var(--font-family-google-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: #202124;
  line-height: 1.35;
  margin-bottom: 10px;
  flex-grow: 1;
}

.badge-desc {
  font-size: 0.82rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge-footer {
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-verify-btn {
  font-family: var(--font-family-google-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--g-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--g-blue-light);
  transition: all 0.2s ease;
}

.badge-verify-btn:hover {
  background: #d4e3fc;
}

.badge-date {
  font-size: 0.75rem;
  color: #747775;
}

/* Load More Button in Credentials Section */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  margin-bottom: 20px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--elevation-1);
  transition: all 0.25s ease;
  background: var(--md-sys-color-surface-variant);
  color: var(--g-blue);
  border: 1px solid var(--md-sys-color-outline-variant);
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--elevation-2);
  background: #e8f0fe;
  border-color: #c4d7f8;
}

.load-more-pill {
  background: rgba(26, 115, 232, 0.12);
  color: var(--g-blue);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ==========================================================================
   Innovation Projects Section
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.project-card {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--elevation-1);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--g-blue));
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--elevation-3);
  border-color: #c4d7f8;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

/* ==========================================================================
   Career Timeline Section (Image 2 style)
   ========================================================================== */
.timeline-card {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--radius-lg);
  padding: 40px 32px 36px;
  box-shadow: var(--elevation-1);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
  background-image: 
    radial-gradient(circle at 90% 10%, rgba(66, 133, 244, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(251, 188, 4, 0.05) 0%, transparent 45%);
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853);
}

.timeline-header {
  margin-bottom: 32px;
  text-align: center;
}

.timeline-header .section-tag {
  justify-content: center;
  margin-bottom: 6px;
}

.timeline-header h3 {
  font-family: var(--font-family-google-sans);
  font-size: 1.6rem;
  font-weight: 700;
  color: #202124;
}

.timeline-scroll-container {
  overflow-x: auto;
  padding: 20px 8px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #dadce0 transparent;
}

.timeline-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.timeline-scroll-container::-webkit-scrollbar-thumb {
  background: #dadce0;
  border-radius: 4px;
}

.timeline-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 960px;
  position: relative;
  padding: 0 30px 95px;
}

/* Connecting Line Across Dots */
.timeline-line {
  position: absolute;
  top: 111px;
  left: calc(30px + (100% - 60px) / 16);
  right: calc(30px + (100% - 60px) / 16);
  height: 3px;
  background: #e3a938; /* Signature gold line from original artwork */
  z-index: 1;
}

.timeline-line::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 0;
  width: 60px;
  height: 0;
  border-top: 3px dashed #e3a938;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.timeline-node:hover {
  transform: translateY(-4px) scale(1.05);
  z-index: 15;
}

.timeline-label {
  font-family: var(--font-family-google-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: #3c4043;
  margin-bottom: 12px;
  height: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  line-height: 1.2;
}

.timeline-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: transform 0.25s ease;
}

.timeline-node:hover .timeline-icon-wrap {
  transform: scale(1.12);
}

.timeline-icon-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background-color: #1a73e8;
  border-radius: 50%;
  margin-bottom: 16px;
  box-shadow: 0 0 0 3px #ffffff;
  position: relative;
  z-index: 3;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  animation: timeline-sonar-wave 4s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
  pointer-events: none;
}

/* Staggered Sonar Wave strictly from Left to Right (1999 -> 2025) */
.timeline-track .timeline-node:nth-child(2) .timeline-dot::after { animation-delay: 0s; }     /* 1999 (First node) */
.timeline-track .timeline-node:nth-child(3) .timeline-dot::after { animation-delay: 0.22s; }  /* 2005 */
.timeline-track .timeline-node:nth-child(4) .timeline-dot::after { animation-delay: 0.44s; }  /* 2007 */
.timeline-track .timeline-node:nth-child(5) .timeline-dot::after { animation-delay: 0.66s; }  /* 2009 */
.timeline-track .timeline-node:nth-child(6) .timeline-dot::after { animation-delay: 0.88s; }  /* 2017 */
.timeline-track .timeline-node:nth-child(7) .timeline-dot::after { animation-delay: 1.10s; }  /* 2019 */
.timeline-track .timeline-node:nth-child(8) .timeline-dot::after { animation-delay: 1.32s; }  /* 2021 */
.timeline-track .timeline-node:nth-child(9) .timeline-dot::after { animation-delay: 1.54s; }  /* 2025 (Last node) */

@keyframes timeline-sonar-wave {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.75);
    opacity: 1;
  }
  30% {
    box-shadow: 0 0 0 10px rgba(26, 115, 232, 0);
    opacity: 0;
  }
  35%, 100% {
    box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
    opacity: 0;
  }
}

.timeline-year {
  font-family: var(--font-family-google-sans);
  font-size: 1.9rem;
  font-weight: 700;
  color: #3c4043;
  line-height: 1;
  margin-bottom: 4px;
}

.timeline-subnote {
  font-family: var(--font-family-google-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: #3c4043;
  line-height: 1.2;
  max-width: 100px;
}

.timeline-detail {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 155px;
  background: #ffffff;
  color: #3c4043;
  border: 1px solid #c4d7f8;
  font-family: var(--font-family-google-sans);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.15), 0 1px 4px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 30;
  text-align: center;
}

.timeline-detail::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #c4d7f8 transparent;
}

.timeline-detail::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #ffffff transparent;
}

.timeline-node:hover .timeline-detail {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Language Badges Strip */
.languages-pill-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--md-sys-color-surface-variant);
  border: 1px solid var(--md-sys-color-outline-variant);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: #202124;
  margin-bottom: 24px;
}

.language-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--g-blue);
}

.language-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flag-svg {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.flag-svg:hover {
  transform: scale(1.15);
}

.flag-icon {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.language-dot-sep {
  color: #c4c7c5;
}

/* ==========================================================================
   Innovation Projects Section & Footer Layout Fix (Image 1 fix)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.project-card {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--elevation-1);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at 92% 10%, rgba(66, 133, 244, 0.08) 0%, transparent 60%);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-accent, #4285f4), #1a73e8);
}

.project-card:hover,
.project-card.revealed:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 30px rgba(26, 115, 232, 0.20) !important;
  border-color: #c4d7f8 !important;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.domain-tag {
  font-family: var(--font-family-google-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--md-sys-color-surface-variant);
  color: var(--md-sys-color-on-surface-variant);
  border: 1px solid var(--md-sys-color-outline-variant);
  white-space: nowrap;
  flex-shrink: 0;
}

.domain-tag.highlight {
  background: var(--g-blue-light);
  color: var(--g-blue);
  border-color: #c4d7f8;
}

.project-title {
  font-family: var(--font-family-google-sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: #202124;
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-arch-desc {
  font-size: 0.92rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-impact-box {
  background: var(--md-sys-color-surface-variant);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #202124;
  margin-bottom: 18px;
  border-left: 3px solid var(--g-blue);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  flex-wrap: nowrap;
}

.project-link-btn {
  font-family: var(--font-family-google-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--g-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-link-btn:hover {
  color: var(--g-blue-hover);
  transform: translateX(2px);
}

.project-note-badge {
  font-family: var(--font-family-google-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* YouTube Carousel Section */
.youtube-section-wrap {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--elevation-1);
  position: relative;
  overflow: hidden;
  background-image: 
    radial-gradient(circle at 92% 10%, rgba(255, 0, 0, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(66, 133, 244, 0.05) 0%, transparent 50%);
}

.youtube-section-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff0000, #ea4335, #fbbc05, #4285f4);
}

.yt-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.yt-title {
  font-family: var(--font-family-google-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: #202124;
  display: flex;
  align-items: center;
  gap: 10px;
}

.yt-icon-red {
  color: #ff0000;
}

#youtube-videos {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #dadce0 transparent;
}

#youtube-videos::-webkit-scrollbar {
  height: 6px;
}

#youtube-videos::-webkit-scrollbar-thumb {
  background: #dadce0;
  border-radius: 4px;
}

.yt-video-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--md-sys-color-surface-variant);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--md-sys-color-outline-variant);
  text-decoration: none;
  color: var(--md-sys-color-on-surface);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.yt-video-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--elevation-2);
  border-color: #ff0000;
}

.yt-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 0, 0, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.9;
  transition: all 0.2s ease;
}

.yt-video-card:hover .yt-play-icon {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.1);
}

.yt-info {
  padding: 12px 14px;
}

.yt-video-title {
  font-family: var(--font-family-google-sans);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: #202124;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Footer & Contact Section
   ========================================================================== */
.footer-contact-wrap {
  background: #202124;
  color: #e8eaed;
  border-top: 4px solid var(--g-blue);
  padding: 64px 24px 32px;
  position: relative;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-family: var(--font-family-google-sans);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-brand p {
  color: #9aa0a6;
  font-size: 0.95rem;
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-family: var(--font-family-google-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-item a {
  color: #bdc1c6;
  text-decoration: none;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.footer-link-item a:hover {
  color: var(--g-blue-light);
  transform: translateX(3px);
}

.footer-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #3c4043;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: #9aa0a6;
}

.back-to-top-btn {
  background: #303134;
  color: #e8eaed;
  border: 1px solid #5f6368;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-family-google-sans);
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.back-to-top-btn:hover {
  background: #3c4043;
  color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .hero-top-row {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero-card {
    padding: 28px 20px;
  }
  
  .hero-name {
    font-size: 2.2rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 16px 24px;
    box-shadow: var(--elevation-3);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    gap: 8px;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-brand {
    max-width: calc(100% - 56px);
    flex-shrink: 1;
    min-width: 0;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
  }

  .credentials-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box-wrap {
    width: 100%;
  }

  .badges-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-tonal,
  .hero-actions .btn-outlined {
    width: 100%;
  }

  .yt-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .yt-header-row .btn-outlined {
    align-self: flex-start;
  }

  .trainer-sep {
    display: none;
  }

  .trainer-metrics-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}

/* ==========================================================================
   Antigravity Interactive Experience & Cinematic Transitions (antigravity.google)
   ========================================================================== */

/* Fixed Interactive Particle Constellation Canvas */
.antigravity-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Cinematic Fullscreen Splash Intro Stage */
.antigravity-intro-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.antigravity-intro-stage.docked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-center-box {
  position: fixed;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform-origin: center center;
  will-change: transform, opacity;
  pointer-events: none;
  z-index: 995;
  width: 90%;
  max-width: 680px;
}

.intro-logo-wrap {
  width: 92px;
  height: 92px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 24px rgba(66, 133, 244, 0.25));
  animation: intro-float 4s ease-in-out infinite alternate;
}

@keyframes intro-float {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-8px) scale(1.02); }
}

.intro-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro-title {
  font-family: var(--font-family-google-sans);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 10px;
  background: linear-gradient(
    90deg,
    #202124 0%,
    #202124 40%,
    #4285f4 45%,
    #ea4335 48%,
    #fbbc05 50%,
    #ffffff 51.5%,
    #34a853 53.5%,
    #4285f4 56%,
    #202124 60%,
    #202124 100%
  );
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shimmer-pass 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  display: inline-block;
}

@keyframes text-shimmer-pass {
  0% {
    background-position: 100% center;
  }
  30% {
    background-position: 0% center;
  }
  100% {
    background-position: 0% center;
  }
}

.intro-subtitle {
  font-family: var(--font-family-google-sans);
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--g-blue);
  letter-spacing: -0.01em;
  background: var(--g-blue-light);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  display: inline-block;
  border: 1px solid #c4d7f8;
}

.intro-down-wrap {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 996;
  transition: opacity 0.25s ease;
}

.intro-arrow-btn {
  background: transparent;
  border: none;
  color: var(--g-blue);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scroll-bounce 2s infinite ease-in-out;
  transition: transform 0.2s ease, opacity 0.2s ease;
  filter: drop-shadow(0 2px 10px rgba(66, 133, 244, 0.35));
}

.intro-arrow-btn:hover {
  transform: translateY(4px) scale(1.2);
  color: #1557b0;
}

@keyframes scroll-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* Antigravity 3D Depth Card Zoom Transition */
.hero-card,
.timeline-card,
.pillar-card,
.project-card,
.youtube-section-wrap,
.badges-grid,
.credentials-toolbar,
.antigravity-card {
  opacity: 0;
  transform: scale(0.88) translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hero-card.revealed,
.timeline-card.revealed,
.pillar-card.revealed,
.project-card.revealed,
.youtube-section-wrap.revealed,
.badges-grid.revealed,
.credentials-toolbar.revealed,
.antigravity-card.revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Staggered Scroll-Reveal Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: Normal clean scroll without splash lock or forced scale delays */
@media (max-width: 768px) {
  .antigravity-intro-stage {
    display: none !important;
  }

  main {
    padding: 24px 16px 60px !important;
  }

  .hero-card,
  .timeline-card,
  .pillar-card,
  .badge-card,
  .project-card,
  .youtube-section-wrap,
  .antigravity-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .nav-brand {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }
}
