/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    --primary: #1B2A4A;
    --secondary: #FF7A59;
    --accent: #35D0A6;
    --dark: #10131C;
    --light: #F6F7FB;
    --text: #2A2E3A;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --shadow: 0 10px 30px rgba(16, 19, 28, 0.1);
    --transition: all 0.3s ease;
}

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

/* FIX #4 : "scroll-behavior: smooth" sur <html> entre en conflit avec le
   scroll à la molette (le navigateur essaie d'appliquer un easing à CHAQUE
   micro-scroll de la molette, ce qui donne l'impression que le scroll
   "bloque" par moments). Le scroll fluide vers les ancres est déjà géré
   en JS (window.scrollTo({behavior:"smooth"})), donc on retire la règle
   CSS globale. */
html {
    scroll-behavior: auto;
}

body {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.magnetic {
    position: relative;
}

/* ==========================================================================
   Animated Background Elements
   ========================================================================== */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: var(--gradient);
    animation: float 15s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    right: 100px;
    animation-delay: 5s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 80%;
    animation-delay: 10s;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.logo h1 span {
    color: var(--accent);
}

.tagline {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* FIX #2 : le bouton de langue est maintenant un enfant direct de <nav>
   (plus un <li> dans le menu mobile). On aligne nav-list + lang-toggle +
   hamburger sur une même ligne, dans cet ordre visuel. */
.nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link span {
    position: relative;
    padding: 5px 0;
}

.nav-link span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-link:hover span::after,
.nav-link.active span::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    order: 3;
}

.bar {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* ==========================================================================
   Language Switcher - Pill Switch (Floating)
   Exact match to uploaded design:
   White rounded pill capsule, floating top-right below header,
   with active gradient pill for current language.
   ========================================================================== */

.lang-switch-floating {
    position: fixed;
    top: 92px;
    right: max(24px, calc((100vw - 1200px) / 2 + 24px));
    z-index: 995;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.lang-pill-track {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    padding: 4px;
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(27, 42, 74, 0.08);
    gap: 3px;
    transition: all 0.3s ease;
}

.lang-pill-track:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.lang-pill-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 9999px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    cursor: pointer;
    color: var(--primary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.2;
    user-select: none;
    outline: none;
}

.lang-pill-btn:hover:not(.active) {
    color: #64ffda;
    background: rgba(100, 255, 218, 0.08);
}

.lang-pill-btn.active {
    background: linear-gradient(135deg, #64ffda 0%, #00bfa5 100%);
    color: #0a0a0a;
    box-shadow: 0 2px 8px rgba(100, 255, 218, 0.35);
}
@media (max-width: 768px) {
    .lang-switch-floating {
        top: 84px;
        right: 16px;
    }

    .lang-pill-btn {
        padding: 5px 12px;
        font-size: 11px;
    }
}

/* ==========================================================================
   Language Toggle - Legacy / Fallback
   ========================================================================== */

.lang-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 16px;
    background: transparent;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary);
    background: rgba(27, 42, 74, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(27, 42, 74, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    white-space: nowrap;
    order: 2;
    flex-shrink: 0;
}

/* Effet de fond au survol */
.lang-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1px;
    background: var(--gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lang-toggle:hover::before {
    opacity: 1;
}

.lang-toggle:hover {
    background: rgba(27, 42, 74, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(27, 42, 74, 0.12);
    border-color: rgba(27, 42, 74, 0.2);
}

.lang-toggle:active {
    transform: translateY(0px) scale(0.97);
}

/* Indicateur de langue */
.lang-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    position: relative;
}

.lang-active {
    color: var(--accent);
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 13px;
}

.lang-inactive {
    color: var(--text-light);
    opacity: 0.45;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 13px;
}

.lang-slash {
    color: var(--text-light);
    opacity: 0.3;
    font-weight: 300;
}

/* Icône globe */
.lang-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
    transition: all 0.4s ease;
    opacity: 0.7;
}

.lang-toggle:hover .lang-icon {
    color: var(--accent);
    opacity: 1;
    transform: rotate(15deg) scale(1.1);
}

/* Animation de changement de langue */
.lang-toggle.switching .lang-active,
.lang-toggle.switching .lang-inactive {
    animation: langFlip 0.3s ease;
}

@keyframes langFlip {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.85); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

/* Tooltip moderne */
.lang-toggle::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--dark);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
}

.lang-toggle:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ==========================================================================
   Responsive - Header / Nav / Lang toggle
   ========================================================================== */

@media (max-width: 1024px) {
    .lang-toggle {
        padding: 6px 14px 6px 12px;
        font-size: 12px;
    }

    .lang-toggle .lang-icon {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    /* Le toggle de langue reste TOUJOURS visible dans le header,
       même quand le menu hamburger est fermé — plus besoin d'ouvrir
       le menu pour changer de langue. */
    .lang-toggle {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 30px;
    }

    .lang-toggle::after {
        display: none;
    }

    .lang-toggle .lang-active,
    .lang-toggle .lang-inactive {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .lang-toggle {
        padding: 7px 12px;
        border-radius: 10px;
    }

    .lang-toggle .lang-active,
    .lang-toggle .lang-inactive {
        font-size: 11px;
    }

    .lang-toggle .lang-icon {
        font-size: 12px;
    }
}
/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.pre-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 58px;
    margin-bottom: 30px;
    line-height: 1.1;
}

.title-line {
    display: block;
    overflow: hidden;
}

.word {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.profile-pic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pic-frame {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    animation: morphing 10s ease-in-out infinite;
    box-shadow: var(--shadow);
    background: var(--gradient);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.decorative-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.2;
    z-index: -1;
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: -30px;
    right: -30px;
    animation: pulse 4s infinite ease-in-out;
}

.shape-2 {
    width: 100px;
    height: 100px;
    bottom: -20px;
    left: -20px;
    animation: pulse 4s infinite ease-in-out 1s;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    animation: pulse 2s infinite ease-in-out;
}

.inner-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.years {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 14px;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-light);
    border-radius: 12px;
    display: flex;
    justify-content: center;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-light);
    border-radius: 2px;
    margin-top: 8px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(16px); }
}

@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeInUp {
    to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Client / Stack Marquee
   ========================================================================== */
.client-marquee {
    background: var(--primary);
    color: var(--white);
    padding: 20px 0;
    overflow: hidden;
}

.marquee-inner {
    display: flex;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    padding: 0 40px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 20px;
}

.section-title span {
    color: var(--accent);
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient);
    margin: 0 auto;
}

.section-description {
    max-width: 600px;
    margin: 20px auto 0;
    color: var(--text-light);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-intro {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-bio {
    margin-bottom: 40px;
    color: var(--text-light);
}

.about-bio p {
    margin-bottom: 16px;
}

.personal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-card, .awards-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.info-card h3, .awards-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.info-card ul li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

.info-card ul li:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--text);
}

.info-value {
    color: var(--text-light);
    text-align: right;
}

.awards-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.awards-card ul li:before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
}

