/* =====================================================
   COSMICCATKAT.COM — STYLESHEET
   Palette: profile-derived blue/teal
   ===================================================== */

/* ---- DESIGN TOKENS ---- */
:root {
  --bg:           #edf8fc;
  --bg-card:      #daeef8;
  --text:         #1a2c48;
  --heading:      #1e3a78;
  --accent:       #3a8fd4;
  --highlight:    #f0a87c;
  --muted:        #6288a8;
  --border:       #bcd8ec;
  --nav-h:        68px;
  --max-w:        1280px;
  --radius:       16px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- 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-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--heading); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* ---- NAVIGATION ---- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.nav-wordmark {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.nav-wordmark img { display: block; }
.nav-wordmark:hover { opacity: 0.75; }

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--heading);
  letter-spacing: 0.02em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover { color: var(--heading); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-instagram {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted) !important;
  font-size: 0.875rem !important;
}
.nav-instagram:hover { color: var(--highlight) !important; }
.nav-instagram i { font-size: 1.05rem; }

/* Scrolled: frosted glass */
.site-nav.scrolled {
  background: rgba(237, 248, 252, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 24px rgba(58, 143, 212, 0.18);
}

/* Mobile hamburger */
.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: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-h);
  padding-bottom: 4rem;
  padding-inline: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Floating decorative elements */
.hero-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  color: var(--accent);
  opacity: 0.22;
  animation: float 6s ease-in-out infinite;
}
.hero-deco:nth-child(1) { top: 15%; left: 7%;  font-size: 1.6rem; animation-delay: 0s; }
.hero-deco:nth-child(2) { top: 22%; right: 9%; font-size: 2.4rem; animation-delay: 1.2s; }
.hero-deco:nth-child(3) { bottom: 32%; left: 11%; font-size: 1.9rem; animation-delay: 2.1s; }
.hero-deco:nth-child(4) { bottom: 28%; right: 7%; font-size: 1.3rem; animation-delay: 0.6s; }
.hero-deco:nth-child(5) { top: 58%; left: 4%;  font-size: 1rem;   animation-delay: 1.7s; }
.hero-deco:nth-child(6) { top: 42%; right: 4%; font-size: 2rem;   animation-delay: 2.8s; }
.hero-deco:nth-child(7) { top: 70%; right: 16%; font-size: 1.4rem; animation-delay: 0.3s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(8deg); }
}

.hero-body { position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-handle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  font-weight: 300;
  color: var(--heading);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--muted);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.85;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--heading);
  color: var(--bg) !important;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  transition: background 0.25s var(--ease), transform 0.2s, box-shadow 0.25s;
}
.hero-cta:hover {
  background: var(--accent);
  color: var(--bg) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(58, 143, 212, 0.4);
}

/* ---- ABOUT SECTION ---- */
.about-section {
  padding: 6rem 0;
  background: var(--bg-card);
}
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.about-portrait {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.portrait-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 3px solid var(--border);
  box-shadow: 0 8px 36px rgba(58, 143, 212, 0.28);
}
.portrait-handle {
  text-align: center;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  font-style: italic;
  color: var(--heading);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.about-bio {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 2rem;
  max-width: 540px;
}
.about-bio em { color: var(--heading); font-style: italic; }

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.about-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--heading);
  transition: all 0.25s var(--ease);
}
.about-link-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 143, 212, 0.32);
}
.about-link-btn i { font-size: 1rem; }

.about-portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.about-portfolio-link:hover {
  color: var(--heading);
  border-color: var(--accent);
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--heading);
  color: rgba(237, 248, 252, 0.65);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
  text-align: center;
}
.footer-wordmark {
  height: 22px;
  width: auto;
  opacity: 0.55;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(237, 248, 252, 0.55);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--highlight); }

.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(237, 248, 252, 0.2);
  color: rgba(237, 248, 252, 0.55);
  font-size: 1rem;
  transition: all 0.25s var(--ease);
}
.footer-social-btn:hover {
  border-color: var(--highlight);
  color: var(--highlight);
  background: rgba(240, 168, 124, 0.12);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(237, 248, 252, 0.35);
  margin: 0;
}
.footer-copy a {
  color: rgba(237, 248, 252, 0.35);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-copy a:hover { color: rgba(237, 248, 252, 0.65); }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 220px 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(237, 248, 252, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(30, 58, 120, 0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
  .nav-links a::after { display: none; }
  .nav-instagram { padding: 0.9rem 1.5rem; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-portrait { position: static; max-width: 200px; margin-inline: auto; }
  .about-content { text-align: center; }
  .about-bio { margin-inline: auto; }
  .about-links { justify-content: center; }
}

/* ---- PRIVACY PAGE ---- */
.privacy-page {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 6rem;
  padding-inline: 1.5rem;
}
.privacy-inner { max-width: 720px; }
.privacy-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
  color: var(--heading);
  margin-bottom: 0.5rem;
}
.privacy-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 3rem; }
.privacy-inner h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--heading);
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}
.privacy-inner h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.privacy-inner p,
.privacy-inner li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
}
.privacy-inner ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.privacy-inner a { color: var(--heading); text-decoration: underline; text-underline-offset: 2px; }
.privacy-inner a:hover { color: var(--accent); }
