:root {
  --bg-dark: #07090e;
  --bg-card: #0f131f;
  --bg-card-hover: #151a2e;
  --black: #030407;
  
  --magenta-600: #1d4ed8; /* mapped to blue-700 */
  --magenta-500: #2563eb; /* mapped to blue-600 */
  --magenta-400: #60a5fa; /* mapped to blue-400 */
  --purple-700: #1e3a8a; /* mapped to blue-900 */
  --purple-600: #2563eb; /* mapped to blue-600 */
  --purple-500: #3b82f6; /* mapped to blue-500 */
  
  --blue-950: #0b1a3a;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --white: #ffffff;
  --off-white: #f8fafc;
  
  --gray-100: #1a2238;
  --gray-200: #24304d;
  --gray-300: #33436a;
  --gray-500: #8899ac;
  --gray-800: #cbd5e1;
  
  --bg: transparent;
  --text: var(--off-white);
  --text-muted: var(--gray-500);
  --accent: var(--magenta-500);
  --accent-soft: rgba(37, 99, 235, 0.12);
  --accent-glow: rgba(59, 130, 246, 0.4);
  --border: var(--gray-200);
  
  --header-h: 72px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(37, 99, 235, 0.15);
  --font: 'Rubik', 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  background: var(--bg-dark);
}

body {
  font-family: var(--font);
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.lead { font-size: 1.1rem; color: var(--text-muted); max-width: 56ch; }
.text-accent { color: var(--accent); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: clamp(3rem, 6vw, 5rem) 0; }

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: 0.6rem; }
.section-header p { color: var(--text-muted); max-width: 36rem; margin: 0 auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--magenta-500), var(--purple-600));
  color: var(--white);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--magenta-400), var(--purple-500));
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-outline {
  border: 1.5px solid var(--gray-300);
  color: var(--white);
  background: var(--bg-card);
}
.btn-outline:hover {
  border-color: var(--magenta-500);
  color: var(--magenta-400);
  background: var(--accent-soft);
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 2000;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
  background: rgba(7, 9, 14, 0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 0 0.75rem 0 0.5rem;
  gap: 0.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--white);
  flex-shrink: 0;
  order: 1;
}
.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.header-search-wrap {
  order: 2;
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
  max-width: 280px;
  margin: 0 auto;
}

.header-search {
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search:focus-within {
  border-color: var(--magenta-500);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--bg-card);
}
.header-search-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0.5rem 0.9rem;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}
.header-search-input::placeholder { color: var(--gray-500); }
.header-search-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 34px;
  color: var(--gray-500);
  flex-shrink: 0;
}
.header-search-btn:hover { color: var(--magenta-400); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
  order: 3;
}
.nav a {
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-800);
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav a:hover,
.nav a.active {
  color: var(--magenta-400);
  background: var(--accent-soft);
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  order: 4;
}
.header-socials a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--gray-800);
  transition: all var(--transition);
  background: var(--bg-card);
}
.header-socials a svg { display: block; }
.header-socials a:hover {
  border-color: var(--magenta-500);
  color: var(--magenta-400);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--white);
  border-radius: 8px;
  order: 5;
  flex-shrink: 0;
}
.menu-toggle:hover { background: var(--accent-soft); }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1100px) {
  .nav a { padding: 0.4rem 0.5rem; font-size: 0.8rem; }
  .header-search-wrap { max-width: 180px; }
}

@media (max-width: 900px) {
  .header-search-wrap { display: none; }
  .header-socials { display: none; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1990;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a { width: 100%; padding: 0.85rem 1rem; font-size: 1rem; }
  .menu-toggle { display: grid; margin-left: auto; }
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
  background: transparent;
}
.hero::before {
  content: '';
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
  top: -20%;
  right: -15%;
  animation: floatBlob 12s ease-in-out infinite;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 40vmax;
  height: 40vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
  bottom: -10%;
  left: -10%;
  animation: floatBlob 14s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, 4%) scale(1.05); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--magenta-400);
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s ease both;
}