.awards-card ul li:last-child {
    border-bottom: none;
}

.about-image {
    position: relative;
}

.image-container {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.quote-box {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 300px;
}

.quote-box p {
    font-style: italic;
    margin-bottom: 10px;
    color: var(--primary);
}

.quote-author {
    font-size: 14px;
    color: var(--text-light);
}

/* ==========================================================================
   Method Section
   ========================================================================== */
.method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.method-step {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: left;
    position: relative;
}

.method-step .step-index {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 14px;
    display: block;
}

.method-step h3 {
    font-size: 19px;
    color: var(--primary);
    margin-bottom: 10px;
}

.method-step p {
    color: var(--text-light);
    font-size: 14px;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.skill-category {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.skill-header i {
    font-size: 24px;
    color: var(--accent);
}

.skill-header h3 {
    font-size: 20px;
    margin-bottom: 0;
    color: var(--primary);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.meter {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.skill-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-dots {
    display: flex;
    gap: 5px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
}

.dot.active {
    background: var(--accent);
}

.language-item {
    margin-bottom: 20px;
}

.language-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.language-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

.additional-skills {
    margin-top: 30px;
}

.additional-skills h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--gradient);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 42, 74, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.overlay-content h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 20px;
}

.overlay-content p {
    margin-bottom: 20px;
    font-size: 14px;
}

.view-btn {
    padding: 8px 20px;
    border: 1px solid var(--white);
    border-radius: 30px;
    color: var(--white);
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
}

.view-btn:hover {
    background: var(--white);
    color: var(--primary);
}

.project-info {
    padding: 20px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
}

.project-category {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-year {
    color: var(--text-light);
}

.project-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-light);
}

.portfolio-cta {
    text-align: center;
}

.portfolio-cta p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* ==========================================================================
   Featured / Build in Public Section
   ========================================================================== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.featured-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border-top: 3px solid var(--accent);
}

.featured-card:hover {
    transform: translateY(-8px);
}

.featured-meta {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 14px;
    text-transform: uppercase;
}

.featured-card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 14px;
}

