/* Global Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Nunito', sans-serif;
}

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Print Styles */
@media print {

    .navbar,
    .breadcrumb,
    .btn-group,
    .d-print-none,
    footer,
    .col-lg-4 {
        display: none !important;
    }

    .col-lg-8 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Notification Badge Pulse */
.unread-badge {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Duolingo Theme */
:root {
    --duo-green: #58cc02;
    --duo-green-shadow: #46a302;
    --duo-blue: #1cb0f6;
    --duo-blue-shadow: #1899d6;
    --duo-dark-bg: #0a1012;
    --duo-dark-card: #141e24;
    --duo-dark-border: #23313a;
    --duo-white: #ffffff;
    --duo-gray: #bed0d8;
    --duo-red: #ff4b4b;
    --duo-red-shadow: #d33131;
    --duo-yellow: #ffc800;
    --duo-yellow-shadow: #e5a400;
}

.duo-dark-body {
    background-color: var(--duo-dark-bg);
    color: var(--duo-white);
    font-family: 'Nunito', sans-serif;
    padding-top: 80px;
}

/* Global Placeholder Styling */
::placeholder {
    color: rgba(190, 208, 216, 0.45) !important;
    opacity: 1;
    /* Firefox */
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: rgba(190, 208, 216, 0.45) !important;
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: rgba(190, 208, 216, 0.45) !important;
}

.btn-duo {
    border: none;
    border-radius: 16px;
    padding: 12px 24px;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    top: -4px;
    letter-spacing: 0.8px;
    font-size: 0.9rem;
}

.btn-duo-green {
    background-color: var(--duo-green);
    color: white;
    box-shadow: 0 4px 0 var(--duo-green-shadow);
}

.btn-duo-green:hover {
    background-color: #61e002;
    top: -6px;
    box-shadow: 0 6px 0 var(--duo-green-shadow);
}

.btn-duo-green:active {
    top: 0px;
    box-shadow: 0 0 0 var(--duo-green-shadow);
}

.btn-duo-blue {
    background-color: var(--duo-blue);
    color: white;
    box-shadow: 0 4px 0 var(--duo-blue-shadow);
}

.btn-duo-blue:hover {
    background-color: #40c0f8;
    top: -6px;
    box-shadow: 0 6px 0 var(--duo-blue-shadow);
}

.btn-duo-blue:active {
    top: 0px;
    box-shadow: 0 0 0 var(--duo-blue-shadow);
}

.btn-duo-profile {
    background-color: var(--duo-dark-card);
    color: var(--duo-white);
    border: 2px solid var(--duo-dark-border);
    box-shadow: 0 4px 0 var(--duo-dark-border);
}

.btn-duo-profile:hover {
    background-color: #2a3b43;
    top: -6px;
    box-shadow: 0 6px 0 var(--duo-dark-border);
    color: var(--duo-blue);
}

.btn-duo-profile:active {
    top: 0px;
    box-shadow: 0 0 0 var(--duo-dark-border);
}

.duo-dropdown-item {
    transition: all 0.2s ease;
    border-radius: 12px !important;
    margin: 2px 0;
}

.duo-dropdown-item:hover {
    background-color: rgba(28, 176, 246, 0.1) !important;
    color: var(--duo-blue) !important;
    transform: translateX(5px);
}

.duo-dropdown-item-logout:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #ff4b4b !important;
}

.duo-card {
    background-color: var(--duo-dark-card);
    border: 2px solid var(--duo-dark-border);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 0 var(--duo-dark-border);
}

.duo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 0 var(--duo-dark-border);
}