.hero h1 {
  margin-bottom: 1.1rem;
  animation: fadeUp 0.7s 0.1s ease both;
  background: linear-gradient(90deg, var(--magenta-500), var(--purple-500), var(--blue-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 span {
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero h1 {
  background: linear-gradient(90deg, var(--magenta-500), var(--purple-500), var(--blue-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .lead { margin-bottom: 1.75rem; animation: fadeUp 0.7s 0.2s ease both; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: fadeUp 0.7s 0.3s ease both;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  animation: fadeUp 0.8s 0.25s ease both;
}

.hero-card {
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg, transparent, var(--magenta-500), transparent 35%);
  animation: spin 14s linear infinite;
  opacity: 0.2;
}
.hero-card-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}
.hero-card-inner .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--magenta-500), var(--purple-700));
  box-shadow: 0 8px 24px var(--accent-glow);
  animation: pulseSoft 3s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseSoft {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px var(--accent-glow); }
  50% { transform: scale(1.04); box-shadow: 0 12px 32px var(--accent-glow); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 280px; }
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 2.5rem) 0 3rem;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--magenta-500);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--magenta-400);
}
.card h3 { margin-bottom: 0.4rem; color: var(--white); }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.project-card:hover {
  border-color: var(--magenta-500);
  box-shadow: 0 0 0 1px var(--magenta-500), var(--shadow-lg);
  transform: translateY(-4px);
}
.project-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--gray-200), var(--bg-dark));
  display: grid;
  place-items: center;
}
.project-body { padding: 1.25rem; }
.project-body h3 { margin-bottom: 0.35rem; font-size: 1.1rem; color: var(--white); }
.project-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  padding: 0.25rem 0.6rem;
  background: var(--accent-soft);
  color: var(--magenta-400);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
}

