/* ============================================
   SHARED STYLES — styles.css
   Edit here to update all pages at once
   ============================================ */

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

/* ── TOKENS ── */
:root {
  --secondary: #D5B4FB;
  --purple: #9398C3;
  --purple-light: #D4DEE8;
  --purple-mid: #D4DEE8;
  --navy: #283287;
  --black: #181A4D;
  --gray: #464871;
  --gray-light: #F0F2F2;
  --white: #F7F7F4;
  --font-display: 'Rubik', sans-serif;
  --font-body: 'Rubik', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-light);
  padding: 0 clamp(20px, 5vw, 80px);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#nav-placeholder {
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 1px;
}

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

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--purple);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

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

.nav-links a.active {
  color: var(--black);
  font-weight: 500;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  padding: 20px clamp(20px, 5vw, 80px);
  z-index: 99;
  flex-direction: column;
  gap: 16px;
  animation: slideDown 0.25s ease;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1rem;
  color: var(--black);
  text-decoration: none;
  font-weight: 400;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-light);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── SECTION DEFAULTS ── */
section {
  padding: clamp(60px, 8vw, 120px) clamp(20px, 5vw, 80px);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--black);
}

.section-sub {
  font-size: 0.875rem;
  color: var(--gray);
  margin-top: 4px;
  font-weight: 300;
}

.view-all {
  font-size: 0.875rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.view-all:hover {
  gap: 8px;
}

.view-all::after {
  content: '→';
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--purple);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline:hover {
  background: var(--gray-light);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-accent:hover {
  background: #b8d000;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 224, 0, 0.4);
}


/* ── PROJECT CARD ── */
/* Used on both homepage and projects.html */
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(147, 152, 195, 0.2);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--purple-light) 0%, #D4D0FC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.project-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

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

.project-thumb-alt {
  background: linear-gradient(135deg, #C9B8F5 0%, #9B8AF0 100%);
}

.project-thumb-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.project-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-meta {
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--primary-light);
  display: inline-block;
}

.project-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
  font-weight: 300;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  font-size: 0.72rem;
  font-weight: normal;
  padding: 4px 10px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid var(--gray);
  color: var(--primary);
}

.tag.accent {
  background: var(--purple-mid);
  color: var(--primary-dark);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 8px;
  transition: gap 0.2s;
}

.project-link .material-symbols-outlined {
  font-size: 16px;
  transition: transform 0.2s;
}

.project-card:hover .project-link {
  gap: 8px;
}

.project-card:hover .project-link .material-symbols-outlined {
  transform: translate(2px, -2px);
}

/* ── ARTICLES ── */
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--purple-light);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(147, 152, 195, 0.1);
}

.article-date {
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}

.article-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.article-desc {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.6;
  font-weight: 300;
}

/* ── CTA ── */
.cta {
  background: var(--purple-light);
  text-align: center;
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}

.cta::before,
.cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--purple-mid);
  opacity: 0.3;
}

.cta::before {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -80px;
}

.cta::after {
  width: 200px;
  height: 200px;
  bottom: -60px;
  right: -40px;
}

.cta-icon {
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  /* box-shadow: 0 4px 16px rgba(147,152,195,0.2); */
  position: relative;
  z-index: 1;
}

.cta-icon .material-symbols-outlined {
  font-size: 28px;
  /* font-variation-settings: 'FILL' 1, 'wght' 400; */
  color: var(--primary-dark);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta-sub {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 28px;
  font-weight: 300;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

.cta .btn {
  position: relative;
  z-index: 1;
}

/* ── FOOTER ── */
footer {
  padding: 28px clamp(20px, 5vw, 80px);
  border-top: 1px solid var(--primary-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-name {
  display: flex;
  align-items: center;
  gap: 1px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: bold;
  color: var(--navy);
}

.footer-name img {
  height: 16px;
  width: auto;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.d1 {
  transition-delay: 0.05s;
}

.d2 {
  transition-delay: 0.12s;
}

.d3 {
  transition-delay: 0.19s;
}

.d4 {
  transition-delay: 0.26s;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 480px) {
  .section-header {
    flex-direction: column;
    gap: 8px;
  }
}