/* ============================================
   Custom CSS — Portfolio Adelin Rohan
   Styles extraits des blocs inline pour CSP
   ============================================ */

/* --- Hero Video Background --- */
#hero {
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: none;
}

/* Normal theme: dev video + blue overlay */
.hero-video-default {
  display: block;
}
.hero-video-gojo {
  display: none;
}

/* Gojo theme: gojo video */
body.gojo-theme .hero-video-default {
  display: none;
}
body.gojo-theme .hero-video-gojo {
  display: block;
}

.hero:before {
  background: rgba(0, 30, 80, 0.55);
}

body.gojo-theme .hero:before {
  background: rgba(0, 20, 60, 0.40);
}

.hero-overlay {
  display: none;
}

#hero .container {
  position: relative;
  z-index: 2;
}

#hero h2,
#hero p {
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

#hero .social-links a {
  color: rgba(255, 255, 255, 0.8);
}

#hero .social-links a:hover {
  color: var(--accent-color);
}

/* --- Hero layout : identité bas-gauche, statut bas-droite, scroll bas-centre --- */
#hero.hero {
  padding: 0;
  justify-content: flex-start;
  align-items: flex-end;
}

#hero .hero-identity,
#hero .hero-status {
  position: absolute;
  bottom: 72px;
  z-index: 3;
  max-width: 44%;
}

#hero .hero-identity {
  left: 60px;
}

#hero .hero-status {
  right: 60px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

#hero .hero-identity h2 {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
}

#hero .hero-identity p {
  margin: 10px 0 0;
  font-size: 22px;
}

#hero .hero-identity .social-links {
  margin-top: 20px;
}

#hero .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-shadow: none;
}

#hero .status-badge .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: hero-status-pulse 2s infinite;
}

@keyframes hero-status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

#hero .hero-cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #0a1a3a;
  border: none;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
  text-shadow: none;
}

#hero .hero-cv-btn i {
  font-size: 16px;
}

#hero .hero-cv-btn:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
}

#hero .hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
}

#hero .hero-scroll:hover {
  color: #fff;
}

#hero .hero-scroll i {
  font-size: 18px;
  animation: hero-scroll-bounce 1.8s infinite;
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

@media (max-width: 991px) {
  #hero .hero-identity,
  #hero .hero-status {
    position: static;
    max-width: 100%;
  }

  #hero.hero {
    padding: 80px 24px 60px;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 32px;
  }

  #hero .hero-identity h2 {
    font-size: 38px;
  }

  #hero .hero-identity p {
    font-size: 18px;
  }

  #hero .hero-status {
    align-items: flex-start;
    text-align: left;
  }

  #hero .hero-scroll {
    display: none;
  }
}

/* --- Skills Video Background --- */
.skills-video-bg {
  position: relative;
  overflow: hidden;
}

.skills-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: none;
}

.skills-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 10, 60, 0.75);
  z-index: 1;
  display: none;
}

body.gojo-theme .skills-bg-video,
body.gojo-theme .skills-bg-overlay {
  display: block;
}

.skills-video-bg .container,
.skills-video-bg .section-title {
  position: relative;
  z-index: 2;
}

body.gojo-theme .skills-video-bg .section-title h2,
body.gojo-theme .skills-video-bg .section-title p {
  color: #fff;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
}

body.gojo-theme .skills-video-bg .skills-custom-card {
  background: rgba(20, 8, 45, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.08);
}

body.gojo-theme .skills-video-bg .skills-custom-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

body.gojo-theme .skills-video-bg .skills-custom-card i {
  color: #a78bfa;
}

body.gojo-theme .skills-video-bg .skills-custom-card h3 {
  color: #e0d4fc;
}

body.gojo-theme .skills-video-bg .skills-custom-card p {
  color: #c4b5e0;
}

/* --- Services/Interests Video Background --- */
.services-video-bg {
  position: relative;
  overflow: hidden;
}

.services-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: none;
}

.services-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(60, 10, 10, 0.75);
  z-index: 1;
  display: none;
}

body.gojo-theme .services-bg-video,
body.gojo-theme .services-bg-overlay {
  display: block;
}

