/* BASE MOBILE FIRST */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: #fff;
  background: black url("img/fond1.png") no-repeat center center/cover;
  display: flex;
  flex-direction: column;
}

a {
  color: #fff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

hr.divider {
  border: none;
  height: 1px;
  background: #555;
  margin: 1rem 0;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  z-index: 10;
}

.logo-container {
  position: absolute;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

.navbar nav {
  display: flex;
  gap: 1rem;
}

.navbar nav a {
  position: relative;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.navbar nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  transform: scale(0);
  transition: transform 0.3s ease;
  z-index: -1;
}

.navbar nav a:hover::before {
  transform: scale(1);
}

/* MAIN */
main {
  padding-top: 80px;
  flex: 1;
}

/* SECTIONS */
.about,
.education,
.work-experience,
.projects,
.developer-job-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ABOUT */
.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.profile-picture {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 5px solid white;
  object-fit: cover;
}

.about-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text p {
  line-height: 1.6;
}

/* EDUCATION */
.education {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.education-item h3 {
  transition: transform 0.3s ease, color 0.3s ease;
}
.education-item h3:hover {
  transform: scale(1.05);
  color: grey;
}

/* SKILLS */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skills-column {
  width: 100%;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-tags span {
  padding: 0.5rem 1rem;
  background: #444;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.skill-tags span:hover {
  transform: scale(1.05);
  background: #666;
}

/* PROJECTS */
.project-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* VIDEO SECTION */
.video-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  background: linear-gradient(to right, #111, #1a1a1a);
  flex-direction: column;
}

.video-section iframe {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-section iframe:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
}

/* FOOTER */
.transparent-footer {
  background: rgba(0, 0, 0, 0.8);
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-line {
  height: 1px;
  background-color: white;
  width: 100%;
  margin-bottom: 10px;
}

/* CAROUSEL */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* RESPONSIVE BREAKPOINTS */
@media (min-width: 600px) {
  .about-container {
    flex-direction: row;
    text-align: left;
  }

  .skills-container {
    flex-direction: row;
  }

  .skills-column {
    flex: 1;
  }

  .project-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar {
    height: 80px;
  }
}

@media (min-width: 900px) {
  .project-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
