/********** Portfolio 3D Dark Theme — Sergio Giovanni HOUNSOU **********/
:root {
    --primary: #00d4ff;
    --secondary: #7b2fff;
    --accent: #ff6b35;
    --dark: #080b14;
    --dark-2: #0d1117;
    --dark-3: #141924;
    --light: #e2e8f0;
    --muted: #8892a4;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(0, 212, 255, 0.15);
    --glow: 0 0 20px rgba(0, 212, 255, 0.35);
    --glow-strong: 0 0 40px rgba(0, 212, 255, 0.55);
}

/* ─── Light theme — surfaces inversées, primary recalé pour la lisibilité ─── */
:root[data-theme="light"] {
    --primary: #0090c9;
    --dark: #eef1f6;
    --dark-2: #e5e9f0;
    --dark-3: #dbe1e9;
    --light: #1c2431;
    --muted: #5b6572;
    --glass: rgba(15, 23, 42, 0.045);
    --glass-border: rgba(0, 150, 200, 0.25);
    --glow: 0 0 20px rgba(0, 144, 201, 0.3);
    --glow-strong: 0 0 40px rgba(0, 144, 201, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ─── Scroll progress bar ─── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    z-index: 999997;
    box-shadow: 0 0 14px var(--primary);
    pointer-events: none;
    transition: none;
}

/* ─── Désactive WOW.js — GSAP gère tout le scroll ─── */
.wow {
    visibility: visible !important;
    animation-name: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--light);
    background-color: var(--dark);
    overflow-x: hidden;
    cursor: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
    letter-spacing: 0.3px;
    font-weight: 700;
    color: var(--light);
}

a { color: var(--primary); text-decoration: none; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ─── Custom Cursor ─── */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 0 10px var(--primary), 0 0 25px rgba(0, 212, 255, 0.4);
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(2.5);
    background: var(--secondary);
    box-shadow: 0 0 15px var(--secondary), 0 0 30px rgba(123, 47, 255, 0.5);
}

.cursor-follower {
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(0, 212, 255, 0.45);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    transition: border-color 0.2s;
}

.cursor-follower.hover {
    border-color: rgba(123, 47, 255, 0.5);
    transform: translate(-50%, -50%) scale(1.5);
}

/* ─── Utilities ─── */
.my-6 { margin-top: 6rem; margin-bottom: 6rem; }
.py-6 { padding-top: 6rem; padding-bottom: 6rem; }

/* ─── Containers élargis ─── */
/* Le template imbrique un .container (max-width Bootstrap classique, 1140-1320px)
   à l'intérieur d'un .container-xxl (lui-même plafonné à 1320px au-delà de 1400px
   d'écran) : ces deux plafonds brident la largeur bien avant que l'écran
   (ou un zoom navigateur réduit) en profite. */
#about.container-xxl,
#skill.container-xxl,
#project.container-xxl,
#team.container-xxl,
#contact.container-xxl {
    max-width: 1800px;
}

#about .container,
#skill .container,
#project .container,
#team .container,
#contact .container {
    width: 92%;
    max-width: 1600px;
}

/* ─── Loader ─── */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease-out, visibility 0s linear .6s;
    z-index: 99999;
    background: var(--dark);
}

#spinner.show {
    transition: opacity .6s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}

.loader-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--glass);
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    animation: loader-spin 0.9s linear infinite;
}

.loader-brand {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: var(--light);
    opacity: 0.9;
}

.loader-brand span { color: var(--primary); }

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

/* ─── Back to Top ─── */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    box-shadow: var(--glow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-strong);
}

/* ─── Buttons ─── */
.btn {
    font-weight: 600;
    border-radius: 10px;
    letter-spacing: 0.4px;
    transition: all .3s ease;
}

.btn.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
    color: #fff;
}

.btn.btn-secondary {
    background: var(--secondary);
    border: none;
    color: #fff;
}

.btn.btn-outline-secondary {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn.btn-outline-secondary:hover {
    background: var(--primary);
    color: #071018;
    border-color: var(--primary);
}

.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

/* ─── Réseaux sociaux fixes ─── */
.fixed-social {
    position: fixed;
    left: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9997;
}

.fixed-social .btn {
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.25);
}

