/* --- GLOBAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Special Elite", system-ui;
  line-height: 1.5;
  color: #fff;
  background: #0a0a0a;
}

/* --- NAVBAR --- */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
}
nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 15px;
  list-style: none;
  flex-wrap: wrap;
}
nav ul li a {
  color: white;
  text-decoration: none;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links li a:hover {
  color: #00aaff;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    top: 0;
    background: #031b31;
    right: -100%;
    height: 100vh;
    width: 250px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease-in-out;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: block;
  }
}

/* Close (X) button */
.close-btn {
  display: none;
  font-size: 32px;
  color: white;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 45px;
}

@media (max-width: 700px) {
  .close-btn {
    display: block;
  }
}

.logo {
  font-family: "Monsieur La Doulaise", cursive;
  font-weight: 400;
}

/* --- HEADER --- */
header {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  text-align: center;
}
header .headline {
  font-size: 45px;
  margin-bottom: 20px;
}
header .subtext {
  max-width: 700px;
  text-align: center;
  margin-bottom: 20px;
}
header .CTA {
  border: 0;
  border-radius: 15px;
  background-color: #001429;
}
header .CTA:hover {
  background-color: #003366;
  transition: 0.4s ease;
}
header .CTA .CTA-button {
  display: inline-block;
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  font-family: "Special Elite", system-ui;
}
.video-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- SECTIONS --- */
section {
  padding: 60px 20px;
  max-width: 1250px;
  margin: auto;
}

/* ABOUT */
/* About section container */
#about-me {
  box-shadow: 5px 5px 30px 15px #0A0A0A;
  margin-top: 45px;
  border-radius: 10px;
  padding: 60px 40px;
  background: #fff;
  color: #000;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Flexbox layout */
.about-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap; /* stacks on smaller screens */
}

/* Paragraph styling */
.about-box p {
  flex: 1.5; /* gives text more space than the image */
  line-height: 1.8;
  font-size: 18px;
  text-align: justify;
}

/* Image styling */
.about-box img {
  flex: 1; /* takes less space than text */
  max-width: 300px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  object-fit: cover;
}

/* Hidden by default */
.hidden {
  opacity: 0;
  transform: translateY(50px); /* slight slide from bottom */
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When visible */
.show {
  opacity: 1;
  transform: translateY(0);
}


/* Responsive tweaks */
@media (max-width: 768px) {
  .about-box {
    flex-direction: column-reverse; /* puts image below text */
    text-align: center;
  }

  .about-box p {
    text-align: left;
  }

  .about-box img {
    max-width: 200px; /* smaller for mobile */
  }
}


/* SKILLS */
#skills {

  margin-top: 45px;
  border-radius: 10px;
}
#skills h3 {
  text-align: center;
  font-size: 45px;
  margin-bottom: 30px;
}
.skills-box {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  list-style: none;
}
.skills img {
  width: 150px;
  height: auto;
}

#projects {
  margin-top: 45px;
  border-radius: 10px;
  min-height: 400px;
  padding: 20px;
}

#projects .projects-heading {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.project-container {
  display: flex;
  flex-wrap: wrap;   /* allows wrapping */
  gap: 2rem;
  justify-content: center;
  background-color: #001429;
  padding: 20px;
  border-radius: 10px;
}

.project-container > div {
  flex: 1 1 250px;   /* responsive flex sizing */
  max-width: 300px;
  text-align: center;
}

.project-container h4 {
  margin-bottom: 10px;
  color: white; /* better contrast */
}

.project-container img {
  width: 100%;   /* make images scale */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
   transition: transform 0.3s ease-out; /* move transition here */
}

.project-container img:hover {
  transform: scale(1.05); /* slight zoom effect */
}


/* PRICING */
#pricing {
 
  margin-top: 45px;
  border-radius: 10px;
}
#pricing h3 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 45px;
}
.pricing-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.pricing-card {
  flex: 1 1 250px;
  max-width: 300px;
  list-style: none;
  border-radius: 15px;
  border: white 1px solid;
  text-align: center;
  padding: 20px;
}
.pricing-heading {
  font-size: 25px;
  background-color: #001429;
  padding: 10px;
  margin-bottom: 20px;
}

/* CONTACT */
#contact {
  
  margin: 45px auto;
  border-radius: 10px;
  padding: 40px 20px;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.05);
}
#contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-box {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}
input, textarea {
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}
textarea {
  resize: vertical;
}
.submit {
  background: #031b31;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 150px;
  margin: 0 auto;
}
.submit:hover {
  background: darkslategray;
}

/* FOOTER */
footer {
  min-height: 100px;
  background-color: #001429;
  margin-top: 40px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  padding: 10px;
}
.footer-links li a {
  text-decoration: none;
  color: white;
}
.footer-container p {
  text-align: center;
  margin-top: 20px;
}

/* --- RESPONSIVE --- */

/* Tablets */
@media (max-width: 900px) {
  header .headline {
    font-size: 32px;
  }
  header .subtext {
    font-size: 1rem;
  }
  .about-box {
    gap: 2rem;
    flex-direction: column;
  }
  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* Mobiles */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  header {
    padding: 0 10px;
  }
  header .headline {
    font-size: 26px;
  }
  .skills img {
    width: 100px;
  }
  .about-box p {
    font-size: 16px;
    padding: 0 10px;
  }
  .submit {
    width: 100%;
  }
}


