/* Jess Kuras - Personal Website Master Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens & CSS Variables --- */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Modern Sleek Dark Palette */
  --bg-dark: #030712;
  --bg-gradient: radial-gradient(ellipse 80% 80% at 50% -20%, rgba(99, 102, 241, 0.15), rgba(255, 255, 255, 0));
  
  /* Tailored Premium Accents */
  --accent-primary: #6366f1; /* Indigo */
  --accent-primary-glow: rgba(99, 102, 241, 0.4);
  --accent-secondary: #ec4899; /* Magenta */
  --accent-secondary-glow: rgba(236, 72, 153, 0.4);
  --accent-gold: #f59e0b; /* Amber Gold */
  --accent-gold-glow: rgba(245, 158, 11, 0.3);
  
  /* Text */
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;
  
  /* Glassmorphism Elements */
  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-shadow-hover: 0 12px 40px 0 rgba(99, 102, 241, 0.15);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.home-page {
  background-color: #050816;
  background-image:
    radial-gradient(circle at top, rgba(74, 135, 255, 0.18), transparent 24%),
    radial-gradient(circle at 20% 20%, rgba(122, 92, 255, 0.14), transparent 22%),
    linear-gradient(180deg, #11152d 0%, #060917 38%, #040611 100%);
}

body.home-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 140px 140px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 78%);
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-container {
  max-width: 1380px;
  justify-content: flex-start;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

/* --- Micro-Animations --- */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Hero Headers --- */
.hero {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-home {
  margin-bottom: 2.2rem;
}

.hero-nameplate {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

/* Inline name + avatar row */
.hero-name-row {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-home .hero-name-row {
  gap: 0.75rem;
  margin-bottom: 0;
}

.hero-avatar {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.hero-home .hero-avatar {
  width: 160px;
  height: 160px;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.35));
}



.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated; /* keeps pixel art crisp */
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-home h1 {
  margin-bottom: 0.3rem;
  font-size: clamp(3.6rem, 7vw, 5.35rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
  padding-right: 0.08em; /* prevents gradient clip from shaving the last letter */
  background: linear-gradient(180deg, #ffffff 15%, #e4ebff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle-row {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-subtitle {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(0.92rem, 1.7vw, 1.05rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #9ea6bb;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4ea9ff 0%, #2c7cdf 100%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(78, 169, 255, 0.35);
}

.hero-divider {
  width: min(100%, 1240px);
  height: 2px;
  margin-top: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(111, 115, 255, 0.92), rgba(111, 115, 255, 0.62));
  box-shadow: 0 0 0 1px rgba(79, 93, 214, 0.16), 0 0 24px rgba(111, 115, 255, 0.2);
}

.hero .tagline {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Landing Page Nav Grid (index.html) --- */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  width: 100%;
  margin-top: 1rem;
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.home-page .nav-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
  align-items: stretch;
}

.nav-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.home-page .nav-card {
  min-height: 250px;
  padding: 1.8rem 1.4rem 1.35rem;
  background: linear-gradient(180deg, rgba(18, 24, 43, 0.96) 0%, rgba(13, 18, 35, 0.94) 100%);
  border: 1px solid rgba(99, 115, 158, 0.28);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 20px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-primary-glow), transparent 60%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.home-page .nav-card::before {
  background:
    radial-gradient(circle at top left, rgba(64, 148, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(120, 87, 255, 0.12), transparent 56%);
}

.home-page .nav-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.nav-card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

.home-page .nav-card:hover {
  transform: translateY(-6px);
  border-color: rgba(126, 150, 207, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 48px rgba(41, 73, 170, 0.18);
}

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

.nav-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  z-index: 1;
}

.home-page .nav-card-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13rem;
  line-height: 1;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  filter: none;
  margin-bottom: 0;
  z-index: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-page .nav-card:hover .nav-card-icon {
  opacity: 0.18;
  transform: scale(1.08) rotate(-4deg);
}

.nav-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  z-index: 1;
}

.home-page .nav-card > div:not(.nav-card-icon),
.home-page .nav-card > .arrow {
  position: relative;
  z-index: 1;
}

.home-page .nav-card h3 {
  font-size: clamp(1.4rem, 1.6vw, 1.7rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
  letter-spacing: -0.04em;
}

.nav-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  z-index: 1;
}

.home-page .nav-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #a8b0c6;
  max-width: 22ch;
  margin-bottom: 1.25rem;
}

.nav-card .arrow {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-smooth);
  z-index: 1;
}

.home-page .nav-card .arrow {
  font-size: 0.9rem;
  font-weight: 700;
  color: #6f73ff;
  gap: 0.35rem;
  letter-spacing: -0.02em;
}

@media (max-width: 1200px) {
  .home-page .nav-grid {
    width: min(100%, 860px);
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.2rem;
  }
}

.nav-card:hover .arrow {
  transform: translateX(6px);
  color: var(--text-primary);
}

/* --- Card Grids (apps.html & voice.html) --- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

/* Image Containers & Rich Fallback Gradients */
.card-media-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b, #311042);
  display: flex;
  align-items: center;
  justify-content: center;
}

.apps-page .card-media-wrapper {
  height: 250px;
}

.card-media-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(3, 7, 18, 0.8));
}

.card-media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.card:hover .card-media-wrapper img {
  transform: scale(1.05);
}

