/* Importation des polices */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: #ffffff;
}

.loading-logo {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6, #a855f7, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    animation: pulseGlow 2s infinite;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.loading-progress {
    font-size: 0.9rem;
    opacity: 0.6;
    font-family: 'Courier New', monospace;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8));
    }
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    user-select: none; /* Prevent text selection on background clicks */
}

/* Allow text selection only for content areas */
.hero-content,
.about-content,
.project-description,
.contact-form,
p, h1, h2, h3, h4, h5, h6,
.terminal-output,
.nav-menu {
    user-select: text;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a855f7, #c084fc);
}

/* Curseur personnalisé */
.cursor {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 2px solid #8b5cf6;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.cursor-dot {
    position: fixed;    
    width: 10px;
    height: 10px;
    background: #f5f5f5;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    box-shadow: 0 0 10px rgba(240, 240, 241, 0.5);
}

.cursor.hover {
    transform: scale(1.5);
    background: rgba(139, 92, 246, 0.1);
    border-color: #fdfcfd;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader p {
    color: #8b5cf6;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 3D Background Container */
#three-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

/* 3D Background Canvas Styles */
canvas {
    cursor: crosshair !important;
    user-select: none;
}

/* Ensure background areas are clickable */
.hero,
.about,
projects,
.contact {
    position: relative;
}

.hero::before,
.about::before,
.projects::before,
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: auto;
}

/* CSS Fallback Background */
body.css-fallback-bg {
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    animation: galaxyPulse 8s ease-in-out infinite alternate;
}

@keyframes galaxyPulse {
    0% {
        background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    }
    50% {
        background-size: 120% 120%, 120% 120%, 120% 120%, 100% 100%;
    }
    100% {
        background-size: 110% 110%, 110% 110%, 110% 110%, 100% 100%;
    }
}

/* Animated stars for CSS fallback */
body.css-fallback-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(139, 92, 246, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(168, 85, 247, 0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ffffff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: starMovement 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes starMovement {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100px);
    }
}

/* Background overlay for better text readability */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 10, 15, 0.3) 0%, 
        rgba(139, 92, 246, 0.05) 50%, 
        rgba(10, 10, 15, 0.3) 100%);
    z-index: -1;
    pointer-events: none;
}



.video-btn {
    width: 45px;
    height: 45px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    color: #8b5cf6;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.video-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    transform: scale(1.1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 15, 0.95);
    border-bottom-color: rgba(139, 92, 246, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 3D Logo positioned in the center of the navbar */
.logo-3d-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120px; /* Increased from 80px to 120px */
    height: 120px; /* Increased from 80px to 120px */
    border-radius: 50%; /* Keep circular shape */
    overflow: hidden; /* Hide parts outside the circle */
    background: rgba(139, 92, 246, 0.05); /* Reduced opacity for subtle background */
    border: 2px solid rgba(139, 92, 246, 0.2); /* Thinner border */
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    z-index: 10;
}

.logo-3d-container:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    transform: translate(-50%, -50%) scale(1.05); /* Maintain centering while scaling */
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
}

.logo-3d-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #8b5cf6, #a855f7, #c084fc, #8b5cf6);
    border-radius: 50%; /* Keep circular for the glow effect */
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: logoGlow 3s linear infinite;
}

.logo-3d-container:hover::before {
    opacity: 0.4;
}

#logo-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    cursor: none;
}

.logo-text {
    font-size: 2.5rem;
    color: #8b5cf6;
    text-shadow: 0 0 5px #8F00FF, 0 0 10px #8F00FF, 0 0 20px #8F00FF, 0 0 40px #8F00FF, 0 0 80px #8F00FF;
    animation: glow 1.5s infinite alternate;
    font-weight: 700;
}

