/********** Template CSS — Premium Redesign **********/
:root {
    --primary: #6244C5;
    --primary-rgb: 98, 68, 197;
    --primary-light: #8B6EE5;
    --primary-dark: #4A2FA0;
    --secondary: #FFC448;
    --secondary-rgb: 255, 196, 72;
    /* Variantes assombries : le jaune et le turquoise d'origine sont illisibles sur fond clair */
    --secondary-deep: #D99A18;
    --accent: #00D4AA;
    --accent-deep: #00806B;
    --light: #FAFAFB;
    --dark: #12141D;
    --dark-rgb: 18, 20, 29;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Sora', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

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


/*** Button ***/
.btn {
    font-family: var(--font-body);
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

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

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

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


/* ============================================================
   GLASSMORPHISM NAVBAR
   ============================================================ */
.glass-navbar {
    padding: 16px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border-bottom: 1px solid transparent;
    z-index: 1000;
}

.glass-navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    padding: 8px 0;
    box-shadow: 0 8px 32px rgba(var(--dark-rgb), 0.08);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    transition: all 0.3s ease;
}

.glass-navbar.scrolled .logo-text {
    font-size: 24px;
}

.glass-navbar .navbar-nav {
    gap: 4px;
}

.glass-navbar .nav-link {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    /* Le héros est clair : des liens blancs seraient invisibles avant le défilement */
    color: rgba(var(--dark-rgb), 0.75) !important;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
}

.glass-navbar.scrolled .nav-link {
    color: var(--dark) !important;
}

@media (max-width: 991.98px) {
    .glass-navbar .nav-link {
        color: var(--dark) !important;
    }
}

.glass-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

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

/* Nav CTA Button */
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff !important;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
    letter-spacing: 0.3px;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
    color: #fff !important;
}

/* Glass Toggler (Mobile) */
.glass-toggler {
    border: 1px solid rgba(var(--primary-rgb), 0.3) !important;
    padding: 8px;
    border-radius: 8px;
    background: rgba(var(--primary-rgb), 0.05);
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 36px;
    align-items: center;
    justify-content: center;
}

.toggler-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 991.98px) {
    .glass-navbar {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 12px 0;
    }

    .glass-navbar .navbar-collapse {
        padding: 20px 0;
    }

    .glass-navbar .navbar-nav {
        gap: 0;
    }

    .glass-navbar .nav-link {
        padding: 12px 16px !important;
        border-radius: 10px;
    }

    .glass-navbar .nav-link:hover {
        background: rgba(var(--primary-rgb), 0.06);
    }

    .nav-cta-btn {
        margin-top: 16px;
        text-align: center;
        justify-content: center;
    }
}


/* ============================================================
   HERO SECTION — CINEMATIC PREMIUM
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--light);
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 18% 45%, rgba(var(--primary-rgb), 0.12) 0%, transparent 68%),
        radial-gradient(ellipse 55% 70% at 82% 28%, rgba(var(--secondary-rgb), 0.10) 0%, transparent 62%),
        linear-gradient(180deg, #FFFFFF 0%, #F7F4FF 45%, var(--light) 100%);
    animation: gradientShift 8s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.88;
    }
    100% {
        opacity: 1;
        background:
            radial-gradient(ellipse 80% 60% at 28% 38%, rgba(var(--primary-rgb), 0.15) 0%, transparent 68%),
            radial-gradient(ellipse 55% 70% at 72% 55%, rgba(var(--secondary-rgb), 0.13) 0%, transparent 62%),
            linear-gradient(180deg, #FFFFFF 0%, #F7F4FF 45%, var(--light) 100%);
    }
}

/* Raccord invisible avec la section « À propos » qui suit */
.hero-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, #fff);
    pointer-events: none;
    z-index: 1;
}

.hero-bg-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

/* Sur fond clair, le grain d'origine salit l'image : on l'atténue (le blog reste sombre) */
.hero-section .hero-bg-noise {
    opacity: 0.18;
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

/* Les pastilles se noient sur fond clair : on les densifie légèrement */
.hero-section .particle {
    opacity: 0.75;
    box-shadow: 0 2px 8px rgba(var(--dark-rgb), 0.10);
}

.hero-section .particle-2,
.hero-section .particle-5 {
    background: var(--secondary-deep);
}

.hero-section .particle-3,
.hero-section .particle-6 {
    background: var(--accent-deep);
}

.particle-1 {
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    top: 15%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.particle-2 {
    width: 4px;
    height: 4px;
    background: var(--secondary);
    top: 25%;
    right: 15%;
    animation: float 8s ease-in-out infinite 1s;
}

.particle-3 {
    width: 8px;
    height: 8px;
    background: var(--accent);
    bottom: 30%;
    left: 20%;
    animation: float 7s ease-in-out infinite 2s;
}

.particle-4 {
    width: 3px;
    height: 3px;
    background: var(--primary-light);
    top: 60%;
    right: 30%;
    animation: float 9s ease-in-out infinite 0.5s;
}

.particle-5 {
    width: 5px;
    height: 5px;
    background: var(--secondary);
    bottom: 15%;
    right: 10%;
    animation: float 6.5s ease-in-out infinite 3s;
}

.particle-6 {
    width: 4px;
    height: 4px;
    background: var(--accent);
    top: 40%;
    left: 5%;
    animation: float 7.5s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

/* Geometric decorative lines */
.geo-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.3), transparent);
}