.fixed-social .btn:hover {
    transform: translateY(-3px);
}

@media (max-width: 575.98px) {
    .fixed-social { left: 14px; bottom: 14px; gap: 10px; }
    .fixed-social .btn { width: 32px; height: 32px; }
}

/* ─── Overrides for bg utilities ─── */
.bg-light { background: var(--dark-2) !important; }
.bg-white { background: var(--glass) !important; }

/* ─── Text ─── */
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--muted) !important; }

/* ─── Navbar ─── */
.navbar.fixed-top {
    display: none;
    transition: .5s;
    background: rgba(8, 11, 20, 0.88) !important;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar.fixed-top .navbar-collapse { justify-content: center !important; }
.navbar.fixed-top .navbar-nav { justify-content: center; margin: 0 !important; }
.navbar .navbar-nav { flex-wrap: nowrap; }

.navbar .navbar-nav .nav-link {
    padding: 20px 14px;
    color: var(--muted) !important;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    white-space: nowrap;
    transition: color 0.3s;
    position: relative;
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s;
    box-shadow: 0 0 8px var(--primary);
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after { width: 28px; }

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active { color: var(--primary) !important; }

.navbar .dropdown-menu {
    background: rgba(13, 17, 23, 0.97);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 12px;
}

.navbar .dropdown-item { color: var(--muted); transition: all 0.3s; }
.navbar .dropdown-item:hover { background: rgba(0, 212, 255, 0.08); color: var(--primary); }
.navbar-toggler { border-color: var(--glass-border); }
.navbar-toggler-icon { filter: invert(1); }

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link { padding: 10px 0; }
    .navbar .navbar-collapse {
        background: rgba(8, 11, 20, 0.98);
        padding: 20px;
        border-radius: 14px;
        margin-top: 10px;
        border: 1px solid var(--glass-border);
    }
}

/* ─── Light theme overrides (couleurs non pilotées par variables CSS) ─── */
:root[data-theme="light"] .navbar.fixed-top {
    background: rgba(238, 241, 246, 0.88) !important;
}

:root[data-theme="light"] .navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
}

:root[data-theme="light"] .navbar-toggler-icon { filter: none; }

@media (max-width: 991.98px) {
    :root[data-theme="light"] .navbar .navbar-collapse {
        background: rgba(238, 241, 246, 0.98);
    }
}

/* ─── Theme toggle button ─── */
.theme-toggle-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 17, 23, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--primary);
    font-size: 15px;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
}

:root[data-theme="light"] .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.55);
}

@media (max-width: 991.98px) {
    .theme-toggle-btn { top: 16px; right: 16px; width: 34px; height: 34px; }
}

.theme-toggle-btn:hover {
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: inline-block; }

/* ─── Hero / Header ─── */
#home {
    min-height: 100vh;
    background: var(--dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#home .container {
    position: relative;
    z-index: 2;
    padding-top: 90px;
    padding-bottom: 60px;
}

/* Fondu doux vers la section suivante (évite la ligne nette hero -> about) */
#home::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 420px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(13, 17, 23, 0.1) 35%,
        rgba(13, 17, 23, 0.4) 65%,
        rgba(13, 17, 23, 0.75) 85%,
        var(--dark-2) 100%);
    pointer-events: none;
    z-index: 1;
}

:root[data-theme="light"] #home::after {
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(229, 233, 240, 0.1) 35%,
        rgba(229, 233, 240, 0.4) 65%,
        rgba(229, 233, 240, 0.75) 85%,
        var(--dark-2) 100%);
}

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: blink-dot 1.6s ease-in-out infinite;
    box-shadow: 0 0 8px var(--primary);
    flex-shrink: 0;
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

#home h3.text-primary {
    font-size: 0.95rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px !important;
}

#home h1.display-3 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

:root[data-theme="light"] #home h1.display-3 {
    background: linear-gradient(135deg, #1c2431 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.typed-text-output {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.typed-cursor {
    font-size: 1.2rem;
    color: var(--primary);
}

