/* ================================
   00) FONTS
   ================================ */
@font-face {
  font-family: "Product Sans";
  src: url("fonts/Product Sans Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Product Sans";
  src: url("fonts/Product Sans Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ================================
   0) CSS VARIABLES
   ================================ */
:root {
  --accent-cyan: #eee605;
  --accent-purple: #bf81ff;
  --border-muted: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --ease-fashion: cubic-bezier(0.25, 1, 0.5, 1);
  --bg: #000;
  --panel: #111;
  --line: #262626;
  --text: #fff;
  --surface-low: #111;
  --surface-high: #1c1c1c;
  --text-secondary: #8a8a8a;
}

/* ================================
   1) RESET SOME BASICS
   ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* Let body background propagate to viewport */
}

body {
  background-color: #000;       /* pure black background */
  color: #fff;                   /* white text */
  font-family: "Product Sans", sans-serif;
  scroll-behavior: smooth;
}

ul {
  list-style: none;
}

a {
  color: #fff;
  text-decoration: none;
}

/* ================================
   2) HEADER — Floating Glassmorphism Pill
   ================================ */
.site-header {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  background: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid var(--border-muted);
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s var(--ease-fashion);
}

/* ---- 2.1) Logo + Name Container ---- */
.logo {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
}

.logo-img {
  height: 35px;
  width: auto;
  margin-right: 12px;
}

.logo-text {
  margin-left: 0;
  white-space: nowrap;
}

.logo:hover .logo-text {
  color: #efefef;
}

body[data-theme="day"] .logo:hover .logo-text {
  color: #333;
}

/* ---- 2.2) Navigation Menu ---- */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 25px;
}

.main-nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.3s var(--ease-fashion);
  padding: 5px 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
}

/* ================================
   4) GRID OF IMAGES (HOME PAGE)
   ================================ */
.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: 0;
  width: 100%;
  margin-top: 20px;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================================
   5) FOOTER
   ================================ */
.site-footer-bottom {
  padding: 25px;
  text-align: center;
}

.site-footer-bottom a {
  color: #888;
  text-decoration: none;
  font-size: 1.2rem;
  margin: 0 8px;
  transition: color 0.2s;
}

.site-footer-bottom a:hover {
  color: #fff;
}

.footer-copy {
  margin-top: 40px;
  color: #777;
  font-size: 0.95rem;
}

/* ================================
   6) COLORED UNDERLINES (only on text links)
   ================================ */
/* make room for the underline bar on text links */
.site-header .main-nav a:not(.icon-link) {
  position: relative;
  padding-bottom: 4px;
}

/* hidden underline */
.site-header .main-nav a:not(.icon-link)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--underline-color, #fff);
  transition: width 0.25s ease;
}

/* expand on hover or when active */
.site-header .main-nav a:not(.icon-link):hover::after,
.site-header .main-nav a:not(.icon-link).active::after {
  width: 100%;
}

