/* ═══════════════════════════════════════════
   ✦  2026 DESIGN SYSTEM  ✦
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #e8eaf0;
  --accent: #FFCD00;
  --accent-soft: rgba(255, 205, 0, 0.12);
  --accent-glow: rgba(255, 205, 0, 0.4);
  --bg: #08080c;
  --bg-elevated: #0f0f16;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-border-hover: rgba(255, 205, 0, 0.25);
  --text: #f2f2f7;
  --text-secondary: #7a7a8e;
  --surface: rgba(255, 255, 255, 0.03);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.4s;
  --shadow-ambient: 0 0 0 1px rgba(255,255,255,0.04);
  --shadow-elevation:
    0 2px 4px rgba(0,0,0,0.08),
    0 8px 16px rgba(0,0,0,0.12),
    0 24px 48px rgba(0,0,0,0.16);
}

[data-theme="light"] {
  --primary: #111127;
  --bg: #f5f5fa;
  --bg-elevated: #eeeef4;
  --card: rgba(255, 255, 255, 0.7);
  --card-hover: rgba(255, 255, 255, 0.9);
  --card-border: rgba(0, 0, 0, 0.06);
  --card-border-hover: rgba(255, 205, 0, 0.4);
  --text: #111127;
  --text-secondary: #6b6b82;
  --surface: rgba(0, 0, 0, 0.02);
  --accent-soft: rgba(255, 205, 0, 0.08);
  --shadow-ambient: 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-elevation:
    0 2px 4px rgba(0,0,0,0.03),
    0 8px 16px rgba(0,0,0,0.05),
    0 24px 48px rgba(0,0,0,0.06);
}

/* ─── Reset ─── */

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

/* ─── Body + Aurora BG ─── */

body {
  background: var(--bg);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  color: var(--text);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Animated aurora background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(255, 205, 0, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 80%, rgba(0, 102, 204, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(204, 0, 68, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: auroraDrift 20s ease-in-out infinite alternate;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

@keyframes auroraDrift {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(1deg); }
  100% { transform: scale(1) rotate(-1deg); }
}

body > * {
  position: relative;
  z-index: 1;
}

body.modal-open {
  overflow: hidden;
  padding-right: 15px;
}

/* ─── Header ─── */

.header {
  background: var(--accent);
  padding: 3.5rem 2rem;
  text-align: center;
  color: #0a0a0a;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(255,255,255,0.35) 0%, transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(255,255,255,0.15) 0%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  pointer-events: none;
}

/* Animated shimmer */
.header::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255,255,255,0.08) 45%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.08) 55%,
    transparent 60%
  );
  animation: headerShimmer 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes headerShimmer {
  0%, 100% { transform: translateX(-30%) translateY(-30%) rotate(25deg); }
  50% { transform: translateX(30%) translateY(30%) rotate(25deg); }
}

.header h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: -1px;
  font-weight: 900;
  position: relative;
}

.header-logo {
  height: 100px;
  width: auto;
  margin: 0 auto;
  display: block;
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.15));
  transition: transform var(--duration) var(--ease-bounce);
}

.header-logo:hover {
  transform: scale(1.05);
}

/* ─── Section Title ─── */

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--primary);
  text-align: center;
  margin: 3.5rem 0 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--accent);
  border-radius: var(--radius-pill);
  margin: 1rem auto 0;
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ─── Projects Grid ─── */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  padding: 0 2rem;
  max-width: 1440px;
  margin: 0 auto;
}

/* ─── Project Card (Glassmorphism) ─── */

.project-card {
  background: var(--card);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    background var(--duration) var(--ease);
}

/* Inner glow on hover */
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 30% 0%, var(--accent-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
  pointer-events: none;
  z-index: 0;
}

/* Bottom accent line */
.project-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
  border-radius: 2px;
}

.project-card:hover {
  transform: translateY(-8px);
  background: var(--card-hover);
  border-color: var(--card-border-hover);
  box-shadow:
    var(--shadow-ambient),
    var(--shadow-elevation),
    0 0 40px rgba(255, 205, 0, 0.06);
}

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

.project-card:hover::after {
  opacity: 0.6;
}

