/*
 * Le Mboa CSS - Extreme Cameroon Theme (LEVEL 2 CHAOS)
 * Art Direction: Agression Visuelle, Kwat Vibes, Responsive mais Horrible
 */

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

/* -------------------------------------------------------------------------- */
/* Variables (Les Couleurs du Continent 🇨🇲) */
/* -------------------------------------------------------------------------- */
:root {
  --color-green: #007A5E;
  --color-red: #CE1126;
  --color-yellow: #FCD116;
  --color-bg-base: #111;
  --color-bg-surface: #222;
  --color-bg-card: rgba(0, 50, 20, 0.8);
  --color-text-main: #FFF;
  --color-text-yellow: #FCD116;

  --shadow-crazy: 10px 10px 0px var(--color-red), 20px 20px 0px var(--color-yellow);
  --shadow-glow: 0 0 30px var(--color-yellow);
  --font-heading: 'Impact', sans-serif;
  --font-body: 'Comic Neue', cursive;
  --transition: all 0.2s bounce;
}

[data-theme="light"] {
  --color-bg-base: #FFF9E6;
  --color-bg-surface: #FFE799;
  --color-bg-card: rgba(255, 230, 150, 0.9);
  --color-text-main: #000;
  --color-text-yellow: #CE1126;
  --shadow-crazy: 10px 10px 0px var(--color-green), 20px 20px 0px var(--color-yellow);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" style="font-size: 24px"><text y="20">🍌</text></svg>'), auto !important;
}

body {
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.5;
  font-size: 1.2rem;
}

#canvas-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(0, 122, 94, 0.1) 33.33%,
      rgba(206, 17, 38, 0.1) 33.33% 66.66%,
      rgba(252, 209, 22, 0.1) 66.66%);
  z-index: -2;
  pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/* Typography & Chaotic Animations */
/* -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-main);
  text-shadow: 3px 3px 0 var(--color-red);
}

.cameroon-text {
  background: linear-gradient(90deg, var(--color-green) 0%, var(--color-red) 50%, var(--color-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: wiggle 2s infinite ease-in-out;
}

.blink-hard {
  animation: blinker 0.4s linear infinite;
  color: var(--color-yellow);
  text-shadow: 2px 2px 0 var(--color-red);
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-3deg) scale(1.1);
  }

  50% {
    transform: rotate(0deg);
  }

  75% {
    transform: rotate(3deg) scale(1.1);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* Layout Grid */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* -------------------------------------------------------------------------- */
/* Top Navigation */
/* -------------------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: var(--color-red);
  border-bottom: 5px solid var(--color-yellow);
  z-index: 1000;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: #FFF;
  text-decoration: none;
  text-shadow: 0 0 10px var(--color-yellow);
  animation: throb 1s infinite alternate;
}

@keyframes throb {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
    text-shadow: 0 0 20px var(--color-yellow);
  }
}

.nav-links {
  display: flex;
  gap: 20px;
  transition: 0.3s;
}

.nav-links a {
  text-decoration: none;
  color: #FFF;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 10px 15px;
  border: 3px solid transparent;
  transition: all 0.1s;
  background: var(--color-green);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--color-yellow);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--color-yellow);
  color: var(--color-red);
  border-color: var(--color-red);
  transform: translate(3px, 3px);
  box-shadow: 0px 0px 0 var(--color-yellow);
}

.theme-toggle {
  background: var(--color-yellow);
  border: 4px solid var(--color-green);
  color: var(--color-red);
  cursor: pointer;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.8rem;
  font-family: var(--font-heading);
  box-shadow: 5px 5px 0 var(--color-green);
  flex-shrink: 0;
}

.theme-toggle:hover {
  animation: spin 0.5s linear infinite;
}

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

/* Mobile Button - Open the Marmite */
.mobile-menu-btn {
  display: none;
  font-size: 2.5rem;
  background: var(--color-yellow);
  border: 4px solid var(--color-green);
  color: var(--color-red);
  border-radius: 10px;
  padding: 5px 15px;
  box-shadow: 3px 3px 0 var(--color-green);
}

