/* ==========================================================================
   DESIGN SYSTEM & CUSTOM STYLES: VIMAL'S PERSONAL WEBSITE
   Aesthetic: Ultra-modern, dark mode, sleek monochromatic silver/white accents
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Colors */
  --bg-dark: #050507;
  --bg-card: #0d0d11;
  --bg-card-hover: #121217;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  /* Accent: Sleek Monochrome Silver/White */
  --accent-glowing: #f8fafc;
  --accent-dim: #cbd5e1;
  --accent-glow-rgb: 248, 250, 252;
  
  /* Layout */
  --nav-height: 80px;
  --max-width: 1100px;
  --border-radius: 16px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  /* Glassmorphism */
  --glass-bg: rgba(13, 13, 17, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(16px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Subtle ambient radial glows */
body::before, body::after {
  content: '';
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-glow-rgb), 0.03) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

body::before {
  top: -10vw;
  right: -10vw;
}

body::after {
  bottom: -10vw;
  left: -10vw;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #1e1e24;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a2a35;
}

/* --- Reusable Components & Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

/* --- Glassmorphism Elements --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius);
}

.glass-button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
}

.glass-button.active {
  background: var(--accent-glowing);
  color: var(--bg-dark);
  border-color: var(--accent-glowing);
}

.glass-button.active:hover {
  background: #ffffff;
  color: var(--bg-dark);
  transform: translateY(-2px);
}

/* --- Floating Sticky Navigation Bar --- */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  transition: var(--transition-smooth);
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
}

.nav-header.scrolled {
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-glowing);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glowing);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  z-index: 110;
}

/* --- Section Navigation / Tab-switching Layout --- */
main {
  padding-top: calc(var(--nav-height) + 1.5rem);
  padding-bottom: 8rem;
  min-height: 100vh;
}

.view-section {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-section.active {
  display: block;
}

.view-section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* --- HOME VIEW --- */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0 3rem 0;
}