.geo-line-1 {
    width: 200px;
    top: 30%;
    left: -50px;
    transform: rotate(-30deg);
    animation: geoFade 4s ease-in-out infinite;
}

.geo-line-2 {
    width: 150px;
    bottom: 25%;
    right: -30px;
    transform: rotate(45deg);
    animation: geoFade 5s ease-in-out infinite 1.5s;
}

.geo-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}

.geo-ring-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: ringRotate 20s linear infinite;
}

.geo-ring-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: ringRotate 15s linear infinite reverse;
}

@keyframes geoFade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Container */
.hero-container {
    position: relative;
    z-index: 2;
}

/* Hero Content */
.hero-content {
    padding: 120px 0 60px;
    animation: heroContentIn 1s ease-out 0.3s both;
}

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

/* Availability Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(0, 212, 170, 0.12);
    border: 1px solid rgba(0, 212, 170, 0.35);
    border-radius: 50px;
    color: var(--accent-deep);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-deep);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(0, 212, 170, 0);
    }
}

/* Hero Greeting */
.hero-greeting {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: rgba(var(--dark-rgb), 0.55);
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Hero Name */
.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 900;
    line-height: 1.05;
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: -2px;
}

/* Le dégradé général finit en jaune pâle : illisible à 80px sur fond blanc */
.hero-section .hero-name-accent {
    background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 45%, var(--secondary-deep) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-name-accent {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Role  */
.hero-role {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 18px;
}

.role-prefix {
    color: rgba(var(--dark-rgb), 0.5);
    font-weight: 400;
}

.hero-section .typed-text-output {
    color: var(--primary);
    font-weight: 600;
}

.hero-section .typed-cursor {
    font-size: 22px;
    color: var(--primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Hero Description */
.hero-description {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(var(--dark-rgb), 0.65);
    max-width: 480px;
    margin-bottom: 36px;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff !important;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.35);
    letter-spacing: 0.3px;
}

.cta-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.5);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: #fff;
    color: var(--dark) !important;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(var(--dark-rgb), 0.14);
    text-decoration: none;
    transition: all 0.4s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(var(--dark-rgb), 0.05);
}

.cta-secondary:hover {
    background: rgba(var(--primary-rgb), 0.06);
    border-color: var(--primary);
    transform: translateY(-3px);
    color: var(--primary) !important;
}

/* Hero Social Links */
.hero-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(var(--dark-rgb), 0.12);
    background: #fff;
    color: rgba(var(--dark-rgb), 0.55) !important;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: var(--primary-light);
    color: var(--primary-light) !important;
    transform: translateY(-3px);
}

/* Hero Photo */
.hero-photo-col {
    animation: heroPhotoIn 1s ease-out 0.6s both;
}

@keyframes heroPhotoIn {
    from {
        opacity: 0;
        transform: translateX(60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.hero-photo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.photo-frame {
    position: relative;
    z-index: 2;
}

.photo-frame-deco {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-light);
    border-radius: 30px;
    opacity: 0.22;
}

.photo-frame-deco-2 {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80%;
    height: 80%;
    border: 1px solid var(--secondary-deep);
    border-radius: 20px;
    opacity: 0.20;
}

@keyframes decoFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5px, -8px); }
}

.hero-photo {
    max-width: 100%;
    height: auto;
    max-height: 550px;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    filter: contrast(1.05) brightness(1.02);
}

.photo-blob {
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.16), rgba(var(--secondary-rgb), 0.10) 45%, transparent 72%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: blobPulse 4s ease-in-out infinite;
}

@keyframes blobPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.4; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 3;
    animation: scrollFadeIn 1s ease-out 1.5s both;
}

@keyframes scrollFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.scroll-text {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: rgba(var(--dark-rgb), 0.45);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0.6), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary-light), transparent);
    animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* Hero Responsive */
@media (max-width: 991.98px) {
    .hero-content {
        padding: 140px 0 40px;
        text-align: center;
    }
    
    .hero-name {
        font-size: clamp(40px, 10vw, 56px);
    }
    
    .hero-role {
        justify-content: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .hero-photo-wrapper {
        padding: 20px;
    }
    
    .hero-photo {
        max-height: 400px;
    }
    
    .photo-blob {
        width: 250px;
        height: 250px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .hero-name {
        font-size: 38px;
    }
    
    .hero-role {
        font-size: 15px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================================
   VIDEO MODAL (kept from original)
   ============================================================ */
.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about .years .display-1 {
    font-size: 10rem;
    line-height: 9rem;
}

#about .years h5 {
    letter-spacing: 30px;
    margin-right: -30px;
}

/* Le titre voisin est un élément flex : sans min-width, il refuse de descendre
   sous la largeur de son mot le plus long (« professionnelle ») et pousse la page. */
#about .years + h3 {
    min-width: 0;
    overflow-wrap: break-word;
}

@media (max-width: 767.98px) {
    #about .years .display-1 {
        font-size: 6.5rem;
        line-height: 6rem;
    }

    #about .years h5 {
        font-size: 1rem;
        letter-spacing: 16px;
        margin-right: -16px;
    }

    #about .years + h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    /* Côte à côte, il ne reste plus assez de place : on empile et on centre */
    #about .years + h3 {
        font-size: 1.15rem;
        text-align: center;
    }

    #about .years {
        margin-right: 0 !important;
        margin-bottom: 12px;
    }

    #about .years .display-1 {
        font-size: 5.5rem;
        line-height: 5rem;
    }

    #about .about-intro {
        flex-direction: column;
    }
}


/* ============================================================
   SKILLS SECTION
   ============================================================ */
#skill .progress {
    height: 5px;
    border-radius: 5px;
}

#skill .progress .progress-bar {
    width: 0px;
    border-radius: 5px;
    transition: 3s;
}

#skill .nav-pills .nav-link {
    color: var(--dark);
}

#skill .nav-pills .nav-link.active {
    color: #FFFFFF;
}

#skill .tab-content hr {
    width: 30px;
}


/* ============================================================
   SERVICE SECTION
   ============================================================ */
.service-item .bg-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../img/bg-icon.png) center center no-repeat;
    background-size: cover;
}


/* ============================================================
   PROJECT PORTFOLIO
   ============================================================ */
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-img {
    position: relative;
    height: 280px;
    width: 100%;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-btn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(98, 68, 197, .9);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 30px;
    padding-bottom: 100px !important;
    opacity: 0;
    transition: .5s;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    padding-bottom: 30px !important;
}


/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial-left,
.testimonial-right {
    position: relative;
}

.testimonial-left img,
.testimonial-right img {
    position: absolute;
    padding: 5px;
    border: 1px solid var(--secondary);
    border-radius: 70px;
}

.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: 120px;
    height: 120px;
}

.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: #FFFFFF;
    border: 1px solid var(--secondary);
    border-radius: 60px;
}

.testimonial-carousel .owl-dots {
    height: 40px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    background: #FFFFFF;
    border: 2px solid var(--secondary);
    border-radius: 30px;
    transition: .5s;
}

.testimonial-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    top: 5px;
    left: 5px;
    border-radius: 16px;
    background: var(--secondary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active::after {
    background: var(--primary);
}


/* ============================================================
   BLOG PAGE STYLES
   ============================================================ */
.blog-page {
    padding-top: 120px;
    min-height: 100vh;
}

.blog-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.blog-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    margin-bottom: 16px;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.blog-hero p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    max-width: 520px;
    margin: 0 auto;
}

/* Blog Filters */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.blog-filter-btn {
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    background: var(--light);
    border: 1px solid #e8e8e8;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

/* Blog Cards */
.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-body {
    padding: 28px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.blog-card-date {
    font-size: 13px;
    color: rgba(var(--dark-rgb), 0.5);
    font-weight: 500;
}

.blog-card-tag {
    display: inline-block;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.tag-conference {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.tag-seminar {
    background: rgba(var(--secondary-rgb), 0.15);
    color: #d4a017;
}

.tag-soutenance {
    background: rgba(0, 212, 170, 0.1);
    color: #009d7e;
}

.tag-workshop {
    background: rgba(255, 107, 107, 0.1);
    color: #e04040;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(var(--dark-rgb), 0.6);
    margin-bottom: 20px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.blog-read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.blog-read-more:hover i {
    transform: translateX(4px);
}


/* ============================================================
   CERTIFICATIONS SECTION
   ============================================================ */
.cert-card {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(var(--primary-rgb), 0.12);
    border-color: rgba(var(--primary-rgb), 0.15);
}

.cert-img-container {
    width: 100%;
    height: 200px;
    background: rgba(var(--primary-rgb), 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.cert-card:hover .cert-img {
    transform: scale(1.1);
}

.cert-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cert-card p {
    font-size: 14px;
    color: rgba(var(--dark-rgb), 0.6);
}