/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f8;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --accent: #475569;
  --accent-2: #64748b;
  --accent-3: #334155;
  --accent-gradient: linear-gradient(135deg, #475569, #64748b, #334155);
  --text-primary: #1a1a2e;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: rgba(0, 0, 0, 0.08);
  --glow: 0 4px 20px rgba(71, 85, 105, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 200px;
  height: auto;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.loader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #1e293b;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-title .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(71, 85, 105, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(71, 85, 105, 0.35);
  color: #ffffff;
}

.btn-outline {
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(71, 85, 105, 0.05);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
  gap: 6px;
  margin-top: 16px;
}

/* ===== GRID BACKGROUND PATTERN ===== */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ===== PARTICLE CANVAS ===== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.logo svg {
  width: 36px;
  height: 36px;
}

.logo img {
  height: 36px;
  width: auto;
}

.logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  transition: all var(--transition);
  font-family: var(--font);
}

.lang-switch:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.15;
  pointer-events: none;
  animation: glowDrift 8s ease-in-out infinite;
}

.hero-glow-1 {
  top: -200px;
  right: -100px;
  background: var(--accent);
}

.hero-glow-2 {
  bottom: -200px;
  left: -150px;
  background: var(--accent-2);
  animation-delay: 4s;
}

.hero-glow-3 {
  top: 40%;
  right: -200px;
  background: var(--accent-3);
  opacity: 0.1;
  width: 500px;
  height: 500px;
  animation-delay: 2s;
}

@keyframes glowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(20px, 20px) scale(1.03); }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(71, 85, 105, 0.08);
  border: 1px solid rgba(71, 85, 105, 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
  font-family: var(--font-mono);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ===== TYPING CURSOR ===== */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent);
  margin-left: 4px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  animation: heroFadeIn 1s ease-out 0.2s both;
}

.hero-content .hero-badge {
  animation: heroFadeIn 0.8s ease-out both;
}

.hero-content p {
  animation: heroFadeIn 1s ease-out 0.4s both;
}

.hero-buttons {
  animation: heroFadeIn 1s ease-out 0.6s both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: heroFadeIn 1.2s ease-out 0.5s both;
}

.hero-graphic {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  position: relative;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(71, 85, 105, 0.1);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

.orbit-ring:nth-child(1) {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-color: rgba(71, 85, 105, 0.18);
}

.orbit-ring:nth-child(2) {
  width: 75%;
  height: 75%;
  top: 12.5%;
  left: 12.5%;
  animation-duration: 25s;
  animation-direction: reverse;
  border-color: rgba(71, 85, 105, 0.2);
}

.orbit-ring:nth-child(3) {
  width: 50%;
  height: 50%;
  top: 25%;
  left: 25%;
  animation-duration: 20s;
  border-color: rgba(71, 85, 105, 0.18);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-node {
  position: absolute;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--glow);
  animation: nodeFloat 4s ease-in-out infinite;
}

.orbit-node:nth-child(4) { border-color: rgba(71, 85, 105, 0.4); box-shadow: 0 0 25px rgba(71, 85, 105, 0.25); }
.orbit-node:nth-child(5) { animation-delay: 1s; border-color: rgba(71, 85, 105, 0.4); box-shadow: 0 0 25px rgba(71, 85, 105, 0.25); }
.orbit-node:nth-child(6) { animation-delay: 2s; border-color: rgba(71, 85, 105, 0.4); box-shadow: 0 0 25px rgba(71, 85, 105, 0.25); }
.orbit-node:nth-child(7) { animation-delay: 3s; border-color: rgba(71, 85, 105, 0.4); box-shadow: 0 0 25px rgba(71, 85, 105, 0.25); }

@keyframes nodeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.orbit-node:nth-child(4) { top: -24px; left: calc(50% - 24px); }
.orbit-node:nth-child(5) { top: calc(50% - 24px); right: -24px; }
.orbit-node:nth-child(6) { bottom: -24px; left: calc(50% - 24px); }
.orbit-node:nth-child(7) { top: calc(50% - 24px); left: -24px; }

.hero-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  filter: drop-shadow(0 0 20px rgba(71, 85, 105, 0.2));
  animation: centerPulse 3s ease-in-out infinite;
}

.hero-center-icon svg {
  width: 100%;
  height: 100%;
}

@keyframes centerPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(71, 85, 105, 0.2)); }
  50% { filter: drop-shadow(0 0 35px rgba(71, 85, 105, 0.35)) drop-shadow(0 0 50px rgba(168, 85, 247, 0.15)); }
}

/* ===== ANIMATED GRADIENT DIVIDER ===== */
.gradient-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), var(--accent-3), transparent);
  background-size: 200% 100%;
  animation: shimmerLine 3s linear infinite;
  margin: 0;
}