.hero-subtitle {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-title {
  max-width: 800px;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero-title span {
  font-weight: 600;
  background: linear-gradient(180deg, #ffffff 30%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  max-width: 580px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Home Pillars Menu */
.home-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.pillar-card {
  padding: 2.5rem;
  text-align: left;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 250px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.04), transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.pillar-icon {
  font-size: 1.75rem;
  color: var(--text-primary);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

.pillar-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pillar-arrow {
  margin-top: auto;
  align-self: flex-end;
  font-size: 1.25rem;
  opacity: 0.5;
  transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-arrow {
  opacity: 1;
  transform: translateX(5px);
}

/* --- TRAVEL VIEW --- */
.view-section > .section-header:first-child {
  padding-top: 1.5rem;
}

.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 300;
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.travel-card {
  height: 380px;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: var(--transition-smooth);
}

.travel-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4) saturate(0.85);
  transition: var(--transition-smooth);
  z-index: 1;
}

.travel-card:hover .travel-card-bg {
  transform: scale(1.05);
  filter: brightness(0.5) saturate(1);
}

.travel-card-content {
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

.travel-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.travel-card-title {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.travel-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 90%;
  transform: translateY(10px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.travel-card:hover .travel-card-desc {
  transform: translateY(0);
  opacity: 1;
}

.travel-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* --- FIRE VIEW --- */
.fire-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.fire-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.fire-intro {
  font-size: 1.15rem;
  line-height: 1.7;
}

.framework-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.timeline-step {
  padding: 2rem;
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.timeline-step:hover .step-num {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.08);
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.95rem;
}

/* Interactive FIRE Calculator Sidebar */
.fire-calc-card {
  padding: 2.5rem;
  position: sticky;
  top: 110px;
}

.calc-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-field {
  margin-bottom: 2rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.calc-value {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 500;
}

.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-result {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-top: 2rem;
}

.result-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.result-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.calc-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

.swr-toggle-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.swr-toggle-group .glass-button {
  flex: 1;
  padding: 0.5rem 0.4rem;
  text-align: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* --- APPS VIEW --- */
.apps-showcase {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.app-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.app-visual {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #111116 0%, #060608 100%);
  transition: var(--transition-smooth);
}

.app-visual:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Elegant visual mock representing "In Touch" relationships */
.app-mockup {
  width: 80%;
  height: 70%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

.mockup-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.mockup-user {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mockup-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mockup-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.mockup-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mockup-name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
  margin-right: 0.5rem;
}

.mockup-days {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.mockup-days.overdue {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-weight: 600;
}

.app-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.app-headline {
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: 0;
}

.app-headline span {
  font-weight: 600;
}

.app-description {
  font-size: 1.05rem;
  line-height: 1.7;
}

.app-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0.5rem 0;
}

.feature-pill {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-top: 0.15rem;
}

.feature-text h4 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

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

.apps-pipeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.pipeline-card {
  padding: 2.5rem;
  border-style: dashed;
  border-width: 1px;
  border-color: var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 220px;
  opacity: 0.5;
  transition: var(--transition-smooth);
}

.pipeline-card:hover {
  opacity: 0.8;
  border-color: var(--border-hover);
}

.pipeline-card .pillar-icon {
  background: none;
  border-style: dashed;
  margin-bottom: 1rem;
}

.pipeline-card h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pipeline-card p {
  font-size: 0.85rem;
}

/* --- ARTICLES / READ MODALS --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 7, 0.9);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 1000;
  display: none;
  opacity: 0;
  overflow-y: auto;
  transition: opacity 0.3s ease;
  padding: 4rem 1.5rem;
}

.modal-overlay.active {
  display: block;
}

.modal-overlay.fade-in {
  opacity: 1;
}

.modal-container {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.fade-in .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 1010;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: rotate(90deg);
}

.modal-hero-bg {
  width: 100%;
  height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius);
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-color);
  filter: brightness(0.65);
}

.modal-header {
  margin-bottom: 2rem;
}

.modal-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.modal-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
}

.modal-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.8;
}

.modal-body p {
  margin-bottom: 1.75rem;
  color: var(--text-secondary);
}

.modal-body h2 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.modal-body ul, .modal-body ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.modal-body li {
  margin-bottom: 0.5rem;
}

.modal-body blockquote {
  border-left: 2px solid var(--text-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-primary);
}

/* --- FOOTER --- */
footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0;
  margin-top: 2rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

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

.footer-link:hover {
  color: var(--text-primary);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 900px) {
  .fire-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .fire-calc-card {
    position: relative;
    top: 0;
  }
  
  .app-spotlight {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .app-visual {
    order: 2;
    height: 320px;
  }
  
  .app-meta {
    order: 1;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }
  
  .nav-header {
    height: 70px;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #09090d;
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: 6rem 2rem 2rem 2rem;
    gap: 1rem;
    transition: var(--transition-smooth);
    z-index: 105;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mobile-nav-toggle {
    display: block;
  }

  main {
    padding-top: 90px;
    padding-bottom: 5rem;
  }

  .hero-content {
    padding: 1rem 0 2rem 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }
  
  .home-pillars {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
  }
  
  .pillar-card {
    height: auto;
    padding: 1.75rem;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .pillar-card .pillar-top {
    flex: 1;
  }

  .pillar-icon {
    margin-bottom: 1rem;
  }
  
  .pillar-arrow {
    margin-top: 0;
    align-self: center;
  }

  .view-section > .section-header:first-child {
    padding-top: 1.5rem;
  }
  
  .travel-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .travel-card {
    height: 280px;
    padding: 1.5rem;
  }

  .travel-card-title {
    font-size: 1.4rem;
  }

  .travel-card-desc {
    opacity: 1;
    transform: translateY(0);
    font-size: 0.85rem;
  }
  
  .timeline-step {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.5rem;
  }
  
  .step-num {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .fire-calc-card {
    padding: 1.75rem;
  }

  .calc-label {
    flex-direction: column;
    gap: 0.25rem;
  }

  .swr-toggle-group {
    flex-direction: column;
  }

  .swr-toggle-group .glass-button {
    font-size: 0.8rem;
    padding: 0.5rem 0.4rem;
    text-align: center;
    justify-content: center;
  }

  .result-number {
    font-size: 1.8rem;
  }

  .app-headline {
    font-size: 1.6rem;
  }

  .app-visual {
    height: 280px;
  }

  .app-mockup {
    width: 90%;
    height: 80%;
    padding: 1rem;
    gap: 0.75rem;
  }

  .mockup-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .apps-pipeline {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .pipeline-card {
    height: 180px;
    padding: 1.5rem;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .modal-overlay {
    padding: 3rem 1rem;
  }
  
  .modal-hero-bg {
    height: 220px;
    margin-bottom: 1.5rem;
  }
  
  .modal-close {
    top: 1rem;
    right: 1rem;
  }

  .modal-container {
    padding: 1.5rem !important;
  }
}
