/* Positionnement mobile pour le widget de traduction */
@media (max-width: 768px) {
  #google_translate_element {
    top: 15px; /* Alignement vertical */
    left: 10px;
    right: auto;
    transform: scale(0.85); /* Réduction si nécessaire */
  }
  
  .nav-wrapper {
    padding-right: 70px; /* Espace pour le bouton hamburger */
  }
}
  html {
            scroll-behavior: smooth;
        }

/* Correction du z-index de la navigation */
.nav-container {
  z-index: 1000; 
}
        .carousel-container {
            position: relative;
            overflow: hidden;
            margin: 0 auto;
            max-width: 1200px;
        }

        .carousel-track {
            display: flex;
            transition: transform 0.5s ease;
        }

        .carousel-slide {
            min-width: 100%;
            padding: 0 15px;
            box-sizing: border-box;
        }

        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 216, 255, 0.2);
            border: none;
            color: var(--cyber-blue);
            font-size: 1.5rem;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            z-index: 10;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .carousel-btn:hover {
            background: var(--cyber-blue);
            color: var(--cyber-dark);
        }

        .prev-btn {
            left: -25px;
        }

        .next-btn {
            right: -25px;
        }

        .carousel-indicators {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }

        .indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            margin: 0 5px;
            cursor: pointer;
            transition: var(--transition);
        }

        .indicator.active {
            background: var(--cyber-blue);
            transform: scale(1.2);
        }

        @media (max-width: 768px) {
            .carousel-btn {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }
            .prev-btn {
                left: -15px;
            }
            .next-btn {
                right: -15px;
            }
        }

        /* Ajustement des cartes de service */
        .service-card {
            height: 100%;
        }
        :root {
            --primary: #0d6efd;
            --secondary: #6c757d;
            --success: #198754;
            --danger: #dc3545;
            --warning: #ffc107;
            --info: #0dcaf0;
            --light: #f8f9fa;
            --dark: #212529;
            --cyber-dark: #0a1929;
            --cyber-blue: #00d8ff;
            --cyber-green: #20c997;
            --cyber-red: #ff073a;
            --cyber-purple: #6f42c1;
            --cyber-gold: #ffd700;
            --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            --font-code: 'Consolas', 'Courier New', monospace;
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-main);
            background-color: var(--cyber-dark);
            color: var(--light);
            line-height: 1.6;
            overflow-x: hidden;
            position: relative;
            background-image: 
                radial-gradient(circle at 10% 20%, rgba(0, 216, 255, 0.05) 0%, transparent 25%),
                radial-gradient(circle at 90% 80%, rgba(32, 201, 151, 0.05) 0%, transparent 25%),
                linear-gradient(135deg, rgba(10, 25, 41, 0.95), rgba(15, 35, 55, 0.95));
        }

        /* Splash screen */
        .splash-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--cyber-dark);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 1s ease, visibility 1s;
        }
        
        .splash-screen.hidden {
            opacity: 0;
            visibility: hidden;
        }
        
        .terminal-loader {
            width: 90%;
            max-width: 600px;
            background: rgba(15, 30, 45, 0.9);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            border: 1px solid rgba(0, 216, 255, 0.3);
        }
        
        .terminal-header {
            background: rgba(0, 0, 0, 0.8);
            padding: 10px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(0, 216, 255, 0.3);
        }
        
        .terminal-title {
            color: var(--cyber-green);
            font-family: monospace;
            font-size: 0.9rem;
        }
        
        .terminal-controls {
            display: flex;
            gap: 8px;
        }
        
        .control {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }
        
        .control.close { background: #ff5f57; }
        .control.minimize { background: #febc2e; }
        .control.maximize { background: #28c840; }
        
        .terminal-content {
            padding: 20px;
            font-family: monospace;
            color: var(--cyber-green);
            line-height: 1.6;
            min-height: 150px;
        }
        
        .prompt {
            color: var(--cyber-blue);
            margin-right: 10px;
        }

        .terminal-line {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 30px;
            background: rgba(0, 0, 0, 0.7);
            color: var(--cyber-green);
            font-family: var(--font-code);
            padding: 5px 15px;
            display: flex;
            align-items: center;
            z-index: 1000;
            border-bottom: 1px solid rgba(32, 201, 151, 0.3);
        }

        .terminal-line .prompt {
            color: var(--cyber-blue);
            margin-right: 10px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 50px 20px;
        }

        section {
            padding: 80px 0;
            position: relative;
        }

        .section-title {
            font-size: 2.5rem;
            margin-bottom: 50px;
            position: relative;
            display: inline-block;
            padding-bottom: 15px;
            font-weight: 700;
        }

        .section-title::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 70px;
            height: 4px;
            background: linear-gradient(90deg, var(--cyber-blue), var(--cyber-green));
            border-radius: 2px;
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 30px;
            right: 20px;
            z-index: 1000;
            padding: 10px 15px;
            background: rgba(15, 30, 45, 0.7);
            border-radius: 30px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 216, 255, 0.1);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        nav ul {
            display: flex;
            list-style: none;
        }

        nav li {
            margin: 0 12px;
        }

        nav a {
            color: var(--light);
            text-decoration: none;
            font-weight: 500;
            padding: 8px 15px;
            border-radius: 20px;
            transition: var(--transition);
            position: relative;
            font-size: 0.95rem;
        }

        nav a:hover {
            color: var(--cyber-blue);
            background: rgba(0, 216, 255, 0.1);
        }

        nav a.active {
            color: var(--cyber-blue);
            background: rgba(0, 216, 255, 0.1);
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--cyber-blue);
            transition: var(--transition);
        }

        nav a:hover::after {
            width: 100%;
        }

        /* Hero Section */
           /* Navigation avec menu hamburger */
        .nav-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 80%;
            z-index: 800;
            background: rgba(15, 30, 45, 0.9);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(0, 216, 255, 0.1);
        }

        .nav-wrapper {
            max-width: 1200px;
            margin: 0 auto;
            padding: 10px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--cyber-blue);
        }

        .logo span {
            color: var(--cyber-green);
        }

        .hamburger {
            display: none;
            cursor: pointer;
            background: transparent;
            border: none;
            width: 40px;
            height: 40px;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 1100;
        }

        .hamburger span {
            display: block;
            width: 25px;
            height: 3px;
            background: var(--cyber-blue);
            margin: 2.5px 0;
            transition: var(--transition);
            border-radius: 2px;
        }

        .nav-links {
            display: flex;
            list-style: none;
             transition: right 0.4s ease-in-out;
        }

        .nav-links li {
            margin: 0 15px;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            padding: 8px 12px;
            border-radius: 4px;
            transition: var(--transition);
            font-size: 1rem;
            position: relative;
        }

        .nav-links a:hover {
            color: var(--cyber-blue);
            background: rgba(0, 216, 255, 0.1);
        }

        /* Hero Section */
        #hero {
            height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            padding-top: 70px;
        }

        .hero-slider {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            opacity: 0.3;
        }

        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 1.5s ease-in-out;
        }

        .slide.active {
            opacity: 1;
        }

        .hero-content {
            max-width: 1200px;
            width: 100%;
            z-index: 2;
            position: relative;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 30px;
            margin: 0 auto;
        }

        .hero-text {
            flex: 1;
            padding: 25px;
            background: rgba(10, 25, 41, 0.7);
            border-radius: 15px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 216, 255, 0.2);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            width: 100%;
        }

        .hero-title {
              font-size: 1.8rem;
            margin-bottom: 15px;
            line-height: 1.3;
            background: linear-gradient(90deg, var(--cyber-blue), var(--cyber-green));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-align: center;
        }

        .hero-subtitle {
            font-size: 1.1rem;
            margin-bottom: 20px;
            color: #adb5bd;
            text-align: center;
        }

        .hero-buttons {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-top: 25px;
        }

        .btn {
            padding: 12px 20px;
            border-radius: 30px;
            font-weight: 600;
            text-decoration: none;
            transition: var(--transition);
            display: inline-block;
            border: 2px solid transparent;
            cursor: pointer;
            text-align: center;
            font-size: 1rem;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-green));
            color: var(--cyber-dark);
        }

        .btn-outline {
            border-color: var(--cyber-blue);
            color: var(--cyber-blue);
            background: transparent;
        }

        .badges-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
            margin-top: 25px;
        }

        .badge {
            display: flex;
            align-items: center;
            padding: 10px;
            border-radius: 20px;
            font-weight: 500;
            font-size: 0.85rem;
            transition: var(--transition);
            justify-content: center;
            text-align: center;
            min-height: 50px;
        }

        .startup-badge {
            background: rgba(255, 7, 58, 0.1);
            color: var(--cyber-red);
            border: 1px solid rgba(255, 7, 58, 0.3);
        }

        .startup-microchip {
            background: rgba(255, 7, 58, 0.1);
            color: var(--cyber-red);
            border: 1px solid rgba(7, 255, 40, 0.3);
        }

        .alternance-badge {
            background: rgba(0, 216, 255, 0.1);
            color: var(--cyber-blue);
            border: 1px solid rgba(0, 216, 255, 0.3);
        }

        .hack-badge {
            background: rgba(111, 66, 193, 0.1);
            color: var(--cyber-purple);
            border: 1px solid rgba(111, 66, 193, 0.3);
        }

        .book-badge {
            background: rgba(220, 53, 69, 0.1);
            color: var(--danger);
            border: 1px solid rgba(220, 53, 69, 0.3);
        }

        .badge i {
            margin-right: 8px;
            font-size: 1.1rem;
        }

        /* Photo de profil avec animation */
        .hero-profile {
            position: relative;
            perspective: 1000px;
            z-index: 2;
            width: 100%;
            max-width: 300px;
        }

        .profile-container {
            position: relative;
            width: 100%;
            padding-top: 100%; /* Ratio carré 1:1 */
            transform-style: preserve-3d;
            animation: float 6s ease-in-out infinite;
        }

        .profile-frame {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 20px;
            overflow: hidden;
            border: 3px solid rgba(0, 216, 255, 0.3);
            box-shadow: 0 20px 50px rgba(0, 216, 255, 0.2);
            transform: rotateX(5deg) rotateY(5deg);
            transition: var(--transition);
        }

        .profile-container:hover .profile-frame {
            transform: rotateX(0) rotateY(0);
        }

        .profile-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .profile-container:hover .profile-image {
            transform: scale(1.05);
        }

        .profile-glow {
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            background: radial-gradient(circle, rgba(0, 216, 255, 0.3), transparent 70%);
            border-radius: 30px;
            z-index: -1;
            animation: pulse 3s infinite;
        }

        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }

        @keyframes pulse {
            0% { opacity: 0.5; }
            50% { opacity: 0.8; }
            100% { opacity: 0.5; }
        }

        /* Terminal Line */
        .terminal-line {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 30px;
            background: rgba(0, 0, 0, 0.7);
            color: var(--cyber-green);
            font-family: monospace;
            padding: 5px 10px;
            display: flex;
            align-items: center;
            z-index: 1000;
            border-bottom: 1px solid rgba(32, 201, 151, 0.3);
            font-size: 0.8rem;
            overflow: hidden;
        }

        .terminal-line .prompt {
            color: var(--cyber-blue);
            margin-right: 8px;
            white-space: nowrap;
        }

        /* Media Queries pour la section hero */
        @media (min-width: 576px) {
            .hero-title {
                font-size: 2.2rem;
            }
            
            .hero-subtitle {
                font-size: 1.2rem;
            }
            
            .hero-buttons {
                flex-direction: row;
                justify-content: center;
            }
            
            .badge {
                font-size: 0.9rem;
            }
        }

        @media (min-width: 768px) {
            .hero-content {
                flex-direction: row;
                text-align: left;
                padding: 40px;
            }
            
            .hero-text {
                text-align: left;
                padding: 30px;
            }
            
            .hero-title {
                text-align: left;
                font-size: 2.5rem;
            }
            
            .hero-subtitle {
                text-align: left;
                font-size: 1.3rem;
            }
            
            .hero-buttons {
                justify-content: flex-start;
            }
            
            .badge {
                font-size: 0.9rem;
                justify-content: flex-start;
            }
            
            .hero-profile {
                max-width: 350px;
            }
        }

        @media (min-width: 992px) {
            .hero-title {
                font-size: 3rem;
            }
            
            .hero-subtitle {
                font-size: 1.4rem;
            }
            
            .hero-title br {
                display: block;
            }
        }

        /* Menu hamburger pour mobile */
        @media (max-width: 768px) {
            .hamburger {
                display: flex;
            }
            
            .nav-links {
                position: fixed;
                top: 0;
                right: -100%;
                width: 70%;
                height: 100vh;
                background: rgba(10, 25, 41, 0.95);
                backdrop-filter: blur(10px);
                flex-direction: column;
                justify-content: center;
                align-items: center;
                transition: var(--transition);
                z-index: 1000;
                box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
            }
            
            .nav-links.active {
                right: 0;
            }
            
            .nav-links li {
                margin: 15px 0;
            }
            
            .nav-links a {
                font-size: 1.2rem;
                padding: 12px 25px;
            }
            
            .hero-title {
                font-size: 1.6rem;
                line-height: 1.4;
            }
            
            .hero-title br {
                display: none;
            }
            
            .hero-subtitle {
                font-size: 1rem;
            }
        }
        .hero-title .full {
    display: block;
}