.services-video-bg .container,
.services-video-bg .section-title {
  position: relative;
  z-index: 2;
}

body.gojo-theme .services-video-bg .section-title h2,
body.gojo-theme .services-video-bg .section-title p {
  color: #fff;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
}

body.gojo-theme .services-video-bg .service-item {
  background: rgba(45, 8, 8, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.08);
}

body.gojo-theme .services-video-bg .service-item:hover {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.15);
}

body.gojo-theme .services-video-bg .service-item .icon i {
  color: #f87171;
}

body.gojo-theme .services-video-bg .service-item h3 a,
body.gojo-theme .services-video-bg .service-item h3 {
  color: #fecaca;
}

body.gojo-theme .services-video-bg .service-item p {
  color: #e0b5b5;
}

/* --- Skills Cards Grid --- */
.skills-custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.skills-custom-card {
  background-color: var(--surface-color);
  box-shadow: 0px 5px 90px 0px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  text-align: center;
  transition: 0.3s;
  border-radius: 5px;
  position: relative;
}

.skills-custom-card:hover {
  box-shadow: 0px 5px 35px 0px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.skills-custom-card i {
  font-size: 48px;
  color: var(--accent-color);
  margin-bottom: 20px;
  transition: 0.3s;
}

.skills-custom-card:hover i {
  transform: scale(1.1);
}

.skills-custom-card h5 {
  font-size: 20px;
  font-weight: 700;
  margin: 15px 0 10px 0;
  color: var(--heading-color);
  font-family: var(--heading-font);
}

.skills-custom-card p {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 0;
}

.skills-custom-badge {
  display: inline-block;
  padding: 5px 15px;
  margin-top: 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.skills-badge-maitrise {
  background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--accent-color);
}

.skills-badge-intermediaire {
  background-color: color-mix(in srgb, #fd7e14, transparent 85%);
  color: #fd7e14;
}

@media (max-width: 768px) {
  .skills-custom-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --- Flame Particles --- */
#flame-container {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #00f0ff, #0078ff, transparent 70%);
  opacity: 0.6;
  filter: blur(6px);
  pointer-events: none;
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-50px) scale(0.3);
    opacity: 0;
  }
}

/* ══════════════════════════════════════════════
   Parcours Certifications — UI/UX Pro Max v2
   Style: Exaggerated Minimalism + Trust & Authority
   No gradients · WCAG AA · Reduced-motion safe
   ══════════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-color), transparent 50%); }
  70%  { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Section intro accent ── */
.pc-page .section-title h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ── Timeline ── */
.pc-timeline {
  position: relative;
  padding: 20px 0;
}

.pc-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: color-mix(in srgb, var(--accent-color), transparent 75%);
  transform: translateX(-50%);
  border-radius: 2px;
}

.pc-step {
  position: relative;
  margin-bottom: 64px;
}

.pc-step:last-child {
  margin-bottom: 0;
}

.pc-step-dot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent-color), transparent 55%);
  animation: pulse-ring 2.8s ease-out infinite;
}

.pc-step-dot:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

.pc-step-content {
  width: 44%;
  background: #fff;
  border-radius: 14px;
  padding: 30px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  cursor: default;
}

.pc-step-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
}

.pc-step:nth-child(odd) .pc-step-content {
  margin-left: 0;
}

.pc-step:nth-child(even) .pc-step-content {
  margin-left: auto;
}

.pc-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.pc-step-content h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 8px;
}

.pc-step-content .pc-step-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #fff;
  background: var(--accent-color);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.pc-step-content p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0;
}

.pc-step-content .pc-step-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 16px;
  object-fit: cover;
  max-height: 180px;
}

