/* Variables */
:root {
  --bg-color: #0f1724;
  --text-color: #e6eef6;
  --accent-color: #f5f5f5;
  --btn-bg: rgba(30, 41, 59, 0.8);
  --btn-hover: rgba(55, 65, 81, 0.9);
  --btn-glow-base: rgba(0, 255, 255, 0.2);
  --btn-glow-hover: rgba(0, 255, 255, 0.6);
  --radius: 20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}


body {
  margin: 0;
  color: var(--text-color);
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  position: relative;
  animation: fadeIn 1s ease-in-out;
}

#animated-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.content-container {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 1100px; /* Increased max-width for a larger frame */
  padding: 3rem; /* Increased padding for more spacing */
  border-radius: var(--radius);
  backdrop-filter: blur(12px) saturate(130%);
  background-color: rgba(15, 23, 36, 0.6);
  box-shadow: 0 0 50px rgba(0, 255, 255, 0.2); /* Slightly stronger shadow */
  animation: slideUp 0.8s ease-out;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.content-container:hover {
  box-shadow: 0 0 80px rgba(0, 255, 255, 0.5), 0 0 120px rgba(0, 255, 255, 0.3);
  transform: scale(1.02);
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-color);
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.photo-holder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6),
              0 0 50px rgba(0, 255, 255, 0.3);
  margin: 0 auto; /* ← centre horizontalement */
  overflow: hidden;
  transition: var(--transition);
  display: flex; /* ← pour centrer l'image à l'intérieur */
  align-items: center; /* vertical */
  justify-content: center; /* horizontal */
}

.photo-holder:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.8),
              0 0 80px rgba(0, 255, 255, 0.5);
}

.photo-holder img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  max-width: 100%;
  margin: 2rem auto;
  position: relative;
  flex-wrap: nowrap;
}

.btn-link {
  text-decoration: none;
}

button {
  background: var(--btn-bg);
  border: none;
  border-radius: var(--radius);
  padding: 1rem 2.5rem;
  color: var(--text-color);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 0 10px var(--btn-glow-base),
              0 6px 18px rgba(0, 0, 0, 0.45);
  transition: var(--transition);
  min-width: 160px;
  position: relative;
  overflow: hidden;
}

button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(0, 255, 255, 0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

button:hover::before {
  transform: translateX(100%);
}

button:hover {
  background: var(--btn-hover);
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 0 20px var(--btn-glow-hover),
              0 10px 25px rgba(0, 0, 0, 0.6);
  color: var(--accent-color);
}

.skills-section {
  margin-top: 2rem;
}

.skills-list {
  list-style: none;
  padding: 0;
}

.skill-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.8rem 1.2rem;
  margin: 0.5rem 0;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  font-size: 1.1rem; /* Increased font size for better readability */
}

.skill-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(0, 255, 255, 0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.skill-item:hover::before {
  transform: translateX(100%);
}

.skill-item:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translateX(6px) scale(1.05);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.6),
              0 0 30px rgba(0, 255, 255, 0.3);
  color: var(--accent-color);
}

footer.social-links {
  margin-top: 3rem;
}

.social-link {
  margin: 0 1rem;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.social-link:hover {
  color: cyan;
  text-shadow: 0 0 8px cyan;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 600px) {
  .btn-container {
    gap: 1rem;
  }
  button {
    min-width: 120px;
    padding: 0.8rem 1.5rem;
  }
  .photo-holder {
    width: 140px;
    height: 140px;
  }
}

.audit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
  max-width: 300px; /* Restrict card width */
  margin: 1rem; /* Add spacing between cards */
}

.audit-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.audit-card img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.audit-card p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: var(--accent-color);
}

.audit-card a {
  text-decoration: none;
  color: var(--accent-color);
  font-weight: 600;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.audit-card a:hover {
  color: cyan;
  text-shadow: 0 0 8px cyan;
}

.audit-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
  background: rgba(0, 255, 255, 0.1);
}

/* Marquee for certifications/projects (single-row height) */
:root {
  --marquee-speed: 28s;
  --marquee-gap: 1.25rem;
  --cert-card-max-h: 200px; /* keep to one row (image + one line of text) */
}

.certifications-section {
  margin-top: 2.5rem;
}

.certifications-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: var(--cert-card-max-h);
  mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.certifications-track {
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
  flex-wrap: nowrap;
  animation: certs-marquee var(--marquee-speed) linear infinite;
  will-change: transform;
}

.certifications-track:hover {
  animation-play-state: paused;
}

.certification-text {
      margin-top: 8px;
      max-width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: center;
      transition: all 0.3s ease;
    }
    
    .certification-text:hover {
      white-space: normal;
      overflow: visible;
      position: relative;
      z-index: 1;
      background-color: rgba(0, 0, 0, 0.8);
      padding: 5px;
      border-radius: 4px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }

.certification-item {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.18);
  transition: var(--transition);
  max-height: calc(var(--cert-card-max-h) - 8px);
  display: grid;
  place-items: center;
}

.certification-item:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
  background: rgba(0, 255, 255, 0.08);
}

.certification-image {
  display: block; /* respect inline dimensions, avoid layout jumps */
}

@keyframes certs-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-60%); } /* adjust if you add more cards */
}

@media (max-width: 600px) {
  :root { --marquee-speed: 20s; }
  .certifications-marquee { max-height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  .certifications-track { animation: none; }
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.contact-list p {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-list p:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translateX(6px);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.contact-list strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 100px;
}

.contact-list a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-list a:hover {
  color: cyan;
  text-shadow: 0 0 8px cyan;
}

.contact-list strong::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.report-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  padding: 3rem 1rem;
  box-sizing: border-box;
  max-width: 1200px;
}

.report-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.18);
  padding: 1.5rem 1.2rem;
  margin: 1rem 0;
  max-width: 380px;
  width: 100%;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  flex: 1 1 320px;
  min-width: 280px;
  align-self: stretch;
}

.report-card-header h2 {
  font-size: 1.25rem;
  color: var(--accent-color);
  margin: 0 0 0.5rem 0;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.25);
}

.report-card-body p {
  color: var(--text-color);
  font-size: 1.05rem;
  margin: 0;
}

.report-card-footer {
  margin-top: 0.5rem;
}

.report-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border-bottom: 1px dashed cyan;
  padding-bottom: 2px;
}

.report-link:hover {
  color: cyan;
  text-shadow: 0 0 8px cyan;
  border-bottom: 1px solid cyan;
}

@media (max-width: 900px) {
  .report-cards-container {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 0.5rem;
    max-width: 100%;
  }
  .report-card {
    max-width: 100%;
    min-width: 0;
    align-self: stretch;
  }
}

@media (max-width: 600px) {
  .report-card {
    padding: 1rem 0.7rem;
    max-width: 100%;
  }
  .report-card-header h2 {
    font-size: 1.05rem;
  }
}