.hero-title .compact {
    display: none;
}
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .hero-profile {
        max-width: 250px;
        margin-top: 20px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}


        /* About Section */
      /* Styles pour la section À Propos améliorée */
#about {
    background: rgba(5, 15, 25, 0.7);
    position: relative;
    overflow: hidden;
}

#about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 90% 10%, rgba(0, 216, 255, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 10% 90%, rgba(32, 201, 151, 0.05) 0%, transparent 25%);
    z-index: -1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.professional-highlight {
    background: rgba(15, 30, 45, 0.7);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    border: 1px solid rgba(0, 216, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.professional-highlight::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--cyber-blue), var(--cyber-green));
}

.highlight-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 216, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--cyber-blue);
    flex-shrink: 0;
}

.professional-highlight h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--cyber-green);
}

.professional-highlight p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.tech-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.tech-tags span {
    background: rgba(0, 216, 255, 0.1);
    color: var(--cyber-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 216, 255, 0.2);
}

.cyber-achievement {
    background: rgba(15, 30, 45, 0.7);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.trophy {
    width: 80px;
    height: 80px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--cyber-gold);
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
}

.trophy i {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.trophy span {
    font-size: 1.8rem;
    line-height: 1;
}

.trophy sup {
    font-size: 1rem;
    top: -0.8em;
}

.cyber-achievement h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--cyber-gold);
}