.featured-excerpt {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-post {
    align-self: flex-start;
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-post:hover {
    color: var(--accent);
}

/* ==========================================================================
   Post Modal
   FIX #3 : le JS bascule la classe "open" (voir script.js). On garde ici
   .open ET .active pour rester compatible avec les deux si jamais du code
   externe s'y accroche encore.
   ========================================================================== */
.post-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.post-modal.open,
.post-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 19, 28, 0.7);
}

.modal-box {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: var(--shadow);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #f0f0f0;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: var(--text);
}

#modalMeta {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--accent);
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

#modalTitle {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
}

#modalContent p {
    margin-bottom: 14px;
    color: var(--text-light);
}

body.modal-open {
    overflow: hidden;
}

/* ==========================================================================
   BUSINESS CARDS - CONTACT SECTION (AVEC IMAGES DE FOND)
   ========================================================================== */

.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.business-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.business-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

/* ========== HEADER AVEC IMAGE DE FOND ========== */
.business-card .card-header {
    position: relative;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.business-card .card-header .header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.business-card .card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 0;
}

.business-card:hover .card-header::before {
    transform: scale(1.08);
}

.business-card .card-header .header-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 25px 20px;
    z-index: 2;
}

.business-card .card-header .header-content h3 {
    color: white;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.business-card .card-header .header-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 5px 0 0;
    font-size: 13px;
    font-weight: 400;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

/* ========== CORPS DE LA CARTE ========== */
.business-card .card-body {
    padding: 22px 25px 25px;
    background: var(--white);
}

.business-card .card-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.business-card .card-profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    background: var(--white);
    transition: transform 0.3s ease;
}

.business-card:hover .card-profile img {
    transform: scale(1.05);
}

.business-card .card-profile .name {
    margin: 0;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

.business-card .card-profile .location {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--text-light);
}

/* ========== LIENS ========== */
.business-card .card-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.business-card .card-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.business-card .card-links a:hover {
    background: rgba(27, 42, 74, 0.05);
    color: var(--primary);
    padding-left: 14px;
}

.business-card .card-links a i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

/* ========== BOUTON TÉLÉCHARGEMENT ========== */
.business-card .btn-download {
    width: 100%;
    padding: 13px 20px;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.business-card .btn-download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.business-card .btn-download:hover::before {
    opacity: 1;
}

.business-card .btn-download:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.business-card .btn-download:active {
    transform: scale(0.97);
}

.business-card .btn-download i {
    font-size: 18px;
}

/* Bouton FolloVida */
.business-card .btn-download-follovida {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.business-card .btn-download-follovida:hover {
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.35);
}

/* Bouton BlankDigi */
.business-card .btn-download-blankdigi {
    background: var(--gradient);
}

.business-card .btn-download-blankdigi:hover {
    box-shadow: 0 8px 30px rgba(53, 208, 166, 0.35);
}

/* ==========================================================================
   RESPONSIVE BUSINESS CARDS
   ========================================================================== */

@media (max-width: 1024px) {
    .contact-cards-grid {
        gap: 30px;
    }

    .business-card .card-header {
        height: 140px;
    }
}

@media (max-width: 768px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .business-card .card-header {
        height: 150px;
    }

    .business-card .card-header .header-content h3 {
        font-size: 22px;
    }

    .business-card .card-body {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .business-card .card-header {
        height: 130px;
    }

    .business-card .card-header .header-content {
        padding: 20px 20px 15px;
    }

    .business-card .card-header .header-content h3 {
        font-size: 20px;
    }

    .business-card .card-body {
        padding: 16px;
    }

    .business-card .card-profile img {
        width: 50px;
        height: 50px;
    }

    .business-card .card-profile .name {
        font-size: 16px;
    }

    .business-card .card-links a {
        font-size: 13px;
        padding: 5px 8px;
    }

    .business-card .btn-download {
        font-size: 14px;
        padding: 11px 16px;
    }
}
/* ==========================================================================
   CHATBOT IA AVANCÉ - Styles Complets
   ========================================================================== */

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 9999;
}

.chatbot-toggle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(27, 42, 74, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float-bounce 3s ease-in-out infinite;
}

@keyframes float-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.chatbot-toggle:hover {
    transform: scale(1.12) translateY(-5px);
    box-shadow: 0 12px 40px rgba(27, 42, 74, 0.45);
    animation-play-state: paused;
}

.chatbot-toggle:active {
    transform: scale(0.95);
}

.chatbot-toggle .chat-icon {
    font-size: 28px;
    transition: all 0.3s ease;
}

.chatbot-toggle:hover .chat-icon {
    transform: rotate(-15deg) scale(1.1);
}

.chatbot-toggle .chat-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    color: #22c55e;
    font-size: 18px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.chatbot-toggle .chat-tooltip {
    position: absolute;
    right: calc(100% + 16px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
}

.chatbot-toggle .chat-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--dark);
}

