/* Global Reset & Body */
body {
    background-color: #050505;
    color: #ffffff;
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(123, 69, 189, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.glass-card:hover {
    border-color: #7B45BD;
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(123, 69, 189, 0.3);
}

/* 3D Flip Card */
.flip-card {
    perspective: 1000px;
    height: 480px; /* Légèrement augmenté pour le bouton */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.flip-card-back {
    background: linear-gradient(135deg, #1a0b2e 0%, #000000 100%);
    border: 1px solid #7B45BD;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #7B45BD;
    border-radius: 4px;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(to right, #ffffff, #7B45BD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Canvas */
#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

/* Timeline */
.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #7B45BD, transparent);
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
}

/* Reveal on Scroll Animation Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Carousel Styles */
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-dot.active {
    background-color: #7B45BD;
    transform: scale(1.2);
}

/* Modal Styles */
.email-tab.active-tab {
    color: #7B45BD;
    border-bottom-color: #7B45BD;
    background: rgba(255, 255, 255, 0.03);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-zoomIn {
    animation: zoomIn 0.3s ease-out forwards;
}

/* Email Content Styles */
.email-body {
    white-space: pre-wrap; /* Preserve line breaks */
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}
.email-subject {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 1rem;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}