/* ================================================================
   ESTRALUNE — style.css
   Terminal vibe. Dark. Bold serif. Electric mint.

   TABLE OF CONTENTS:
   1.  Variables  ← ✏️ Start here to change colours/fonts
   2.  Reset & Base
   3.  Navigation
   4.  Hero
   5.  Content Section & Cards
   6.  Footer
   7.  Animations
   8.  Mobile / Responsive
================================================================ */


/* ================================================================
   1. VARIABLES
   ✏️ Edit these to restyle the whole site instantly.
================================================================ */
:root {
  /* --- Colours --- */
  --bg:           #0A0A0A;   /* Main background */
  --bg-2:         #111111;   /* Slightly lighter background */
  --bg-card:      #141414;   /* Card backgrounds */
  --border:       #222222;   /* Subtle borders */
  --border-light: #333333;   /* More visible borders */

  --text:         #F0EDE6;   /* Main text colour */
  --text-muted:   #888880;   /* Secondary / muted text */
  --text-faint:   #3A3A38;   /* Very faint text */

  --accent:       #00FFB3;           /* ✏️ Main accent — electric mint */
  --accent-dim:   rgba(0,255,179,0.08);  /* Accent as soft background */
  --accent-glow:  rgba(0,255,179,0.2);   /* Accent glow for effects */

  /* --- Fonts --- */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'DM Mono', 'Courier New', monospace;

  /* --- Layout --- */
  --max-width:  1080px;
  --nav-height: 64px;
  --gap:        1px;       /* Gap between cards (shows border colour) */

  /* --- Motion --- */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.3s var(--ease);
}


/* ================================================================
   2. RESET & BASE
================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

img {
  max-width: 100%;
  display: block;
}


/* ================================================================
   3. NAVIGATION
================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

/* Background appears on scroll (added by JS) */
.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

/* Site name / logo */
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0.05em;
  color: var(--accent);
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.6; }

/* Nav links list */
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

/* Underline that slides in on hover */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active { color: var(--text); }

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Mobile hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: var(--transition);
}


/* ================================================================
   4. HERO
================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-height) 40px 80px;
  position: relative;
  overflow: hidden;
}

/* Decorative vertical grid lines */
.grid-lines {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 10%;
  pointer-events: none;
}

.grid-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--border) 20%,
    var(--border) 80%,
    transparent
  );
  opacity: 0.5;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Small label — "● online — my space" */
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeUp 0.8s var(--ease) both;
}

/* Pulsing green dot */
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.dot--pulse {
  animation: pulse 2.5s ease infinite;
}

/* Big site title */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.title-line {
  display: block;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}

/* Second line of title gets the accent colour + italic */
.title-line--accent {
  color: var(--accent);
  font-style: italic;
  animation-delay: 0.2s;
}

/* Tagline under the title */
.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
  animation: fadeUp 0.8s var(--ease) 0.3s both;
}

/* Short bio paragraph */
.hero-bio {
  max-width: 460px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
  animation: fadeUp 0.8s var(--ease) 0.35s both;
  min-height: 1.8em; /* keeps layout stable if empty */
}

/* CTA buttons */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s var(--ease) 0.45s both;
}

/* Base button style */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--transition);
  cursor: pointer;
}

/* Filled mint button */
.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 400;
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 24px var(--accent-glow);
}

/* Ghost outline button */
.btn-ghost {
  color: var(--text-muted);
  box-shadow: inset 0 0 0 1px var(--border-light);
}
.btn-ghost:hover {
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
}


/* ================================================================
   5. CONTENT SECTION & CARDS
================================================================ */
.content-section {
  padding: 80px 40px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header row: title + "see all" link */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.see-all {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.see-all:hover { color: var(--accent); }

/* 2-column card grid — gaps between create border lines -->
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  background: var(--border);
  border: 1px solid var(--border);
}

/* Individual card */
.card {
  background: var(--bg);
  padding: 32px;
  transition: background var(--transition);
  position: relative;
}

.card:hover { background: var(--bg-card); }

/* Left accent bar — appears on hover */
.card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: transparent;
  transition: background var(--transition);
}
.card:hover::before { background: var(--accent); }

/* Tag + date row */
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* Tag pill */
.tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 2px;
}

.card-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
}

/* Card title */
.card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.card-title a { transition: color var(--transition); }
.card-title a:hover { color: var(--accent); }

/* Card excerpt */
.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* "read →" link */
.card-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color var(--transition);
}
.card-link:hover { color: var(--accent); }


/* ================================================================
   6. FOOTER
================================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 8px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--accent); }


/* ================================================================
   7. ANIMATIONS
================================================================ */

/* Elements fade up on page load */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Pulsing dot */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%       { box-shadow: 0 0 0 6px transparent; }
}

/* Scroll reveal — class added by JS */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================================
   8. MOBILE / RESPONSIVE
   Styles inside @media only apply on small screens
================================================================ */
@media (max-width: 768px) {

  .nav { padding: 0 20px; }

  /* Show hamburger on mobile */
  .nav-toggle { display: flex; }

  /* Hide nav links until menu is opened */
  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    padding: 0 20px;
  }

  /* JS adds .open to show the menu */
  .nav-links.open {
    max-height: 300px;
    padding: 16px 20px 24px;
  }

  .nav-link { padding: 10px 0; width: 100%; }

  /* Hero adjustments */
  .hero { padding: var(--nav-height) 20px 60px; }

  /* Cards go to single column */
  .cards-grid { grid-template-columns: 1fr; }

  .content-section { padding: 60px 20px; }

  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }

  .footer { padding: 40px 20px; }
}