.chatbot-toggle:hover .chat-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 420px;
    max-width: calc(100vw - 40px);
    height: 580px;
    max-height: 75vh;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpChat 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(27, 42, 74, 0.06);
}

.chatbot-window.open {
    display: flex;
}

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

.chat-header {
    padding: 18px 22px;
    background: var(--gradient);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    position: relative;
}

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

.online-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.chat-header-text h4 {
    margin: 0;
    font-size: 16px;
    color: white;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.chat-header-text p {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 6px;
}

.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

.separator {
    opacity: 0.4;
}

#chatTime {
    font-weight: 300;
}

.chat-header-actions {
    display: flex;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.chat-header-actions button {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-header-actions button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.chat-messages {
    flex: 1;
    padding: 18px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #f8f9fc;
    overscroll-behavior: contain;
}

.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: messageIn 0.5s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message.user {
    flex-direction: row-reverse;
}

.message.welcome .message-bubble {
    background: white;
    border: 1px solid #e8ecf0;
}

.message-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e8ecf0;
}

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

.message-content {
    max-width: 82%;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.7;
    word-wrap: break-word;
}

.message.bot .message-bubble {
    background: white;
    color: var(--text);
    border-top-left-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.message.user .message-bubble {
    background: var(--gradient);
    color: white;
    border-top-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: var(--text-light);
    opacity: 0.6;
    margin-top: 4px;
    display: block;
}

.message.user .message-time {
    text-align: right;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.quick-action-btn {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #e0e3e8;
    background: white;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
}

.quick-action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 42, 74, 0.15);
}

.quick-action-btn i {
    font-size: 14px;
}

.welcome-text h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--primary);
}

.welcome-text p {
    margin: 4px 0;
    color: var(--text-light);
}

.welcome-text strong {
    color: var(--primary);
}

.chat-suggestions-bar {
    padding: 10px 16px 14px;
    background: #f8f9fc;
    border-top: 1px solid #eef0f4;
    flex-shrink: 0;
    max-height: 200px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.chat-suggestions-bar::-webkit-scrollbar {
    width: 3px;
}

.chat-suggestions-bar::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

.suggestions-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestions-title i {
    color: var(--accent);
}

.suggestions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.suggestion-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #e0e3e8;
    background: white;
    color: var(--text);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
}

.suggestion-btn i {
    font-size: 12px;
    color: var(--accent);
}

.suggestion-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 42, 74, 0.12);
}

.suggestion-btn:hover i {
    color: white;
}

.chat-input-area {
    padding: 12px 16px 16px;
    background: white;
    border-top: 1px solid #eef0f4;
    flex-shrink: 0;
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-emoji-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e3e8;
    background: white;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chat-emoji-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.chat-input-wrapper input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e0e3e8;
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fc;
}

.chat-input-wrapper input:focus {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(53, 208, 166, 0.1);
}

.chat-input-wrapper input::placeholder {
    color: #a0a8b4;
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(27, 42, 74, 0.3);
}

.chat-send-btn:active {
    transform: scale(0.92);
}

.chat-send-btn i {
    font-size: 18px;
}

.chat-typing {
    display: none;
    padding: 6px 0 0 4px;
    gap: 4px;
    align-items: center;
}

.chat-typing.active {
    display: flex;
}