@media (max-width: 768px) {
  .pc-timeline::before {
    left: 22px;
  }

  .pc-step-dot {
    left: 22px;
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .pc-step-content {
    width: calc(100% - 64px);
    margin-left: 64px !important;
    border-right: none !important;
    border-left: none !important;
  }
}

@media (max-width: 375px) {
  .pc-step-content {
    padding: 22px 18px;
  }
}

/* ── Certification Cards ── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.cert-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid #eee;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.cert-card:focus-within {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.cert-card .cert-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
  color: var(--accent-color);
  transition: transform 0.2s ease-out;
}

.cert-card:hover .cert-icon {
  transform: scale(1.08);
}

.cert-card .cert-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 6px;
}

.cert-card .cert-body .cert-status {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 4px;
}

.cert-status.pending {
  color: #64748b;
  background: #f1f5f9;
}

.cert-status.obtained {
  color: #15803d;
  background: #f0fdf4;
}

.cert-status.in-progress {
  color: #b45309;
  background: #fffbeb;
}

.cert-card .cert-body p {
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 0;
}

.cert-img {
  width: 100%;
  border-radius: 8px;
  margin: 12px 0 8px;
  object-fit: contain;
  max-height: 220px;
}

.cert-provider {
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cert-provider i {
  font-size: 12px;
}

@media (max-width: 576px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Projet professionnel ── */
.projet-pro-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease-out;
}

.projet-pro-box:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

.projet-pro-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 6px;
}


.projet-pro-box .pp-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 18px;
}

.projet-pro-box p {
  color: #555;
  line-height: 1.75;
}

.projet-pro-box .pp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.projet-pro-box .pp-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
  background: #f8f9fa;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.projet-pro-box .pp-meta span:hover {
  color: var(--accent-color);
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent-color), transparent 85%);
}

.projet-pro-box .pp-meta span i {
  color: var(--accent-color);
  font-size: 14px;
}


/* ── Parcours certifications — Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  .pc-step-dot { animation: none; }
  .pc-step-content,
  .cert-card,
  .cert-card .cert-icon,
  .projet-pro-box,
  .projet-pro-box .pp-meta span {
    transition: none;
  }
  .pc-step-content:hover,
  .cert-card:hover {
    transform: none;
  }
}

.cert-card:focus-visible,
.pc-step-content:focus-visible,
.projet-pro-box:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

/* --- BTS SIO Internal Navigation --- */
.bts-internal-nav {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0;
  margin-bottom: 10px;
}

.bts-internal-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bts-internal-nav ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #6c757d;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.bts-internal-nav ul li a:hover {
  color: var(--heading-color);
  border-bottom-color: #dee2e6;
}

.bts-internal-nav ul li a.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  font-weight: 600;
}

.bts-internal-nav ul li a i {
  font-size: 16px;
}

@media (max-width: 768px) {
  .bts-internal-nav ul li a {
    padding: 12px 16px;
    font-size: 0.82rem;
  }
}

/* ===== INTRO ANIMATION ===== */
.intro-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: #030308;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.8s cubic-bezier(0.76,0,0.24,1);
}
.intro-overlay.exit { transform: translateY(-100%); }
.intro-overlay.hidden { display: none; }

.intro-rect {
  width: clamp(280px,40vw,500px); height: clamp(120px,16vw,200px);
  background: linear-gradient(135deg,#1E3A5F,#2563EB 40%,#3B82F6 70%,#1a5fb4);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), opacity 0.5s ease;
  position: absolute;
}
.intro-rect.show { transform: scaleX(1); }
.intro-rect.shrink { transform: scaleX(0) scaleY(0.3); opacity: 0; }
.intro-rect span {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem,5vw,4rem);
  font-weight: 800; color: #fff; letter-spacing: -0.03em;
  opacity: 0; transition: opacity 0.3s ease 0.3s;
}
.intro-rect.show span { opacity: 1; }
.intro-rect.shrink span { opacity: 0; transition-delay: 0s; }

.intro-text {
  position: absolute; text-align: center;
  opacity: 0; transition: opacity 0.5s ease;
}
.intro-text.show { opacity: 1; }

