/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GLOBAL */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at top, #1e293b, #0f172a);
  color: #e2e8f0;
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* NAV */
.navbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;
  padding: 14px 20px;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  z-index: 1000;
}

.nav-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  position: relative;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 10px;
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 12px;
  bottom: 4px;
  background: #38bdf8;
  transition: 0.3s ease;
}

.nav-links a:hover::after {
  width: calc(100% - 24px);
}

/* HERO */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at top, #1e293b, #0f172a);
  position: relative;
  overflow: hidden;
  padding: 70px 20px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent);
  top: -100px;
  left: -100px;
  filter: blur(80px);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 0.9s ease forwards;
}

.hero-content p {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 25px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.2s;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.4s;
}

/* SECTIONS */
section {
  max-width: 1000px;
  margin: auto;
  padding: 70px 20px;
}

section h2 {
  margin-bottom: 25px;
  font-size: 1.8rem;
  position: relative;
}

section h2::after {
  content: "";
  width: 50px;
  height: 3px;
  background: #38bdf8;
  position: absolute;
  left: 0;
  bottom: -10px;
  border-radius: 5px;
}

.section-intro {
  color: #94a3b8;
  margin-bottom: 20px;
}

/* PROJETS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid #334155;
  border-radius: 15px;
  padding: 20px;
  transition: 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent);
  top: -60px;
  right: -60px;
  opacity: 0;
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.card:hover::before {
  opacity: 1;
}

.card p {
  color: #cbd5e1;
  margin-top: 8px;
}

.project-image {
  position: relative;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  background: #0f172a;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.3s ease;
}

.overlay-btn {
  padding: 10px 18px;
  background: #38bdf8;
  color: #0f172a;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transform: translateY(10px);
  opacity: 0;
  transition: 0.3s ease;
}

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

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .overlay-btn {
  opacity: 1;
  transform: translateY(0);
}

.status {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 10px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tags span {
  display: inline-block;
  background: #334155;
  padding: 5px 10px;
  margin-right: 5px;
  margin-top: 10px;
  border-radius: 8px;
  font-size: 0.75rem;
}

/* BOUTONS */
.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.5);
}

.btn:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: transparent;
  color: #38bdf8;
  border: 1px solid #38bdf8;
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.25);
}

.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* COMPÉTENCES */
.skills {
  margin-top: 20px;
}

.skill {
  margin-bottom: 18px;
}

.bar {
  width: 100%;
  height: 10px;
  background: #334155;
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  border-radius: 10px;
}

.progress.html {
  width: 80%;
  background: #f97316;
}

.progress.css {
  width: 70%;
  background: #38bdf8;
}

.progress.js {
  width: 30%;
  background: #facc15;
}

/* À PROPOS */
.about-card {
  background: #1e293b;
  border-left: 4px solid #38bdf8;
  border-radius: 15px;
  padding: 25px;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.about-card p {
  margin-bottom: 15px;
  color: #cbd5e1;
}

.about-card p:last-child {
  margin-bottom: 0;
}

/* CONTACT */
.contact-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.contact-card p {
  color: #cbd5e1;
  margin-bottom: 15px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.contact-link:hover {
  color: #0ea5e9;
  text-decoration: underline;
}

/* RÉSEAUX */
.socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: #1e293b;
  border-radius: 12px;
  text-decoration: none;
  color: #e2e8f0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.social::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: 0.4s ease;
  z-index: 0;
}

.social::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(120deg, transparent, #38bdf8, transparent);
  background-size: 200% 200%;
  opacity: 0;
  transition: 0.4s ease;
  pointer-events: none;
}

.social:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.social:hover::after {
  opacity: 1;
  animation: borderGlow 2s linear infinite;
}

.social i,
.social span {
  position: relative;
  z-index: 1;
}

.social i {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.social:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.github:hover {
  background: #111;
}

.linkedin:hover {
  background: #0a66c2;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px;
  background: #0b1220;
  color: #94a3b8;
  margin-top: 50px;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

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

@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 0.85rem;
    padding: 6px 8px;
  }
}

#contact .contact-link {
  color: #38bdf8;
}

#contact .contact-link i {
  color: #38bdf8;
}

#contact .contact-link:hover {
  color: #0ea5e9;
  text-decoration: underline;
}

.contact-card a.contact-link,
.contact-card a.contact-link:visited,
.contact-card a.contact-link:active {
  color: #38bdf8 !important;
}

.contact-card a.contact-link i {
  color: #38bdf8 !important;
}

.contact-card a.contact-link:hover {
  color: #0ea5e9 !important;
  text-decoration: underline;
}

.project-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

