/* RESET + STRUCTURE */
* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: #fff;
  background: #0d0d0d;
}


section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: all 0.5s ease-in-out;
}


/* NAVIGATION */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgb(17 18 39 / 45%);
  backdrop-filter: blur(2px);
  border-bottom: 1px solid rgb(202 171 221 / 30%);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-container {
  max-width: 1200px;
  margin: auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 0.5rem;
}

.navbar-title {
  font-size: 1.25rem;
  font-weight: 600;
  background: linear-gradient(to right, #ecddf1, #ddd2e1);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}


.navbar-links {
  display: none;
}

.nav-link {
  margin-left: 1rem;
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover {
  color: #22d3ee;
}

@media (min-width: 768px) {
  .navbar-links {
    display: flex;
    align-items: center;
  }

  .navbar-burger {
    display: none;
  }
}

.navbar-burger button {
  background: none;
  border: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

#mobile-menu-button span {
  position: absolute;
  height: 2px;
  width: 100%;
  background: #06b6d4;
  left: 0;
  transition: 0.3s;
}

#line1 { top: 0; }
#line2 { top: 10px; }
#line3 { top: 20px; }

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  background-color: rgba(17, 24, 39, 0.95);
  transition: max-height 0.4s ease;
}

#mobile-menu.open {
  max-height: 300px;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #06b6d4;
}

/* NAVIGATION ANIMÉE */
.nav-link {
  position: relative;
  color: #ccc;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #06b6d4, #8b5cf6);
  transition: width 0.3s ease;
  border-radius: 9999px;
}

.nav-link:hover::after {
  width: 70%;
}

.nav-link.active {
  color: #fff;
  text-shadow: 0 0 6px rgba(139, 92, 246, 0.4);
}

.nav-link.active::after {
  width: 70%;
}




/* ANIMATION CODE LINES */
.code-background {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.code-line {
  position: absolute;
  font-family: monospace;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  animation: fadeInOut 8s ease-in-out forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(10px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* CONTENU CENTRAL */
.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: contentFadeIn 1s ease-out 0.5s forwards;
  padding: 0 1rem;
}

@keyframes contentFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-gradient {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(to right, #d9bfe1, #6b63db);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #aaa;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.home-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.glass-button {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
  font-weight: 500;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 0 transparent;
}

.glass-button:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
}


/* RESPONSIVE */
@media (max-width: 600px) {
  .title-gradient {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .buttons a {
    font-size: 0.9rem;
    padding: 0.6em 1.2em;
  }
}


/* ABOUT */

/* SECTION ABOUT */

.section-about {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 1.5rem 5rem;
  position: relative;
  background-color: #0d0d0d;
  overflow: hidden;
  z-index: 1;
}



.section-about.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at center, rgba(132, 0, 255, 0.12) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23666666' fill-opacity='0.03'/%3E%3C/svg%3E");
  background-size: cover, 20px 20px;
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
}




.about-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #b8a6ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.section-text {
  font-size: 1.125rem;
  color: #ddd;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-text strong {
  color: #fbe7ff;
}

/* GRID DES CARTES */

.card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* STYLE DE BASE DES CARTES */

.card {
  background: radial-gradient(circle at top left, rgba(255,255,255,0.03), transparent 60%);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: left;
  backdrop-filter: blur(2px);
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.1);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.5;
}

/* TEINTES PERSONNALISÉES */

.card-indigo {
  border-color: #6366f1;
}

.card-purple {
  border-color: #a855f7;
}

.card-cyan {
  border-color: #06b6d4;
}

.card-indigo .card-title,
.card-indigo .card-icon {
  color: #a5b4fc;
}

.card-purple .card-title,
.card-purple .card-icon {
  color: #e9d5ff;
}

.card-cyan .card-title,
.card-cyan .card-icon {
  color: #99f6e4;
}


/* PORTFOLIO */ 

.section-portfolio {
  min-height: 100vh;
  padding: 6rem 1.5rem 5rem;
  position: relative;
  background-color: #0d0d0d;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.section-portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(132, 0, 255, 0.12) 0%, transparent 70%),
              url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23666666' fill-opacity='0.03'/%3E%3C/svg%3E");
  background-size: cover, 20px 20px;
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
}

.portfolio-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-card {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

.portfolio-card:hover {
  transform: scale(1.015);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(109, 40, 217, 0.8), rgba(14, 165, 233, 0.8));
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info {
  color: white;
  transform: translateY(20px);
  transition: transform 0.4s ease;
  z-index: 3;
}

.portfolio-card:hover .portfolio-info {
  transform: translateY(0);
}

.portfolio-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portfolio-info p {
  font-size: 0.95rem;
  color: #e5e5e5;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .portfolio-card {
    aspect-ratio: 16 / 9;
  }

  .portfolio-info h3 {
    font-size: 1rem;
  }

  .portfolio-info p {
    font-size: 0.85rem;
  }
}

/* SECTION CONTACT */

.glass-box {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ccc;
}

.form-input {
  width: 100%;
  background-color: rgba(20, 20, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #f0f0f0;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-input::placeholder {
  color: #888;
}

.form-input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
  background-color: rgba(30, 30, 50, 0.7);
}

.submit-button {
  background: linear-gradient(to right, #8b5cf6, #ec4899);
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  transition: background 0.3s ease;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.submit-button:hover {
  background: linear-gradient(to right, #7c3aed, #db2777);
}




