@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Orbitron:wght@400;700&display=swap');

:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --primary-color: #00f2ff;
    --secondary-color: #bc13fe;
    --text-color: #e0e0e0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: transparent;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Glassmorphism Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    text-transform: uppercase;
}

.nav-links li a:hover {
    color: var(--primary-color);
    text-shadow: var(--neon-shadow);
}

.admin-link {
    border: 1px solid var(--primary-color);
    padding: 8px 20px !important;
    border-radius: 20px;
    background: rgba(0, 242, 255, 0.05);
}

.admin-link:hover {
    background: var(--primary-color) !important;
    color: #000 !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: transparent;
    perspective: 1000px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.typing-text {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    height: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.4s;
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
}

.btn-secondary {
    color: var(--primary-color);
    background: transparent;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--neon-shadow);
}

/* 3D Project Cards */
.container {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    transition: 0.5s;
    transform-style: preserve-3d;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.project-card:hover {
    transform: rotateY(10deg) rotateX(10deg);
    border-color: var(--primary-color);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    transform: translateZ(20px);
}

/* Section Headers */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    font-size: 2.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    box-shadow: var(--neon-shadow);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.skill-category {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    transition: 0.3s;
}

.skill-category:hover {
    border-color: var(--secondary-color);
    transform: translateY(-10px);
}

.skill-category i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

/* Stats Section */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin: 80px 0;
    padding: 50px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-family: 'Orbitron';
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: #888;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 50px auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    border-radius: 8px;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        max-width: 90%;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 15px 25px;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
        /* Au dessus du nav-links */
    }

    .nav-links {
        position: fixed;
        top: 0;
        /* On commence tout en haut */
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        display: flex;
        /* Force display flex */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .typing-text {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 40px;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
        margin-top: 50px;
    }

    .stats-container {
        padding: 30px 15px;
        flex-direction: column;
        gap: 40px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 25px;
        margin: 30px 15px;
    }

    .admin-nav {
        padding: 10px 15px !important;
        flex-wrap: wrap;
    }

    .dashboard-container {
        padding: 20px 10px !important;
    }

    table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 1.2rem;
    }
}