/* Hero image */
.hero-img-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-wrapper::before {
    content: '';
    position: absolute;
    width: 90%;
    padding-top: 90%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
    animation: pulse-glow 3.5s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes pulse-glow {
    0% { transform: scale(0.92); opacity: 0.6; }
    100% { transform: scale(1.06); opacity: 1; }
}

.hero-img-wrapper img {
    position: relative;
    z-index: 1;
    max-height: 640px;
    width: auto;
    filter: drop-shadow(0 0 35px rgba(0, 212, 255, 0.25));
}

/* Play button */
.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: var(--glow);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.3);
    border-radius: 100%;
    animation: pulse-border 1600ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: rgba(8, 11, 20, 0.5);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid #fff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% { transform: translateX(-50%) translateY(-50%) scale(1); opacity: 0.6; }
    100% { transform: translateX(-50%) translateY(-50%) scale(2.6); opacity: 0; }
}

/* Video modal */
.modal-video .modal-dialog { max-width: 800px; margin: 60px auto 0; }
.modal-video .modal-content {
    background: var(--dark-3);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}
.modal-video .modal-header { border-bottom: 1px solid var(--glass-border); color: var(--light); }
.modal-video .btn-close { filter: invert(1); }
.modal-video .modal-body { padding: 0; }

/* ─── Tech Orbit ─── */
.tech-orbit-section {
    background: var(--dark);
    padding: 3rem 0 3rem;
    overflow: hidden;
}

.tech-orbit-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.tech-orbit-character {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 40%;
    max-width: 40%;
    margin-left: 4rem;
    text-align: center;
}

.tech-orbit-character::before {
    content: '';
    position: absolute;
    width: 70%;
    padding-top: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
    animation: pulse-glow 3.5s ease-in-out infinite alternate;
    z-index: 0;
}

.tech-orbit-character img {
    position: relative;
    z-index: 1;
    max-height: 400px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.45));
}

.tech-orbit-content {
    flex: 0 0 60%;
    max-width: 60%;
    text-align: center;
}

.tech-orbit-title {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4rem;
}

.orbit-wrapper {
    position: relative;
    width: 640px;
    height: 380px;
    max-width: 100%;
    margin: 0 auto;
}

/* Aplatit verticalement l'anneau circulaire pour tracer une orbite ovale */
.orbit-ellipse {
    position: absolute;
    inset: 0;
    transform: scaleY(0.55);
}

.orbit-ring {
    position: absolute;
    inset: 0;
    animation: orbit-spin 40s linear infinite;
}

.orbit-wrapper:hover .orbit-ring,
.orbit-wrapper:hover .orbit-icon {
    animation-play-state: paused;
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: rotate(var(--angle)) translateX(260px);
}

.orbit-icon {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 1px solid var(--glass-border);
    background-color: var(--dark-2);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    /* scaleY inverse de .orbit-ellipse (1 / 0.55) pour garder des icônes bien rondes */
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle))) scaleY(1.818);
    animation: orbit-counter-spin 40s linear infinite;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.orbit-icon:hover {
    border-color: var(--primary);
    box-shadow: 0 0 26px rgba(0, 212, 255, 0.45);
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: #fff;
    box-shadow: var(--glow-strong);
}

.s-git       { background-color: rgba(240, 80, 51, 0.15); color: #f05033; }
.s-bootstrap { background-color: rgba(112, 76, 182, 0.15); color: #a17ee6; }
.s-python    { background-color: rgba(55, 118, 171, 0.15); color: #4b8bbe; }
.s-react     { background-color: rgba(97, 218, 251, 0.15); color: #61dafb; }
.s-powerbi   { background-color: rgba(242, 200, 17, 0.15); color: #f2c811; }

@keyframes orbit-spin {
    to { transform: rotate(360deg); }
}

@keyframes orbit-counter-spin {
    from { transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle))) scaleY(1.818); }
    to   { transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle) - 360deg)) scaleY(1.818); }
}

@media (max-width: 991.98px) {
    .tech-orbit-row { flex-direction: column; }
    .tech-orbit-character, .tech-orbit-content { flex: 0 0 100%; max-width: 100%; }
    .tech-orbit-character img { max-height: 400px; margin-bottom: 1rem; }

    .orbit-wrapper { width: 580px; height: 340px; }
    .orbit-item { transform: rotate(var(--angle)) translateX(235px); }
    .orbit-icon { width: 68px; height: 68px; font-size: 1.7rem; }
    .orbit-center { width: 72px; height: 72px; font-size: 1.85rem; }
}