@keyframes shimmerLine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== STATS BAR ===== */
.stats-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== ABOUT ===== */
.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-card-stack {
  display: grid;
  gap: 20px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(71, 85, 105, 0.06), rgba(71, 85, 105, 0.04), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.about-card:hover::before {
  left: 100%;
}

.about-card:hover {
  border-color: rgba(71, 85, 105, 0.25);
  transform: translateX(8px) translateY(-2px);
  box-shadow: 0 10px 30px rgba(71, 85, 105, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.about-card .card-icon {
  width: 44px;
  height: 44px;
  background: rgba(71, 85, 105, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.about-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.departments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.dept-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.dept-tag:hover {
  border-color: rgba(71, 85, 105, 0.3);
  background: var(--bg-card-hover);
}

.dept-tag .dept-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dept-tag:nth-child(1) .dept-dot { background: #475569; }
.dept-tag:nth-child(2) .dept-dot { background: #64748b; }
.dept-tag:nth-child(3) .dept-dot { background: #334155; }
.dept-tag:nth-child(4) .dept-dot { background: #475569; }

/* ===== PROJECTS ===== */
.projects {
  background: var(--bg-secondary);
}

.projects-header {
  text-align: center;
  margin-bottom: 60px;
}

.projects-header .section-subtitle {
  margin: 0 auto;
}

.project-showcase {
  display: grid;
  gap: 40px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(71, 85, 105, 0.4), rgba(71, 85, 105, 0.4), rgba(71, 85, 105, 0.35), transparent 70%);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-card:hover::after {
  opacity: 1;
  animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.project-card:hover {
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(71, 85, 105, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.project-card.reverse {
  direction: rtl;
}

.project-card.reverse > * {
  direction: ltr;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(71, 85, 105, 0.12);
  border: 1px solid rgba(71, 85, 105, 0.25);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.project-info h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.project-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
}

.project-features {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.project-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.project-features li::before {
  content: '▹';
  color: var(--accent);
  font-weight: bold;
}

.project-visual {
  position: relative;
  background: linear-gradient(135deg, rgba(71, 85, 105, 0.04), rgba(168, 85, 247, 0.03));
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.project-visual::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 85, 105, 0.06), transparent 70%);
  animation: visualFloat 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes visualFloat {
  0%, 100% { transform: translate(-30%, -30%); }
  33% { transform: translate(30%, -10%); }
  66% { transform: translate(-10%, 30%); }
}

.project-visual .project-icon {
  font-size: 6rem;
  opacity: 0.9;
  animation: iconBounce 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(71, 85, 105, 0.15));
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.05); }
}

.tech-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-badge {
  padding: 4px 12px;
  background: rgba(71, 85, 105, 0.08);
  border: 1px solid rgba(71, 85, 105, 0.15);
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #334155;
}

/* ===== TEAM ===== */
.team-header {
  text-align: center;
  margin-bottom: 60px;
}

.team-header .section-subtitle {
  margin: 0 auto;
}

.team-grid {
  display: flex;
  gap: 24px;
  min-width: max-content;
}

.team-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-track {
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.team-track::-webkit-scrollbar {
  display: none;
}

.team-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 2;
}

.team-arrow:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(71, 85, 105, 0.2);
}

.team-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.team-member {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  min-width: 300px;
  max-width: 320px;
  flex-shrink: 0;
}

.team-member:hover {
  transform: translateY(-8px);
  border-color: rgba(71, 85, 105, 0.2);
  box-shadow: 0 12px 30px rgba(71, 85, 105, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.team-member:hover .member-avatar {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(71, 85, 105, 0.25);
}

.member-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.team-member h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.team-member .role {
  font-size: 0.8rem;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.team-member .dept {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.team-member .social-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.team-member .social-link:hover {
  color: var(--accent);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: var(--bg-secondary);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-header .section-subtitle {
  margin: 0 auto;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(71, 85, 105, 0.2);
  box-shadow: 0 12px 30px rgba(71, 85, 105, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.testimonial-card .quote-mark {
  font-size: 3rem;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: absolute;
  top: 20px;
  right: 24px;
  opacity: 0.3;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author .author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(71, 85, 105, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.testimonial-author .author-info strong {
  font-size: 0.9rem;
  display: block;
}

.testimonial-author .author-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== VOLUNTEER ===== */
.volunteer .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.volunteer-reasons {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.reason-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.reason-item:hover {
  border-color: rgba(71, 85, 105, 0.2);
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(71, 85, 105, 0.1);
}

.reason-item:hover .reason-icon {
  background: rgba(71, 85, 105, 0.22);
  transform: scale(1.1);
}

.reason-item .reason-icon {
  transition: all 0.3s ease;
}

.reason-item .reason-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(71, 85, 105, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.reason-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.reason-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.volunteer-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.volunteer-cta-box h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.volunteer-cta-box p {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
}

.profiles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 24px 0 32px;
}

.profile-chip {
  padding: 8px 16px;
  background: rgba(71, 85, 105, 0.08);
  border: 1px solid rgba(71, 85, 105, 0.15);
  border-radius: 50px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: #334155;
  transition: all 0.3s ease;
  cursor: default;
}

.profile-chip:hover {
  background: rgba(71, 85, 105, 0.15);
  border-color: rgba(71, 85, 105, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(71, 85, 105, 0.15);
}

/* ===== CONTACT ===== */
.contact {
  background: var(--bg-secondary);
}

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: center;
  white-space: nowrap;
}

.contact-item .contact-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: rgba(71, 85, 105, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-item p,
.contact-item a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
}

.social-links-bar {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ===== PARTNERS CAROUSEL ===== */
.partners-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
}
.partners-track {
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.partners-track::-webkit-scrollbar {
  display: none;
}
.partners-grid {
  display: flex;
  gap: 24px;
  min-width: max-content;
}
.partners-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 2;
}
.partners-arrow:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(71, 85, 105, 0.2);
}
.partners-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.partner-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  min-width: 180px;
  max-width: 200px;
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.partner-tile:hover {
  transform: translateY(-8px);
  border-color: rgba(71, 85, 105, 0.2);
  box-shadow: 0 12px 30px rgba(71, 85, 105, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
}
.partner-tile img {
  height: 44px;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 12px;
}
.partner-tile > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}
.partner-tile-text {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: var(--text-secondary) !important;
  margin-bottom: 4px;
  line-height: 1.1;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0.14;
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 85, 105, 0.06), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ctaGlow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.cta-inner {
  position: relative;
  text-align: center;
  z-index: 1;
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-inner p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.25s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.3s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.35s; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 0.4s; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 0.45s; }
.reveal-stagger > .reveal:nth-child(9) { transition-delay: 0.5s; }
.reveal-stagger > .reveal:nth-child(10) { transition-delay: 0.55s; }

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== TILT EFFECT ===== */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* ===== GRADIENT TEXT ANIMATION ===== */
.gradient-text-animated {
  background: linear-gradient(135deg, #475569, #64748b, #334155, #475569);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}

/* ===== TECH BADGE ANIMATION ===== */
.tech-badge {
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: rgba(71, 85, 105, 0.2);
  border-color: rgba(71, 85, 105, 0.4);
  transform: translateY(-2px);
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid var(--border);
  z-index: 1001;
  padding: 80px 32px 32px;
  transition: right var(--transition);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--text-primary);
  background: rgba(71, 85, 105, 0.1);
}

.mobile-nav .btn {
  width: 100%;
  justify-content: center;
  margin-top: 20px;
}

.mobile-lang-switch {
  margin-top: 16px;
  width: 100%;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .about .container,
  .volunteer .container,
  .contact .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .project-card {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .project-card.reverse {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .contact-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-banner {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta .btn,
  .nav-cta .lang-switch {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav,
  .mobile-nav-overlay {
    display: block;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .departments-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .contact-item {
    white-space: normal;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section {
    padding: 60px 0;
  }

  .project-card {
    padding: 24px;
  }

  .project-visual .project-icon {
    font-size: 4rem;
  }

  .volunteer-cta-box {
    padding: 32px 24px;
  }

  .volunteer-cta-box h3 {
    font-size: 1.4rem;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .cta-banner {
    padding: 48px 0;
  }

  .cta-inner h2 {
    font-size: 1.5rem;
  }

  .partner-tile {
    min-width: 150px;
    max-width: 170px;
    padding: 24px 20px 18px;
  }

  .team-member {
    min-width: 260px;
    max-width: 280px;
    padding: 32px 24px;
  }

  .member-avatar {
    width: 90px;
    height: 90px;
  }

  .loader-logo {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

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

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 40px 0;
  }

  .project-card {
    padding: 20px;
  }

  .project-info h3 {
    font-size: 1.3rem;
  }

  .project-info p {
    font-size: 0.9rem;
  }

  .project-visual .project-icon {
    font-size: 3rem;
  }

  .project-visual {
    min-height: 120px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-item .stat-number {
    font-size: 1.8rem;
  }

  .team-member {
    min-width: 220px;
    max-width: 260px;
    padding: 28px 20px;
  }

  .member-avatar {
    width: 80px;
    height: 80px;
  }

  .volunteer-cta-box {
    padding: 24px 16px;
  }

  .volunteer-cta-box h3 {
    font-size: 1.25rem;
  }

  .profiles-list {
    gap: 8px;
  }

  .profile-chip {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .contact-form {
    padding: 20px 16px;
  }

  .contact-item .contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 1.2rem;
  }

  .cta-banner {
    padding: 36px 0;
  }

  .cta-inner h2 {
    font-size: 1.25rem;
  }

  .cta-inner p {
    font-size: 0.9rem;
  }

  .partner-tile {
    min-width: 130px;
    max-width: 150px;
    padding: 20px 16px 14px;
  }

  .partner-tile img {
    height: 36px;
    max-width: 100px;
  }

  .partner-tile > span {
    font-size: 0.75rem;
  }

  .partner-tile-text {
    font-size: 1.2rem !important;
  }

  .footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    gap: 20px;
  }

  .reason-item {
    flex-direction: column;
    text-align: center;
  }

  .reason-item .reason-icon {
    margin: 0 auto;
  }

  .loader-logo {
    width: 120px;
  }

  .loader-ring {
    width: 36px;
    height: 36px;
  }
}

/* Disable reveal animations on mobile to prevent click-blocking */
@media (max-width: 768px) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