.search-bar-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.search-input {
  flex: 1;
  min-width: 180px;
  max-width: 420px;
  padding: 0.8rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus {
  outline: none;
  border-color: var(--magenta-500);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-count { font-size: 0.85rem; color: var(--text-muted); }
.search-empty { text-align: center; color: var(--text-muted); padding: 2rem; }

.news-card {
  display: flex;
  gap: 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: all var(--transition);
}
.news-card:hover { border-color: var(--magenta-500); box-shadow: var(--shadow); }
.news-date { flex-shrink: 0; width: 56px; text-align: center; }
.news-date .day { font-size: 1.5rem; font-weight: 800; color: var(--magenta-400); line-height: 1; }
.news-date .month { font-size: 0.7rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.05em; }
.news-body h3 { margin-bottom: 0.35rem; font-size: 1.05rem; color: var(--white); }
.news-body p { color: var(--text-muted); font-size: 0.9rem; }

.member-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.6rem 1.1rem;
  transition: all var(--transition);
}
.member-card:hover {
  border-color: var(--magenta-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.member-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gray-200), var(--bg-dark));
  border: 2px solid var(--gray-300);
  display: grid;
  place-items: center;
}
.member-card h3 { font-size: 1.05rem; margin-bottom: 0.2rem; color: var(--white); }
.member-role { color: var(--magenta-400); font-size: 0.82rem; font-weight: 600; margin-bottom: 0.5rem; }
.member-card p { color: var(--text-muted); font-size: 0.85rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.15rem; }
.contact-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-item .icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--magenta-400);
  flex-shrink: 0;
}
.contact-item h4 { font-size: 0.9rem; margin-bottom: 0.15rem; color: var(--white); }
.contact-item p, .contact-item a { color: var(--text-muted); font-size: 0.9rem; }
.contact-item a:hover { color: var(--magenta-400); }

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}
.social-links a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--gray-800);
  background: var(--bg-card);
  transition: all var(--transition);
}
.social-links a:hover {
  border-color: var(--magenta-500);
  color: var(--magenta-400);
  background: var(--accent-soft);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--gray-800);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--magenta-500);
  background: var(--bg-card);
}
.form-group textarea { min-height: 110px; resize: vertical; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.sponsors-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 2rem;
  align-items: start;
}
.sponsors-list {
  border-left: 3px solid var(--magenta-500);
  padding-left: 1.1rem;
}
.sponsors-list-title {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  color: var(--white);
}
.sponsors-list ul { display: flex; flex-direction: column; gap: 0.5rem; }
.sponsors-list li { color: var(--text-muted); font-size: 0.92rem; line-height: 1.4; }
.sponsors-list li.highlight {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--magenta-400);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}
.sponsors-tiers { display: flex; flex-direction: column; gap: 2.5rem; }
.tier-title {
  text-align: right;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-weight: 600;
  color: var(--magenta-400);
}
.tier-gold { color: #f59e0b; }
.tier-grid { display: grid; gap: 1.25rem; }
.tier-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tier-grid-4 { grid-template-columns: repeat(4, 1fr); }
.sponsor-logo-card { text-align: center; }
.sponsor-logo-box {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  aspect-ratio: 1.4;
  max-height: 100px;
  display: grid;
  place-items: center;
  margin: 0 auto 0.65rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.65rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.sponsor-logo-card:hover .sponsor-logo-box { transform: translateY(-3px); border-color: var(--magenta-500); }
.sponsor-name {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .sponsors-layout { grid-template-columns: 1fr; }
  .tier-title { text-align: left; }
  .tier-grid-3, .tier-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .tier-grid-3, .tier-grid-4 { grid-template-columns: 1fr; }
}

.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 2.5rem;
  text-align: center;
  background: transparent;
  overflow: hidden;
}
.page-hero h1 {
  margin-bottom: 0.6rem;
  animation: fadeUp 0.6s ease both;
  background: linear-gradient(90deg, var(--magenta-500), var(--purple-500), var(--blue-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto;
  animation: fadeUp 0.6s 0.1s ease both;
}

.site-footer {
  background: transparent;
  color: var(--gray-800);
  padding: 3.25rem 0 1.75rem;
  margin-top: 3.5rem;
  border-top: 1px solid var(--gray-200);
}
.site-footer .logo,
.site-footer .logo span { color: var(--white); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 28ch;
  margin-top: 0.75rem;
}
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--magenta-400);
  margin-bottom: 0.9rem;
}
.footer-col a {
  display: block;
  color: var(--gray-800);
  font-size: 0.9rem;
  padding: 0.28rem 0;
  opacity: 0.85;
}
.footer-col a:hover { color: var(--white); opacity: 1; }

.footer-bottom {
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer .social-links a {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--gray-200);
  color: var(--gray-800);
}
.site-footer .social-links a:hover {
  background: rgba(37, 99, 235, 0.15);
  color: var(--magenta-400);
  border-color: var(--magenta-500);
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

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

/* ==========================================
   Preloader / Loading Screen Styles
   ========================================== */
.loader-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-wrapper.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  animation: loaderPopIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.loader-photo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
}

.loader-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--magenta-500);
  border-radius: 50%;
  animation: loaderSpin 0.9s linear infinite;
}

@keyframes loaderPopIn {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
   Full-Page Converging Parallax Triangles
   ========================================== */
.scroll-triangles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.5;
}

.tri-shape {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  will-change: transform;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

main, .site-footer {
  position: relative;
  z-index: 1;
}

/* Low-resource / reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-triangles-bg { display: none !important; }
  .hero::before, .hero::after { animation: none !important; }
  .hero-card::before { animation: none !important; }
  .loader-spinner { animation: none !important; }
}
body.low-end .scroll-triangles-bg { display: none !important; }
body.low-end .hero::before,
body.low-end .hero::after { animation: none !important; opacity: 0.5; }
body.low-end .hero-card::before { animation: none !important; }
body.low-end .tri-shape { filter: none !important; will-change: auto !important; }
body.mid-end .tri-shape { filter: none !important; }


/* Project album modal */
.project-card { cursor: pointer; }
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.project-thumb { position: relative; overflow: hidden; }

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.project-modal[hidden] { display: none !important; }

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFade 0.25s ease;
}