@media (max-width: 575.98px) {
    .orbit-wrapper { width: 340px; height: 220px; }
    .orbit-item { transform: rotate(var(--angle)) translateX(135px); }
    .orbit-icon { width: 52px; height: 52px; font-size: 1.3rem; }
    .orbit-center { width: 54px; height: 54px; font-size: 1.4rem; }
}

/* ─── CTA Banner ─── */
.cta-banner-section {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    padding: 4.5rem 1.5rem;
    text-align: center;
}

.cta-banner-title {
    color: #fff;
    font-weight: 800;
    font-size: 2.4rem;
    margin-bottom: 0.6rem;
}

.cta-banner-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.cta-banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
    color: var(--secondary);
}

.cta-banner-btn i {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-banner-btn:hover i {
    transform: translateX(4px);
}

@media (max-width: 575.98px) {
    .cta-banner-title { font-size: 1.8rem; }
    .cta-banner-subtitle { font-size: 1rem; }
}

/* ─── Tech Marquee ─── */
.tech-marquee-section {
    background: var(--dark-2);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.6rem 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.tech-marquee-track {
    display: flex;
    width: max-content;
    animation: tech-marquee-scroll 55s linear infinite;
}

.tech-marquee-section:hover .tech-marquee-track {
    animation-play-state: paused;
}

.tech-marquee-list {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.tech-marquee-item {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    color: var(--muted);
    white-space: nowrap;
    padding: 0 1.5rem;
    transition: color 0.3s;
}

.tech-marquee-item:hover { color: var(--primary); }

.tech-marquee-sep {
    color: var(--primary);
    font-size: 0.45rem;
    opacity: 0.6;
    flex-shrink: 0;
}

@keyframes tech-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 575.98px) {
    .tech-marquee-item { font-size: 0.9rem; padding: 0 1rem; }
    .tech-marquee-track { animation-duration: 40s; }
}

/* ─── Tech Levels ─── */
.tech-levels-section {
    background: var(--dark);
    padding: 1.5rem 0 3rem;
}

.tech-levels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tech-level-card {
    background: var(--dark-3);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 20px 18px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.tech-level-card:hover {
    border-color: rgba(0, 212, 255, 0.35);
    transform: translateY(-4px);
}

.tech-level-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fff;
    margin-bottom: 18px;
}

.badge-a, .badge-b, .badge-c, .badge-d {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.tech-level-row { margin-bottom: 13px; }
.tech-level-row:last-child { margin-bottom: 0; }

.tech-level-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.tech-level-name {
    color: var(--light);
    font-size: 0.82rem;
    font-weight: 600;
}

.tech-level-name i {
    color: #ffc94d;
    font-size: 0.55rem;
    margin-left: 4px;
    vertical-align: middle;
    filter: drop-shadow(0 0 4px rgba(255, 201, 77, 0.6));
}

.tech-level-score {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.tech-level-bar {
    height: 4px;
    background: var(--glass);
    border-radius: 4px;
    overflow: hidden;
}

.tech-level-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

@media (max-width: 991.98px) {
    .tech-levels-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .tech-levels-grid { grid-template-columns: 1fr; }
}

/* ─── About ─── */
#about { background: var(--dark-2); padding: 6rem 0; }

#about .years .display-1 {
    font-size: 9rem;
    line-height: 8.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#about .years h5 {
    color: var(--muted);
    letter-spacing: 18px;
    margin-right: -18px;
    font-size: 0.85rem;
}

#about h3.lh-base { color: var(--light); font-size: 1.6rem; }
#about > .container p, #about p.mb-4, #about p.mb-0 { color: var(--muted); line-height: 1.85; }

#about .far.fa-check-circle {
    color: var(--primary);
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

#about span[data-i18n] { color: var(--light); }

#about .border-end {
    border-color: var(--glass-border) !important;
    color: var(--muted);
    font-size: 0.9rem;
}

#about h2.text-primary {
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.45);
}