/* Custom Premium Alerts */
.alert.duo-alert {
    border: none;
    border-radius: 20px;
    padding: 1rem 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    position: relative;
    top: -2px;
    transition: all 0.2s ease;
    animation: alert-slide-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.alert.duo-alert:hover {
    top: -4px;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
}

@keyframes alert-slide-in {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

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

.alert-success.duo-alert {
    background-color: var(--duo-green);
    color: white;
    box-shadow: 0 4px 0 var(--duo-green-shadow);
}

.alert-danger.duo-alert {
    background-color: var(--duo-red);
    color: white;
    box-shadow: 0 4px 0 var(--duo-red-shadow);
}

.alert-info.duo-alert {
    background-color: var(--duo-blue);
    color: white;
    box-shadow: 0 4px 0 var(--duo-blue-shadow);
}

.alert-warning.duo-alert {
    background-color: var(--duo-yellow);
    color: #4b4b4b;
    box-shadow: 0 4px 0 var(--duo-yellow-shadow);
}

.duo-alert .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    background-size: 0.8rem;
    margin-left: auto;
}

.alert-warning.duo-alert .btn-close {
    filter: none;
}

.fw-900 {
    font-weight: 900 !important;
}

.fw-800 {
    font-weight: 800 !important;
}

.fw-700 {
    font-weight: 700 !important;
}

.duo-title {
    color: var(--duo-green);
    font-weight: 900;
    letter-spacing: -1px;
}

.duo-text-muted {
    color: var(--duo-gray);
}

/* Nouvel effet de flottement */
@keyframes duo-float {
    0% {
        transform: translateY(0px) rotate(-15deg);
    }

    50% {
        transform: translateY(-10px) rotate(-15deg);
    }

    100% {
        transform: translateY(0px) rotate(-15deg);
    }
}

.duo-floating {
    animation: duo-float 3s ease-in-out infinite;
}

/* Effet de lueur pulsante pour les badges importants */
@keyframes duo-glow {
    0% {
        box-shadow: 0 0 5px rgba(88, 204, 2, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(88, 204, 2, 0.6);
    }

    100% {
        box-shadow: 0 0 5px rgba(88, 204, 2, 0.2);
    }
}

.duo-glow-green {
    animation: duo-glow 2s infinite;
}

/* Round Table Networking Design - ULTIMATE STYLE */
.round-table-container {
    perspective: 2000px;
    margin-bottom: 120px;
    position: relative;
}

.round-table-stage {
    position: absolute;
    width: 100%;
    height: 100px;
    bottom: -30px;
    background: radial-gradient(ellipse at center, rgba(88, 204, 2, 0.15) 0%, transparent 70%);
    transform: rotateX(70deg);
    z-index: 0;
}

.round-table {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    background-image: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 80%);
    border: 8px solid var(--duo-dark-border);
    border-radius: 50%;
    position: relative;
    margin: 60px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 20px 0 #1a252f,
        0 30px 60px rgba(0, 0, 0, 0.8),
        inset 0 0 40px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

.round-table::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.03) 0deg 30deg, transparent 30deg 60deg);
    pointer-events: none;
}

.round-table:hover {
    transform: rotateX(15deg) translateY(-10px);
    box-shadow:
        0 30px 0 #1a252f,
        0 50px 80px rgba(0, 0, 0, 0.9),
        inset 0 0 50px rgba(88, 204, 2, 0.2);
}

.round-table-center {
    text-align: center;
    padding: 20px;
    z-index: 10;
    transform: translateZ(20px);
}

.member-orbit {
    position: absolute;
    width: 130%;
    height: 130%;
    top: -15%;
    left: -15%;
    pointer-events: none;
    animation: duo-rotate-orbit 60s linear infinite;
}

@keyframes duo-rotate-orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.member-node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--duo-blue);
    border: 4px solid var(--duo-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    box-shadow: 0 6px 0 var(--duo-blue-shadow);
    transform: translate(-50%, -50%);
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;

    /* Counter-rotation to keep names upright */
    animation: duo-counter-rotate 60s linear infinite;
}

@keyframes duo-counter-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

.member-node:hover {
    transform: translate(-50%, -50%) scale(1.3);
    background-color: var(--duo-green);
    box-shadow: 0 8px 0 var(--duo-green-shadow);
    z-index: 100;
}

.member-node.plus-node {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    box-shadow: none;
    color: var(--duo-gray);
    backdrop-filter: blur(5px);
}