/* per‐menu custom colors */
.nav-home        a { --underline-color: #27628d; }
.nav-projects    a { --underline-color: #d4b804; }
.nav-publications a { --underline-color: #e91e63; }
.nav-about       a { --underline-color: #7CB82F; }
.nav-resume      a { --underline-color: #8C68CB; }
.nav-contact     a { --underline-color: #F47B16; }

/* ================================
   7) OPTIONAL RESPONSIVE TWEAKS
   ================================ */
/*
@media (max-width: 1200px) { … }
@media (max-width: 800px) { … }
@media (max-width: 500px) { … }
*/

/* Responsive shell overrides */

body {
  min-height: 100vh;
  line-height: 1.5;
}

main {
  width: 100%;
}

img {
  max-width: 100%;
}

.page-wrapper {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding-top: 90px; /* Space for the fixed floating header */
}

/* Nav toggle (hamburger) — hidden on desktop */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background-color: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: transparent;
}

/* Circle appears only when nav is open */
.site-header.nav-open .nav-toggle {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--border-muted);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.nav-toggle-bar {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background-color: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}



.grid-container {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 14px;
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px) clamp(32px, 6vw, 56px);
}

.grid-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background-color: var(--panel);
}

.site-footer-bottom {
  padding: 28px clamp(20px, 4vw, 40px) 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.site-footer-bottom a {
  margin: 0;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.footer-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.footer-icons a:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.footer-copy {
  margin-top: 0;
  line-height: 1.6;
}

@media (max-width: 1023px) {
  .site-header {
    width: 95%;
    padding: 10px 20px;
  }

  .main-nav ul {
    gap: 14px;
  }

  .main-nav a {
    font-size: 0.78rem;
  }

  .grid-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .site-header {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 10px 14px;
    top: 10px;
    width: 95%;
  }

  .logo {
    max-width: calc(100% - 100px);
    font-size: 0.95rem;
  }

  .logo-img {
    height: 28px;
    margin-right: 8px;
  }

  /* ---- Theme toggle: sits inside header pill on mobile ---- */
  .float-btn.top-right {
    position: fixed;
    top: 20px;
    /* Position it to the left of the hamburger inside the header pill */
    right: calc(2.5% + 60px); /* header is 95% width, so 2.5% offset + padding + hamburger + gap */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 1.1rem;
    z-index: 1001;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: rgba(255, 255, 255, 0.7);
  }

  .float-btn.top-right:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    border-color: transparent;
    color: #fff;
  }

  body[data-theme="day"] .float-btn.top-right {
    background: transparent;
    border: none;
    box-shadow: none;
    color: rgba(0, 0, 0, 0.5);
  }

  body[data-theme="day"] .float-btn.top-right:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #121212;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  /* Circle only when nav is open on mobile */
  .site-header.nav-open .nav-toggle {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--border-muted);
  }

  .main-nav {
    display: block;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      max-height 0.3s ease,
      opacity 0.25s ease,
      transform 0.25s ease;
  }

  .site-header.nav-open .main-nav {
    max-height: 75vh;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.85);
    border: 1px solid var(--border-muted);
    border-radius: 16px;
    margin-top: 10px;
  }

  .main-nav .nav-links li {
    width: 100%;
    font-size: 0.92rem;
  }

  .main-nav .nav-links a:not(.icon-link) {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    /* Larger touch targets for mobile */
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .main-nav .nav-links a:not(.icon-link)::after {
    display: none;
  }

  .main-nav .nav-links a:not(.icon-link):hover,
  .main-nav .nav-links a:not(.icon-link).active {
    background-color: rgba(255, 255, 255, 0.08);
  }

  .grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 14px 28px;
  }

  .grid-item {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
  }

  .site-footer-bottom {
    padding: 20px 16px 24px;
    gap: 14px;
  }

  .footer-icons a {
    width: 40px;
    height: 40px;
  }

  .footer-copy {
    font-size: 0.85rem;
  }
}

@media (max-width: 767px) {
  /* ---- Feed button mobile optimization ---- */
  .bottom-right-controls {
    bottom: 14px;
    right: 14px;
  }

  .feed-btn {
    font-size: 0.8rem;
    padding: 0 16px;
    height: 44px;
  }

  /* ---- Aquarium footer mobile ---- */
  .aquarium-footer {
    padding: 8px 16px 16px;
  }

  .aquarium-footer-gradient {
    height: 80px;
  }
}


/* ================================
   AQUARIUM: Canvas Container
   ================================ */
#aquarium-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

#aquarium-container canvas {
  pointer-events: auto;
}

/* ================================
   AQUARIUM: Video Background
   ================================ */
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.video-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, transparent, #000);
  z-index: 2;
}

.bg-video {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  transition: opacity 1.5s var(--ease-fashion);
}

/* Night theme by default */
#bg-video-day {
  opacity: 0;
}
#bg-video-night {
  opacity: 1;
  top: -150px;
}

body[data-theme="day"] #bg-video-day {
  opacity: 1;
}
body[data-theme="day"] #bg-video-night {
  opacity: 0;
}

/* ================================
   AQUARIUM: Floating Buttons
   ================================ */
.float-btn {
  position: fixed;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-muted);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s var(--ease-fashion);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.float-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.float-btn.active {
  background: #fff;
  color: #000;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* ================================
   AQUARIUM: Floating Theme Toggle (top-right corner)
   ================================ */
.top-right {
  top: 20px;
  right: 20px;
  position: fixed;
}

body[data-theme="day"] .float-btn.top-right {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.1);
  color: #121212;
}

body[data-theme="day"] .float-btn.top-right:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-cyan);
}

.bottom-right-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.bottom-right-controls .float-btn {
  position: relative;
}

.feed-btn {
  position: relative;
  width: auto;
  padding: 0 20px;
  border-radius: 25px;
  font-family: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  gap: 8px;
}

/* ================================
   AQUARIUM: Footer with Gradient
   ================================ */
.aquarium-footer-gradient {
  top: calc(100vh + 10px);
  position: relative;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #000);
  pointer-events: none;
  z-index: 10;
}

.aquarium-footer {
  top: calc(100vh + 10px);
  position: relative;
  left: 0;
  width: 100%;
  background: #000;
  padding: 10px 20px 20px;
  z-index: 10;
}