#about img {
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    filter: brightness(0.85) saturate(1.1);
    transition: filter 0.3s;
}

#about img:hover { filter: brightness(1) saturate(1.2); }

:root[data-theme="light"] #about img { filter: none; }
:root[data-theme="light"] #about img:hover { filter: saturate(1.15); }

.about-img-placeholder {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(135deg, var(--dark-3), var(--dark-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--primary);
    opacity: 0.5;
    transition: opacity 0.3s, border-color 0.3s;
}

.about-img-placeholder:hover {
    opacity: 0.85;
    border-color: var(--primary);
}

/* ─── Skills ─── */
#skill { background: var(--dark); padding: 6rem 0; }
#skill h1.display-5 { color: var(--light); margin-bottom: 0.5rem; }
#skill p { color: var(--muted); line-height: 1.8; }

/* ── Soft skills ── */
.s-html  { background: rgba(228, 77,  38,  0.15); color: #e44d26; }
.s-css   { background: rgba(38,  77,  228, 0.15); color: #5b9cf6; }
.s-js    { background: rgba(247, 223, 30,  0.15); color: #f7df1e; }
.s-php   { background: rgba(119, 123, 179, 0.15); color: #9b59b6; }
.s-laravel { background: rgba(255, 45, 32, 0.15); color: #ff5c4d; }
.s-vue   { background: rgba(66,  184, 131, 0.15); color: #42b883; }

/* Les deux colonnes (texte+soft skills / timeline) doivent se terminer au
   même niveau : on les rend flex-column, et la carte soft skills s'étire
   pour occuper l'espace restant, en répartissant ses lignes uniformément. */
.skill-col-stretch { display: flex; flex-direction: column; }

.soft-skills-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 85%;
    max-width: 85%;
    background: var(--dark-3);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 22px 20px;
}

.soft-skills-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.soft-skills-card-title i {
    color: var(--primary);
    font-size: 1.05rem;
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.6));
}

.soft-skills-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.soft-skill-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 10px 18px;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.soft-skill-row:hover {
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.05);
    transform: translateX(4px);
}

.soft-skill-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 0.95rem;
}

.soft-skill-row span:last-child {
    color: var(--light);
    font-weight: 600;
    font-size: 0.92rem;
}

/* ── Tab buttons ── */
.skill-tabs {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

.skill-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--muted);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.skill-tab-btn:hover {
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--primary);
}

.skill-tab-btn.active,
.skill-tab-btn.show {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(0, 212, 255, 0.3);
}

/* ── Timeline ── */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 16px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(123, 47, 255, 0.6) 60%, transparent 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 18px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--dark);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.7);
    z-index: 1;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.35);
    box-shadow: 0 0 20px rgba(0, 212, 255, 1);
}

.timeline-card {
    background: var(--dark-3);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    border-color: rgba(0, 212, 255, 0.35);
    transform: translateX(6px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.08);
}

.timeline-date {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 20px;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.timeline-card h5 {
    color: var(--light);
    font-size: 0.93rem;
    font-weight: 700;
    margin: 0 0 5px;
    line-height: 1.4;
}

.timeline-company {
    color: var(--muted);
    font-size: 0.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-company::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--secondary);
    flex-shrink: 0;
    display: inline-block;
}

/* ─── Services ─── */
#service { background: var(--dark); padding: 5rem 0; }
#service h1.display-5 { color: var(--light); }

.service-item {
    background: var(--dark-3) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 2rem;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: 20px 20px 0 0;
    z-index: 1;
    pointer-events: none;
}

.service-item:hover::before { opacity: 1; }

.service-item:hover {
    border-color: rgba(0, 212, 255, 0.38) !important;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.14) !important;
}

.service-item .bg-icon {
    width: 68px;
    height: 68px;
    min-width: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.09) !important;
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 16px;
}

.service-item .bg-icon i.text-dark {
    color: var(--primary) !important;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
    font-size: 1.5rem !important;
}

