/* ==========================================================================
   kieran-dev.com — Frutiger Aero Portfolio Stylesheet
   ========================================================================== */

:root {
  --font-main: "Plus Jakarta Sans", "Segoe UI", "Frutiger", system-ui, -apple-system, sans-serif;
  --font-display: "Nunito", "Segoe UI", system-ui, sans-serif;

  /* Core Aero Palette */
  --ink-deep: #062a47;
  --ink-body: #143f60;
  --ink-muted: #2d5d80;

  --aero-cyan: #00b8f4;
  --aero-sky: #38bdf8;
  --aero-cobalt: #0077d6;
  --aero-emerald: #19c37d;
  --aero-lime: #6ee740;
  --aero-teal: #00bfa5;

  /* Glass Surfaces */
  --glass-bg: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(235, 250, 255, 0.56) 45%,
    rgba(210, 242, 255, 0.48) 100%
  );
  --glass-border: rgba(255, 255, 255, 0.82);
  --glass-shadow:
    0 18px 44px rgba(5, 55, 102, 0.22),
    0 4px 14px rgba(0, 118, 196, 0.14),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(120, 210, 255, 0.35);

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  color: var(--ink-body);
  background-color: #0b7cc1;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Fixed Frutiger Aero Backdrop & Atmospheric Effects
   ========================================================================== */

.aero-backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.aero-wallpaper {
  position: absolute;
  inset: -16px;
  background-image: url("assets/aero-bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: saturate(1.08) brightness(1.02);
  transform: scale(1.02);
}

.aero-aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 15% 10%, rgba(255, 255, 255, 0.34), transparent 65%),
    radial-gradient(ellipse 60% 45% at 85% 18%, rgba(125, 249, 255, 0.26), transparent 60%),
    radial-gradient(ellipse 55% 40% at 50% 95%, rgba(102, 235, 155, 0.22), transparent 65%);
  animation: auroraDrift 18s ease-in-out infinite alternate;
}

.aero-sunbeam {
  position: absolute;
  top: -18%;
  right: -10%;
  width: 68vw;
  height: 68vw;
  max-width: 780px;
  max-height: 780px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 240, 0.38) 0%,
    rgba(190, 245, 255, 0.16) 35%,
    transparent 70%
  );
  animation: sunPulse 10s ease-in-out infinite alternate;
}

.aero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 72, 145, 0.14) 0%,
    rgba(0, 95, 165, 0.04) 40%,
    rgba(0, 56, 102, 0.18) 100%
  );
}

@keyframes auroraDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-2%, 1.5%, 0) scale(1.05);
  }
}

@keyframes sunPulse {
  0% {
    opacity: 0.72;
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1.06);
  }
}

/* ==========================================================================
   Interactive Floating Bubbles Layer
   ========================================================================== */

.bubble-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.aero-bubble {
  position: absolute;
  bottom: -120px;
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
  background:
    radial-gradient(circle at 28% 26%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.55) 14%, transparent 32%),
    radial-gradient(circle at 75% 78%, rgba(130, 245, 255, 0.45) 0%, transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 48%, rgba(165, 238, 255, 0.34) 84%, rgba(255, 255, 255, 0.78) 100%);
  box-shadow:
    inset 0 0 12px rgba(255, 255, 255, 0.6),
    inset -4px -6px 14px rgba(0, 184, 244, 0.28),
    0 6px 18px rgba(0, 92, 168, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.65);
  transition: transform 0.18s ease, filter 0.18s ease;
  animation: bubbleRise var(--rise-duration, 18s) linear infinite;
  will-change: transform;
}

.aero-bubble::after {
  content: "";
  position: absolute;
  top: 15%;
  left: 20%;
  width: 24%;
  height: 15%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  transform: rotate(-28deg);
  filter: blur(0.4px);
}

.aero-bubble:hover {
  filter: brightness(1.16) saturate(1.25);
  box-shadow:
    inset 0 0 16px rgba(255, 255, 255, 0.82),
    0 0 22px rgba(110, 242, 255, 0.65);
}

.aero-bubble.is-popping {
  animation: bubblePop 0.28s ease-out forwards !important;
  pointer-events: none;
}

@keyframes bubbleRise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.92);
    opacity: 0;
  }
  8% {
    opacity: var(--bubble-opacity, 0.78);
  }
  50% {
    transform: translate3d(var(--sway-x, 24px), -55vh, 0) scale(1.03);
  }
  90% {
    opacity: var(--bubble-opacity, 0.78);
  }
  100% {
    transform: translate3d(calc(var(--sway-x, 24px) * -0.6), -118vh, 0) scale(0.96);
    opacity: 0;
  }
}

@keyframes bubblePop {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  60% {
    transform: scale(1.55);
    opacity: 0.45;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* ==========================================================================
   Glass Utility Surfaces
   ========================================================================== */

.glass-panel,
.glass-window {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-window {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* Top glossy glass sheen */
.glass-window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 46%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.56) 0%,
    rgba(255, 255, 255, 0.16) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.glass-window > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Floating Aero Glass Navbar
   ========================================================================== */

.aero-navbar-wrap {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding: 0 20px;
  margin-top: 16px;
}

.aero-navbar {
  max-width: 1020px;
  margin: 0 auto;
  padding: 10px 14px 10px 18px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(225, 247, 255, 0.62) 49%,
    rgba(202, 238, 255, 0.66) 51%,
    rgba(226, 250, 255, 0.72) 100%
  );
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-deep);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-orb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, #ffffff 0%, #a5f3fc 26%, #00a8f0 64%, #005bb5 100%);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.95),
    0 2px 8px rgba(0, 122, 214, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-pill {
  position: relative;
  text-decoration: none;
  color: var(--ink-deep);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: transform 0.16s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(190, 240, 255, 0.76) 50%,
    rgba(140, 224, 255, 0.8) 100%
  );
  color: #004e8f;
  box-shadow:
    0 3px 10px rgba(0, 128, 214, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  transform: translateY(-1px);
  outline: none;
}

.nav-utilities {
  display: flex;
  align-items: center;
  gap: 8px;
}

.utility-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.86) 0%,
    rgba(214, 244, 255, 0.65) 100%
  );
  color: var(--ink-deep);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow:
    0 2px 8px rgba(0, 86, 156, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.live-clock {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pop-counter {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(183, 252, 224, 0.78));
  color: #065f46;
}

.pop-counter.hidden {
  display: none;
}

.pop-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #10b981);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

.sound-toggle {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sound-toggle:hover {
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(0, 145, 224, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.sound-toggle.is-on {
  background: linear-gradient(
    180deg,
    rgba(194, 246, 255, 0.95) 0%,
    rgba(104, 216, 255, 0.85) 50%,
    rgba(56, 189, 248, 0.88) 100%
  );
  color: #033459;
}

.sound-toggle.is-on .icon-sound-off,
.sound-toggle:not(.is-on) .icon-sound-on {
  display: none;
}

/* ==========================================================================
   Page Layout & Sections
   ========================================================================== */

.page-container {
  position: relative;
  z-index: 5;
  max-width: 1020px;
  margin: 0 auto;
  padding: 36px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.section {
  scroll-margin-top: 96px;
}

/* ==========================================================================
   Hero / About Me Window
   ========================================================================== */

.window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(196, 238, 255, 0.56) 50%,
    rgba(164, 225, 255, 0.45) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-deep);
}

.window-title,
.window-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mini-orb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #00b8f4 55%, #0066cc 100%);
  box-shadow: 0 0 8px rgba(0, 184, 244, 0.65);
}

.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d9ffe0, #22c55e 55%, #15803d 100%);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.85);
  animation: statusPulse 2.4s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  }
  50% {
    transform: scale(1.16);
    box-shadow: 0 0 14px rgba(34, 197, 94, 1);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  gap: 38px;
  padding: 40px 38px 42px;
}

/* Avatar Glass Frame */
.avatar-column {
  display: flex;
  justify-content: center;
}

.avatar-frame {
  position: relative;
  width: 216px;
  height: 216px;
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(148, 233, 255, 0.72) 50%,
    rgba(56, 189, 248, 0.65) 100%
  );
  box-shadow:
    0 18px 34px rgba(0, 82, 155, 0.28),
    0 0 0 2px rgba(255, 255, 255, 0.85),
    inset 0 2px 4px rgba(255, 255, 255, 0.95);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.avatar-frame:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow:
    0 24px 44px rgba(0, 108, 196, 0.36),
    0 0 28px rgba(72, 224, 255, 0.55),
    0 0 0 2px rgba(255, 255, 255, 0.95);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.avatar-gloss {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 44%;
  border-radius: 25px 25px 50% 50% / 25px 25px 18px 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.44) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  pointer-events: none;
}

.avatar-presence {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #e8ffed 0%, #34d399 42%, #059669 100%);
  border: 3.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.55);
}