/* -------------------------------------------------------------------------- */
/* Sections & Cards */
/* -------------------------------------------------------------------------- */
.section {
  padding: 150px 0 100px;
  text-align: center;
}

.section-header {
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 4rem;
  text-shadow: 4px 4px 0 var(--color-green);
  display: inline-block;
  padding: 10px 30px;
  background: var(--color-yellow);
  color: var(--color-red);
  border: 5px solid var(--color-red);
  border-radius: 20px;
  transform: rotate(-2deg);
}

.section-header p {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 15px;
}

.card {
  background: var(--color-bg-card);
  border: 6px solid var(--color-yellow);
  border-radius: 30px;
  padding: 40px;
  box-shadow: var(--shadow-crazy);
  transition: transform 0.2s;
  text-align: left;
  position: relative;
  overflow: visible;
}

.card:hover {
  transform: scale(1.05) rotate(1deg);
}

/* -------------------------------------------------------------------------- */
/* Buttons & Runners */
/* -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  padding: 15px 40px;
  border-radius: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 5px solid var(--color-yellow);
  background: var(--color-red);
  color: #FFF;
  box-shadow: 6px 6px 0 var(--color-green);
  transition: all 0.1s;
  text-transform: uppercase;
  position: relative;
}

.btn:hover {
  background: var(--color-green);
  color: var(--color-yellow);
  border-color: var(--color-red);
  transform: translate(6px, 6px);
  box-shadow: 0 0 0;
}

.btn-outline {
  background: var(--color-yellow);
  color: var(--color-red);
  border-color: var(--color-red);
  box-shadow: 6px 6px 0 var(--color-red);
}

.btn-runaway {
  transition: top 0.2s, left 0.2s;
}

/* -------------------------------------------------------------------------- */
/* Details */
/* -------------------------------------------------------------------------- */
.hero-content h1 {
  font-size: 6rem;
  line-height: 1;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 2rem;
  font-weight: bold;
}

.hero-img-box {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.hero-img {
  width: 100%;
  max-width: 400px;
  border: 10px solid var(--color-green);
  border-radius: 50% !important;
  box-shadow: 0 0 30px var(--color-yellow);
}

.resume-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border: 3px dashed var(--color-yellow);
  margin-bottom: 20px;
  border-radius: 15px;
}

.resume-item h4 {
  font-size: 1.8rem;
  color: var(--color-text-yellow);
}

.resume-item .date {
  background: var(--color-red);
  color: #fff;
  padding: 5px 15px;
  border-radius: 10px;
  font-weight: bold;
}

.skill-card {
  text-align: center;
}

.skill-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: shake 0.5s infinite;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px) rotate(-5deg);
  }

  50% {
    transform: translateX(5px) rotate(5deg);
  }

  75% {
    transform: translateX(-5px) rotate(-5deg);
  }

  100% {
    transform: translateX(0);
  }
}

input,
textarea {
  width: 100%;
  padding: 15px;
  border: 4px solid var(--color-green);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1.2rem;
  margin-bottom: 20px;
  background: #FFF;
  color: #000;
  font-weight: bold;
}

footer {
  padding: 50px 0;
  background: var(--color-green);
  border-top: 10px solid var(--color-yellow);
  text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Responsive (Le Vrai Responsive du Kwat) */
/* -------------------------------------------------------------------------- */
@media (max-width: 991px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 4rem;
  }

  .section-header h2 {
    font-size: 3rem;
  }

  /* Mobile Menu Trigger */
  .mobile-menu-btn {
    display: block;
  }

  .navmenu {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background: var(--color-red);
    border-right: 10px solid var(--color-yellow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy entrance */
    z-index: 999;
  }

  .navmenu.active {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .nav-links a {
    font-size: 2rem;
    padding: 15px 40px;
    display: block;
    width: 80vw;
  }

  .theme-toggle {
    display: none;
    /* Hide toggle on mobile to save space, or keep it inside menu */
  }
}

@media (max-width: 500px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .btn {
    font-size: 1.2rem;
    padding: 10px 20px;
    width: 100%;
    margin-bottom: 10px;
  }
}