/* =========================================
   1. RESET & VARIABLES
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #050511;
  --bg-gradient-start: #1e1135;
  --primary-accent: #8a2be2;
  --secondary-accent: #5d0ce8;
  --text-main: #ededed;
  --text-muted: #a1a1a1;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.05);
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "Fira Code", monospace;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-dark);
  background-image: radial-gradient(
    circle at 10% 20%,
    var(--bg-gradient-start) 0%,
    var(--bg-dark) 90%
  );
  background-attachment: fixed;
  padding-left: 100px;
  overflow-x: hidden;
}

/* =========================================
   2. TYPOGRAPHIE
   ========================================= */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 5.5rem;
  font-weight: 900;
  margin: 0.5rem 0;
  line-height: 1.1;
  text-transform: uppercase;
  background: linear-gradient(to bottom right, #ffffff 30%, #909090 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.5));
}

h2 {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
}

h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* =========================================
   3. NAVIGATION (Verticale)
   ========================================= */
.vertical-nav {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  z-index: 100;
}

.vertical-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.vertical-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  transition: all 0.3s ease;
  padding: 10px;
}

.vertical-nav a:hover {
  color: var(--primary-accent);
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
  transform: translateY(-3px);
}

.vertical-nav span {
  color: var(--primary-accent);
  margin-bottom: 10px;
  font-weight: bold;
}

/* =========================================
   4. RÉSEAUX SOCIAUX
   ========================================= */
.social-links {
  position: fixed;
  right: 40px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 100;
}

.social-links::after {
  content: "";
  display: block;
  width: 1px;
  height: 90px;
  background-color: var(--text-muted);
  margin: 0 auto;
  margin-top: 1rem;
}

.social-links a {
  color: var(--text-muted);
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-accent);
  transform: translateY(-3px);
}

/* =========================================
   5. STRUCTURE PRINCIPALE
   ========================================= */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 50px 100px 50px;
}

.section {
  margin-bottom: 200px;
  opacity: 1;
}

.section-title::after {
  content: "";
  display: block;
  width: 300px;
  height: 1px;
  background: linear-gradient(to right, var(--bg-gradient-start), transparent);
  background-color: #233554;
  margin-left: 20px;
  opacity: 0.5;
}

.section-title span {
  margin-right: 10px;
  color: var(--primary-accent);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-content {
  max-width: 800px;
}

.green-text {
  color: var(--primary-accent);
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  display: block;
}

.light-gray {
  font-size: 3.5rem;
  color: var(--text-muted);
  opacity: 0.8;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.gray-text {
  color: var(--text-muted);
  max-width: 540px;
  font-size: 1.1rem;
}

/* =========================================
   7. GLASSMORPHISM (Cartes Expérience & Projets)
   ========================================= */
.experience-card,
.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.experience-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(138, 43, 226, 0.3);
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.date {
  color: var(--primary-accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.description,
.project-description {
  color: var(--text-muted);
  font-size: 1rem;
}

/* =========================================
   8. TAGS (Style "Pillules Tech")
   ========================================= */
.tags,
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.tag,
.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  color: var(--text-main);
  background-color: rgba(138, 43, 226, 0.1);
  border: 1px solid rgba(138, 43, 226, 0.2);
  transition: all 0.2s ease;
}

.tag:hover,
.project-tech span:hover {
  background-color: rgba(138, 43, 226, 0.2);
  border-color: var(--primary-accent);
  color: #fff;
}

/* =========================================
   9. PROJETS (Grille)
   ========================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-title {
  color: #fff;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.project-card:hover .project-title {
  color: var(--primary-accent);
}

.project-links {
  margin: 1.5rem 0;
  display: flex;
  gap: 1.5rem;
}

.project-link {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-decoration: none;
  position: relative;
}

.project-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-accent);
  transition: width 0.3s ease;
}

.project-link:hover {
  color: var(--primary-accent);
}

.project-link:hover::after {
  width: 100%;
}

/* =========================================
   10. RESPONSIVE (Mobile)
   ========================================= */
@media (max-width: 1080px) {
  .vertical-nav {
    display: none;
  }

  body {
    padding-left: 0;
  }

  main {
    padding: 50px 25px;
  }

  h1 {
    font-size: 4rem;
  }

  .social-links {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-top: 3rem;
    gap: 2rem;
  }

  .social-links::after {
    display: none;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 3rem;
  }

  .light-gray {
    font-size: 2rem;
  }

  .section-title::after {
    width: 100%;
  }
}