.dual-path {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.path-card {
    background: rgba(15, 30, 45, 0.6);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(111, 66, 193, 0.2);
}

.path-card:hover {
    transform: translateY(-5px);
    border-color: rgba(111, 66, 193, 0.4);
    box-shadow: 0 10px 25px rgba(111, 66, 193, 0.1);
}

.path-icon {
    width: 50px;
    height: 50px;
    background: rgba(111, 66, 193, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--cyber-purple);
    margin: 0 auto 15px;
}

.path-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--cyber-blue);
}

.passion-projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.passion-item {
    background: rgba(15, 30, 45, 0.6);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: var(--transition);
}

.passion-item:hover {
    transform: translateY(-3px);
    background: rgba(15, 30, 45, 0.8);
}

.passion-item i {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 7, 58, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyber-red);
}

.passion-item:nth-child(2) i {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.passion-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--cyber-blue);
}

.about-visuals {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.electronics-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.board-design {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: 250px;
}

.board-design img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.board-design:hover img {
    transform: scale(1.05);
}

.board-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 25, 41, 0.8);
    padding: 10px;
    text-align: center;
    color: var(--cyber-green);
    font-weight: 500;
}

.code-sample {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 20px;
    font-family: var(--font-code);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 216, 255, 0.2);
}

.code-sample pre {
    margin: 0;
    overflow: auto;
    max-height: 180px;
}

