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

/* ===== Design Tokens ===== */
:root {
  --bg-primary: #121212;
  --bg-secondary: #1a1a1a;
  --bg-hover: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #d0d0d0;
  --text-muted: #888888;
  --border-color: rgba(255, 255, 255, 0.2);
  --font-family: 'Inter', sans-serif;
  --max-content-width: 780px;
  --transition-std: 0.3s ease-in-out;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

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

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

/* ===== Navigation ===== */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.nav-brand a {
  color: inherit;
}

.nav-brand img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  transition: color var(--transition-std);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width var(--transition-std);
}

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

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ===== Page Header ===== */
.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  height: auto;
  justify-content: flex-start;
  padding: 120px 20px 40px;
}

.title-box {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  opacity: 0;
  transform: translateY(-20px);
  animation: slideInTitle 1s ease-out forwards 0.3s;
}

.main-title {
  color: var(--text-primary);
  position: relative;
}

.team-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 10px;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateX(-15px);
  animation: slideInTeam 0.8s ease-out forwards 0.7s;
  border-left: 2px solid var(--text-primary);
  padding-left: 8px;
}

.separator-line {
  width: 0;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  left: -8px;
  bottom: 50%;
  transform: translateY(50%);
  animation: expandLine 0.6s ease-out forwards 0.9s;
}

.subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  max-width: 75%;
  text-align: center;
  margin-top: 30px;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.8s ease-out forwards 1.2s;
}

/* ===== Content Container ===== */
.container {
  width: 80%;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: var(--max-content-width);
}

/* ===== Section (text + image cards) ===== */
.section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.section:nth-child(even) {
  flex-direction: row-reverse;
}

.text-box {
  width: 50%;
}

.text-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.text-box p {
  font-size: 1rem;
  opacity: 0.8;
  line-height: 1.6;
}

.image-box {
  width: 301px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.5s ease-in-out, transform var(--transition-std);
  aspect-ratio: 7 / 5;
  overflow: hidden;
  border-radius: 4px;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-box:hover {
  opacity: 1;
}

/* ===== CTA Container ===== */
.cta-container {
  text-align: center;
  margin: 60px auto;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  max-width: 80%;
  padding: 0 15px;
}

.cta-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-container h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta-container p {
  font-size: 1rem;
  margin-bottom: 40px;
  color: var(--text-secondary);
}

.btn-primary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  background: var(--text-primary);
  color: var(--bg-primary);
  cursor: pointer;
  text-transform: uppercase;
  transition: background var(--transition-std), transform var(--transition-std);
  letter-spacing: 1px;
}

.btn-primary:hover {
  background: #cccccc;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  margin-top: 15px;
  border: none;
  background: none;
  color: var(--text-muted);
  text-decoration: underline;
  font-size: 1rem;
  cursor: pointer;
  transition: color var(--transition-std);
}

.btn-secondary:hover {
  color: var(--text-secondary);
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--text-secondary);
  transition: color var(--transition-std);
}

.site-footer a:hover {
  color: var(--text-primary);
}

/* ===== About / Contact Page ===== */
.about-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 800px;
  margin: 50px auto;
  padding: 0 10%;
  gap: 60px;
  position: relative;
}

.about-section {
  opacity: 0;
  padding: 40px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background-color: var(--text-primary);
  z-index: 2;
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 1.5s ease;
}

.about-section.visible::before {
  transform: scaleY(1);
}

.about-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #f0f0f0;
  transform: translateX(-30px);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.about-section.visible h2 {
  transform: translateX(0);
  opacity: 1;
}

.about-section p {
  font-size: 1.1rem;
  opacity: 0;
  line-height: 1.9;
  color: #dcdcdc;
  transform: translateX(-30px);
  transition: transform 0.8s ease 0.2s, opacity 0.8s ease 0.2s;
}

.about-section.visible p {
  transform: translateX(0);
  opacity: 0.85;
}

.contact-container {
  text-align: center;
  margin: 60px auto;
  font-size: 1.3rem;
  color: var(--text-primary);
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards 1.5s;
  padding: 20px;
}

.contact-container a {
  color: var(--text-primary);
  font-weight: 700;
  transition: color var(--transition-std);
}

.contact-container a:hover {
  color: #cccccc;
}

/* ===== Keyframe Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInTitle {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInTeam {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes expandLine {
  from {
    width: 0;
  }

  to {
    width: 12px;
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 10px);
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-bar {
    padding: 12px 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(12px);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

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

  .nav-toggle {
    display: block;
  }

  .header-container {
    padding: 90px 15px 20px;
  }

  .title-box {
    font-size: 1.3rem;
  }

  .team-name {
    font-size: 0.89rem;
  }

  .subtitle {
    font-size: 0.875rem;
    max-width: 90%;
  }

  .section {
    flex-direction: column !important;
    align-items: center;
  }

  .text-box,
  .image-box {
    width: 100%;
  }

  .text-box h2 {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .text-box p {
    font-size: 0.875rem;
  }

  .image-box {
    width: 100%;
    max-width: 400px;
  }

  .cta-container h2 {
    font-size: 1.2rem;
  }

  .cta-container p {
    font-size: 0.875rem;
  }

  /* About page */
  .about-container {
    padding: 0 5%;
    gap: 30px;
    margin-top: 30px;
  }

  .about-section {
    padding: 20px;
  }

  .about-section h2 {
    font-size: 0.9rem;
  }

  .about-section p {
    font-size: 0.8rem;
  }

  .contact-container {
    font-size: 0.9rem;
  }
}