/* ================================================
   CSS Custom Properties & Reset
   ================================================ */
:root {
  /* Colors from jobsaround.fr */
  --primary: #1976d2;
  --primary-dark: #1565c0;
  --primary-light: #42a5f5;
  --heading: #124d7d;
  --text: rgba(0, 0, 0, 0.87);
  --text-muted: rgba(0, 0, 0, 0.6);
  --bg-white: #ffffff;
  --bg-secondary: #f4f7fa;
  --bg-card: #ffffff;

  /* Status colors */
  --status-production: #4caf50;
  --status-development: #ff9800;
  --status-released: #9c27b0;

  /* Blob colors */
  --blob-1: rgba(144, 238, 144, 0.3);
  --blob-2: rgba(186, 154, 245, 0.3);
  --blob-3: rgba(135, 206, 250, 0.3);

  /* Spacing */
  --section-padding: 6rem;
  --container-max: 1200px;

  /* Transitions */
  --transition: 0.3s ease;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  color: var(--text);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================================================
   Background Blobs
   ================================================ */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--blob-1);
  top: -100px;
  right: -100px;
  animation: float 20s infinite alternate;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--blob-2);
  bottom: 20%;
  left: -200px;
  animation: float 25s infinite alternate-reverse;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: var(--blob-3);
  top: 50%;
  right: -100px;
  animation: float 22s infinite alternate;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, 30px) scale(1.1);
  }
}

/* ================================================
   Container
   ================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================================================
   Header
   ================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  font-size: 1.5rem;
  display: flex;
}

.nav {
  display: flex;
  /* gap: 2rem; */
  align-items: center;
  flex-flow: row-reverse;
  width: 100%;
}

.nav-items {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}

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

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.lang-btn {
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--transition);
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-btn.active {
  background: var(--primary);
  color: white;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--heading);
  transition: all var(--transition);
}

/* ================================================
   Fixed Project Navigation
   ================================================ */
.project-nav {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.project-nav.visible {
  opacity: 1;
  visibility: visible;
}

.project-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem;
  text-decoration: none;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
  min-width: 60px;
}

.project-nav-item:hover {
  background: var(--bg-secondary);
  color: var(--heading);
}

.project-nav-item.active {
  background: var(--primary);
  color: white;
}

.project-nav-item.active .project-nav-dot {
  border: 2px solid white;
}

.project-nav-icon {
  font-size: 1.5rem;
}

.project-nav-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.project-nav-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(72px + 2rem) 1.5rem 4rem;
  background: linear-gradient(180deg,
      var(--bg-secondary) 0%,
      var(--bg-white) 100%);
}

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

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Project Quick Nav Cards */
.hero-projects {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--heading);
  transition: all var(--transition);
  position: relative;
  width: 100px;
}

.hero-project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--primary);
  color: white;
}

.hero-project-icon {
  font-size: 1.75rem;
}

.hero-project-name {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.hero-project-status {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot-production {
  background: var(--status-production);
}

.status-dot-development {
  background: var(--status-development);
}

.status-dot-released {
  background: var(--status-released);
}

/* ================================================
   Buttons
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--heading);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-disabled {
  background: var(--bg-secondary);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ================================================
   Section Styles
   ================================================ */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--heading);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3rem;
}

/* ================================================
   Projects Section
   ================================================ */
.projects {
  padding: var(--section-padding) 0;
  background: var(--bg-white);
}

.projects .section-title {
  margin-bottom: 4rem;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.project-card:last-child {
  border-bottom: none;
}

.project-card:nth-child(even) {
  direction: rtl;
}

.project-card:nth-child(even)>* {
  direction: ltr;
}

.project-screenshot {
  position: relative;
}

.project-screenshot img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}

.project-card:hover .project-screenshot img {
  transform: scale(1.02);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.project-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--heading);
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-production {
  background: rgba(76, 175, 80, 0.15);
  color: var(--status-production);
}

.status-development {
  background: rgba(255, 152, 0, 0.15);
  color: var(--status-development);
}

.status-released {
  background: rgba(156, 39, 176, 0.15);
  color: var(--status-released);
}

.project-tagline {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.project-description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.project-metrics {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metric-value.coming-soon {
  font-size: 1rem;
  color: var(--status-development);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.project-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ================================================
   Values Section
   ================================================ */
.values {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.value-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================================================
   Team Section
   ================================================ */
.team {
  padding: var(--section-padding) 0;
  background: var(--bg-white);
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.team-member {
  text-align: center;
}

.member-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

.team-member:hover .member-avatar {
  transform: scale(1.05);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      var(--primary) 0%,
      var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.avatar-placeholder.mo {
  background-image: url('/assets/mo.jpg');
}

.avatar-placeholder.sk {
  background-image: url('/assets/sk.jpg');
}

.avatar-placeholder.vc {
  background-image: url('/assets/vc.jpg');
}

.member-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading);
}

/* ================================================
   Footer
   ================================================ */
.footer {
  padding: 3rem 0 2rem;
  background: var(--heading);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-cta-text {
  font-size: 1.25rem;
  color: white;
  font-weight: 600;
}

.btn-cta {
  background: white;
  color: var(--heading);
}

.btn-cta:hover {
  background: var(--primary-light);
  color: white;
}

.footer-copyright {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ================================================
   Back to Top Button
   ================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(25, 118, 210, 0.4);
}

/* ================================================
   Mobile Responsive
   ================================================ */
@media (max-width: 1024px) {
  .project-card {
    gap: 2rem;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Tablet/Mobile Project Nav - Bottom Bar */
  .project-nav {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    justify-content: space-around;
    padding: 0.5rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .project-nav-item {
    flex: 1;
    padding: 0.5rem 0.25rem;
    min-width: auto;
  }

  .project-nav-icon {
    font-size: 1.25rem;
  }

  .project-nav-label {
    font-size: 0.6rem;
  }

  .project-nav-dot {
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
  }

  /* Add padding to footer for bottom nav */
  .footer {
    padding-bottom: 5rem;
  }

  /* Adjust back-to-top for tablet */
  .back-to-top {
    bottom: 5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    align-items: flex-start;
  }

  .nav-items {
    flex-direction: column;
    gap: 1rem;
  }

  .nav.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .lang-switcher {
    flex-wrap: wrap;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
  }

  /* Reorder for mobile: Image on top */
  .project-card .project-screenshot {
    order: 1;
  }

  .project-card .project-info {
    order: 2;
  }

  .project-card:nth-child(even) {
    direction: ltr;
  }

  .project-screenshot img {
    max-width: 280px;
    margin: 0 auto;
  }

  .project-header {
    justify-content: center;
  }

  .project-metrics {
    justify-content: center;
  }

  .project-actions {
    justify-content: center;
  }

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

  /* Smaller labels on mobile */
  .project-nav-label {
    font-size: 0.55rem;
  }

  .team-grid {
    gap: 2rem;
  }
}

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

  .project-name {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .project-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ================================================
   Scroll Animations
   ================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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