.member-node.plus-node:hover {
    background: rgba(88, 204, 2, 0.2);
    border-color: var(--duo-green);
    color: var(--duo-green);
}

.table-info-block {
    background-color: rgba(10, 16, 18, 0.9);
    backdrop-filter: blur(25px);
    border-radius: 40px;
    border: 2px solid var(--duo-dark-border);
    padding: 60px;
    padding-top: 140px;
    margin-top: -120px;
    box-shadow:
        0 20px 0 var(--duo-dark-border),
        0 40px 80px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.table-info-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.table-highlight-badge {
    position: absolute;
    top: 40px;
    right: 40px;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.hero-mascot-bg {
    background: radial-gradient(circle, rgba(88, 204, 2, 0.2) 0%, transparent 70%);
}

/* Hero Table Graphic (Realistic) */
.hero-table-container {
    perspective: 1200px;
    width: 320px;
    height: 380px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-floor-shadow {
    position: absolute;
    bottom: 10%;
    width: 240px;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    transform: rotateX(60deg);
}

.hero-table-surface {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, #1e272e 0%, #000 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    position: relative;
    transform: rotateX(45deg);
    box-shadow:
        0 12px 0 #000,
        0 25px 50px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: table-float 4s infinite ease-in-out;
}

.hero-table-leg {
    position: absolute;
    width: 35px;
    height: 100px;
    background: linear-gradient(to bottom, #111, #000);
    top: 50%;
    left: 50%;
    transform: translate(-50%, 15px);
    z-index: 5;
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Hero People (Avatars) */
.hero-person {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    z-index: 12;
    border: 4px solid var(--duo-white);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3), 0 15px 30px rgba(0, 0, 0, 0.4);
    font-size: 1.8rem;
}

.person-1 {
    background: var(--duo-green);
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    animation: person-float-1 3.2s infinite ease-in-out;
}

.person-2 {
    background: var(--duo-blue);
    bottom: -15%;
    left: 50%;
    transform: translateX(-50%);
    animation: person-float-2 3.5s infinite ease-in-out;
}

.person-3 {
    background: #ff4b4b;
    left: -15%;
    top: 50%;
    transform: translateY(-50%);
    animation: person-float-3 3.8s infinite ease-in-out;
}

.person-4 {
    background: #ffc800;
    right: -15%;
    top: 50%;
    transform: translateY(-50%);
    animation: person-float-4 4.1s infinite ease-in-out;
}

/* Conversation Bubbles */
.speech-bubble {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: white;
    color: #111;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--duo-dark-border);
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    animation: bubble-cycle 18s infinite;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(2px);
    border-width: 9px;
    border-style: solid;
    border-color: var(--duo-dark-border) transparent transparent transparent;
    z-index: -1;
}

@keyframes bubble-cycle {

    0%,
    14% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }

    16%,
    100% {
        transform: translateX(-50%) scale(0);
        opacity: 0;
    }
}

/* Person 4: Rachid (Founder) */
.person-4 .bubble-1 {
    animation-delay: 0s;
}

.person-4 .bubble-2 {
    animation-delay: 3s;
}

/* Person 1: JD */
.person-1 .bubble-1 {
    animation-delay: 6s;
}

.person-1 .bubble-2 {
    animation-delay: 12s;
}

/* Person 2: AM */
.person-2 .bubble-1 {
    animation-delay: 9s;
}

/* Person 3: SK */
.person-3 .bubble-1 {
    animation-delay: 15s;
}

@keyframes person-float-1 {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -20px);
    }
}

@keyframes person-float-2 {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 20px);
    }
}

@keyframes person-float-3 {

    0%,
    100% {
        transform: translate(0, -50%);
    }

    50% {
        transform: translate(-20px, -50%);
    }
}

@keyframes person-float-4 {

    0%,
    100% {
        transform: translate(0, -50%);
    }

    50% {
        transform: translate(20px, -50%);
    }
}