.intro-text .line { overflow: hidden; }
.intro-text .line span {
  display: block;
  font-weight: 800; letter-spacing: -0.04em;
  font-size: clamp(2rem,8vw,7rem); line-height: 0.9;
  transform: translateY(110%);
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.intro-text.show .line span { transform: translateY(0); }
.intro-text.show .line:nth-child(3) span { transition-delay: 0.12s; }
.intro-text .line:nth-child(2) span {
  background: linear-gradient(135deg,#fff,#93C5FD 50%,#3B82F6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.intro-text .line:nth-child(3) span {
  background: linear-gradient(135deg,#3B82F6,#60A5FA 50%,#fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-accent {
  width: 0; height: 2px;
  background: linear-gradient(90deg,#3B82F6,#93C5FD);
  margin: 0 auto; transition: width 0.6s cubic-bezier(0.22,1,0.36,1) 0.2s;
}
.intro-text.show .intro-accent { width: 60px; }

.intro-subtitle {
  margin-top: 1.5rem;
  color: #93C5FD; font-size: 0.875rem; letter-spacing: 0.3em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s;
}
.intro-text.show .intro-subtitle { opacity: 1; transform: translateY(0); }

.intro-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle,rgba(59,130,246,0.06),transparent 70%);
}

/* ===== AP HERO VIDEO BACKGROUND ===== */
.ap-hero-video-bg {
  position: relative;
  overflow: hidden;
}

.ap-hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.ap-hero-video-bg .ap-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 15, 40, 0.7);
  z-index: 1;
}

.ap-hero-video-bg .container {
  position: relative;
  z-index: 2;
}

.ap-hero-video-bg h1 {
  color: #fff;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.7);
}

.ap-hero-video-bg .lead {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

/* ===== COMPETENCES DROPDOWN ===== */
.competences-dropdown {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.competences-dropdown:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.competences-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  background: var(--surface-color, #fff);
  color: var(--heading-color, #45505b);
  transition: background 0.2s ease;
}
.competences-dropdown summary::-webkit-details-marker {
  display: none;
}
.competences-dropdown summary::after {
  content: '\F282';
  font-family: 'bootstrap-icons';
  font-size: 1rem;
  transition: transform 0.3s ease;
}
.competences-dropdown[open] summary::after {
  transform: rotate(180deg);
}
.competences-dropdown summary:hover {
  background: rgba(5, 99, 187, 0.04);
}
.competences-dropdown .dropdown-body {
  padding: 20px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.competences-dropdown .dropdown-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.competences-dropdown .dropdown-body li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.92rem;
  line-height: 1.5;
}
.competences-dropdown .dropdown-body li:last-child {
  border-bottom: none;
}
.competences-dropdown .dropdown-body li strong {
  color: var(--accent-color, #0563bb);
  margin-right: 8px;
  font-size: 0.85rem;
}

/* Gojo theme override */
body.gojo-theme .competences-dropdown {
  border-color: rgba(59, 130, 246, 0.15);
}
body.gojo-theme .competences-dropdown summary {
  background: var(--surface-color);
  color: #e0eaff;
}
body.gojo-theme .competences-dropdown summary:hover {
  background: rgba(59, 130, 246, 0.08);
}
body.gojo-theme .competences-dropdown .dropdown-body {
  border-top-color: rgba(59, 130, 246, 0.1);
}
body.gojo-theme .competences-dropdown .dropdown-body li {
  border-bottom-color: rgba(59, 130, 246, 0.06);
}
body.gojo-theme .competences-dropdown .dropdown-body li strong {
  color: #60A5FA;
}

/* ===== GOJO THEME TOGGLE BUTTON ===== */
.theme-toggle-wrapper {
  margin: 0.8rem 0;
}

.gojo-theme-btn {
  background: transparent;
  border: 1px solid rgba(100, 100, 100, 0.15);
  color: rgba(100, 100, 100, 0.3);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  transition: all 0.4s ease;
  opacity: 0.4;
}
.gojo-theme-btn:hover {
  opacity: 1;
  color: #3B82F6;
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

/* ===== GOJO THEME ===== */
body.gojo-theme {
  --background-color: #050a18;
  --default-color: #c8d6e5;
  --heading-color: #e0eaff;
  --accent-color: #3B82F6;
  --surface-color: #0c1529;
  --contrast-color: #ffffff;
  --nav-color: #8baac4;
  --nav-hover-color: #60A5FA;
  --nav-mobile-background-color: #0a1225;
  --nav-dropdown-background-color: #0c1529;
  --nav-dropdown-color: #8baac4;
  --nav-dropdown-hover-color: #60A5FA;
}

body.gojo-theme .light-background {
  --background-color: #0a1225;
  --surface-color: #0f1a33;
}

body.gojo-theme .dark-background {
  --background-color: #030812;
  --surface-color: #0c1529;
}

/* Header / Sidebar */
body.gojo-theme #header {
  background: rgba(5, 10, 24, 0.95);
  border-right: 1px solid rgba(59, 130, 246, 0.15);
}

body.gojo-theme .header::after {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  backdrop-filter: blur(6px);
}

/* Cards & boxes glow */
body.gojo-theme .resume-item,
body.gojo-theme .info-item,
body.gojo-theme .php-item {
  border-color: rgba(59, 130, 246, 0.15);
}

body.gojo-theme .skills-custom-card {
  background: var(--surface-color);
  border: 1px solid rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.05);
}

body.gojo-theme .skills-custom-card:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.12);
}

/* Portfolio cards */
body.gojo-theme .portfolio-content {
  border: 1px solid rgba(59, 130, 246, 0.12);
}

/* Service boxes */
body.gojo-theme .service-item {
  background: var(--surface-color);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

body.gojo-theme .service-item:hover {
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.1);
}

/* Contact form inputs */
body.gojo-theme .php-email-form input,
body.gojo-theme .php-email-form textarea {
  background: var(--surface-color);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--default-color);
}