.service-item h4.mb-3 { color: var(--light); font-size: 1.05rem; }
.service-item h6.mb-3 { color: var(--primary); font-size: 0.78rem; letter-spacing: 0.3px; }
.service-item span { color: var(--muted); font-size: 0.88rem; line-height: 1.7; }

/* ── Carrousel 3D "coverflow" ── */
.service-carousel {
    position: relative;
    padding: 1rem 70px 0;
}

.service-carousel-track {
    position: relative;
    height: 420px;
    perspective: 1800px;
}

.service-carousel-item {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(420px, 88%);
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.55s ease,
                filter 0.55s ease;
    will-change: transform, opacity, filter;
}

.service-carousel-item .service-item { cursor: pointer; height: 100%; }

/* Lueur qui pulse sur les cartes actives */
.service-carousel-item.is-front .service-item {
    border-color: rgba(0, 212, 255, 0.4) !important;
    animation: service-card-glow 2.6s ease-in-out infinite alternate;
}

@keyframes service-card-glow {
    0%   { box-shadow: 0 20px 50px rgba(0, 212, 255, 0.10); }
    100% { box-shadow: 0 20px 60px rgba(0, 212, 255, 0.32); }
}

.service-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--dark-2);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 5;
    transition: all 0.3s ease;
}

.service-carousel-nav:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: var(--glow);
}

.service-carousel-nav.prev { left: 0; }
.service-carousel-nav.next { right: 0; }

.service-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.service-carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: var(--glass-border);
    padding: 0;
    transition: all 0.3s ease;
}

.service-carousel-dot.active {
    width: 26px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Mode "paire" (2 cartes actives) : largeur fixe plus étroite pour laisser
   la place aux deux cartes côte à côte + les cartes qui pointent sur les bords */
@media (min-width: 768px) {
    .service-carousel-item { width: 340px; }
}

@media (max-width: 575.98px) {
    .service-carousel { padding: 1rem 0 0; }
    .service-carousel-track { height: 440px; }
    .service-carousel-nav { display: none; }
}

/* ─── Projects ─── */
#project { background: var(--dark); padding: 6rem 0 5rem; }
#project h1.display-5 { color: var(--light); }

#portfolio-flters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

@media (min-width: 992px) {
    #portfolio-flters { justify-content: flex-end; }
}

#portfolio-flters li {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all .3s ease;
    padding: 8px 20px;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    margin: 0 !important;
}

#portfolio-flters li:hover {
    color: var(--light);
    border-color: rgba(0, 212, 255, 0.4);
}

#portfolio-flters li.active {
    color: #fff;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.25);
}

/* Carte projet — conteneur unifié */
.portfolio-item {
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    overflow: hidden;
    background: var(--dark-3);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(0, 212, 255, 0.16);
    border-color: rgba(0, 212, 255, 0.4);
}

/* Image — hauteur fixe pour uniformité */
.portfolio-img {
    position: relative;
    overflow: hidden;
    line-height: 0;
    aspect-ratio: 16 / 9;
    background: var(--dark-2);
}

.portfolio-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(8, 11, 20, 0.65) 100%);
    pointer-events: none;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
    display: block;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.08);
    filter: brightness(0.55);
}

/* Caption — bas de la carte */
.portfolio-caption {
    background: var(--dark-3);
    border-top: 1px solid var(--glass-border);
    padding: 16px 20px;
    transition: border-color 0.35s;
}

.portfolio-item:hover .portfolio-caption {
    border-top-color: rgba(0, 212, 255, 0.35);
}

.portfolio-caption h5 { color: var(--light); font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.portfolio-caption small {
    display: inline-block;
    color: var(--primary) !important;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Overlay boutons au survol */
.portfolio-btn {
    position: absolute;
    inset: 0;
    background: rgba(8, 11, 20, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: opacity .4s ease;
}

.portfolio-item:hover .portfolio-btn { opacity: 1; }

.portfolio-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, border-color 0.3s ease;
}

.portfolio-item:hover .portfolio-icon-btn { transform: translateY(0); }

.portfolio-icon-btn:hover {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: #fff;
    transform: translateY(-4px) !important;
}

/* ─── Team / Interests ─── */
#team { background: var(--dark-2); padding: 6rem 0 5rem; }
#team h1.display-5 { color: var(--light); }

.team-item {
    border-radius: 18px;
    overflow: hidden;
    background: var(--dark-3);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.team-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(0, 212, 255, 0.16);
    border-color: rgba(0, 212, 255, 0.4);
}

.team-item-img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(160deg, var(--dark-3), var(--dark-2));
}

.team-item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-item:hover .team-item-img-wrap img { transform: scale(1.08); }

.team-item .team-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-top: 1px solid var(--glass-border);
    transition: border-color 0.35s;
}

.team-item:hover .team-text { border-top-color: rgba(0, 212, 255, 0.35); }
.team-item .team-text h5 { color: var(--light); font-size: 0.95rem; font-weight: 700; margin-bottom: 3px; }
.team-item .team-text span { color: var(--muted); font-size: 0.78rem; }
.team-item .team-text i {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-item:hover .team-text i { transform: translateX(6px); }

/* ─── Testimonials ─── */
#testimonial { background: var(--dark); padding: 5rem 0; }
#testimonial h1.display-5 { color: var(--light); }

.testimonial-left, .testimonial-right { position: relative; }

.testimonial-left img,
.testimonial-right img {
    position: absolute;
    padding: 4px;
    border: 1.5px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 70px;
    filter: brightness(0.75);
    transition: filter 0.3s;
}

.testimonial-left img:hover,
.testimonial-right img:hover { filter: brightness(1); }

.testimonial-left img:nth-child(1),
.testimonial-right img:nth-child(3) { width: 70px; height: 70px; top: 10%; left: 50%; transform: translateX(-50%); }

.testimonial-left img:nth-child(2),
.testimonial-right img:nth-child(2) { width: 60px; height: 60px; top: 50%; left: 10%; transform: translateY(-50%); }

.testimonial-left img:nth-child(3),
.testimonial-right img:nth-child(1) { width: 50px; height: 50px; bottom: 10%; right: 10%; }

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 50%;
    filter: brightness(0.85);
}

.testimonial-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 32px 32px;
    backdrop-filter: blur(10px);
}

.testimonial-item p.fs-5 { color: var(--muted); font-size: 0.97rem !important; line-height: 1.85; }
.testimonial-item hr { border-color: var(--glass-border); opacity: 1; }
.testimonial-item h5 { color: var(--light); font-weight: 700; }
.testimonial-item span { color: var(--primary); font-size: 0.82rem; }

.testimonial-carousel .testimonial-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-3);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
}

.testimonial-carousel .testimonial-icon i { color: var(--primary); }

.testimonial-carousel .owl-dots {
    height: 36px;
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    transition: all .45s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.testimonial-carousel .owl-dot::after { display: none; }

/* ─── Contact ─── */
#contact { background: var(--dark-2); padding: 6rem 0 5rem; }
#contact h1.display-5 { color: var(--light); }
#contact .fw-bold { color: var(--light); font-size: 1.2rem; }
#contact p { color: var(--muted); margin-bottom: 6px; font-size: 0.9rem; }
#contact hr { border-color: var(--glass-border); opacity: 1; }

.form-control {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--light) !important;
    border-radius: 10px !important;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.15) !important;
    background: rgba(0, 212, 255, 0.04) !important;
    outline: none;
}

.form-floating label { color: var(--muted) !important; }

.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-control:focus ~ label { color: var(--primary) !important; }

textarea.form-control { resize: none; }

/* ─── Footer ─── */
.footer-section {
    background: #04060d;
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 0;
}

.footer-brand {
    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--light) !important;
}

.footer-brand span { color: var(--primary); }

.footer-tagline {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 0.8rem;
    max-width: 320px;
}

.footer-heading {
    color: var(--light);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
    color: var(--muted);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
}

.footer-links a {
    color: var(--muted);
    transition: color 0.25s ease;
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    margin-top: 3rem;
    border-top: 1px solid var(--glass-border);
    padding: 1.4rem 0;
    text-align: center;
}

.footer-bottom span { color: var(--muted); font-size: 0.85rem; }
.footer-bottom a { color: var(--primary); }

/* ─── Section dividers ─── */
section, .container-fluid, .container-xxl {
    position: relative;
}