@keyframes table-float {

    0%,
    100% {
        transform: rotateX(45deg) translateY(0);
    }

    50% {
        transform: rotateX(45deg) translateY(-15px);
    }
}

/* Mobile Optimizations for Hero & Tables */
@media (max-width: 768px) {
    .hero-table-container {
        transform: scale(0.85);
        margin-top: -30px;
        margin-bottom: 20px;
    }

    .display-3 {
        font-size: 2.8rem;
    }

    .speech-bubble {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .round-table {
        transform: scale(0.7) rotateX(15deg);
        margin-top: -50px;
        margin-bottom: -30px;
    }

    .round-table:hover {
        transform: scale(0.75) rotateX(15deg) translateY(-10px);
    }

    .member-orbit {
        width: 140%;
        height: 140%;
        top: -20%;
        left: -20%;
    }

    .member-node {
        width: 45px;
        height: 45px;
        font-size: 0.8rem;
    }

    .table-info-block {
        padding: 40px 20px;
        padding-top: 80px;
        margin-top: -80px;
        border-radius: 30px;
    }

    .table-highlight-badge {
        position: static;
        display: inline-block;
        margin-bottom: 20px;
    }

    .display-5 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-table-container {
        transform: scale(0.7);
    }

    .display-3 {
        font-size: 2.2rem;
    }
}

@keyframes chair-float-4 {

    0%,
    100% {
        transform: translate(0, -50%) rotateY(-5deg);
    }

    50% {
        transform: translate(15px, -50%) rotateY(-5deg);
    }
}

/* Mobile Responsiveness for Round Tables */
@media (max-width: 768px) {
    .round-table {
        width: 240px;
        height: 240px;
        margin: 40px auto;
    }

    .member-orbit {
        width: 140%;
        height: 140%;
        top: -20%;
        left: -20%;
    }

    .member-node {
        width: 45px;
        height: 45px;
        font-size: 0.8rem;
        border-width: 3px;
    }

    .table-info-block {
        padding: 30px;
        padding-top: 100px;
        border-radius: 25px;
    }

    .duo-title {
        font-size: 1.8rem;
    }

    .table-highlight-badge {
        display: none;
    }
}

@media (max-width: 480px) {
    .round-table {
        width: 180px;
        height: 180px;
    }

    .member-node {
        width: 35px;
        height: 35px;
        font-size: 0.7rem;
    }

    .table-info-block {
        padding: 20px;
        padding-top: 80px;
    }
}

.table-separator {
    height: 2px;
    width: 100%;
    max-width: 800px;
    background: repeating-linear-gradient(to right, var(--duo-dark-border) 0, var(--duo-dark-border) 10px, transparent 10px, transparent 20px);
    margin: 80px auto;
    position: relative;
    opacity: 0.5;
    border: none;
}

.table-separator::after {
    content: '•••';
    color: var(--duo-dark-border);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--duo-dark-bg);
    padding: 0 20px;
    font-size: 1.2rem;
}

.member-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 2px solid var(--duo-dark-border);
    border-radius: 18px;
    padding: 12px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.member-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    border-color: var(--duo-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.member-card.founder-card:hover {
    background-color: rgba(88, 204, 2, 0.15);
    border-color: var(--duo-green);
    box-shadow: 0 4px 15px rgba(88, 204, 2, 0.2);
}

/* WhatsApp Navbar Button Animation */
.whatsapp-navbar-link {
    transition: all 0.3s ease;
    animation: whatsapp-subtle-shake 4s infinite;
}

.whatsapp-navbar-link i {
    filter: drop-shadow(0 0 2px rgba(37, 211, 102, 0.2));
}

.whatsapp-navbar-link:hover {
    transform: scale(1.25);
    filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.6));
}

@keyframes whatsapp-subtle-shake {

    0%,
    90%,
    100% {
        transform: rotate(0);
    }

    92% {
        transform: rotate(-15deg);
    }

    94% {
        transform: rotate(15deg);
    }

    96% {
        transform: rotate(-10deg);
    }

    98% {
        transform: rotate(10deg);
    }
}