@charset "utf-8";

/* --- RESET & BASIC STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #191919;
  font-family: "Montserrat", sans-serif;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 130px; /* Space for the header */
}

a {
  text-decoration: none;
  color: white;
}

/* --- HEADER (Smart Header) --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background-color: rgba(25, 25, 25, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 50px;
  z-index: 1000;
  transition:
    top 0.4s ease-in-out,
    background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  opacity: 1;
}

.main-nav {
  display: flex;
  gap: 20px;
}

.hamburger,
.mobile-menu {
  display: none;
}

/* Icône hamburger */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: #fff;
  display: block;
}

header.header-faded {
  background-color: rgba(25, 25, 25, 0.8); /* ajuste l'opacité ici */
}

.social-icons {
  display: flex;
  gap: 15px;
  font-size: 1.2rem;
  z-index: 10;
}

/* --- LOGO (Centered) --- */
.header-logo-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
}

.header-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- CTA BUTTON --- */
.cta-button {
  background-color: #f06428;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  transition: background 0.3s ease;
  cursor: pointer;
  z-index: 10;
}
.cta-button:hover {
  background-color: #d14e1d;
}
/* --- MAIN CONTENT STYLES --- */
/* --- MOCKUPS OVERRIDES: single-column full-size PNGs --- */
.mockups {
  max-width: 1350px;
  margin: 10px auto 80px;
  padding: 0 20px;
}
.mockups .grid {
  display: grid;
  grid-template-columns: 1fr; /* single column */
  gap: 0;
}
.mockups .card {
  position: relative;
  height: auto; /* allow height to follow image */
  padding-top: clamp(5px, 2vw, 30px);
  padding-bottom: clamp(5px, 2vw, 30px);
  border-radius: 8px;
  overflow: visible;
  background: transparent;
  display: block;
}
.mockups .card img {
  position: static !important; /* override absolute from main rules */
  display: block;
  width: 100%; /* full-width of container */
  height: auto !important; /* preserve aspect ratio */
  object-fit: contain;
  border-radius: 0;
}

@media screen and (max-width: 768px) {
}

.header-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- FOOTER --- */
footer {
  display: flex;
  justify-content: space-between;
  padding: 30px 50px;
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  margin-top: auto;
}

/* --- MODAL (POPUP) --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000; /* Stays on top of header */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #1e1e1e;
  padding: 40px;
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.3s ease-out;
}

#thankYouModal {
  opacity: 1;
  transition: opacity 1.5s ease;
  -webkit-transition: opacity 1.5s ease;
  -moz-transition: opacity 1.5s ease;
  -ms-transition: opacity 1.5s ease;
  -o-transition: opacity 1.5s ease;
}

#thankYouModal.fade-out {
  opacity: 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background: none; /* Removes any default blue background */
  border: none;
}

.close-btn:hover {
  color: #f06428;
}

/* --- FORM STYLES --- */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #ccc; /* Light grey text */
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 12px;
  background-color: #2a2a2a;
  border: 1px solid #333;
  border-radius: 8px;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  height: 50px; /* champ normal */
  box-sizing: border-box;
}

.form-group textarea {
  width: 100%;
  padding: 12px;
  background-color: #2a2a2a;
  border: 1px solid #333;
  border-radius: 8px;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  height: 150px; /* zone message raisonnable */
  resize: none;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Remove default blue outline when clicking */
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f06428; /* Orange border on focus */
}

/* The Submit Button */
.submit-btn {
  width: 100%;
  background-color: #f06428; /* Brand Orange */
  color: white;
  padding: 14px;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: #d14e1d; /* Darker orange on hover */
}

/* --- RESPONSIVE STYLES --- */

@media screen and (max-width: 768px) {
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }

  .main-nav {
    display: none; /* cacher liens classiques */
  }

  /* Cacher le CTA header desktop */
  .cta-button#openContactBtn {
    display: none;
  }

  /* Cacher aussi le texte "RAFAEL KNEZEVIC" dans le header */
  .logo {
    display: none;
  }

  .hamburger {
    display: flex; /* montrer burger à droite */
    margin-left: auto;
  }

  .mobile-menu {
    display: flex; /* base en mobile, animée par opacity/transform */
    position: fixed;
    top: 80px; /* ajuste selon la hauteur du header */
    left: 0;
    right: 0;
    height: calc(100vh - 80px); /* tout l'espace sous le header */
    background: #111;
    border-radius: 0;
    gap: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* centre horizontalement tout le contenu du menu */
    /* état caché par défaut */
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none; /* clics désactivés quand fermé */
    transition:
      opacity 0.4s ease,
      transform 0.4s ease;
    z-index: 999;
  }

  .mobile-menu .cta-button {
    width: 60%;
    max-width: 320px; /* limite sur grands petits écrans */
    text-align: center;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem); /* texte qui s’adapte */
    padding: 10px 18px;
    justify-content: center;
  }

  .mobile-social {
    display: flex;
    gap: 18px;
    font-size: clamp(1.4rem, 5vw, 2rem); /* icônes plus petites sur mini-tél. */
    justify-content: center;
    width: 100%;
    max-width: 320px;
  }

  .mobile-social a {
    color: #fff;
  }

  .mobile-menu.open {
    pointer-events: auto; /* clics actifs quand ouvert */
    opacity: 1;
    transform: translateY(0); /* descend légèrement */
  }

  .header-logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* centre parfait */
    width: 75px;
    height: 75px;
  }

  .header-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .social-icons {
    display: none; /* cache les icônes IG / Behance sur mobile */
  }

  .cta-button {
    font-size: 0.6rem;
    padding: 4px 10px;
    white-space: nowrap;
  }

  body {
    padding-top: 80px; /* même valeur que height du header */
  }
}

@media screen and (max-width: 375px) {
  .mobile-menu .cta-button {
    width: 100%;
    text-align: center;
    font-size: 0.7rem; /* augmente la taille du texte */
    padding: 5px 10px; /* plus de hauteur/largeur */
  }
}
