/* =============================================
   ENZO GOYTY - PORTFOLIO 2026
   Color palette: Purple #6b4da8 / Blue #4977c2 / Accent #526cbb
   ============================================= */

:root {
  --purple: #6b4da8;
  --blue: #4977c2;
  --accent: #526cbb;
  --dark: #1a1a2e;
  --darker: #12121f;
  --light: #f8f9fc;
  --gray: #e8eaf0;
  --text: #4a4a6a;
  --text-light: #8888a8;
  --gradient: linear-gradient(135deg, #6b4da8 0%, #4977c2 100%);
  --gradient-soft: linear-gradient(135deg, rgba(107,77,168,0.08) 0%, rgba(73,119,194,0.08) 100%);
}

/* ---- Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
}

body, html {
  font-family: 'Inter', sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Le défilement se fait sur la fenêtre (nécessaire pour la barre fixe et la galerie) */
html {
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  margin: 0 0 20px 0;
  font-size: 38px;
  text-transform: none;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

h4 {
  font-size: 18px;
  font-weight: 600;
}

p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover, a:focus {
  text-decoration: none;
  color: var(--purple);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---- Section Titles ---- */
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
  padding: 6px 16px;
  background: var(--gradient-soft);
  border-radius: 30px;
}

.section-tag-light {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.1);
}

.title-line {
  width: 60px;
  height: 3px;
  background: var(--gradient);
  margin: 0 auto;
  border-radius: 3px;
}

.title-line-light {
  background: rgba(255,255,255,0.4);
}

.section-title.center {
  padding: 0 0 50px 0;
}

hr {
  display: none;
}

/* ---- Navigation ---- */
#nav {
  z-index: 9999;
}

#nav.affix {
  position: fixed;
  top: 0;
  width: 100%;
}

.navbar-custom {
  margin-bottom: 0;
  background: rgba(26,26,46,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-radius: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar-brand {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -1px;
  padding: 15px;
}

.brand-dot {
  color: var(--accent);
}

.navbar .navbar-nav {
  display: inline-block;
  float: none;
  vertical-align: top;
}

.navbar .navbar-collapse {
  text-align: center;
}

.navbar-custom .navbar-nav > li > a {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 15px 18px;
  transition: color 0.3s ease;
  background: transparent;
}

.navbar-custom .navbar-nav > li > a:hover,
.navbar-custom .navbar-nav > li > a:focus {
  color: #fff;
  background: transparent;
}

.navbar-custom .nav li.active a {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
}

.navbar-toggle {
  border: 1px solid rgba(255,255,255,0.2) !important;
}

.navbar-toggle i {
  color: #fff;
}

/* ---- Header / Hero ---- */
.intro {
  display: table;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  text-align: center;
  color: #fff;
  background: url(../img/intro-bg.jpg) no-repeat center center;
  background-size: cover;
  position: relative;
}

.intro .overlay {
  display: table-cell;
  vertical-align: middle;
  background: linear-gradient(135deg, rgba(26,26,46,0.92) 0%, rgba(107,77,168,0.85) 50%, rgba(73,119,194,0.85) 100%);
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.intro-badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(107,77,168,0.3);
  border: 1px solid rgba(107,77,168,0.5);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease;
}

.intro-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  margin-right: 10px;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

.intro h1 {
  font-size: 72px;
  font-weight: 800;
  color: #fff;
  text-transform: none;
  letter-spacing: -2px;
  margin: 0 0 15px 0;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.glitch {
  position: relative;
}

.typing-wrapper {
  margin-bottom: 10px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.typing {
  font-size: 22px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  letter-spacing: 2px;
  font-family: 'Fira Code', monospace;
}

.intro-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.intro-btns {
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-hero {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(107,77,168,0.4);
}

.btn-hero:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107,77,168,0.5);
}

.btn-hero-outline {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0 8px;
  transition: all 0.3s ease;
}

.btn-hero-outline:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
}

/* Scroll indicator */
.scroll-indicator {
  margin-top: 60px;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 13px;
  margin: 0 auto;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- About Section ---- */
#about {
  padding: 120px 0;
  background: var(--light);
}

.about-row {
  margin-bottom: 50px;
}

.about-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  margin: 15px 0;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 2px 20px rgba(0,0,0,0.03);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(107,77,168,0.1);
  border-color: rgba(107,77,168,0.1);
}

.about-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.about-icon i {
  font-size: 28px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-card h4 {
  margin-bottom: 12px;
}

.about-card p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

.about-text-block {
  max-width: 800px;
  margin: 0 auto;
}

.about-text-block p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

.about-text-block strong {
  color: var(--accent);
  font-weight: 600;
}

/* ---- Experience Section ---- */
#experience {
  padding: 120px 0;
  background: #fff;
}

.timeline {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple), var(--blue), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(107,77,168,0.2);
  z-index: 1;
}