.project-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: var(--bg-card, #15151c);
  border: 1px solid var(--border, #2a2a35);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
}
.project-modal-close:hover { background: rgba(37, 99, 235, 0.85); }

.project-modal-media {
  position: relative;
  min-height: 240px;
  background: linear-gradient(135deg, #1a1a24, #0d0d12);
  display: grid;
  place-items: center;
}
.project-modal-media img {
  width: 100%;
  height: 100%;
  max-height: 90vh;
  object-fit: cover;
  display: block;
}
.project-modal-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--magenta-500, #2563eb), var(--purple-600, #2563eb));
  opacity: 0.5;
}

.project-modal-info {
  padding: 1.75rem 1.5rem 1.5rem;
  overflow: auto;
}
.project-modal-info h2 {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
  color: var(--text, #eee);
}
.project-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.project-modal-body {
  color: var(--text-muted, #999);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  line-height: 1.55;
}
.project-modal-details {
  color: var(--text, #ddd);
  font-size: 0.95rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 720px) {
  .project-modal-dialog {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }
  .project-modal-media {
    min-height: 180px;
    max-height: 40vh;
  }
  .project-modal-media img {
    max-height: 40vh;
  }
}

body.modal-open {
  overflow: hidden;
}


/* ==========================================
   Floating News dropdown (bell) — all pages
   Under header; slides to corner on scroll
   ========================================== */
.floating-news {
  position: fixed;
  top: calc(var(--header-h) + 14px);
  right: 18px;
  z-index: 90;
  transition: top 0.28s ease, right 0.28s ease;
}

.floating-news.is-scrolled {
  top: 14px;
  right: 14px;
}

.floating-news-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem 0.65rem 0.85rem;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floating-news-btn:hover,
.floating-news.open .floating-news-btn {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.55);
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  color: var(--white);
}

.floating-news-btn svg { flex-shrink: 0; display: block; }
.floating-news-label { white-space: nowrap; }

.floating-news-count {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floating-news-caret {
  transition: transform 0.2s ease;
  opacity: 0.9;
}
.floating-news.open .floating-news-caret {
  transform: rotate(180deg);
}

.floating-news-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 28px));
  max-height: min(420px, 70vh);
  overflow: auto;
  background: var(--bg-card, #0f131f);
  border: 1px solid var(--border, #24304d);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  padding: 0.5rem;
  z-index: 91;
}

.floating-news-menu[hidden] { display: none !important; }

.floating-news-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem 0.65rem;
  border-bottom: 1px solid var(--border, #24304d);
  margin-bottom: 0.35rem;
}

.floating-news-menu-head strong {
  font-size: 0.9rem;
  color: var(--white);
}

.floating-news-all {
  font-size: 0.78rem;
  color: var(--blue-400);
  text-decoration: none;
  font-weight: 600;
}
.floating-news-all:hover { text-decoration: underline; color: var(--white); }

.floating-news-empty {
  padding: 1rem 0.65rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.floating-news-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.floating-news-item:hover {
  background: var(--bg-card-hover, #151a2e);
}

.floating-news-num {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.2);
  color: var(--blue-400);
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.floating-news-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.floating-news-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
}

.floating-news-item-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .floating-news {
    right: 12px;
    top: calc(var(--header-h) + 10px);
  }
  .floating-news.is-scrolled {
    top: 10px;
    right: 10px;
  }
  .floating-news-btn {
    padding: 0.7rem;
    border-radius: 50%;
  }
  .floating-news-label,
  .floating-news-caret {
    display: none;
  }
}

/* Footer social names next to icons */
.footer-socials-named {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}

.footer-socials-named a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-socials-named a:hover {
  color: var(--blue-400);
}

.footer-socials-named a svg {
  flex-shrink: 0;
}

.footer-social-name {
  font-weight: 500;
}