/* Voice page: keep full audiobook covers visible without increasing tile size */
.audiobooks-section .card-media-wrapper img {
  object-fit: contain;
  object-position: center;
  padding: 0.4rem 0.9rem;
  background: rgba(4, 7, 18, 0.25);
}

.audiobooks-section .card-media-wrapper::after {
  background: linear-gradient(to bottom, transparent, rgba(3, 7, 18, 0.2));
}

.audiobooks-section .card:hover .card-media-wrapper img {
  transform: scale(1.02);
}

/* Custom gorgeous gradient fallback when image is broken/loading */
.fallback-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.2) 0%, rgba(236,72,153,0.1) 100%);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  z-index: 1;
}

.card .content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card .title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card .desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card .card-footer {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: auto;
}

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

.tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Primary Action Buttons */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #4f46e5 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 14px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
  background: linear-gradient(135deg, #4f46e5 0%, var(--accent-primary) 100%);
}

.btn-action-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 14px;
  transition: var(--transition-smooth);
}

.btn-action-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-primary);
}

/* Card Actions Container */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-actions .btn-action {
  flex: 1;
  min-width: 160px;
}

/* --- Voice Page Layout Details (voice.html) --- */
.voice-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}

.voice-sidebar {
  position: sticky;
  top: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-img-container {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 25px var(--accent-primary-glow);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-sidebar h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.voice-sidebar .subtitle {
  font-size: 0.95rem;
  color: var(--accent-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.voice-sidebar .bio-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: left;
}

.voice-email-btn {
  width: 100%;
  margin-top: 1.5rem;
}

/* Audio Player Mockups (High-end interaction) */
.audio-samples-section {
  margin-bottom: 3.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.audio-player-mockup {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

.audio-player-mockup:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--accent-primary-glow);
  transition: var(--transition-smooth);
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.6);
}

.play-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  margin-left: 2px; /* Visual centering play icon */
}

.track-info {
  flex-grow: 1;
}

.track-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.track-duration {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* Beautiful audio wave visualization mock */
.audio-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}

.wave-bar {
  width: 3px;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.audio-player-mockup.is-playing .wave-bar {
  background: var(--accent-primary);
  animation: wavePulse 1.2s ease-in-out infinite;
}

.audio-player-mockup.is-playing .wave-bar:nth-child(2n) { animation-delay: 0.2s; }
.audio-player-mockup.is-playing .wave-bar:nth-child(3n) { animation-delay: 0.4s; }

@keyframes wavePulse {
  0%, 100% { height: 6px; }
  50% { height: 24px; }
}

/* Audiobook Link Grid (specific details) */
.book-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.book-links a {
  flex-grow: 1;
}

.voice-content-area .audible-link {
  background: linear-gradient(135deg, #f6c65b 0%, #d38b16 100%);
  color: #1f1402;
  box-shadow: 0 4px 20px rgba(211, 139, 22, 0.35);
}

.voice-content-area .audible-link:hover {
  background: linear-gradient(135deg, #d38b16 0%, #f6c65b 100%);
  box-shadow: 0 6px 24px rgba(211, 139, 22, 0.5);
}

.voice-content-area .youtube-link {
  background: linear-gradient(135deg, #ff4d5a 0%, #cc1329 100%);
  border-color: rgba(255, 77, 90, 0.65);
  color: #fff;
  box-shadow: 0 4px 20px rgba(204, 19, 41, 0.35);
}

.voice-content-area .youtube-link:hover {
  background: linear-gradient(135deg, #cc1329 0%, #ff4d5a 100%);
  border-color: rgba(255, 138, 148, 0.8);
  box-shadow: 0 6px 24px rgba(204, 19, 41, 0.45);
}

/* --- Footer & Utilities --- */
.back-home-nav {
  margin-top: 4rem;
  text-align: center;
}

.footer {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
  .home-page .nav-grid {
    width: min(100%, 740px);
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 1rem;
  }

  .voice-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .voice-sidebar {
    position: static;
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .home-page .nav-grid {
    width: min(100%, 380px);
    grid-template-columns: minmax(0, 1fr);
    margin-top: 1.25rem;
  }

  .home-page .nav-card {
    min-height: auto;
    padding: 1.55rem 1.25rem 1.2rem;
  }

  .home-page .nav-card-icon {
    font-size: 10rem;
  }

  .home-page .nav-card p {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .hero-home .hero-name-row {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-copy {
    align-items: center;
  }

  .hero-subtitle-row {
    gap: 0.55rem;
  }

  .hero-dot {
    width: 10px;
    height: 10px;
  }

  .landing-container {
    padding-top: 2rem;
  }

  .home-page .nav-grid {
    width: min(100%, 340px);
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-top: 1.4rem;
  }

  .home-page .nav-card {
    min-height: auto;
    padding: 1.5rem 1.2rem 1.2rem;
  }

  .home-page .nav-card-icon {
    margin-bottom: 1rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }
  
  .container {
    padding: 3rem 1.5rem;
  }
  
  .grid-cards {
    grid-template-columns: 1fr;
  }

  .apps-page .card-media-wrapper {
    height: 220px;
  }
  
  .audio-player-mockup {
    gap: 1rem;
    padding: 1rem;
  }
  
  .audio-wave {
    display: none; /* Hide visualizer on very small screens to save space */
  }
}