.timeline-content {
  background: var(--light);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  box-shadow: 0 10px 30px rgba(107,77,168,0.08);
  border-color: rgba(107,77,168,0.1);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.timeline-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
}

.timeline-duration {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  background: var(--gradient-soft);
  padding: 3px 12px;
  border-radius: 20px;
}

.timeline-content h3 {
  font-size: 20px;
  margin: 0 0 8px 0;
  color: var(--dark);
}

.timeline-company {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.timeline-company i {
  margin-right: 6px;
  color: var(--accent);
}

.timeline-content > p:last-of-type {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--gradient-soft);
  color: var(--accent);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---- Skills Section ---- */
#skills {
  padding: 120px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

#skills::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(107,77,168,0.15) 0%, transparent 70%);
  pointer-events: none;
}

#skills::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(73,119,194,0.1) 0%, transparent 70%);
  pointer-events: none;
}

#skills h2 {
  color: #fff;
}

.skills-secondary {
  text-align: left;
}

.skill-category {
  margin-bottom: 30px;
  padding: 25px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

.skill-category h3 {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 15px 0;
}

.skill-category h3 i {
  margin-right: 10px;
  color: var(--accent);
  opacity: 0.8;
  width: 20px;
  text-align: center;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}

.skill-badge:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.15);
}

.skill-badge.highlight {
  background: rgba(107,77,168,0.25);
  color: rgba(255,255,255,0.95);
  border-color: rgba(107,77,168,0.4);
}

/* ---- Portfolio Section ---- */
#portfolio {
  padding: 120px 0;
  background: var(--light);
}

.portfolio-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.portfolio-items > div {
  float: none;
}

.portfolio-item {
  margin: 15px 0;
  transition: all 0.4s ease;
  border-radius: 12px;
  overflow: hidden;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.portfolio-item .hover-bg {
  height: auto;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}

.portfolio-item .hover-bg img {
  transition: transform 0.5s ease;
  border-radius: 12px;
}

.portfolio-item:hover .hover-bg img {
  transform: scale(1.08);
}

.hover-bg .hover-text {
  position: absolute;
  text-align: center;
  margin: 0 auto;
  color: #fff;
  background: linear-gradient(135deg, rgba(107,77,168,0.9) 0%, rgba(73,119,194,0.9) 100%);
  padding: 30% 0 0 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: all 0.4s ease;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hover-bg .hover-text h4 {
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 5px;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.hover-bg .hover-text small {
  font-size: 13px;
  opacity: 0.8;
  transform: translateY(10px);
  transition: all 0.3s ease 0.05s;
}

.hover-icon {
  margin-top: 15px;
  transform: translateY(10px);
  transition: all 0.3s ease 0.1s;
}

.hover-icon i {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 16px;
}

.hover-bg:hover .hover-text {
  opacity: 1;
}

.hover-bg:hover .hover-text h4,
.hover-bg:hover .hover-text small,
.hover-bg:hover .hover-icon {
  transform: translateY(0);
}

/* ---- Contact Section ---- */
#contact {
  color: #fff;
  background: url(../img/contact-bg.jpg) no-repeat center top;
  background-size: cover;
}

#contact .overlay {
  padding: 120px 0 80px 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.95) 0%, rgba(107,77,168,0.9) 50%, rgba(73,119,194,0.88) 100%);
}