.project-card:active {
  transform: translateY(-3px) scale(0.99);
  transition-duration: 0.1s;
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-full-lock {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  z-index: 2;
  transition: all var(--duration) var(--ease);
}

.project-card:hover .project-full-lock {
  background: rgba(0, 0, 0, 0.5);
}

/* ─── Type Badges (Pill) ─── */

.project-type {
  background: var(--accent);
  color: #0a0a0a;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1rem;
  transition: all var(--duration) var(--ease);
}

.project-type.series {
  background: linear-gradient(135deg, #0055b3, #0088ff);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 136, 255, 0.3);
}

.project-type.film {
  background: linear-gradient(135deg, #b30033, #ff0055);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 0, 85, 0.3);
}

.project-card:hover .project-type {
  transform: scale(1.03);
}

/* ─── Status Badges ─── */

.project-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

/* Animated shine on badges */
.project-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
  0%, 80%, 100% { left: -100%; }
  40% { left: 100%; }
}

.badge-development {
  background: linear-gradient(135deg, #ff6b00, #ffaa00);
  color: #1a0800;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.2);
}

.badge-production {
  background: linear-gradient(135deg, #00d68f, #00f0a0);
  color: #002e1a;
  box-shadow: 0 4px 16px rgba(0, 214, 143, 0.2);
}

.badge-correction {
  background: linear-gradient(135deg, #b366ff, #8844ff);
  color: white;
  box-shadow: 0 4px 16px rgba(179, 102, 255, 0.2);
}

.badge-termine {
  background: linear-gradient(135deg, #3399ff, #66b3ff);
  color: #001a33;
  box-shadow: 0 4px 16px rgba(51, 153, 255, 0.2);
}

.badge-planning {
  background: linear-gradient(135deg, #ff4444, #ff6b6b);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 68, 68, 0.2);
}

/* ─── Divider ─── */

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--card-border) 30%, var(--accent) 50%, var(--card-border) 70%, transparent 95%);
  margin: 5rem 3rem;
  border: none;
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ─── Modal ─── */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
}

.modal-content {
  background: var(--bg-elevated);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  margin: 3vh auto;
  padding: 3rem;
  width: min(92%, 880px);
  border-radius: var(--radius-xl);
  position: relative;
  box-shadow:
    0 0 0 1px var(--card-border),
    0 16px 48px rgba(0,0,0,0.35),
    0 48px 96px rgba(0,0,0,0.2);
  border: 1px solid var(--card-border);
  animation: modalIn 0.5s var(--ease);
  max-height: none;
  overflow-y: visible;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.modal-content::-webkit-scrollbar {
  display: none;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.94);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

.close span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  position: relative;
  line-height: 0;
}

.close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  transform: rotate(90deg);
}

.close:active {
  transform: rotate(90deg) scale(0.9);
}

.modal h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 0;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: 1.8rem;
}

.modal h2::after {
  display: none;
}

.modal h2 .series,
.modal h2 .film {
  order: -1;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.modal h2 .series {
  background: linear-gradient(135deg, #0055b3, #0088ff);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 136, 255, 0.25);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin: 0 10px;
}

.modal h2 .film {
  background: linear-gradient(135deg, #b30033, #ff0055);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 0, 85, 0.25);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin: 0 10px;
}

/* ─── Tags ─── */

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.5rem 0;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  order: 1;
}

.tag-badge {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 205, 0, 0.15);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--duration) var(--ease);
  cursor: default;
}

.tag-badge:hover {
  background: var(--accent);
  color: #0a0a0a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 205, 0, 0.25);
}

/* ─── Deadline ─── */

.deadline-container {
  background: var(--surface);
  padding: 1.2rem 1.8rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.deadline-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}

.deadline-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.deadline-date {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.deadline-mini {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 205, 0, 0.15);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.6rem;
}

/* ─── Team ─── */

.team-section {
  margin: 2.5rem 0;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
}

.team-section-centered {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.team-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.2rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--duration) var(--ease);
  margin: 0.4rem;
  min-width: 115px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-ambient);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
  pointer-events: none;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-ambient), var(--shadow-elevation);
}

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

.chef-card {
  position: relative;
  overflow: hidden;
}

.team-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin-bottom: 0.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 2.5px solid var(--card-border);
  transition: all var(--duration) var(--ease-bounce);
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.team-card:hover .team-avatar {
  transform: scale(1.12);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.team-info {
  margin-top: 0.5rem;
}

.team-pseudo {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.85rem;
  letter-spacing: -0.2px;
}

.equipe-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

/* ─── Synopsis ─── */

.synopsis-container {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  margin-top: 2rem;
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.synopsis-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--accent) 20%,
    var(--accent) 80%,
    transparent
  );
  opacity: 0.5;
}

.synopsis-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 60px;
  background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.synopsis-title {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.3px;
  position: relative;
}

.synopsis-content {
  line-height: 1.85;
  color: var(--text-secondary);
  text-align: justify;
  font-size: 0.98rem;
  letter-spacing: 0.1px;
}

/* ─── Theme Switch ─── */

.theme-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: var(--card);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-ambient);
  transition: all var(--duration) var(--ease);
  overflow: hidden;
}

.theme-switch:hover {
  transform: scale(1.08);
  border-color: var(--card-border-hover);
  box-shadow:
    var(--shadow-ambient),
    0 0 24px var(--accent-glow);
}

