:root {
  /* Material 3 Tonal Palette */
  --md-sys-color-primary: #0b57d0;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #d3e3fd;
  --md-sys-color-on-primary-container: #041e49;
  --md-sys-color-secondary: #00639b;
  --md-sys-color-secondary-container: #c2e7ff;
  --md-sys-color-on-secondary-container: #001d35;
  --md-sys-color-tertiary: #146c2e;
  --md-sys-color-tertiary-container: #c4eed0;
  --md-sys-color-on-tertiary-container: #002107;
  --md-sys-color-error: #b3261e;
  --md-sys-color-surface: #f8fafd;
  --md-sys-color-on-surface: #1f1f1f;
  --md-sys-color-on-surface-variant: #444746;
  --md-sys-color-outline: #74777f;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #f0f4f9;
  --md-sys-color-surface-container: #e9eef6;
  --md-sys-color-surface-container-high: #e1e7f0;
  --md-sys-color-surface-container-highest: #dfe3ec;

  /* Google Colors */
  --google-red: #ea4335;
  --google-yellow: #fbbc04;
  --google-green: #34a853;
  --google-blue: #4285f4;
  --google-purple: #9c27b0;
  --google-orange: #ff7043;

  /* Typography */
  --md-sys-typescale-display: "Outfit", sans-serif;
  --md-sys-typescale-body: "Roboto", sans-serif;

  /* Shape Radii */
  --shape-small: 8px;
  --shape-medium: 12px;
  --shape-large: 24px;
  --shape-extra-large: 28px;
  --shape-full: 9999px;

  /* Layout */
  --max-width: 1000px;
  --pad-x: 24px;
  --nav-h: 72px;
}

/* Animations */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatSlow {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes googleDots {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
  z-index: 10;
}

.btn-tonal .ripple-effect,
.btn-outlined .ripple-effect {
  background-color: rgba(11, 87, 208, 0.2);
}

@keyframes progressFill {
  from {
    width: 0%;
  }

  to {
    width: var(--progress-width);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gentleFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-5px) rotate(1deg);
  }
}

@keyframes subtleGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(11, 87, 208, 0.1);
  }

  50% {
    box-shadow: 0 0 30px rgba(11, 87, 208, 0.2);
  }
}

/* Simple Animation Classes */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
  opacity: 0;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
  opacity: 0;
}

.animate-float {
  animation: gentleFloat 6s ease-in-out infinite;
}

.animate-glow {
  animation: subtleGlow 4s ease-in-out infinite;
}

/* Section Dividers */
.section-divider {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
}

.divider-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--md-sys-color-outline) 20%,
      var(--md-sys-color-outline) 80%,
      transparent 100%);
  opacity: 0.3;
}

.divider-graphic {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.divider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--md-sys-color-primary);
  animation: gentleFloat 4s ease-in-out infinite;
}

.divider-dot:nth-child(2) {
  animation-delay: 1s;
  background: var(--google-red);
}

.divider-dot:nth-child(3) {
  animation-delay: 2s;
  background: var(--google-yellow);
}

.divider-dot:nth-child(4) {
  animation-delay: 3s;
  background: var(--google-green);
}

.divider-icon {
  width: 32px;
  height: 32px;
  opacity: 0.6;
  color: var(--md-sys-color-primary);
  animation: gentleFloat 5s ease-in-out infinite;
}

/* Three.js Background */
#threejs-container {
  opacity: 0.48;
  mix-blend-mode: screen;
}

#threejs-container canvas {
  filter: blur(0.5px);
}

/* Game-style Effects */
.game-scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 50%,
      rgba(11, 87, 208, 0.03) 50%,
      rgba(11, 87, 208, 0.03) 51%,
      transparent 51%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
  animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 4px;
  }
}

.game-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center,
      rgba(11, 87, 208, 0.05) 0%,
      rgba(234, 67, 53, 0.03) 25%,
      rgba(251, 188, 4, 0.02) 50%,
      rgba(52, 168, 83, 0.03) 75%,
      transparent 100%);
  pointer-events: none;
  z-index: -1;
  animation: gameGlow 8s ease-in-out infinite;
}

