@import url('https://fonts.googleapis.com/css2?family=Jeju+Hallasan&family=Poppins:wght@300;400;600;700&display=swap');

/* ----- GLOBALS ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background-image: url("IMG/fondportfolio1.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: 'Poppins', Arial, sans-serif;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 80px; /* Offset for fixed navbar */
}

/* Typography */
h1, h2, h3, .brand-font {
  font-family: 'Jeju Hallasan', cursive;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 25px;
  background: linear-gradient(90deg, #00ffff, #007bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2rem;
  color: #00ffff;
  margin-bottom: 15px;
}

/* ----- NAVBAR ----- */
nav {
  background: rgba(20, 20, 40, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

nav ul li a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

nav ul li a:hover, nav ul li a.active {
  background: rgba(0, 170, 255, 0.2);
  color: #00ffff;
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
}

/* ----- MAIN CONTENT ----- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px;
  background: rgba(10, 15, 30, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  max-width: 950px;
  margin: 40px auto;
  text-align: left;
}

main p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #d1d5db;
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #007bff, #00aaff);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
  background: linear-gradient(135deg, #0056b3, #007bff);
}

.btn-static {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFD700;
  border-radius: 30px;
  font-weight: bold;
  font-family: 'Jeju Hallasan', cursive;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ----- STAGES & PROJECTS (CARDS) ----- */
.stage-container {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin: 30px 0;
  width: 100%;
}

.logo-bubble {
  background-color: #fff;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.logo-bubble:hover {
  transform: scale(1.05) rotate(3deg);
}

.logo-bubble img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.stage-info {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  border-left: 5px solid #00ffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.stage-info:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.08);
  border-left-color: #007bff;
}

.stage-info strong {
  color: #00ffff;
  font-weight: 600;
}

.stage-info a {
  color: #00ffff;
  text-decoration: none;
  transition: text-shadow 0.3s ease;
}

.stage-info a:hover {
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.skills-zone {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  color: #a0d8ef;
}

.stage-info ul {
  margin: 15px 0 15px 25px;
}

.stage-info li {
  margin-bottom: 8px;
  color: #d1d5db;
}

/* ----- CONTACT CARD ----- */
.contact-card {
  background: rgba(20, 30, 60, 0.8);
  backdrop-filter: blur(10px);
  margin: 50px auto;
  padding: 40px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  text-align: left;
}

.contact-info {
  flex: 1;
}

.contact-info h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  font-family: 'Jeju Hallasan', cursive;
  color: #00ffff;
}

.contact-info p {
  margin: 15px 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.contact-info i {
  font-size: 1.5rem;
  width: 35px;
  color: #00ffff;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0,255,255,0.5);
}

.contact-img {
  flex: 1;
  text-align: right;
}

.contact-img img {
  max-width: 90%;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.contact-img img:hover {
  transform: scale(1.03);
}

/* ----- CV PREVIEW IN INDEX ----- */
.cv-preview {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 15px;
  border: 3px solid rgba(0, 255, 255, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.2);
  margin: 30px 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 5px;
}

.cv-preview:hover {
  transform: scale(1.08) translateY(-5px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 170, 255, 0.5);
  border-color: #00aaff;
}

/* ----- CONTACT FORM ----- */
.form-section {
  max-width: 750px;
  margin: 0 auto 40px;
  text-align: left;
}

.form-section h1 {
  text-align: center;
}

.form-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  margin-bottom: 30px !important;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
  flex: 1;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-group label i {
  color: #00ffff;
  margin-right: 8px;
  font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #00aaff;
  background: rgba(0, 170, 255, 0.06);
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.15), inset 0 0 10px rgba(0, 170, 255, 0.05);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  max-height: 400px;
}

.char-count {
  text-align: right;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
  transition: color 0.3s ease;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  margin-top: 10px;
  position: relative;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.btn-text,
.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Alerts */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 14px;
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: alertSlide 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.alert i {
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.alert ul {
  margin: 5px 0 0 18px;
  padding: 0;
}

.alert ul li {
  margin-bottom: 4px;
  color: inherit;
}

.alert-success {
  background: rgba(0, 200, 120, 0.12);
  border: 1px solid rgba(0, 200, 120, 0.3);
  color: #6fe8a7;
}

.alert-success i {
  color: #2ecc71;
}

.alert-error {
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff9a9a;
}

.alert-error i {
  color: #ff6b6b;
}

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

/* ----- FOOTER ----- */
footer {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  padding: 15px 0;
  text-align: center;
  width: 100%;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.05);
}

footer p {
  color: #a0a0a0;
  font-size: 0.9rem;
}

/* ----- Message temporaire ----- */
#message-temp {
  position: fixed;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  color: #111;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 30px;
  box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
  font-size: 1.2rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#message-temp.show {
  opacity: 1;
  transform: translateX(-50%) translateY(10px);
}

.hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .stage-container, .contact-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .stage-info, .contact-info {
    border-left: none;
    border-top: 5px solid #00ffff;
  }
  
  nav ul {
    gap: 15px;
    flex-direction: column;
  }
  
  .contact-img {
    text-align: center;
    margin-top: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-section {
    margin: 0 15px 40px;
  }
}
