/* ==============================
   AEVYRA — Global Styles
   Teal & Black Cosmic Theme
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-deep:       #06090f;
  --bg-mid:        #0a0f1a;
  --bg-card:       #0d1420;
  --bg-card-hover: #111b2a;
  --teal-bright:   #00ffdd;
  --teal-mid:      #00ddcc;
  --teal-dark:     #008877;
  --cyan:          #00ddff;
  --purple:        #cc66ff;
  --orange:        #ff9922;
  --text-primary:  #e8f4f2;
  --text-secondary:#8ba8a4;
  --text-muted:    #4a6860;
  --border:        rgba(0, 220, 200, 0.12);
  --border-hover:  rgba(0, 220, 200, 0.35);
  --glow-teal:     0 0 20px rgba(0, 220, 200, 0.3), 0 0 60px rgba(0, 220, 200, 0.1);
  --glow-subtle:   0 0 40px rgba(0, 180, 160, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Stars background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10%  8%,  rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 25%  18%, rgba(170,220,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 40%  5%,  rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55%  12%, rgba(220,180,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 70%  7%,  rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85%  20%, rgba(170,220,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 92%  45%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 88%  70%, rgba(170,220,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 15%  55%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 5%   75%, rgba(170,220,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 30%  82%, rgba(220,180,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 62%  88%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 78%  92%, rgba(255,220,170,0.3) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── Subtle ambient teal glow ── */
body::after {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(0, 180, 160, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─────────────────────────────
   NAVIGATION
───────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(6, 9, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 0.4rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-bright);
  background: rgba(0, 220, 200, 0.07);
}

.nav-cta {
  background: rgba(0, 220, 200, 0.1) !important;
  border: 1px solid rgba(0, 220, 200, 0.3) !important;
  color: var(--teal-mid) !important;
}

.nav-cta:hover {
  background: rgba(0, 220, 200, 0.18) !important;
  border-color: rgba(0, 220, 200, 0.5) !important;
  color: var(--teal-bright) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: 0.3s;
}

/* ─────────────────────────────
   PAGE WRAPPER
───────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

/* ─────────────────────────────
   HERO
───────────────────────────── */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}

.hero-logo {
  width: min(280px, 60vw);
  height: auto;
  margin-bottom: 2.5rem;
  filter: drop-shadow(0 0 30px rgba(0, 220, 200, 0.25));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.hero-tagline {
  font-family: 'Cormorant Garamond', Palatino, Georgia, serif;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-style: italic;
  letter-spacing: 0.3em;
  color: var(--teal-dark);
  text-transform: lowercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Cormorant Garamond', Palatino, Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--teal-bright), var(--cyan), var(--teal-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, rgba(0,220,200,0.2), rgba(0,180,180,0.1));
  border: 1px solid rgba(0, 220, 200, 0.4);
  border-radius: 8px;
  color: var(--teal-bright);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--glow-subtle);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(0,220,200,0.3), rgba(0,180,180,0.2));
  border-color: var(--teal-mid);
  box-shadow: var(--glow-teal);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeUpDown 2.5s ease-in-out infinite;
}

.scroll-hint svg {
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

@keyframes fadeUpDown {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.9; transform: translateX(-50%) translateY(5px); }
}

/* ─────────────────────────────
   SECTION COMMONS
───────────────────────────── */
section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Cormorant Garamond', Palatino, Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 540px;
  margin-bottom: 3rem;
}

/* Teal divider */
.teal-line {
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-mid), transparent);
  margin-bottom: 2rem;
}

/* ─────────────────────────────
   CARDS
───────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 220, 200, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 180, 160, 0.08);
}

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

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(0, 220, 200, 0.08);
  border: 1px solid rgba(0, 220, 200, 0.2);
  color: var(--teal-mid);
  width: fit-content;
}

.card-tag.purple {
  background: rgba(180, 80, 255, 0.08);
  border-color: rgba(180, 80, 255, 0.2);
  color: var(--purple);
}

.card-tag.orange {
  background: rgba(255, 153, 34, 0.08);
  border-color: rgba(255, 153, 34, 0.2);
  color: var(--orange);
}

.card-title {
  font-family: 'Cormorant Garamond', Palatino, Georgia, serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.35;
}

.card-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: auto;
}

.card-arrow {
  color: var(--teal-dark);
  font-size: 1rem;
  transition: transform 0.2s, color 0.2s;
}

.card:hover .card-arrow {
  transform: translateX(4px);
  color: var(--teal-bright);
}

/* ─────────────────────────────
   PAGE HEADER (inner pages)
───────────────────────────── */
.page-header {
  padding: 5rem 2rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.page-header .section-label {
  margin-bottom: 0.5rem;
}

.page-header .section-title {
  margin-bottom: 0.75rem;
}

/* ─────────────────────────────
   FEATURED / HIGHLIGHT
───────────────────────────── */
.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.featured-card::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 180, 160, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.featured-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 180, 160, 0.1);
}

.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.featured-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--orange);
}

.featured-title {
  font-family: 'Cormorant Garamond', Palatino, Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.featured-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 600px;
}

/* ─────────────────────────────
   GITHUB PROJECT CARDS
───────────────────────────── */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 180, 160, 0.08);
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.project-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.project-links {
  display: flex;
  gap: 0.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  transition: all 0.2s;
}

.project-link:hover {
  color: var(--teal-bright);
  border-color: var(--border-hover);
}

.project-name {
  font-family: 'Cormorant Garamond', Palatino, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.tech-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.project-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.project-stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ─────────────────────────────
   FOOTER
───────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.footer-tagline {
  font-family: 'Cormorant Garamond', Palatino, Georgia, serif;
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--teal-mid);
}

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

/* ─────────────────────────────
   UTILITIES
───────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-teal   { color: var(--teal-mid); }
.text-muted  { color: var(--text-muted); }
.font-serif  { font-family: 'Cormorant Garamond', Palatino, Georgia, serif; }

/* ─────────────────────────────
   RESPONSIVE
───────────────────────────── */
@media (max-width: 768px) {
  nav {
    padding: 0 1.25rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(6, 9, 15, 0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.65rem 0.75rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

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

  section {
    padding: 3.5rem 1.5rem;
  }
}