.code-sample code {
    color: var(--cyber-green);
}

.code-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px;
    text-align: center;
    color: var(--cyber-blue);
    font-size: 0.85rem;
}

.cyber-badge {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cyber-badge::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
    z-index: 0;
}

.badge-content {
    position: relative;
    z-index: 1;
}

.rank {
    font-size: 5rem;
    font-weight: 700;
    color: var(--cyber-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    line-height: 1;
    margin: 10px 0;
}

.rank sup {
    font-size: 2rem;
    top: -1.5em;
}

.event {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.year {
    font-size: 1.2rem;
    color: var(--cyber-blue);
    background: rgba(0, 0, 0, 0.5);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-visuals {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .dual-path,
    .passion-projects,
    .electronics-showcase {
        grid-template-columns: 1fr;
    }
    
    .professional-highlight,
    .cyber-achievement {
        flex-direction: column;
        text-align: center;
    }
    
    .highlight-icon,
    .trophy {
        margin-bottom: 20px;
    }
    
    .tech-tags {
        justify-content: center;
    }
}

        /* Skills Section */
       #skills {
            padding: 100px 0;
            position: relative;
            overflow: hidden;
        }

        #skills::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 30%, rgba(0, 216, 255, 0.05) 0%, transparent 30%),
                radial-gradient(circle at 80% 70%, rgba(32, 201, 151, 0.05) 0%, transparent 30%);
            z-index: -1;
        }

        .skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .skill-category {
            background: rgba(15, 30, 45, 0.7);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(0, 216, 255, 0.2);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .skill-category:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 216, 255, 0.2);
            border-color: rgba(0, 216, 255, 0.4);
        }

        .skill-category::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(0, 216, 255, 0.1), transparent 70%);
            z-index: -1;
            animation: rotate 15s linear infinite;
        }

        .skill-category h3 {
            font-size: 1.5rem;
            margin-bottom: 25px;
            color: var(--cyber-blue);
            display: flex;
            align-items: center;
            position: relative;
            padding-bottom: 15px;
        }

        .skill-category h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--cyber-blue);
            border-radius: 2px;
        }

        .skill-category h3 i {
            margin-right: 12px;
            font-size: 1.8rem;
            color: var(--cyber-green);
        }

        .skills-in-category {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .skill-item {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .skill-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .skill-name {
            display: flex;
            align-items: center;
            font-weight: 500;
        }

        .skill-name i {
            color: var(--cyber-green);
            margin-right: 10px;
            font-size: 1rem;
        }

        .skill-percent {
            background: rgba(0, 216, 255, 0.1);
            color: var(--cyber-blue);
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .skill-progress {
            width: 100%;
            height: 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--cyber-blue), var(--cyber-green));
            border-radius: 4px;
            position: relative;
            width: 0;
            transition: width 1.5s cubic-bezier(0.22, 0.61, 0.36, 1);
        }

        .progress-bar::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            animation: progressGlow 2s infinite;
        }

        .skill-visual {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 20px;
            perspective: 800px;
        }

        .skill-cube {
            width: 120px;
            height: 120px;
            position: relative;
            transform-style: preserve-3d;
            animation: rotateCube 15s infinite linear;
        }


        /* Animation Keyframes */
        @keyframes rotateCube {
            from { transform: rotateX(0) rotateY(0) rotateZ(0); }
            to { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
        }

        @keyframes progressGlow {
            0% { background-position: -100% 0; }
            100% { background-position: 200% 0; }
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .skills-container {
                grid-template-columns: 1fr;
            }
            
            .skill-category {
                padding: 20px;
            }
        }

        /* Projects Section */
        .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    perspective: 1000px; /* Ajout de perspective pour les effets 3D */
}

.project-card {
    background: rgba(15, 30, 45, 0.7);
    border-radius: 15px; /* Bords plus arrondis */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Ombre plus prononcée */
    transition: var(--transition);
    border: 1px solid rgba(0, 216, 255, 0.1);
    position: relative;
    transform-style: preserve-3d; /* Préparation pour effets 3D */
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s forwards; /* Animation d'entrée */
}

/* Animation d'apparition */
@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.4s; }
.project-card:nth-child(4) { animation-delay: 0.6s; }
.project-card:nth-child(5) { animation-delay: 0.8s; }
.project-card:nth-child(6) { animation-delay: 1s; }

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg); /* Effet 3D au survol */
    border-color: var(--cyber-blue);
    box-shadow: 
        0 15px 35px rgba(0, 216, 255, 0.2), 
        0 0 20px rgba(0, 216, 255, 0.3); /* Double ombre pour effet glow */
}

/* Effet de lueur cyberpunk au survol */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 216, 255, 0.1), rgba(32, 201, 151, 0.1));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
    border-radius: 15px;
}

.project-card:hover::before {
    opacity: 0.8;
}

.project-image {
    height: 220px; /* Hauteur légèrement augmentée */
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0, 216, 255, 0.2); /* Bordure de séparation */
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
    filter: saturate(1.5) brightness(1.1); /* Amélioration des couleurs */
}

/* Effet de surbrillance sur l'image */
.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 216, 255, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-image::after {
    opacity: 0.6;
}

