/* ===== CSS Variables & Reset ===== */
:root {
  --primary: #FF6B35;
  --secondary: #7B2D8E;
  --accent: #00D4AA;
  --dark: #1A1A2E;
  --light: #F0F0F0;
  --gradient-1: linear-gradient(135deg, #FF6B35, #7B2D8E);
  --gradient-2: linear-gradient(135deg, #7B2D8E, #00D4AA);
  --gradient-3: linear-gradient(135deg, #00D4AA, #FF6B35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
}

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(26, 26, 46, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.6rem;
  font-weight: 900;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  cursor: pointer;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s;
}

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

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
}

.back-btn {
  color: var(--light);
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.back-btn:hover { color: var(--accent); }

/* ===== Section Common ===== */
section { padding: 6rem 5rem; position: relative; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.section-desc {
  color: rgba(240, 240, 240, 0.6);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  display: inline-block;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--light);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

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

/* ===== Skill Tags ===== */
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.skill-tags span {
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(240, 240, 240, 0.8);
}

/* ===== Team Grid & Cards (shared) ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.team-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.team-card:hover::after { transform: scaleX(1); }

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  font-weight: 700;
}

.team-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.team-card .role {
  font-size: 0.85rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.team-card p {
  font-size: 0.88rem;
  color: rgba(240, 240, 240, 0.6);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.team-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s;
}

.team-socials a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ===== Footer ===== */
footer {
  padding: 2rem 5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(240, 240, 240, 0.4);
  font-size: 0.85rem;
}

/* ===== Animations ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

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

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
  nav { padding: 1rem 2rem; }
  .nav-links { display: none; }
  .menu-btn { display: block; }
  section { padding: 4rem 2rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  footer { padding: 2rem; }
}

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