body.gojo-theme .php-email-form input:focus,
body.gojo-theme .php-email-form textarea:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

/* Links glow on hover */
body.gojo-theme a:hover {
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

/* Footer */
body.gojo-theme #footer {
  --background-color: #050a18;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

/* Active button state */
body.gojo-theme .gojo-theme-btn {
  opacity: 0.6;
  color: #60A5FA;
  border-color: rgba(59, 130, 246, 0.3);
}
body.gojo-theme .gojo-theme-btn:hover {
  opacity: 1;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

/* Section titles glow */
body.gojo-theme .section-title h2 {
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* Scroll top button */
body.gojo-theme .scroll-top {
  background: rgba(59, 130, 246, 0.8);
}

/* Progress bars */
body.gojo-theme .progress .progress-bar {
  background: linear-gradient(90deg, #1E3A5F, #3B82F6);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Gojo particles canvas */
#gojo-particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
}

/* Gojo smoke / fog effect */
body.gojo-theme .gojo-smoke {
  display: block;
}

.gojo-smoke {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.gojo-smoke-layer {
  position: absolute;
  width: 200%;
  height: 100%;
  opacity: 0.035;
  background: radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.6) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 30%, rgba(96,165,250,0.5) 0%, transparent 45%),
              radial-gradient(ellipse at 50% 80%, rgba(37,99,235,0.4) 0%, transparent 50%);
  animation: smokedrift 25s ease-in-out infinite alternate;
}

.gojo-smoke-layer:nth-child(2) {
  opacity: 0.025;
  background: radial-gradient(ellipse at 60% 20%, rgba(147,197,253,0.5) 0%, transparent 50%),
              radial-gradient(ellipse at 30% 70%, rgba(59,130,246,0.4) 0%, transparent 45%),
              radial-gradient(ellipse at 80% 60%, rgba(96,165,250,0.3) 0%, transparent 50%);
  animation: smokeFloat 30s ease-in-out infinite alternate-reverse;
}

.gojo-smoke-layer:nth-child(3) {
  opacity: 0.02;
  background: radial-gradient(ellipse at 40% 60%, rgba(59,130,246,0.5) 0%, transparent 55%),
              radial-gradient(ellipse at 70% 40%, rgba(147,197,253,0.3) 0%, transparent 45%);
  animation: smokePulse 20s ease-in-out infinite;
}

@keyframes smokeDrift {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-15%) translateY(-5%); }
}

@keyframes smokeFloat {
  0% { transform: translateX(-10%) translateY(3%); }
  100% { transform: translateX(5%) translateY(-3%); }
}

@keyframes smokePulse {
  0%, 100% { opacity: 0.02; transform: scale(1); }
  50% { opacity: 0.04; transform: scale(1.1); }
}