@keyframes gameGlow {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

/* Retro game-style cursor effect */
.game-cursor-trail {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(11, 87, 208, 0.3) 0%,
      transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease-out;
  mix-blend-mode: screen;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--md-sys-typescale-body);
  background: linear-gradient(160deg,
      #f8fbfe 0%,
      #e6eff9 45%,
      #cfdff3 100%);
  color: var(--md-sys-color-on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 15%,
      rgba(66, 133, 244, 0.26),
      transparent 13%),
    radial-gradient(circle at 82% 22%,
      rgba(234, 67, 53, 0.22),
      transparent 10%),
    radial-gradient(circle at 38% 78%,
      rgba(76, 175, 80, 0.18),
      transparent 14%);
  pointer-events: none;
  opacity: 1;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(120deg,
      rgba(255, 255, 255, 0.07) 0 2px,
      transparent 2px 8px),
    repeating-linear-gradient(60deg,
      rgba(66, 133, 244, 0.06) 0 2px,
      transparent 2px 8px),
    radial-gradient(circle at 20% 18%,
      rgba(255, 255, 255, 0.22),
      transparent 14%),
    radial-gradient(circle at 78% 26%,
      rgba(255, 255, 255, 0.16),
      transparent 10%);
  background-size:
    60px 60px,
    60px 60px,
    auto,
    auto;
  pointer-events: none;
  opacity: 0.6;
  z-index: -1;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded", "Segoe UI Symbol", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-variation-settings:
    "FILL" 1,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
  vertical-align: middle;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-width: 1em;
  min-height: 1em;
  color: inherit;
  text-rendering: optimizeLegibility;
}

.material-symbols-rounded.icon-filled {
  font-variation-settings:
    "FILL" 1,
    "wght" 600,
    "GRAD" 0,
    "opsz" 24;
}

.btn .material-symbols-rounded,
.project-btn .material-symbols-rounded,
.contact-email-btn .material-symbols-rounded,
.social-btn .material-symbols-rounded,
.btn svg,
.project-btn svg,
.contact-email-btn svg,
.social-btn svg {
  width: auto;
  height: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 60px 0;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-content-centered {
  max-width: 800px;
  margin: 0 auto;
}

/* Navigation */
.app-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background-color: rgba(248, 250, 253, 0.9);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  transition:
    box-shadow 0.2s,
    background-color 0.2s;
}

.app-bar.scrolled {
  background-color: var(--md-sys-color-surface-container);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.app-title {
  font-family: var(--md-sys-typescale-display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.g-dots {
  display: flex;
  gap: 4px;
}

.g-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.bg-blue {
  background-color: var(--md-sys-color-primary);
}

.bg-red {
  background-color: var(--google-red);
}

.bg-yellow {
  background-color: var(--google-yellow);
}

.bg-green {
  background-color: var(--google-green);
}

.nav-items {
  display: flex;
  gap: 4px;
}

.nav-item {
  text-decoration: none;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--shape-full);
  transition: 0.2s;
}

.nav-item:hover,
.nav-item.active {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-items {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--md-sys-color-surface-container);
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
  }

  .nav-items.nav-open {
    transform: translateY(0);
    display: flex;
  }

  .nav-item {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
  padding: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--md-sys-typescale-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: var(--shape-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.btn-filled {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.btn-filled:hover {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.24);
  background-color: #004ecc;
}

.btn-tonal {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.btn-tonal:hover {
  background-color: #b9d3ff;
}

.btn-outlined {
  background-color: transparent;
  border: 1px solid var(--md-sys-color-outline);
  color: var(--md-sys-color-primary);
}

.btn-outlined:hover {
  background-color: var(--md-sys-color-surface-container);
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--shape-full);
  border: 1px solid var(--md-sys-color-outline);
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.85rem;
  font-weight: 500;
}

.chip .material-symbols-rounded {
  font-size: 1.1rem;
  color: var(--md-sys-color-primary);
}

.chip-assist {
  background-color: var(--md-sys-color-surface-container);
  border: none;
}

/* Typography */
.display-large {
  font-family: var(--md-sys-typescale-display);
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1.1;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  letter-spacing: -0.02em;
}

.headline-medium {
  font-family: var(--md-sys-typescale-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 8px;
}

.title-large {
  font-family: var(--md-sys-typescale-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.body-large {
  font-size: 1.1rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
}

.body-medium {
  font-size: 1rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.5;
}

.label-large {
  font-family: var(--md-sys-typescale-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--md-sys-color-primary);
}

/* Hero Section */
.hero {
  padding-top: calc(var(--nav-h) + 48px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - var(--nav-h));
  text-align: left;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.blob-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,
      var(--md-sys-color-primary-container) 0%,
      transparent 60%);
  top: -20%;
  right: -10%;
  opacity: 0.6;
}

.blob-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle,
      var(--md-sys-color-secondary-container) 0%,
      transparent 60%);
  bottom: 0;
  left: -10%;
  opacity: 0.6;
}

.hero-shape {
  position: absolute;
  opacity: 0.28;
  filter: blur(0.4px);
  animation: floatSlow 14s ease-in-out infinite;
  pointer-events: none;
}

.hero-shape-triangle {
  width: 180px;
  height: 180px;
  top: 12%;
  left: 6%;
  background: linear-gradient(135deg,
      rgba(66, 133, 244, 0.35),
      transparent 70%);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.hero-shape-square {
  width: 120px;
  height: 120px;
  bottom: 18%;
  left: 58%;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(22deg);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-shape-ring {
  width: 240px;
  height: 240px;
  top: 18%;
  right: -8%;
  border-radius: 50%;
  border: 2px solid rgba(66, 133, 244, 0.22);
  box-shadow: 0 0 40px rgba(66, 133, 244, 0.12);
  animation-duration: 18s;
}

.hero-blobs::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%,
      rgba(255, 255, 255, 0.14),
      transparent 18%),
    radial-gradient(circle at 80% 30%,
      rgba(66, 133, 244, 0.08),
      transparent 14%);
  pointer-events: none;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
  padding: 6px 16px;
  border-radius: var(--shape-full);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-contacts {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--md-sys-color-primary);
}

.avatar-container {
  position: relative;
}

.avatar {
  width: 240px;
  height: 240px;
  border-radius: var(--shape-extra-large);
  object-fit: cover;
  background-color: var(--md-sys-color-surface-container-high);
  border: 8px solid var(--md-sys-color-surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.avatar-deco {
  position: absolute;
  width: 48px;
  height: 48px;
  background-color: var(--google-yellow);
  border-radius: var(--shape-medium);
  top: -12px;
  right: -12px;
  z-index: -1;
  transform: rotate(15deg);
}

.avatar-deco-2 {
  position: absolute;
  width: 64px;
  height: 64px;
  background-color: var(--google-red);
  border-radius: var(--shape-full);
  bottom: -16px;
  left: -16px;
  z-index: -1;
}

/* Cards */
.surface-card {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(11, 87, 208, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 32px;
  border-radius: var(--shape-extra-large);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
}

.surface-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(11, 87, 208, 0.1);
  border-color: rgba(11, 87, 208, 0.15);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.stat-card {
  background-color: var(--md-sys-color-surface-container-lowest);
  border-radius: var(--shape-large);
  padding: 24px;
  border: 1px solid var(--md-sys-color-outline);
  text-align: left;
}

.stat-value {
  font-family: var(--md-sys-typescale-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--md-sys-color-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--md-sys-color-on-surface-variant);
  margin-top: 8px;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  width: 100%;
}

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

.skill-group .title-large {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.skill-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--shape-medium);
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Progress Bars */
.progress-container {
  margin-top: 12px;
  background-color: var(--md-sys-color-surface-container-high);
  border-radius: var(--shape-full);
  height: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg,
      var(--md-sys-color-primary),
      var(--md-sys-color-secondary));
  border-radius: var(--shape-full);
  animation: progressFill 2s ease-out forwards;
}

.skill-item {
  margin-bottom: 20px;
  animation: slideInUp 0.6s ease-out forwards;
  opacity: 0;
}

.skill-item:nth-child(1) {
  animation-delay: 0.1s;
}

.skill-item:nth-child(2) {
  animation-delay: 0.2s;
}

.skill-item:nth-child(3) {
  animation-delay: 0.3s;
}

.skill-item:nth-child(4) {
  animation-delay: 0.4s;
}

.skill-item:nth-child(5) {
  animation-delay: 0.5s;
}

/* Projects Grid */
.projects-grid-wrapper {
  position: relative;
  padding: 32px 0 16px;
}

.projects-grid-wrapper .projects-shape {
  position: absolute;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
}

.projects-shape-circle {
  width: 160px;
  height: 160px;
  background: var(--md-sys-color-primary-container);
  border-radius: 50%;
  top: -14px;
  left: -26px;
}

.projects-shape-square {
  width: 140px;
  height: 140px;
  background: var(--md-sys-color-secondary-container);
  top: 10px;
  right: -28px;
  transform: rotate(18deg);
}

.projects-shape-triangle {
  width: 0;
  height: 0;
  border-left: 72px solid transparent;
  border-right: 72px solid transparent;
  border-bottom: 118px solid var(--md-sys-color-tertiary-container);
  bottom: 0;
  left: 20%;
}

.projects-grid {
  display: flex;
  gap: 24px;
  width: max-content;
  flex-shrink: 0; /* Crucial: Prevent shrinking so it can scroll */
  padding: 32px 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-scroll-container {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 32px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  display: flex;
}

.projects-scroll-container::-webkit-scrollbar {
  display: none;
}

.projects-scroll-container:active {
  cursor: grabbing;
}

.projects-filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 32px;
}

.filter-chip {
  padding: 10px 24px;
  border-radius: var(--shape-full);
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
}

.filter-chip:hover {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  transform: translateY(-2px);
}

.filter-chip.active {
  background: var(--md-sys-color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(11, 87, 208, 0.25);
}

.project-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(11, 87, 208, 0.15);
  color: var(--md-sys-color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(11, 87, 208, 0.15);
}

.scroll-btn:hover {
  background: var(--md-sys-color-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(11, 87, 208, 0.25);
}

.scroll-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.prev-btn {
  left: -26px;
}

.next-btn {
  right: -26px;
}

@media (max-width: 1100px) {
  .prev-btn {
    left: 0;
  }

  .next-btn {
    right: 0;
  }
}

@media (max-width: 768px) {
  .scroll-btn {
    display: none;
  }
}

.hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.9);
}

.project-card {
  width: 334px; /* Precise width for 3 cards in 1100px container */
  flex: 0 0 334px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(11, 87, 208, 0.12);
  border-radius: var(--shape-extra-large);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  position: relative;
  justify-self: center;
}

.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      var(--md-primary),
      var(--md-secondary),
      var(--md-tertiary));
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 48px rgba(11, 87, 208, 0.12);
  border-color: rgba(11, 87, 208, 0.2);
}

.project-card::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(11, 87, 208, 0.08);
  top: -22px;
  right: -28px;
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

.project-banner {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(11, 87, 208, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.project-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 2;
}

.project-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-banner img {
  transform: scale(1.1);
}

.project-banner .material-symbols-rounded {
  font-size: 60px;
}

.project-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.project-links {
  margin-top: auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
}

.project-btn {
  flex: 1;
  min-width: 100px;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(11, 87, 208, 0.16);
  color: var(--md-sys-color-primary);
}

.project-btn:hover {
  background: rgba(11, 87, 208, 0.08);
  color: var(--md-sys-color-primary);
}

.project-content {
  flex: 1;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
}

.badge-live {
  background: var(--md-tertiary-container);
  color: var(--md-on-tertiary-container);
}

.badge-wip {
  background: #fff3e0;
  color: #bf360c;
}

.badge-done {
  background: var(--md-surface-high);
  color: var(--md-on-surface-variant);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(11, 87, 208, 0.07);
  padding: 4px 11px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(11, 87, 208, 0.12);
  color: var(--md-primary);
  transition: background 0.15s;
}

.project-tag:hover {
  background: rgba(11, 87, 208, 0.14);
}

.project-links {
  margin-top: auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(11, 87, 208, 0.07);
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.22s ease;
  flex: 1;
  justify-content: center;
  border: 1.5px solid rgba(11, 87, 208, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: var(--md-sys-color-primary);
  box-shadow: 0 1px 6px rgba(11, 87, 208, 0.06);
  min-width: 100px;
}

.project-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 87, 208, 0.14);
  background: rgba(11, 87, 208, 0.08);
  color: var(--md-sys-color-primary);
}

.project-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .projects-grid {
    gap: 16px;
    margin: 0 auto;
  }

  .projects-grid-wrapper {
    padding: 44px 0 20px;
  }
}

@media (max-width: 650px) {
  .projects-grid-wrapper {
    padding: 32px 0 16px;
  }

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

  .projects-shape-circle,
  .projects-shape-square,
  .projects-shape-triangle {
    display: none;
  }

  .project-banner {
    min-height: 160px;
  }

  .project-content {
    padding: 18px;
  }

  .project-links {
    gap: 10px;
    padding-top: 12px;
  }

  .project-btn {
    flex: 1 1 auto;
    min-width: unset;
    width: 100%;
  }
}

/* Carousel Section */
.projects-grid-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Modern Carousel System - Built from Scratch */
.modern-carousel {
  position: relative;
  width: 100%;
  max-width: 1050px; /* Reduced to make it feel more centered/compact */
  margin: 48px auto;
  display: flex;
  align-items: center;
}

.modern-scroll-track {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 24px 40px; /* Balanced end-padding for centered feel */
  display: flex;
  gap: 32px;
  box-sizing: border-box;
}

.modern-scroll-track::-webkit-scrollbar {
  display: none;
}

.modern-card {
  flex: 0 0 calc((100% - 64px - 80px) / 3); /* (1050 - gaps - 80 padding) / 3 */
  scroll-snap-align: start;
  min-height: 400px;
  background: white;
  border: 1px solid rgba(11, 87, 208, 0.1);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.modern-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(11, 87, 208, 0.12);
  border-color: rgba(11, 87, 208, 0.2);
}

.modern-card-banner {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.05), rgba(66, 133, 244, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.modern-card:hover .modern-card-banner img {
  transform: scale(1.1);
}

.modern-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modern-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: white;
  border: 1px solid rgba(11, 87, 208, 0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--md-sys-color-primary);
}

.modern-nav-btn:hover {
  background: var(--md-sys-color-primary);
  color: white;
  box-shadow: 0 8px 24px rgba(11, 87, 208, 0.2);
}

.modern-nav-btn.prev { left: -28px; }
.modern-nav-btn.next { right: -28px; }

@media (max-width: 1024px) {
  .modern-card {
    flex: 0 0 calc((100% - 24px) / 2); /* 2 cards on tablet */
  }
}

@media (max-width: 768px) {
  .modern-card {
    flex: 0 0 85%; /* 1.2 cards on mobile */
  }
  .modern-nav-btn { display: none; }
}

.certifications-carousel .carousel-content {
  padding: 22px 22px 26px;
  color: var(--md-sys-color-on-surface);
  background: transparent;
}

.certifications-carousel .carousel-content .btn-outlined {
  width: 100%;
  border-color: rgba(11, 87, 208, 0.18);
}

.certifications-carousel .carousel-btn {
  background: var(--cert-button);
  color: var(--md-sys-color-on-surface);
  border: 1px solid rgba(11, 87, 208, 0.15);
  width: 48px;
  height: 48px;
  margin: 0 12px;
}

.certifications-carousel .carousel-btn:hover {
  background: rgba(11, 87, 208, 0.14);
}

.certifications-carousel .carousel-content .title-large,
.certifications-carousel .carousel-content .body-medium,
.certifications-carousel .carousel-content .btn-outlined {
  color: var(--md-sys-color-on-surface);
}

.certifications-carousel .carousel-content .btn-outlined:hover {
  background: rgba(11, 87, 208, 0.08);
}

.carousel-content {
  padding: 20px;
}

.carousel-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  margin: 0 16px;
}

.carousel-btn:hover {
  background: var(--md-sys-color-primary);
  color: white;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .carousel-btn {
    display: none;
  }
}

/* Experience Timeline */
.timeline {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.timeline-item {
  background-color: var(--md-sys-color-surface-container-low);
  padding: 32px;
  border-radius: var(--shape-extra-large);
  border: 1px solid var(--md-sys-color-outline-variant);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background-color: var(--md-sys-color-surface-container);
}

.timeline-marker {
  display: none;
}

.timeline-date {
  color: var(--md-sys-color-primary);
  font-weight: 500;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
  position: relative;
  overflow: hidden;
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  border-radius: var(--shape-extra-large);
  padding: 48px 40px;
  margin: 48px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.contact-section>* {
  position: relative;
  z-index: 1;
}

.contact-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.contact-shape {
  position: absolute;
  border-radius: var(--shape-large);
  opacity: 0.52;
  filter: blur(0.4px);
}

.contact-shape.circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(66, 133, 244, 0.32),
      transparent 60%);
  top: 8%;
  left: -36px;
}

.contact-shape.square {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg,
      rgba(255, 193, 7, 0.28),
      rgba(255, 193, 7, 0.1));
  top: 28%;
  left: -18px;
  transform: rotate(-18deg);
}

.contact-shape.pill {
  width: 240px;
  height: 56px;
  background: linear-gradient(90deg,
      rgba(76, 175, 80, 0.32),
      transparent);
  bottom: 16%;
  left: -62px;
  transform: rotate(-12deg);
}

.contact-shape.ring {
  width: 96px;
  height: 96px;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  top: 45%;
  left: 16%;
  transform: translate(-10%, -50%);
}

.contact-shape.triangle {
  width: 0;
  height: 0;
  border-left: 0 solid transparent;
  border-right: 72px solid transparent;
  border-bottom: 96px solid rgba(156, 39, 176, 0.18);
  bottom: 10%;
  left: 8%;
  transform: rotate(-12deg);
}

.contact-title {
  color: var(--md-sys-color-on-secondary-container);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(11, 87, 208, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(11, 87, 208, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin: 0 15px;
  box-shadow: 0 12px 30px rgba(11, 87, 208, 0.15);
}

.social-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 255, 255, 0.12),
      transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.social-btn:hover::before {
  transform: translateX(100%);
}

.social-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 14px 40px rgba(11, 87, 208, 0.25);
  background: rgba(11, 87, 208, 0.22);
}

.social-btn:active {
  transform: translateY(-2px) scale(0.98);
}

.github-btn:hover {
  background: linear-gradient(135deg, #24292e, #4078c0);
  box-shadow: 0 12px 40px rgba(36, 41, 46, 0.3);
}

.linkedin-btn:hover {
  background: linear-gradient(135deg, #0077b5, #005885);
  box-shadow: 0 12px 40px rgba(0, 119, 181, 0.3);
}

.email-btn:hover {
  background: linear-gradient(135deg, #ea4335, #d33b2c);
  box-shadow: 0 12px 40px rgba(234, 67, 53, 0.3);
}

.social-btn svg {
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease;
  display: block;
}

.social-btn:hover svg {
  transform: scale(1.1);
}

/* Contact Email Button */
.contact-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--shape-large);
  background: linear-gradient(135deg, #ea4335, #d33b2c);
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(234, 67, 53, 0.28);
  width: 100%;
}

.contact-email-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.contact-email-btn:hover::before {
  transform: translateX(100%);
}

.contact-email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(234, 67, 53, 0.32);
  background: linear-gradient(135deg, #d33b2c, #c23321);
}

.contact-email-btn:active {
  transform: translateY(0px);
}

.contact-email-btn svg {
  width: 22px;
  height: 22px;
  display: inline-flex;
  transition: transform 0.3s ease;
}

.contact-email-btn:hover svg {
  transform: scale(1.1);
}

/* Footer */
footer {
  text-align: center;
  padding: 32px 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.9rem;
}

/* Enhanced Cards */
.google-card {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(11, 87, 208, 0.08);
  border-radius: var(--shape-extra-large);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(11, 87, 208, 0.04);
  transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  overflow: hidden;
}

.google-card:hover {
  box-shadow: 0 16px 40px rgba(11, 87, 208, 0.12);
  transform: translateY(-6px);
  border-color: rgba(11, 87, 208, 0.15);
  background-color: rgba(255, 255, 255, 0.9);
}

.project-card-enhanced {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(11, 87, 208, 0.12);
  border-radius: var(--shape-extra-large);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(11, 87, 208, 0.08);
}

.project-card-enhanced::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
      var(--md-sys-color-primary),
      var(--md-sys-color-secondary),
      var(--md-sys-color-tertiary));
}

.project-card-enhanced:hover {
  transform: translateY(-8px);
  box-shadow:
    0 22px 60px rgba(11, 87, 208, 0.16),
    0 8px 24px rgba(0, 0, 0, 0.12);
}

.project-banner {
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s ease;
  min-height: 180px;
  border-bottom: 1px solid rgba(11, 87, 208, 0.08);
}

.project-card-enhanced:hover .project-banner {
  transform: translateY(-2px) scale(1.02);
}

.project-banner span {
  transition: transform 0.3s ease;
}

.project-card-enhanced:hover .project-banner span {
  transform: scale(1.08) rotate(2deg);
}

/* FAB */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: var(--shape-full);
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.fab:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

.fab:active {
  transform: scale(0.95);
}

/* Section Headers */
.section-header {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.header-deco {
  position: absolute;
  z-index: -1;
  opacity: 0.6;
}

.deco-sm-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--google-yellow);
  top: -10px;
  right: -20px;
  animation: float 4s infinite alternate;
}

.deco-sm-rect {
  width: 50px;
  height: 20px;
  background: var(--google-blue);
  border-radius: 8px;
  transform: rotate(-15deg);
  top: -5px;
  left: -25px;
  animation: float 6s infinite ease-in-out;
}

.deco-md-pill {
  width: 80px;
  height: 30px;
  background: var(--google-red);
  border-radius: 20px;
  transform: rotate(10deg);
  bottom: -10px;
  right: -30px;
  animation: float 7s infinite ease-in-out reverse;
  mix-blend-mode: multiply;
}

.deco-md-box {
  width: 60px;
  height: 60px;
  border: 4px solid var(--google-green);
  border-radius: 12px;
  top: -20px;
  right: -40px;
  transform: rotate(20deg);
  animation: pulse 5s infinite;
}

.deco-dots {
  width: 80px;
  height: 80px;
  background-image: radial-gradient(var(--md-sys-color-primary) 3px,
      transparent 3px);
  background-size: 16px 16px;
  top: -10px;
  left: -30px;
  opacity: 0.3;
  animation: float 8s infinite linear;
}

/* Ambient Background */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -3;
  pointer-events: none;
  background-color: #f8fafd;
}