/* Bio Column */
.tagline-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(180deg, #3fd0ff 0%, #0095e8 52%, #0077cc 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 5px 14px rgba(0, 128, 224, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
  margin-bottom: 12px;
}

.tagline-shine {
  position: absolute;
  inset: 0 0 50% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.hero-name {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink-deep);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.75);
}

.hero-bio {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-bio p {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.65;
  color: var(--ink-body);
}

.hero-interests {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.interests-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink-deep);
}

.interest-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: #05497a;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(202, 242, 255, 0.78) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 2px 6px rgba(0, 96, 170, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

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

/* ==========================================================================
   Skeuomorphic Frutiger Aero Gel Buttons
   ========================================================================== */

.aero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.78);
  cursor: pointer;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 40, 82, 0.35);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.aero-btn > * {
  position: relative;
  z-index: 1;
}

.btn-gloss {
  position: absolute !important;
  inset: 1px 2px 50% 2px;
  border-radius: 999px 999px 60% 60% / 999px 999px 10px 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.16) 100%
  );
  pointer-events: none;
  z-index: 0 !important;
}

.aero-btn-aqua {
  background: linear-gradient(180deg, #43d3ff 0%, #009ce8 49%, #0077cc 52%, #0098e6 100%);
  box-shadow:
    0 8px 20px rgba(0, 122, 214, 0.36),
    inset 0 -2px 6px rgba(130, 238, 255, 0.45);
}

.aero-btn-emerald {
  background: linear-gradient(180deg, #52e89d 0%, #15b86e 49%, #0d995a 52%, #24c97d 100%);
  box-shadow:
    0 8px 20px rgba(13, 153, 90, 0.32),
    inset 0 -2px 6px rgba(167, 255, 210, 0.45);
}

.aero-btn-glass {
  color: var(--ink-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(218, 245, 255, 0.78) 50%,
    rgba(196, 236, 255, 0.84) 100%
  );
  box-shadow:
    0 6px 14px rgba(0, 88, 158, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.aero-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.aero-btn:active {
  transform: translateY(1px) scale(0.985);
}

.aero-btn-sm {
  padding: 8px 16px;
  font-size: 0.84rem;
}

/* ==========================================================================
   Section Headers & Orbs
   ========================================================================== */

.glass-pill-header {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 26px 14px 16px;
  margin-bottom: 24px;
  border-radius: 24px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.76) 0%,
    rgba(222, 247, 255, 0.58) 100%
  );
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1.5px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    0 12px 28px rgba(6, 62, 114, 0.16),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.96);
}

.section-icon-orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.section-icon-orb::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 12%;
  right: 12%;
  height: 44%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.05));
}

.section-icon-orb svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 45, 90, 0.35));
}