.chat-typing span:not(.typing-text) {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

.typing-text {
    color: var(--text-light);
    font-size: 12px;
    margin-left: 6px;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-6px); opacity: 1; }
}

@media (max-width: 768px) {
    .chatbot-container {
        bottom: 80px;
        right: 16px;
    }

    .chatbot-toggle {
        width: 56px;
        height: 56px;
    }

    .chatbot-toggle .chat-icon {
        font-size: 24px;
    }

    .chatbot-toggle .chat-tooltip {
        display: none;
    }

    .chatbot-window {
        width: calc(100vw - 32px);
        height: 65vh;
        bottom: 72px;
        right: 0;
        border-radius: 18px;
    }

    .chat-header {
        padding: 14px 16px;
    }

    .chat-avatar {
        width: 38px;
        height: 38px;
    }

    .chat-messages {
        padding: 14px 16px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .chat-suggestions-bar {
        padding: 8px 12px 12px;
        max-height: 150px;
    }

    .suggestions-grid {
        gap: 5px;
    }

    .suggestion-btn {
        font-size: 11px;
        padding: 5px 12px;
    }

    .chat-input-area {
        padding: 10px 12px 14px;
    }

    .chat-input-wrapper input {
        font-size: 13px;
        padding: 8px 14px;
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        height: 70vh;
        border-radius: 14px;
    }

    .message-bubble {
        font-size: 13px;
        padding: 10px 14px;
    }

    .quick-action-btn {
        font-size: 12px;
        padding: 8px 12px;
    }

    .welcome-text h3 {
        font-size: 16px;
    }
}

@media (prefers-color-scheme: dark) {
    .chatbot-window {
        background: #1a1a2e;
        border-color: rgba(255,255,255,0.05);
    }

    .chat-messages {
        background: #16162a;
    }

    .message.bot .message-bubble {
        background: #24244a;
        color: #e8e8f0;
    }

    .chat-suggestions-bar {
        background: #16162a;
        border-color: rgba(255,255,255,0.05);
    }

    .suggestion-btn {
        background: #24244a;
        border-color: rgba(255,255,255,0.08);
        color: #e8e8f0;
    }

    .suggestion-btn:hover {
        background: var(--primary);
        color: white;
    }

    .chat-input-area {
        background: #1a1a2e;
        border-color: rgba(255,255,255,0.05);
    }

    .chat-input-wrapper input {
        background: #24244a;
        border-color: rgba(255,255,255,0.08);
        color: #e8e8f0;
    }

    .chat-input-wrapper input:focus {
        border-color: var(--accent);
        background: #2a2a50;
    }

    .chat-emoji-btn {
        background: #24244a;
        border-color: rgba(255,255,255,0.08);
        color: #a0a8b4;
    }

    .chat-emoji-btn:hover {
        background: var(--primary);
        color: white;
    }

    .welcome-text h3 {
        color: #e8e8f0;
    }

    .welcome-text p {
        color: #a0a8b4;
    }

    .message.welcome .message-bubble {
        background: #24244a;
        border-color: rgba(255,255,255,0.05);
    }

    .quick-action-btn {
        background: #1a1a2e;
        border-color: rgba(255,255,255,0.08);
        color: #e8e8f0;
    }

    .quick-action-btn:hover {
        background: var(--primary);
        color: white;
    }
}
/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h2 {
    color: var(--white);
    margin-bottom: 5px;
}

.footer-col h2 span {
    color: var(--accent);
}

.footer-text {
    margin: 15px 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--accent);
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title { font-size: 46px; }
    .skills-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .method-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-subtitle { max-width: 100%; }
    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .personal-info { grid-template-columns: 1fr; gap: 20px; }
    .skills-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .method-grid { grid-template-columns: 1fr; }
    .contact-cards-grid { grid-template-columns: 1fr; gap: 30px; }

    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-list.active { left: 0; }

    .hamburger { display: flex; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 34px; }
    .section-title { font-size: 30px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .pic-frame { width: 280px; height: 280px; }
    .portfolio-filter { flex-wrap: wrap; }
    .modal-box { padding: 25px; }
    .business-card .card-header { height: 110px; }
    .business-card .card-header .header-content h3 { font-size: 18px; }
    .business-card .card-profile img { width: 50px; height: 50px; }
}

.hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }