/* Future Proto Lab - Professional Dark Theme */

/* CSS Variables */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-bg: #0a0e27;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --accent-color: #667eea;
  --transition-speed: 0.3s;
  --content-width: 900px;
  --wide-width: 1200px;
  --header-height: 64px;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic Pro', 'Yu Gothic', 'Meiryo', sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 90%, rgba(79, 172, 254, 0.05) 0%, transparent 50%);
  z-index: -1;
  animation: backgroundPulse 20s ease-in-out infinite;
}

@keyframes backgroundPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ===== Site Header / Navigation ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: var(--header-height);
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  transition: background var(--transition-speed);
}

.site-header.scrolled {
  background: rgba(10, 14, 39, 0.95);
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo::after {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

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

.site-nav a {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  color: var(--text-secondary);
  transition: all var(--transition-speed);
  white-space: nowrap;
}

.site-nav a::after {
  display: none;
}

.site-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.site-nav a[aria-current="page"] {
  color: var(--text-primary);
  background: rgba(102, 126, 234, 0.2);
}

/* Header Right Area: lang switcher */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.25rem;
}

.lang-btn {
  padding: 0.35rem 0.75rem;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all var(--transition-speed);
  font-family: inherit;
}

.lang-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-color);
}

.lang-btn.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: var(--text-primary);
}

/* Hamburger Menu Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition-speed);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Main Container ===== */
#SITE_CONTAINER {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--header-height) + 2rem) 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== Typography ===== */
h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-primary);
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
}

/* Page-specific h1 styles */
.page-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ===== Paragraphs ===== */
p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  max-width: 800px;
}

/* ===== Links ===== */
a {
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  transition: all var(--transition-speed);
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-color);
  transition: width var(--transition-speed);
}

a:hover::after {
  width: 100%;
}

a:hover {
  color: var(--accent-color);
}

/* ===== Glass Card ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 0.75rem 0;
  max-width: var(--content-width);
  width: 100%;
  backdrop-filter: blur(10px);
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1);
}

.card h2 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.card h3 {
  margin-top: 0;
}

.card p {
  color: var(--text-secondary);
}

/* ===== Footer Navigation ===== */
#FOOTER_NAV {
  margin-top: 4rem;
  padding: 2rem 0;
  width: 100%;
  border-top: 1px solid var(--card-border);
}

#FOOTER_NAV ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

#FOOTER_NAV a {
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  display: block;
  border-radius: 0.375rem;
  color: var(--text-secondary);
  transition: all var(--transition-speed);
}

#FOOTER_NAV a::after {
  display: none;
}

#FOOTER_NAV a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

#FOOTER_NAV a[aria-current="page"] {
  color: var(--text-primary);
  background: rgba(102, 126, 234, 0.15);
}

/* ===== Footer ===== */
footer {
  margin-top: 1.5rem;
  padding: 1.5rem 0;
  width: 100%;
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== Content Grid ===== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: var(--wide-width);
  margin: 1.5rem auto;
}

/* ===== Hero Section (index) ===== */
.hero {
  text-align: center;
  margin-bottom: 4rem;
  padding-top: 2rem;
}

.tagline {
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.sub-tagline {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 2;
}

/* ===== Page Tagline ===== */
.page-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-style: italic;
  text-align: center;
}

/* ===== Page Intro ===== */
.page-intro {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-intro p {
  margin-bottom: 0.5rem;
}

/* ===== Section Styles ===== */
.section-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.content-section {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto 3rem;
}

.content-section h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.5rem;
}

/* ===== Pillars Section (index) ===== */
.pillars {
  width: 100%;
  max-width: var(--wide-width);
  margin: 0 auto 4rem;
}

.pillar-card {
  text-align: center;
}

.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pillar-card p {
  margin: 0;
}

/* ===== Featured Section (index) ===== */
.featured {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto 4rem;
}

.featured-card {
  text-align: left;
}

.featured-card h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  margin-bottom: 0.5rem;
}

.featured-card .year {
  font-size: 0.85rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* ===== CTA Section (index) ===== */
.cta-section {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto 4rem;
}

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

.cta-button {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  transition: all var(--transition-speed);
}

.cta-button::after {
  display: none;
}

.cta-button.primary {
  background: var(--primary-gradient);
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.cta-button.secondary {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
}

.cta-button.secondary:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
}

.cta-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-color);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ===== Prose ===== */
.prose p {
  margin-bottom: 1rem;
  max-width: none;
}

/* ===== Info List (about) ===== */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.info-label {
  color: var(--text-secondary);
  min-width: 80px;
  font-size: 0.9rem;
}

.info-value {
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* ===== Research Pillars ===== */
.research-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.research-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.research-card p {
  margin: 0;
}

/* ===== Methodology ===== */
.methodology {
  text-align: center;
}

.methodology-steps {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ===== Project Card ===== */
.projects-list {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.project-card {
  margin-bottom: 1.5rem;
}

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

.project-header h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  margin: 0;
  flex: 1;
}

.project-year {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  font-size: 1rem;
}

.project-concept {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-style: italic;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.25);
  border-radius: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.project-details {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-item p {
  margin: 0;
  font-size: 0.9rem;
}

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

.project-links a {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.375rem;
  font-size: 0.85rem;
  transition: all var(--transition-speed);
}

.project-links a::after {
  display: none;
}

.project-links a:hover {
  background: rgba(102, 126, 234, 0.15);
  border-color: var(--accent-color);
}

/* ===== Publication Card ===== */
.publications-list {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.publication-card {
  text-align: left;
}

.publication-year {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.publication-title {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.publication-authors {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.publication-venue {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
}

.publication-links {
  display: flex;
  gap: 0.75rem;
}

.publication-links a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.375rem;
  font-size: 0.8rem;
  transition: all var(--transition-speed);
}

.publication-links a::after {
  display: none;
}

.publication-links a:hover {
  background: rgba(102, 126, 234, 0.15);
  border-color: var(--accent-color);
}

/* ===== Member Card ===== */
.member-card {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.member-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.member-role {
  color: var(--text-secondary);
  margin: 0;
}

/* ===== Collaboration Types ===== */
.collaboration-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.collaboration-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.collaboration-card p {
  margin: 0;
}

.nda-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== News Card ===== */
.news-list {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.news-date {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 90px;
}

.news-year {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.news-label {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.label-publication {
  background: rgba(102, 126, 234, 0.2);
  color: #a0c4ff;
}

.label-research {
  background: rgba(118, 75, 162, 0.2);
  color: #d0a0ff;
}

.label-talk {
  background: rgba(79, 172, 254, 0.2);
  color: #a0e0ff;
}

.label-exhibition {
  background: rgba(240, 147, 251, 0.2);
  color: #ffa0ff;
}

.label-recruitment {
  background: rgba(245, 87, 108, 0.2);
  color: #ffa0a0;
}

.news-content {
  margin: 0;
  color: var(--text-secondary);
}

.news-link {
  font-size: 0.85rem;
  color: var(--accent-color);
}

.news-link::after {
  display: none;
}

/* ===== Contact Card ===== */
.contact-card {
  max-width: 600px;
  margin: 0 auto;
}

.contact-description {
  text-align: center;
  margin-bottom: 1.5rem;
}

.email-container {
  text-align: center;
  margin-bottom: 2rem;
}

.email-link {
  display: inline-block;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  padding: 0.875rem 1.75rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  transition: all var(--transition-speed);
}

.email-link::after {
  display: none;
}

.email-link:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.15);
}

.contact-items {
  margin-bottom: 1.5rem;
}

.contact-item-label {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.contact-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-items-list li {
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding-left: 1rem;
  position: relative;
}

.contact-items-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-color);
}

.contact-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== 404 Page ===== */
.error-container {
  text-align: center;
  padding: 4rem 2rem;
}

.error-code {
  font-size: clamp(4rem, 15vw, 10rem);
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1;
}

.error-message {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.error-description {
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.back-home-btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--primary-gradient);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
}

.back-home-btn::after {
  display: none;
}

.back-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
  color: var(--text-primary);
}

.back-home-btn.secondary {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: none;
}

.back-home-btn.secondary:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-bottom: 1px solid var(--card-border);
    flex-direction: column;
  }

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

  .site-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  #SITE_CONTAINER {
    padding: calc(var(--header-height) + 1.5rem) 1rem 1rem;
  }

  #FOOTER_NAV ul {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .card {
    padding: 1.25rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
  }

  .project-header {
    flex-direction: column;
  }

  .info-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .info-label {
    min-width: auto;
  }

  .site-header {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  #SITE_CONTAINER {
    padding: calc(var(--header-height) + 1rem) 0.75rem 1rem;
  }

  .lang-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Print Styles ===== */
@media print {
  body::before {
    display: none;
  }

  .site-header,
  .lang-switcher,
  .nav-toggle {
    display: none !important;
  }

  #SITE_CONTAINER {
    padding-top: 0;
  }

  body {
    background: white;
    color: #111;
  }

  .card {
    border: 1px solid #ccc;
    background: white;
  }

  h1, h2, h3, h4 {
    -webkit-text-fill-color: initial;
    background: none;
    color: #111;
  }

  p, .text-secondary {
    color: #333;
  }

  a {
    color: #111;
    text-decoration: underline;
  }

  a::after {
    display: none;
  }
}