.ambient-blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.6;
  border-radius: 50%;
  animation: floatBlob 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: rgba(255, 218, 185, 0.45);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 700px;
  height: 700px;
  background: rgba(255, 235, 153, 0.35);
  top: 30%;
  right: -200px;
  animation-delay: -5s;
}

.blob-3 {
  width: 500px;
  height: 500px;
  background: rgba(230, 240, 255, 0.35);
  bottom: -150px;
  left: 20%;
  animation-delay: -10s;
}

.blob-4 {
  width: 600px;
  height: 600px;
  background: rgba(255, 228, 225, 0.4);
  top: 10%;
  left: 40%;
  animation-delay: -7s;
}

/* Loading Dots */
.loading-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--md-sys-color-primary);
  animation: googleDots 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
  animation-delay: -0.16s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0s;
}

/* Illustrations */
.illustration-container {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-illustration {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      var(--md-sys-color-primary-container),
      var(--md-sys-color-secondary-container));
  border-radius: var(--shape-large);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.illustration-icon {
  font-size: 4rem;
  color: var(--md-sys-color-primary);
  animation: float 3s ease-in-out infinite;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 4s ease-in-out infinite;
}

.shape:nth-child(1) {
  width: 40px;
  height: 40px;
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 20px;
  height: 20px;
  top: 60%;
  right: 30%;
  animation-delay: 1s;
}

.shape:nth-child(3) {
  width: 30px;
  height: 30px;
  bottom: 20%;
  left: 60%;
  animation-delay: 2s;
}

/* Interactions */
.chip:hover {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  transform: scale(1.05);
}

.project-tag:hover {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border-color: var(--md-sys-color-primary-container);
}

.social-btn:hover {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  transform: translateY(-2px) scale(1.05);
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-blobs .blob-1:hover,
.hero-blobs .blob-2:hover {
  animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {

  .hero {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-top: calc(var(--nav-h) + 40px);
    gap: 32px;
  }

  .avatar-container {
    order: -1;
    display: flex !important;
    justify-content: center;
  }

  .avatar {
    width: 180px;
    height: 180px;
  }

  .hero-actions, .hero-contacts {
    justify-content: center;
  }

  .contact-section {
    padding: 40px 16px;
    grid-template-columns: 1fr;
  }

  .nav-items {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .fab {
    bottom: 16px;
    right: 16px;
  }

  .hero-decoration {
    display: none;
  }

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

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

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .experience-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    gap: 8px;
  }

  .hero-contacts {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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

  .chip {
    padding: 4px 12px;
    font-size: 0.8rem;
  }

  .social-links {
    justify-content: center;
  }

  .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}

/* --- Utilities & Specific Fixes (Post-Extraction) --- */

.m-l-8 { margin-left: 8px; }
.m-b-0 { margin-bottom: 0 !important; }
.m-b-16 { margin-bottom: 16px; }
.m-b-24 { margin-bottom: 24px; }
.m-b-32 { margin-bottom: 32px; }
.m-t-n10 { margin-top: -10px; }
.m-t-8 { margin-top: 8px; }
.m-t-12 { margin-top: 12px; }
.m-t-16 { margin-top: 16px; }
.m-t-24 { margin-top: 24px; }
.m-t-64 { margin-top: 64px; }
.m-r-8 { margin-right: 8px; }
.m-x-auto { margin-left: auto; margin-right: auto; }

.text-center { text-align: center !important; }
.align-start { align-items: flex-start !important; }
.align-center { align-items: center !important; }
.justify-center { justify-content: center !important; }

.max-w-400 { max-width: 400px; }
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }
.w-full { width: 100% !important; }

.delay-200 { animation-delay: 0.2s !important; }
.delay-400 { animation-delay: 0.4s !important; }
.delay-500 { animation-delay: 0.5s !important; }
.delay-600 { animation-delay: 0.6s !important; }

.color-primary { color: var(--md-sys-color-primary) !important; }
.color-on-secondary { color: var(--md-sys-color-on-secondary-container); }
.bg-white-90 { background-color: rgba(255, 255, 255, 0.9) !important; }
.no-shadow { box-shadow: none !important; }
.flex-column { display: flex; flex-direction: column; }
.gap-16 { gap: 16px; }

/* Hero Decorative Shapes */
.shape-pill-1 {
  transform: scale(0.6) rotate(-45deg);
  top: -20%;
  left: -10%;
  opacity: 0.5;
  z-index: -1;
}

.shape-rect-2 {
  transform: scale(0.5) rotate(15deg);
  right: 0%;
  top: 5%;
  opacity: 0.7;
  border-color: var(--google-yellow);
}

.shape-circle-1 {
  transform: scale(0.4);
  right: -10%;
  bottom: -10%;
  opacity: 0.6;
  box-shadow: none;
}

/* Section Specific Overrides */
.section-header-left .deco-sm-circle { left: -20px; right: auto; }
.section-header-left .deco-md-pill { top: -10px; bottom: auto; }

.cert-header-deco-dots { left: -40px; top: -20px; }
.cert-header-deco-circle { right: -20px; bottom: -10px; }

.edu-header-deco-rect { right: -25px; left: auto; }

.achieve-header-deco-circle { left: -20px; right: auto; background: var(--google-blue) !important; }
.achieve-header-deco-box { right: -30px; transform: scale(0.6) rotate(-20deg); }

.contact-title-large {
  font-size: 3rem !important;
  margin-top: -10px !important;
}

.contact-p-large {
  color: var(--md-sys-color-on-secondary-container) !important;
  max-width: 400px;
  margin-top: 16px;
}

.icon-large {
  font-size: 48px !important;
  color: var(--md-sys-color-primary);
  margin-bottom: 16px;
}

.marker-outline {
  background-color: var(--md-sys-color-outline) !important;
}

.m-b-4 { margin-bottom: 4px !important; }

.cert-card-btn {
  margin-top: 16px;
  width: 100%;
}

.project-banner-gradient {
  background: linear-gradient(135deg, var(--md-secondary-container), #ffffff);
  position: relative;
}

.project-banner-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.2), transparent);
  pointer-events: none;
}

.icon-18 {
  font-size: 18px !important;
}

footer {
  padding: 80px 0 40px;
  text-align: center;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.9rem;
  border-top: 1px solid rgba(11, 87, 208, 0.08);
  margin-top: 80px;
}

/* Filtering System */
.projects-filter-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-chip {
  padding: 8px 20px;
  border-radius: var(--shape-full);
  border: 1px solid rgba(11, 87, 208, 0.12);
  background: white;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-chip:hover {
  background: rgba(11, 87, 208, 0.04);
  border-color: var(--md-sys-color-primary);
}

.filter-chip.active {
  background: var(--md-sys-color-primary);
  color: white;
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 4px 12px rgba(11, 87, 208, 0.2);
}

.modern-card.hidden {
  display: none !important;
}