.project-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 7, 58, 0.9);
    color: white;
    padding: 6px 18px; /* Taille légèrement augmentée */
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase; /* Texte en majuscules */
    letter-spacing: 1px; /* Espacement des lettres */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Couleurs différentes selon les catégories */
.project-tag.IoT { background: rgba(0, 216, 255, 0.9); }
.project-tag.Sécurité { background: rgba(255, 7, 58, 0.9); }
.project-tag.Cybersécurité { background: rgba(111, 66, 193, 0.9); }
.project-tag.International { background: rgba(255, 215, 0, 0.9); color: #333; }
.project-tag.Ministère { background: rgba(32, 201, 151, 0.9); }

.project-card:hover .project-tag {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.project-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.project-content h3 {
    font-size: 1.5rem; /* Taille légèrement augmentée */
    margin-bottom: 15px;
    color: var(--cyber-blue);
    display: flex;
    align-items: center;
    gap: 10px; /* Espacement entre icône et texte */
}

.project-content h3 i {
    color: var(--cyber-green);
    font-size: 1.3rem;
    transition: var(--transition);
}

.project-card:hover .project-content h3 i {
    transform: rotate(10deg) scale(1.2);
    color: var(--cyber-blue);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #adb5bd;
    border-bottom: 1px dashed rgba(0, 216, 255, 0.2); /* Ligne de séparation */
    padding-bottom: 15px;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 5px; /* Espacement entre icône et texte */
}

.project-content p {
    margin-bottom: 20px;
    color: #ced4da;
    line-height: 1.7; /* Meilleure lisibilité */
    min-height: 80px; /* Hauteur minimum pour uniformiser */
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tech-tag {
    background: rgba(0, 216, 255, 0.1);
    color: var(--cyber-blue);
    padding: 6px 16px; /* Taille légèrement augmentée */
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(0, 216, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 6px; /* Espacement entre icône et texte */
}

.tech-tag:hover {
    background: rgba(0, 216, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 216, 255, 0.2);
}

.project-docs {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px dashed rgba(0, 216, 255, 0.2); /* Ligne de séparation */
    padding-top: 20px;
}

.doc-badge {
    background: rgba(111, 66, 193, 0.1);
    color: var(--cyber-purple);
    padding: 8px 18px; /* Taille légèrement augmentée */
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(111, 66, 193, 0.3);
    gap: 8px; /* Espacement entre icône et texte */
}

.doc-badge:hover {
    background: rgba(111, 66, 193, 0.2);
    transform: translateY(-3px) rotate(2deg);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

/* Animation au survol des badges de documentation */
.doc-badge i {
    transition: var(--transition);
}

.doc-badge:hover i {
    transform: scale(1.3);
    color: var(--cyber-blue);
}

/* Badge spécial pour les projets vedettes */
.featured-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--cyber-gold);
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* Pour les projets vedettes */
.project-card.featured {
    border: 2px solid var(--cyber-gold);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
}

/* Section d'info supplémentaire au survol */
.project-hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 25, 41, 0.95);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: 3;
}

.project-card:hover .project-hover-info {
    transform: translateY(0);
}

.project-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cyber-green);
}