#contact h2 {
  color: #fff;
}

.contact-info {
  padding-top: 20px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}

.contact-info-icon i {
  font-size: 20px;
  color: rgba(255,255,255,0.8);
}

.contact-info-text h4 {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 4px 0;
}

.contact-info-text p {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.cv-link {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px dashed rgba(255,255,255,0.3);
  padding-bottom: 2px;
}

.cv-link:hover {
  color: rgba(255,255,255,0.8);
}

.cv-link i {
  margin-left: 6px;
  font-size: 14px;
}

.contact-form-wrapper {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 35px;
  border: 1px solid rgba(255,255,255,0.08);
}

.btn-send {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(107,77,168,0.3);
  cursor: pointer;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107,77,168,0.4);
  color: #fff;
}

.btn-send i {
  margin-left: 8px;
}

/* ---- Footer ---- */
#footer {
  background: var(--darker);
  color: rgba(255,255,255,0.4);
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

#footer p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ---- Boutons ---- */

.btn-primary {
  color: var(--accent);
  background-color: transparent;
  padding: 12px 24px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
}

.btn-primary:hover {
  color: #fff;
  background-color: var(--accent);
  border-color: var(--accent);
}

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

.project-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  margin: 0;
  font-size: 14px;
  line-height: 1;
}

.btn:active,
.btn.active {
  background-image: none;
  outline: 0;
  box-shadow: none;
}

a:focus,
.btn:focus,
.btn:active:focus,
.btn.active:focus {
  outline: none;
  outline-offset: none;
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- Media Queries ---- */
@media(min-width: 768px) {
  .intro {
    height: 100vh;
    min-height: 700px;
  }

  .intro h1 {
    font-size: 72px;
  }
}

@media(max-width: 991px) {
  .intro h1 {
    font-size: 48px;
    letter-spacing: -1px;
  }

  .typing {
    font-size: 18px;
  }

  h2 {
    font-size: 30px;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-dot {
    left: -28px;
    width: 14px;
    height: 14px;
  }
}

@media(max-width: 767px) {
  .intro h1 {
    font-size: 36px;
  }

  .typing {
    font-size: 15px;
  }

  .intro-sub {
    font-size: 14px;
  }

  .btn-hero, .btn-hero-outline {
    display: block;
    margin: 8px auto;
    max-width: 260px;
  }

  .scroll-indicator {
    display: none;
  }

  #about, #experience, #skills, #portfolio {
    padding: 80px 0;
  }

  .section-title.center {
    padding: 0 0 35px 0;
  }

  h2 {
    font-size: 26px;
  }

  .timeline-content {
    padding: 20px;
  }

  .contact-form-wrapper {
    margin-top: 30px;
    padding: 20px;
  }

  .navbar-brand {
    padding: 15px;
  }

  .navbar-custom .navbar-nav > li > a {
    padding: 10px 15px;
  }
}

/* ---- Pages projets ---- */
.techno img {
  max-width: 55%;
  height: auto;
  margin-bottom: 10px;
}

.techno h4 {
  color: white;
  font-size: 20px;
  margin-top: 10px;
}

.captureec img {
  max-width: 85%;
  height: auto;
  margin-bottom: 10px;
}

.captureec h4 {
  color: white;
  font-size: 20px;
  margin-top: 10px;
}

.row-technologies {
  margin-bottom: 100px;
}

/* ---- Ajouts 2026 : parcours, contact ---- */
.timeline-list {
  margin: 8px 0 0 0;
  padding-left: 18px;
}
.timeline-list li {
  margin-bottom: 6px;
  line-height: 1.6;
}
.contact-cta {
  margin-top: 20px;
}
.contact-cta h3 {
  color: #fff;
  font-size: 24px;
  margin: 0 0 12px 0;
}
.contact-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 10px;
}
.contact-cta .btn {
  margin: 15px 10px 0 0;
}
.btn-linkedin {
  margin-top: 15px;
  padding: 13px 30px;
}
.btn-linkedin i {
  margin-left: 8px;
}
.contact-info-text a,
.contact-info-text a:hover {
  color: #fff;
}