@keyframes logoGlow {
    0%, 100% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.neon-text {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 0 5px #8F00FF 0 0 10px #8F00FF, 0 0 20px  #8F00FF, 0 0 40px  #8F00FF, 0 0 80px  #8F00FF;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px #8F00FF, 0 0 10px #8F00FF, 0 0 20px #8F00FF, 0 0 40px #8F00FF, 0 0 80px #8F00FF;
    }
    100% {
        text-shadow: 0 0 10px #1c1e8d, 0 0 20px #1c1e8d, 0 0 40px #1c1e8d, 0 0 80px #1c1e8d, 0 0 160px #1c1e8d;
    }
}
.logo-dot {
    width: 8px;
    height: 8px;
    background: #8b5cf6;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    cursor: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: none;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #8b5cf6;
    transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 50px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.hero-content {
    max-width: 700px;
    margin-bottom: 100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    margin-bottom: 30px;
}

.title-line {
    display: block;
    font-size: 24px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.title-name {
  transition: all 0.5s;
  -webkit-text-stroke: 4px #d6f4f4;
  font-variation-settings: "wght" 900, "ital" 1;
  font-size: 4rem;
  text-align: center;
  color: transparent;
  font-family: "Meta", sans-serif;
  text-shadow: 10px 10px 0px #07bccc,
    15px 15px 0px #e601c0,
    20px 20px 0px #e9019a,
    25px 25px 0px #f40468,
    45px 45px 10px #482896;
  cursor: pointer;
}
.title-name:hover {
  font-variation-settings: "wght" 100, "ital" 0;
  text-shadow: none;
}

.title-role {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    animation: fadeInUp 0.6s ease 0.8s both;
}

.hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 1s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 1.2s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 0.6s ease 1.4s both;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.6);
    cursor: none;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #8b5cf6, transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0%, 20% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

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

/* Section About */
.about {
    padding: 120px 0;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.about-card:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
}

.about-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #8b5cf6;
}

.about-card p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #8b5cf6;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skill-category {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.skill-category h4 {
    font-size: 20px;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 25px;
    text-align: center;
}