.stat-label {
    font-size: 0.8rem;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive pour mobiles */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        transform: translateY(10px);
    }
    
    .project-image {
        height: 180px;
    }
}
 @media (max-width: 768px) {
            #hero {
                height: auto;
                min-height: 100vh;
                padding: 70px 0 40px;
            }
            
            .hero-content {
                flex-direction: column;
                gap: 30px;
                padding: 0 15px;
            }
            
            .hero-text {
                padding: 20px;
                text-align: center;
                width: 100%;
                max-width: 100%;
                margin-top: 20px;
            }
            
            .hero-title {
                font-size: 1.6rem;
                line-height: 1.4;
                text-align: center;
            }
            
            .hero-title br {
                display: none;
            }
            
            .hero-subtitle {
                font-size: 1rem;
                margin-bottom: 15px;
            }
            
            .hero-buttons {
                flex-direction: column;
                align-items: center;
                gap: 15px;
                margin-top: 20px;
            }
            
            .btn {
                width: 100%;
                max-width: 280px;
                margin: 0 auto;
            }
            
            .badges-container {
                grid-template-columns: 1fr;
                gap: 10px;
                margin-top: 20px;
            }
            
            .badge {
                font-size: 0.85rem;
                padding: 8px 12px;
                justify-content: center;
                text-align: center;
            }
            
            .hero-profile {
                max-width: 220px;
                margin: 0 auto;
            }
            
            .profile-container {
                padding-top: 80%; /* Ratio plus carré */
            }
        }
        
        @media (max-width: 480px) {
            .hero-title {
                font-size: 1.5rem;
            }
            
            .hero-subtitle {
                font-size: 0.95rem;
            }
            
            .badge {
                font-size: 0.8rem;
                min-height: 40px;
            }
            
            .hero-profile {
                max-width: 180px;
            }
            
            .terminal-line {
                font-size: 0.7rem;
                padding: 3px 8px;
            }
        }

        /* Services Section */
        #services {
            background: rgba(5, 15, 25, 0.7);
            border-top: 1px solid rgba(0, 216, 255, 0.1);
            border-bottom: 1px solid rgba(0, 216, 255, 0.1);
        }

        .services-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
            margin-top: 50px;
        }

        .service-card {
            background: rgba(15, 30, 45, 0.7);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            transition: var(--transition);
            border: 1px solid rgba(0, 216, 255, 0.1);
            position: relative;
            z-index: 1;
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0, 216, 255, 0.05), rgba(32, 201, 151, 0.05));
            z-index: -1;
            opacity: 0;
            transition: var(--transition);
        }

        .service-card:hover {
            transform: translateY(-15px);
            box-shadow: 0 20px 40px rgba(0, 216, 255, 0.2);
            border-color: rgba(0, 216, 255, 0.3);
        }

        .service-card:hover::before {
            opacity: 1;
        }

        .service-card:hover .service-icon {
            transform: translateY(-10px) rotate(10deg);
            color: var(--cyber-blue);
        }

        .service-icon-container {
            height: 180px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.2);
            position: relative;
            overflow: hidden;
        }

        .service-icon {
            font-size: 4.5rem;
            color: var(--cyber-green);
            transition: var(--transition);
            z-index: 2;
        }

        .service-icon-container::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(0, 216, 255, 0.1), transparent 70%);
            z-index: 1;
            animation: rotate 15s linear infinite;
        }

        .service-content {
            padding: 25px;
        }

        .service-title {
            font-size: 1.8rem;
            margin-bottom: 15px;
            color: var(--cyber-blue);
        }

        .service-description {
            color: #ced4da;
            margin-bottom: 20px;
            line-height: 1.7;
            font-size: 1rem;
        }

        .service-features {
            margin-bottom: 20px;
        }

        .feature-item {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            color: #adb5bd;
            font-size: 0.95rem;
        }

        .feature-item i {
            color: var(--cyber-green);
            margin-right: 10px;
            width: 20px;
        }

        .service-cta {
            display: flex;
            justify-content: center;
        }

        .btn-service {
            padding: 10px 25px;
            border-radius: 30px;
            font-weight: 600;
            text-decoration: none;
            transition: var(--transition);
            display: inline-block;
            border: 2px solid var(--cyber-blue);
            color: var(--cyber-blue);
            background: transparent;
            font-size: 0.95rem;
        }

        .btn-service:hover {
            background: rgba(0, 216, 255, 0.1);
            transform: translateY(-3px);
        }

        .service-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(0, 216, 255, 0.3), transparent);
            margin: 50px 0;
        }

        .services-cta {
            text-align: center;
            margin-top: 60px;
        }

        .btn-cta {
            padding: 15px 40px;
            border-radius: 30px;
            font-weight: 600;
            text-decoration: none;
            transition: var(--transition);
            display: inline-block;
            background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-green));
            color: var(--cyber-dark);
            font-size: 1.1rem;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .btn-cta::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--cyber-green), var(--cyber-blue));
            opacity: 0;
            transition: var(--transition);
            z-index: -1;
        }

        .btn-cta:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 216, 255, 0.4);
        }

        .btn-cta:hover::before {
            opacity: 1;
        }

        .glowing-border {
            position: relative;
        }

        .glowing-border::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, 
                var(--cyber-blue), 
                var(--cyber-green), 
                var(--cyber-purple), 
                var(--cyber-red));
            z-index: -1;
            border-radius: 15px;
            animation: glowing 3s linear infinite;
            background-size: 400%;
        }

        .glowing-border::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(15, 30, 45, 0.7);
            z-index: -1;
            border-radius: 15px;
        }

        @keyframes glowing {
            0% { background-position: 0 0; }
            50% { background-position: 400% 0; }
            100% { background-position: 0 0; }
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* Testimonials Section */
        #testimonials {
            background: rgba(5, 15, 25, 0.7);
            border-top: 1px solid rgba(0, 216, 255, 0.1);
            border-bottom: 1px solid rgba(0, 216, 255, 0.1);
        }

        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
        }

        .testimonial-card {
            background: rgba(15, 30, 45, 0.7);
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(0, 216, 255, 0.1);
            position: relative;
            transition: var(--transition);
        }

        .testimonial-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 216, 255, 0.1);
        }

        .testimonial-text {
            margin-bottom: 20px;
            font-style: italic;
            position: relative;
            z-index: 2;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
        }

        .author-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(0, 216, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            color: var(--cyber-blue);
            font-size: 1.2rem;
            transition: var(--transition);
        }

        .testimonial-card:hover .author-avatar {
            transform: scale(1.1);
            background: rgba(0, 216, 255, 0.2);
        }

        .author-info h4 {
            font-size: 1.1rem;
            color: var(--cyber-blue);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .author-info p {
            font-size: 0.9rem;
            color: #adb5bd;
            margin: 5px 0;
        }
        
        .linkedin-link {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: var(--cyber-blue);
            font-size: 0.85rem;
            text-decoration: none;
            margin-top: 5px;
            padding: 4px 10px;
            border-radius: 15px;
            background: rgba(10, 102, 194, 0.1);
            border: 1px solid rgba(10, 102, 194, 0.3);
            transition: var(--transition);
        }
        
        .linkedin-link:hover {
            background: rgba(10, 102, 194, 0.2);
            transform: translateY(-2px);
        }

        /* Book Section */
        #book {
            background: linear-gradient(135deg, rgba(10, 25, 41, 0.9), rgba(15, 35, 55, 0.9));
            padding: 100px 0;
            position: relative;
            overflow: hidden;
        }

        .book-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
        }

        .book-cover {
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5);
            transform: rotate(-2deg);
            transition: transform 0.5s ease;
            z-index: 2;
        }

        .book-cover:hover {
            transform: rotate(0) scale(1.03);
        }

        .book-cover::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, rgba(220, 53, 69, 0.1), rgba(108, 117, 125, 0.1));
            z-index: 1;
        }

        .book-cover img {
            width: 100%;
            height: auto;
            display: block;
        }

        .book-content {
            position: relative;
            z-index: 2;
        }

        .book-title {
            font-size: 2.8rem;
            margin-bottom: 20px;
            color: var(--danger);
            text-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
        }

        .book-subtitle {
            font-size: 1.5rem;
            margin-bottom: 30px;
            color: #ced4da;
        }

        .book-description {
            font-size: 1.1rem;
            margin-bottom: 30px;
            line-height: 1.8;
        }

        .book-quote {
            font-style: italic;
            border-left: 4px solid var(--danger);
            padding-left: 20px;
            margin: 30px 0;
            color: #ced4da;
            font-size: 1.2rem;
        }

        .book-info {
            display: flex;
            gap: 20px;
            margin-top: 30px;
        }

        .book-meta {
            background: rgba(220, 53, 69, 0.1);
            padding: 10px 20px;
            border-radius: 8px;
            border: 1px solid rgba(220, 53, 69, 0.3);
        }

        .book-meta i {
            color: var(--danger);
            margin-right: 8px;
        }

        .book-buttons {
            display: flex;
            gap: 20px;
            margin-top: 30px;
        }

        .btn-book {
            padding: 12px 30px;
            border-radius: 30px;
            font-weight: 600;
            text-decoration: none;
            transition: var(--transition);
            display: inline-block;
            border: 2px solid transparent;
        }

        .btn-preorder {
            background: linear-gradient(135deg, var(--danger), #a71e2a);
            color: white;
        }

        .btn-preorder:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(220, 53, 69, 0.3);
        }

        .btn-outline-book {
            border-color: var(--danger);
            color: var(--danger);
            background: transparent;
        }

        .btn-outline-book:hover {
            background: rgba(220, 53, 69, 0.1);
            transform: translateY(-3px);
        }

        /* Contact Section */
        .contact-container {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            margin-top: 30px;
        }

        .contact-info {
            flex: 1;
            min-width: 300px;
        }

        .contact-form {
            flex: 1;
            min-width: 300px;
        }

        .contact-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 30px;
            background: rgba(15, 30, 45, 0.7);
            padding: 20px;
            border-radius: 10px;
            border: 1px solid rgba(0, 216, 255, 0.1);
            transition: var(--transition);
        }

        .contact-item:hover {
            border-color: var(--cyber-blue);
            transform: translateY(-5px);
        }

        .contact-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(0, 216, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 20px;
            flex-shrink: 0;
        }

        .contact-icon i {
            color: var(--cyber-blue);
            font-size: 20px;
        }

        .contact-text h3 {
            font-size: 1.3rem;
            margin-bottom: 5px;
            color: var(--cyber-blue);
        }

        .contact-text p {
            color: #ced4da;
            margin-bottom: 10px;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 10px;
        }

        .social-link {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #f8f9fa;
            transition: var(--transition);
            font-size: 18px;
        }

        .social-link:hover {
            background: var(--cyber-blue);
            color: var(--cyber-dark);
            transform: translateY(-3px);
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #ced4da;
            font-weight: 500;
        }

        .form-control {
            width: 100%;
            padding: 14px 18px;
            border-radius: 8px;
            background: rgba(15, 30, 45, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #f8f9fa;
            font-size: 16px;
            transition: var(--transition);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--cyber-blue);
            box-shadow: 0 0 0 3px rgba(0, 216, 255, 0.2);
        }

        textarea.form-control {
            min-height: 150px;
            resize: vertical;
        }

        @media (max-width: 768px) {
            .about-content {
                flex-direction: column;
            }
            
            .about-image {
                order: -1;
            }
            
            .contact-container {
                flex-direction: column;
            }
        }
        /* Footer */
        footer {
            background: rgba(5, 15, 25, 0.9);
            padding: 40px 0 20px;
            border-top: 1px solid rgba(0, 216, 255, 0.1);
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 30px;
        }

        .startup-logo {
            display: flex;
            align-items: center;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--cyber-red);
            transition: var(--transition);
        }

        .startup-logo:hover {
            color: var(--cyber-blue);
            transform: scale(1.05);
        }

        .startup-logo span {
            color: var(--cyber-blue);
        }

        .social-links {
            display: flex;
            gap: 15px;
        }

        .social-link {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(0, 216, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--cyber-blue);
            text-decoration: none;
            transition: var(--transition);
        }

        .social-link:hover {
            background: var(--cyber-blue);
            color: var(--cyber-dark);
            transform: translateY(-5px) rotate(15deg);
        }

        .copyright {
            text-align: center;
            padding-top: 30px;
            margin-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            color: #6c757d;
            font-size: 0.9rem;
        }

        /* Download Section */
        #download {
            background: rgba(5, 15, 25, 0.5);
        }

        .download-container {
            background: rgba(15, 30, 45, 0.7);
            border-radius: 15px;
            padding: 40px;
            margin-top: 50px;
            text-align: center;
            border: 1px solid rgba(0, 216, 255, 0.2);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
        }

        .download-title {
            font-size: 2rem;
            margin-bottom: 30px;
            color: var(--cyber-blue);
        }

        .download-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .download-item {
            background: rgba(10, 25, 41, 0.5);
            border-radius: 10px;
            padding: 30px;
            transition: var(--transition);
            border: 1px solid rgba(0, 216, 255, 0.1);
        }

        .download-item:hover {
            transform: translateY(-5px);
            border-color: rgba(0, 216, 255, 0.3);
        }

        .download-icon {
            width: 70px;
            height: 70px;
            margin: 0 auto 20px;
            background: rgba(0, 216, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            color: var(--cyber-blue);
        }

        .download-item h3 {
            font-size: 1.4rem;
            margin-bottom: 15px;
            color: var(--cyber-green);
        }

        .download-item p {
            margin-bottom: 20px;
            color: #ced4da;
        }

        .btn-download {
            padding: 10px 25px;
            border-radius: 30px;
            background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-green));
            color: var(--cyber-dark);
            text-decoration: none;
            font-weight: 600;
            display: inline-block;
            transition: var(--transition);
        }

        .btn-download:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 216, 255, 0.3);
        }
        
        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            overflow-y: auto;
        }
        
        .modal-content {
            background: var(--cyber-dark);
            max-width: 600px;
            margin: 50px auto;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 0 50px rgba(0, 216, 255, 0.3);
            border: 1px solid rgba(0, 216, 255, 0.3);
            position: relative;
            animation: modalOpen 0.5s ease-out;
        }
        
        @keyframes modalOpen {
            from { opacity: 0; transform: translateY(-50px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 1.5rem;
            color: var(--cyber-blue);
            cursor: pointer;
            transition: var(--transition);
        }
        
        .close-modal:hover {
            color: var(--cyber-red);
            transform: rotate(90deg);
        }
        
        .modal-header {
            margin-bottom: 20px;
            text-align: center;
        }
        
        .modal-header h3 {
            font-size: 2rem;
            color: var(--cyber-blue);
            margin-bottom: 10px;
        }
        
        .modal-body {
            padding: 20px 0;
        }
        
        .form-group-modal {
            margin-bottom: 20px;
        }
        
        .form-group-modal label {
            display: block;
            margin-bottom: 8px;
            color: var(--cyber-blue);
        }
        
        .form-control-modal {
            width: 100%;
            padding: 12px 15px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(0, 216, 255, 0.2);
            border-radius: 5px;
            color: white;
            font-family: var(--font-main);
            font-size: 1rem;
            transition: var(--transition);
        }
        
        .form-control-modal:focus {
            outline: none;
            border-color: var(--cyber-blue);
            background: rgba(0, 216, 255, 0.1);
            box-shadow: 0 0 10px rgba(0, 216, 255, 0.2);
        }
        
        .modal-footer {
            text-align: center;
            margin-top: 20px;
        }
        
        .btn-modal {
            padding: 10px 25px;
            border-radius: 30px;
            background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-green));
            color: var(--cyber-dark);
            text-decoration: none;
            font-weight: 600;
            display: inline-block;
            transition: var(--transition);
            border: none;
            cursor: pointer;
        }
        
        .btn-modal:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 216, 255, 0.3);
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .hero-content {
                flex-direction: column;
                text-align: center;
            }
            
            .hero-profile {
                margin-top: 40px;
                flex: 0 0 300px;
            }
            
            .hero-buttons {
                justify-content: center;
            }
            
            .badges-container {
                justify-content: center;
            }
            
            .book-container {
                grid-template-columns: 1fr;
            }
            
            .book-cover {
                margin: 0 auto;
                max-width: 400px;
            }
        }

        @media (max-width: 992px) {
            .about-content,
            .contact-container {
                grid-template-columns: 1fr;
            }
            
            .about-text {
                padding-right: 0;
            }
            
            .hero-title {
                font-size: 2.8rem;
            }
            
            .modal-content {
                width: 90%;
                margin: 20px auto;
            }
        }

        @media (max-width: 768px) {
            nav {
                top: 10px;
                right: 10px;
                padding: 8px 12px;
            }
            
            nav ul {
                flex-direction: column;
            }
            
            nav li {
                margin: 5px 0;
            }
            
            .hero-title {
                font-size: 2.3rem;
            }
            
            .hero-subtitle {
                font-size: 1.2rem;
            }
            
            .section-title {
                font-size: 2rem;
            }
            
            .projects-grid,
            .testimonials-grid {
                grid-template-columns: 1fr;
            }
            
            .hero-profile {
                flex: 0 0 250px;
            }
            
            .profile-container {
                height: 350px;
            }
            
            .book-title {
                font-size: 2.2rem;
            }
            
            .book-subtitle {
                font-size: 1.2rem;
            }
            
            .book-info {
                flex-direction: column;
                gap: 10px;
            }
            
            .book-buttons {
                flex-direction: column;
                align-items: center;
            }
        }

        @media (max-width: 576px) {
            .hero-buttons {
                flex-direction: column;
                gap: 15px;
            }
            
            .btn {
                width: 100%;
                text-align: center;
            }
            
            .terminal-line {
                font-size: 0.8rem;
                height: 25px;
                padding: 3px 10px;
            }
            
            .hero-profile {
                flex: 0 0 220px;
            }
            
            .profile-container {
                height: 300px;
            }
            
            .book-buttons {
                flex-direction: column;
            }
        }
        .background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    
}