.social-list-horizontal {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.social-list-horizontal a {
  color: #888;
  font-size: 2rem;
  transition: color 0.3s, transform 0.3s;
}

.social-list-horizontal a:hover {
  color: var(--accent-cyan);
  transform: scale(1.1);
}

/* ================================
   AQUARIUM: Day/Night Theme Overrides
   ================================ */
body[data-theme="day"] .float-btn {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.1);
  color: #121212;
}

body[data-theme="day"] .float-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-cyan);
}

/* ================================
   HEADER: Theme-aware glassmorphism
   ================================ */

/* Night mode: dark translucent pill */
body[data-theme="night"] .site-header {
  background: rgba(5, 5, 15, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Day mode: light translucent pill */
body[data-theme="day"] .site-header {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="day"] .site-header a,
body[data-theme="day"] .site-header .logo {
  color: #121212;
}

body[data-theme="day"] .main-nav a {
  color: rgba(0, 0, 0, 0.5);
}

body[data-theme="day"] .main-nav a:hover,
body[data-theme="day"] .main-nav a.active {
  color: #121212;
}

body[data-theme="day"] .nav-toggle-bar {
  background-color: #121212;
}



/* ================================
   FIX: Scrollbar gap — ensure no horizontal overflow
   ================================ */
html {
  overflow-x: clip;
  width: 100vw;
}

body {
  overflow-x: clip;
  width: 100%;
}

/* ================================
   SITE-WIDE LIGHT MODE (day theme)
   All pages: white bg, dark text, light cards
   ================================ */
body[data-theme="day"] {
  background-color: #f5f5f7 !important;
  color: #1d1d1f !important;
}

/* --- Header in light mode --- */
body[data-theme="day"] .site-header .nav-links a:not(.icon-link) {
  color: #444;
}

body[data-theme="day"] .site-header .nav-links a:not(.icon-link):hover,
body[data-theme="day"] .site-header .nav-links a:not(.icon-link).active {
  color: #1d1d1f;
}

/* --- Footer in light mode --- */
body[data-theme="day"] .site-footer-bottom {
  background-color: #eee;
}

body[data-theme="day"] .site-footer-bottom a {
  color: #666;
}

body[data-theme="day"] .site-footer-bottom a:hover {
  color: #1d1d1f;
}

body[data-theme="day"] .footer-copy {
  color: #888;
}

body[data-theme="day"] .footer-icons a:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

/* --- Links in light mode --- */
body[data-theme="day"] a {
  color: #1d1d1f;
}

/* --- About page light mode --- */
body[data-theme="day"] .about-name,
body[data-theme="day"] .about-content h1 {
  color: #1d1d1f;
}

body[data-theme="day"] .about-position {
  color: #00875a;
}

body[data-theme="day"] .about-content p {
  color: #444;
}

body[data-theme="day"] .about-content p strong {
  color: #1d1d1f;
}

body[data-theme="day"] .contact-list li {
  color: #444;
}

body[data-theme="day"] .contact-list li i {
  color: #888;
}

body[data-theme="day"] .contact-list li a {
  color: #555;
}

body[data-theme="day"] .contact-list li a:hover {
  color: #1d1d1f;
}

body[data-theme="day"] .headshot-wrapper {
  border-color: #ddd;
}

/* --- Publications page light mode --- */
body[data-theme="day"] .sidebar-name,
body[data-theme="day"] .publications-content h1,
body[data-theme="day"] .publications-content h2 {
  color: #1d1d1f;
}

body[data-theme="day"] .sidebar-position {
  color: #666;
}

body[data-theme="day"] .publications-content .intro-text,
body[data-theme="day"] .publication-entry .authors,
body[data-theme="day"] .publication-entry .venue {
  color: #555;
}

body[data-theme="day"] .publications-content hr {
  background-color: #ddd;
}

body[data-theme="day"] .publications-content a {
  color: #0066cc;
  border-bottom-color: rgba(0, 102, 204, 0.3);
}

body[data-theme="day"] .publications-content a:hover {
  color: #004499;
}

body[data-theme="day"] .publications-content .footnote {
  color: #888;
}

/* --- Resume page light mode --- */
body[data-theme="day"] .resume-name {
  color: #1d1d1f;
}

body[data-theme="day"] .resume-number {
  color: #1d1d1f;
}

body[data-theme="day"] .resume-contact {
  color: #555;
}

body[data-theme="day"] .resume-contact a {
  color: #555;
}

body[data-theme="day"] .resume-contact a:hover {
  color: #1d1d1f;
}

body[data-theme="day"] .resume-section h2 {
  color: #1d1d1f;
  border-bottom-color: #ddd;
}

body[data-theme="day"] .entry-title {
  color: #1d1d1f;
}

body[data-theme="day"] .entry-title a {
  color: #0066cc;
}

body[data-theme="day"] .entry-title a:hover {
  color: #004499;
}

body[data-theme="day"] .entry-subtitle {
  color: #555;
}

body[data-theme="day"] .entry-meta {
  color: #777;
}

body[data-theme="day"] .entry-details {
  color: #555;
}

body[data-theme="day"] .entry-details strong {
  color: #1d1d1f;
}

body[data-theme="day"] .skills-list {
  color: #555;
}

body[data-theme="day"] .skills-list strong {
  color: #1d1d1f;
}

body[data-theme="day"] .resume-container {
  color: #444;
}

/* --- Contact page light mode --- */
body[data-theme="day"] .contact-container {
  background-color: #f5f5f7;
}

body[data-theme="day"] .page-wrapper {
  background-color: #f5f5f7;
}

/* --- Aquarium footer light mode --- */
body[data-theme="day"] .aquarium-footer {
  background: #f5f5f7;
}

body[data-theme="day"] .aquarium-footer-gradient {
  background: linear-gradient(to bottom, transparent, #f5f5f7);
}

body[data-theme="day"] .aquarium-footer .footer-icons a {
  color: #888;
}

body[data-theme="day"] .aquarium-footer .footer-icons a:hover {
  color: #0066cc;
}

body[data-theme="day"] .aquarium-footer .footer-copy {
  color: #888 !important;
}

/* --- Video container gradient light mode --- */
body[data-theme="day"] .video-container::after {
  background: linear-gradient(to bottom, transparent, #f5f5f7);
}

/* --- Mobile nav panel light mode --- */
@media (max-width: 767px) {
  body[data-theme="day"] .main-nav .nav-links,
  body[data-theme="day"] .main-nav .nav-social {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
  }

  body[data-theme="day"] .main-nav .nav-links a:not(.icon-link):hover,
  body[data-theme="day"] .main-nav .nav-links a:not(.icon-link).active {
    background-color: rgba(0, 0, 0, 0.05);
  }

  body[data-theme="day"] .nav-social a {
    background-color: rgba(0, 0, 0, 0.03);
  }

  body[data-theme="day"] .nav-toggle {
    background-color: transparent;
    border-color: transparent;
  }

  body[data-theme="day"] .nav-toggle:hover {
    background-color: rgba(0, 0, 0, 0.06);
  }

  body[data-theme="day"] .site-header.nav-open .nav-toggle {
    background-color: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
  }
}
/* ================================
   UI COMPONENTS (BENTO / CARDS)
   ================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-card {
  background-color: var(--surface-low);
  border: 1px solid var(--border-muted);
  border-radius: 24px;
  padding: 30px;
  transition: all 0.4s var(--ease-fashion);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  background-color: var(--surface-high);
  border-color: var(--border-hover);
  transform: translateY(-5px);
}

.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-8 { grid-column: span 8; }
.bento-col-12 { grid-column: span 12; }

@media (max-width: 768px) {
  .bento-col-4, .bento-col-6, .bento-col-8 {
    grid-column: span 12;
  }
}

/* Tag Pill */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 244, 254, 0.1);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 15px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary, var(--text));
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Base Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--text-primary, var(--text));
  color: var(--bg);
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-fashion), background 0.3s var(--ease-fashion);
}

.btn-primary:hover {
  transform: scale(1.05);
  background: var(--accent-cyan);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--text-primary, var(--text));
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: all 0.3s var(--ease-fashion);
}

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

/* Divider */
.divider-layout {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 60px 0 40px;
}

.divider-title {
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
}

.divider-line {
  height: 1px;
  flex-grow: 1;
  background: var(--border-muted);
}

body[data-theme="day"] {
  --bg: #f5f5f7;
  --text: #111;
  --surface-low: #fff;
  --surface-high: #f0f0f0;
  --text-secondary: #555;
  --border-muted: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(0, 0, 0, 0.2);
}

body[data-theme="day"] .divider-title {
  color: rgba(0, 0, 0, 0.1);
}

body[data-theme="day"] .btn-secondary:hover {
  background-color: rgba(0,0,0,0.05);
}

/* ================================
   PROJECTS CONTAINER
   ================================ */
.projects-container {
  padding-top: 140px; /* Space for fixed floating nav */
  padding-bottom: 80px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 80vh;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}