.theme-switch:active {
  transform: scale(0.95);
}

.theme-switch::before {
  content: '🌙';
  position: absolute;
  transition: all 0.5s var(--ease-bounce);
}

[data-theme="light"] .theme-switch::before {
  content: '☀️';
  transform: rotate(360deg);
}

/* ─── Locked / Planning ─── */

.planning-section {
  position: relative;
  margin: 2rem 0;
  user-select: none;
}

.locked-section {
  filter: blur(12px) saturate(0.5);
  position: relative;
  pointer-events: none;
  user-select: none;
}

.locked-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse, rgba(0,0,0,0.1), transparent);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  border-radius: var(--radius-lg);
}

.lock-icon {
  font-size: 5rem;
  color: white;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
  animation: float 4s ease-in-out infinite;
  filter: none;
  text-align: center;
}

.hidden-content {
  display: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-14px) scale(1.03); }
}

/* ─── Submit Button (FAB) ─── */

.submit-project-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: #0a0a0a;
  font-size: 2rem;
  font-weight: 300;
  text-decoration: none;
  box-shadow:
    0 4px 12px rgba(255, 205, 0, 0.2),
    0 16px 40px rgba(0, 0, 0, 0.15);
  transition: all var(--duration) var(--ease);
  z-index: 1000;
  overflow: visible;
  position: fixed;
}

/* Pulsing ring */
.submit-project-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius-md) + 4px);
  background: transparent;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: fabPulse 3s ease-in-out infinite;
}

@keyframes fabPulse {
  0%, 70%, 100% { opacity: 0; transform: scale(1); }
  35% { opacity: 0.3; transform: scale(1.08); }
}

.submit-project-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-project-btn:hover {
  transform: translateY(-4px) scale(1.06);
  border-radius: calc(var(--radius-md) + 4px);
  box-shadow:
    0 8px 24px rgba(255, 205, 0, 0.35),
    0 24px 56px rgba(0, 0, 0, 0.2);
}

.submit-project-btn:hover::before {
  animation: none;
  opacity: 0;
}

.submit-project-btn:active {
  transform: translateY(-1px) scale(0.97);
  transition-duration: 0.1s;
}

.submit-project-btn .tooltip {
  position: absolute;
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  right: 78px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all var(--duration) var(--ease);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-elevation);
  pointer-events: none;
}

.submit-project-btn .tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--bg-elevated);
  border-right: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.submit-project-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.plus-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  transition: transform var(--duration) var(--ease);
}

.submit-project-btn:hover .plus-icon {
  transform: rotate(90deg);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .header {
    padding: 2rem 1rem;
    margin-bottom: 2.5rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .header-logo {
    height: 70px;
  }

  .dc-logo {
    height: 40px;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.8rem;
    padding: 0 1rem;
  }

  .project-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
  }

  .section-title {
    margin: 2.5rem 0 1.5rem;
  }

  .modal-content {
    width: 94%;
    margin: 3vh auto;
    padding: 2rem;
    border-radius: var(--radius-lg);
  }

  .submit-project-btn {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }

  .section-divider {
    margin: 3.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1.5rem 0.8rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .header-logo {
    height: 50px;
  }

  .dc-logo {
    height: 30px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 0 0.7rem;
  }

  .project-card {
    padding: 1.3rem;
    border-radius: 20px;
  }

  .project-card:hover {
    transform: translateY(-4px);
  }

  .section-title {
    margin: 2rem 0 1.2rem;
  }

  .project-type,
  .project-badge {
    font-size: 0.68rem;
    padding: 0.35rem 0.8rem;
  }

  .modal-content {
    width: 96%;
    padding: 1.5rem;
    margin: 1.5vh auto;
    border-radius: var(--radius-md);
  }

  .modal h2 {
    font-size: 1.3rem;
  }

  .submit-project-btn {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
    border-radius: 16px;
    font-size: 1.6rem;
  }

  .theme-switch {
    width: 42px;
    height: 42px;
    top: 14px;
    right: 14px;
    border-radius: 12px;
  }

  .synopsis-container,
  .team-section,
  .project-tags,
  .deadline-container {
    padding: 1.2rem;
    border-radius: 18px;
  }

  .team-card {
    min-width: 95px;
    padding: 0.9rem 0.7rem;
    border-radius: 18px;
  }

  .team-avatar {
    width: 46px;
    height: 46px;
  }

  .section-divider {
    margin: 3rem 1rem;
  }
}

/* ─── Reduced Motion ─── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.15s !important;
  }

  .project-card:hover {
    transform: none;
  }

  .submit-project-btn:hover {
    transform: none;
  }
}