/* ==========================================================================
   FRONTAGE - Personal Website Stylesheet
   Palette: Dark Screen with Green, Gold, Violet, Blue & Organic Red Splotches
   ========================================================================== */

:root {
  /* Dark screen canvas tones */
  --bg-primary: #0a0d14;
  --bg-secondary: #101522;
  --bg-card: rgba(18, 24, 38, 0.78);
  --bg-card-hover: rgba(26, 34, 54, 0.9);
  --bg-terminal: #07090e;

  /* Accent Colors */
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.25);
  --accent-gold: #fbbf24;
  --accent-gold-glow: rgba(251, 191, 36, 0.22);
  --accent-violet: #a78bfa;
  --accent-violet-glow: rgba(167, 139, 250, 0.22);
  --accent-blue: #38bdf8;
  --accent-blue-glow: rgba(56, 189, 248, 0.25);
  --accent-red: #f43f5e;
  --accent-red-deep: #be123c;
  --accent-red-glow: rgba(244, 63, 94, 0.35);

  /* Typography Colors */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);

  /* Layout */
  --max-width: 1040px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at 15% 15%, #131929 0%, var(--bg-primary) 65%);
}

/* ==========================================================================
   Organic Red Splotches & Ambient Glows
   ========================================================================== */

.organic-splotches-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.splotch {
  position: absolute;
  filter: blur(40px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}

/* Hero organic red splotch */
.splotch-hero {
  top: -80px;
  right: -60px;
  width: 520px;
  height: 520px;
  opacity: 0.6;
  animation: floatSplotch1 18s ease-in-out infinite alternate;
}

/* Mid-page organic red splotch */
.splotch-mid {
  top: 42%;
  left: -120px;
  width: 580px;
  height: 580px;
  opacity: 0.45;
  animation: floatSplotch2 22s ease-in-out infinite alternate;
}

/* Travel section organic red splotch */
.splotch-travel {
  top: 68%;
  right: -100px;
  width: 480px;
  height: 480px;
  opacity: 0.48;
  animation: floatSplotch1 20s ease-in-out infinite alternate-reverse;
}

/* Bottom footer organic red splotch */
.splotch-bottom {
  bottom: -90px;
  left: 20%;
  width: 420px;
  height: 420px;
  opacity: 0.42;
}

/* Accent ambient glows (blue, violet, green, gold) */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow-blue {
  top: 15%;
  left: 20%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
}

.glow-violet {
  top: 35%;
  right: 15%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.14) 0%, transparent 70%);
}

.glow-green {
  top: 55%;
  left: 10%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
}

.glow-gold {
  bottom: 12%;
  right: 25%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 70%);
}

@keyframes floatSplotch1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-30px, 40px) scale(1.08) rotate(15deg); }
  100% { transform: translate(25px, -20px) scale(0.95) rotate(-10deg); }
}

@keyframes floatSplotch2 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(40px, -30px) scale(1.1) rotate(-12deg); }
  100% { transform: translate(-20px, 35px) scale(0.92) rotate(8deg); }
}

/* ==========================================================================
   Layout & Wrapper
   ========================================================================== */

.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 13, 20, 0.75);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1e2638, #131929);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 0 12px var(--accent-gold-glow);
}

.brand-name {
  transition: var(--transition);
}

.brand:hover .brand-name {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
  border-radius: 2px;
}

/* Main Container */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
  width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 4.5rem 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-green);
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-title {
  font-size: 2.85rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 520px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0d13;
  box-shadow: 0 4px 18px var(--accent-gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(251, 191, 36, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Terminal Card in Hero */
.hero-card {
  background: var(--bg-terminal);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(167, 139, 250, 0.1);
}

.card-header-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: #10141f;
  border-bottom: 1px solid var(--border-subtle);
}

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

.dot-red { background-color: var(--accent-red); }
.dot-gold { background-color: var(--accent-gold); }
.dot-green { background-color: var(--accent-green); }

.card-bar-title {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.terminal-body {
  padding: 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
}

.term-prompt {
  color: var(--accent-gold);
  font-weight: 700;
  margin-right: 0.35rem;
}

.term-cmd {
  color: var(--text-main);
}

.term-out {
  margin: 0.2rem 0 0.85rem 0.85rem;
}

.term-violet { color: var(--accent-violet); }
.term-green { color: var(--accent-green); }
.term-blue { color: var(--accent-blue); }
.term-gold { color: var(--accent-gold); }

/* ==========================================================================
   Section Headers & Shared Badges
   ========================================================================== */

.content-section {
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.badge-green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-gold {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-violet {
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent-violet);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.badge-blue {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-red {
  background: rgba(244, 63, 94, 0.14);
  color: var(--accent-red);
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */

.card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* About Card & Highlights */
.about-card .lead {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  font-weight: 500;
}

.about-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.highlight-item {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.highlight-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.highlight-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.highlight-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Projects Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill-green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.pill-gold { background: rgba(251, 191, 36, 0.15); color: var(--accent-gold); }
.pill-violet { background: rgba(167, 139, 250, 0.15); color: var(--accent-violet); }
.pill-blue { background: rgba(56, 189, 248, 0.15); color: var(--accent-blue); }

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.card-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.card-tags span {
  font-size: 0.76rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card-link:hover {
  text-decoration: underline;
  gap: 0.45rem;
}

/* Hobbies Grid */
.hobbies-grid {
  grid-template-columns: repeat(4, 1fr);
}

.hobby-card {
  text-align: left;
}

.hobby-icon {
  font-size: 1.85rem;
  margin-bottom: 0.85rem;
}

/* Travel Section */
.travel-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.travel-group-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.travel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.travel-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.travel-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.travel-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-confirmed {
  background: rgba(16, 185, 129, 0.18);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-planning {
  background: rgba(251, 191, 36, 0.18);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.status-idea {
  background: rgba(167, 139, 250, 0.18);
  color: var(--accent-violet);
  border: 1px solid rgba(167, 139, 250, 0.4);
}

.travel-info strong {
  display: block;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

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

.travel-note {
  padding: 1.5rem;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: var(--radius-md);
  position: relative;
}

.travel-note h4 {
  font-size: 1.05rem;
  color: #fda4af;
  margin-bottom: 0.5rem;
}

.travel-note p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Find Me / Quick Redirects Section
   ========================================================================== */

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

.redirect-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: var(--text-main);
}

.redirect-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.box-green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.box-blue {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.box-gold {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.box-violet {
  background: rgba(167, 139, 250, 0.15);
  color: var(--accent-violet);
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.redirect-card:hover .redirect-icon-box {
  transform: scale(1.08);
}

.redirect-text h3 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.redirect-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.redirect-hint {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-gold);
  display: inline-block;
  transition: var(--transition);
}

.redirect-card:hover .redirect-hint {
  color: var(--text-main);
  transform: translateX(3px);
}

/* ==========================================================================
   Color Accents
   ========================================================================== */

.accent-green { color: var(--accent-green); }
.accent-gold { color: var(--accent-gold); }
.accent-violet { color: var(--accent-violet); }
.accent-blue { color: var(--accent-blue); }
.accent-red { color: var(--accent-red); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 13, 20, 0.8);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-sub {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.back-to-top {
  margin-top: 0.75rem;
  color: var(--accent-gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.back-to-top:hover {
  text-decoration: underline;
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0 3rem 0;
  }

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

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hobbies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .travel-container {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

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

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

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