.orb-aqua {
  background: radial-gradient(circle at 30% 25%, #7de8ff, #009ce8 60%, #005eb8 100%);
  box-shadow: 0 6px 16px rgba(0, 140, 230, 0.42);
}

.orb-emerald {
  background: radial-gradient(circle at 30% 25%, #86f7b8, #14b86a 60%, #047857 100%);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.42);
}

.orb-cobalt {
  background: radial-gradient(circle at 30% 25%, #93c5fd, #2563eb 60%, #1d4ed8 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.42);
}

.orb-teal {
  background: radial-gradient(circle at 30% 25%, #7ef5e7, #0d9488 60%, #0f766e 100%);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.42);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ink-deep);
  line-height: 1.15;
}

.section-subtitle {
  margin: 3px 0 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
  font-weight: 600;
}

/* ==========================================================================
   Projects Grid & Aero Glass Cards
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    162deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(232, 249, 255, 0.6) 52%,
    rgba(208, 241, 255, 0.54) 100%
  );
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 14px 32px rgba(5, 55, 102, 0.18),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.96);
  overflow: hidden;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.24s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 44%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.52) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

/* Dynamic glossy highlight that follows mouse hover */
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.42),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 22px 44px rgba(0, 88, 165, 0.26),
    0 0 24px rgba(102, 224, 255, 0.36),
    inset 0 1.5px 0 rgba(255, 255, 255, 1);
}

.project-card:hover::after {
  opacity: 1;
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.project-head-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.project-orb {
  width: 44px;
  height: 44px;
}

.project-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--ink-deep);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 2px 6px rgba(0, 62, 118, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.status-private {
  background: linear-gradient(180deg, rgba(255, 248, 224, 0.96) 0%, rgba(254, 226, 152, 0.85) 100%);
  color: #7c4a03;
}

.status-coming-soon {
  padding: 7px 14px;
  font-size: 0.8rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(212, 240, 255, 0.72) 100%);
  color: var(--ink-muted);
}

.project-card.is-coming-soon {
  background: linear-gradient(
    162deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(226, 246, 255, 0.44) 55%,
    rgba(202, 236, 255, 0.38) 100%
  );
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.72);
}

.project-card.is-coming-soon .project-orb {
  opacity: 0.78;
}

.project-desc {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--ink-body);
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: #064878;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(202, 240, 255, 0.76) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 2px 6px rgba(0, 96, 170, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-inner {
  padding: 40px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-orb {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
}

.contact-subtitle {
  margin: 8px 0 28px;
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-body);
}

.contact-grid {
  width: 100%;
  max-width: 660px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  text-decoration: none;
  text-align: left;
  font-family: var(--font-main);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

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

.tile-gloss {
  position: absolute !important;
  inset: 0 0 50% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
  z-index: 0 !important;
}

.tile-github {
  background: linear-gradient(180deg, #3b82c4 0%, #1c5085 49%, #123c69 52%, #1e5b96 100%);
  box-shadow: 0 10px 24px rgba(12, 54, 98, 0.34);
}

.tile-discord {
  background: linear-gradient(180deg, #7c89ff 0%, #5865f2 49%, #4752c4 52%, #6370f7 100%);
  box-shadow: 0 10px 24px rgba(71, 82, 196, 0.36);
}

.contact-tile:hover {
  transform: translateY(-4px);
  filter: brightness(1.06);
}

.contact-tile:active {
  transform: translateY(0) scale(0.985);
}

.contact-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.contact-tile-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.contact-tile-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.88;
}

.contact-tile-handle {
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-tile-arrow {
  font-size: 1.25rem;
  font-weight: 800;
  opacity: 0.9;
}

.contact-tile-badge {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Footer & Toast
   ========================================================================== */

.aero-footer {
  position: relative;
  z-index: 5;
  padding: 0 20px 36px;
  display: flex;
  justify-content: center;
}

.footer-pill {
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-deep);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-sep {
  opacity: 0.55;
}

.footer-hint {
  color: #035c9c;
  font-weight: 700;
}

.aero-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(202, 245, 255, 0.88));
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 32px rgba(4, 58, 108, 0.28);
  color: var(--ink-deep);
  font-weight: 700;
  font-size: 0.9rem;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.aero-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 820px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 24px 34px;
    gap: 24px;
  }

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

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

@media (max-width: 640px) {
  .aero-navbar {
    flex-wrap: wrap;
    border-radius: 24px;
    padding: 10px 14px;
    gap: 10px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.65);
  }

  .window-chrome {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .avatar-frame {
    width: 176px;
    height: 176px;
  }

  .live-clock {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aero-aurora,
  .aero-sunbeam,
  .aero-bubble,
  .online-dot {
    animation: none !important;
  }
}