.skills {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.skill-info span:first-child {
    color: #ffffff;
}

.skill-info span:last-child {
    color: #8b5cf6;
}

.skill-bar {
    height: 6px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-radius: 3px;
    width: 0%;
    transition: width 1.5s ease;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Projects Section */
.projects {
    padding: 120px 0;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: none;
    backdrop-filter: blur(10px);
}

.project-card.featured {
    grid-column: span 2;
}

.project-card:hover {
    transform: translateY(-10px);
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-card.featured .project-image {
    height: 300px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    width: 50px;
    height: 50px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-link:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
    transform: scale(1.1);
}

.project-content {
    padding: 30px;
}

.project-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.project-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.project-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    font-size: 12px;
    color: #8b5cf6;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: #ffffff;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* Contact Form */
.contact-form {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.form-group label {
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 15px;
    font-size: 12px;
    color: #8b5cf6;
    background: #0a0a0f;
    padding: 0 10px;
}

/* Footer */
.footer {
    background: rgba(139, 92, 246, 0.05);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    padding: 60px 0 30px;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h4,
.footer-section h4 {
    color: #8b5cf6;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: none;
}

.footer-section ul li a:hover {
    color: #8b5cf6;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: none;
}

.social-link:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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



.logo-text1 {
    font-size: 4rem;
    color: #8b5cf6;
    text-shadow: 0 0 5px #8F00FF, 0 0 10px #8F00FF, 0 0 20px #8F00FF, 0 0 40px #8F00FF, 0 0 80px #8F00FF;
    animation: glow1 1.5s infinite alternate;
}
/* Terminal Cyber */
.cyber-terminal {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 400px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #631572;
    border-radius: 8px;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.5),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    backdrop-filter: blur(10px);
    font-family: 'Courier New', monospace;
    opacity: 0.9;
    animation: terminalGlow 2s ease-in-out infinite alternate;
}

@keyframes terminalGlow {
    0% { box-shadow: 0 0 20px rgba(235, 7, 216, 0.5), inset 0 0 20px rgba(133, 15, 97, 0.1); }
    100% { box-shadow: 0 0 30px rgba(209, 34, 194, 0.8), inset 0 0 30px rgba(124, 22, 90, 0.2); }
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(43, 5, 41, 0.1);
    border-bottom: 1px solid #b31fd8;
    border-radius: 8px 8px 0 0;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.control.close {
    background: #ff5f57;
}

.control.minimize {
    background: #ffbd2e;
}

.control.maximize {
    background: #28ca42;
}

.terminal-title {
    color: #b138f7;
    font-size: 12px;
    font-weight: bold;
}

.terminal-body {
    padding: 15px;
    height: calc(100% - 50px);
    overflow-y: auto;
}

.terminal-output {
    color: #a628e0;
    font-size: 13px;
    line-height: 1.4;
}

.terminal-line {
    margin-bottom: 5px;
    display: flex;
    flex-wrap: wrap;
}

.prompt {
    color: #ff6b6b;
    font-weight: bold;
    margin-right: 5px;
}

.command {
    color: #4ecdc4;
    margin-right: 10px;
}

.output {
    color: #ce2eff;
    margin-left: 20px;
    margin-bottom: 10px;
    white-space: pre-line;
}

.current-line {
    animation: currentLineBlink 1s infinite;
}

.cursor-blink {
    animation: blink 1s infinite;
    color: #c732f5;
    width: 40px; /* Increase size */
    height: 40px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes currentLineBlink {
    0%, 90% { opacity: 1; }
    91%, 100% { opacity: 0.7; }
}

.command-input {
    color: #4ecdc4;
    min-width: 1px;
}

/* Responsive Terminal */
@media (max-width: 1200px) {
    .cyber-terminal {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 40px auto 0;
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .cyber-terminal {
        width: 100%;
        height: 300px;
        margin: 20px auto 0;
    }
    
    .terminal-output {
        font-size: 11px;
    }
}

/* Effet Matrix */
.matrix-mode {
    background: #000000 !important;
    border-color: #1db8df !important;
    animation: matrixGlow 0.1s infinite !important;
}

.matrix-mode .terminal-output {
    color: #c732f5 !important;
    text-shadow: 0 0 10px #1db8df;
    animation: matrixScroll 0.1s infinite;
}

.matrix-mode .prompt {
    color: #1db8df !important;
}

.matrix-mode .command {
    color: #1db8df !important;
}

@keyframes matrixGlow {
    0%, 100% { 
        box-shadow: 0 0 20px #1db8df, inset 0 0 20px rgba(0, 255, 0, 0.1);
        border-color: #1db8df;
    }
    50% { 
        box-shadow: 0 0 40px #1db8df, inset 0 0 40px rgba(0, 255, 0, 0.3);
        border-color: #44ff44;
    }
}

@keyframes matrixScroll {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-2px); }
}

/* Responsive styles for 3D logo */
@media (max-width: 768px) {
    .logo-3d-container {
        width: 90px; /* Adjusted for bigger base size */
        height: 90px;
    }
    
    .nav-logo {
        gap: 8px;
    }
    
    .logo-text {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-3d-container {
        width: 70px; /* Adjusted for bigger base size */
        height: 70px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}

/* Three.js Canvas fixe pour couvrir toute la page */
.three-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1 !important;
    pointer-events: none !important;
    user-select: none !important;
    overflow: hidden !important;
    transform-style: preserve-3d !important;
    backface-visibility: hidden !important;
}

/* S'assurer que le canvas reste derrière le contenu */
canvas[class*="three"] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

/* Language Toggle Button */
.language-toggle {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    margin-left: 15px;
    position: relative;
    overflow: hidden;
}

.language-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.language-toggle:active {
    transform: translateY(0);
}

.language-toggle i {
    margin-right: 5px;
}

/* Responsive language toggle */
@media (max-width: 768px) {
    .language-toggle {
        padding: 6px 10px;
        font-size: 14px;
        margin-left: 10px;
    }
}
