* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #06b6d4;      /* Cyan 500 */
    --secondary-color: #3b82f6;    /* Blue 500 */
    --accent-color: #10b981;       /* Emerald 500 */
    --dark-bg: #1f2937;           /* Gray 800 */
    --light-text: #ffffff;
    --gray-text: #e5e7eb;
    --gray-dark: #374151;
    --gray-darker: #1f2937;
    --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);
    --glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
    --glow-green: 0 0 20px rgba(16, 185, 129, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}

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

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

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
}

.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    color: var(--gray-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
    display: block;
    padding: 12px 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(6, 182, 212, 1), 0 0 30px rgba(6, 182, 212, 0.8), 0 0 45px rgba(6, 182, 212, 0.6);
    transform: translateY(-2px);
}

.language-switcher {
    margin-left: 1rem;
    display: flex;
    gap: 12px;
    align-items: center;
}

.flag-img {
    width: 32px;
    height: 22px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0.7;
}

.flag-img:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.flag-img.active {
    opacity: 1;
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.8);
    transform: scale(1.1);
}

/* Simple Language Rules */
.french-hidden .fr {
    display: none;
}

.english-hidden .en {
    display: none;
}

/* Language visibility control - Let JS handle it */

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    position: relative;
    z-index: 9999;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--light-text);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #000 0%, #111 50%, #000 100%);
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(6, 182, 212, 0.05) 25%, rgba(6, 182, 212, 0.05) 26%, transparent 27%, transparent 74%, rgba(6, 182, 212, 0.05) 75%, rgba(6, 182, 212, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(6, 182, 212, 0.05) 25%, rgba(6, 182, 212, 0.05) 26%, transparent 27%, transparent 74%, rgba(6, 182, 212, 0.05) 75%, rgba(6, 182, 212, 0.05) 76%, transparent 77%, transparent);
    background-size: 60px 60px;
    opacity: 0.3;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #06b6d4, transparent);
    top: 20%;
    left: 10%;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3b82f6, transparent);
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #06b6d4, #3b82f6, #06b6d4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideIn 0.8s ease-out;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--gray-text);
    margin-bottom: 2rem;
    animation: slideIn 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideIn 0.8s ease-out 0.4s both;
}

.btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}

.btn-primary {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
    transform: scale(1.05);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(6, 182, 212, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Section Styles */
section {
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    margin: 0 auto 2rem;
}

.section-subtitle {
    color: var(--gray-text);
    font-size: 1.1rem;
}

/* About Section */
.about {
    background: linear-gradient(180deg, #000 0%, #0f172a 50%, #000 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    group: block;
}

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

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

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-text);
}

/* Services Section */
.services {
    background: linear-gradient(180deg, #0f172a 0%, #000 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-50%);
    opacity: 0.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.features-list li {
    color: var(--gray-text);
    font-size: 0.9rem;
    padding-left: 1.5rem;
    position: relative;
}

.features-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.services-cta {
    text-align: center;
    padding: 2rem;
}

.services-cta p {
    color: var(--gray-text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Showcase Section */
.showcase {
    background: #000;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.showcase-card {
    position: relative;
    height: 300px;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    group: block;
    background: #000;
}

.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.7s ease;
    display: block;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.showcase-card:hover img {
    transform: scale(1.05);
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.4),
        0 0 60px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.showcase-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
    z-index: 2;
}

.overlay h3 {
    color: white;
    font-size: 1.3rem;
}

.tech-stack {
    background: linear-gradient(to right, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
}

.tech-stack h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.badge {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--gray-text);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.5);
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: #000;
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--gray-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.footer-section ul li {
    color: var(--gray-text);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-section a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--gray-text);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 300px;
    }

    .nav-menu li {
        padding: 0.5rem 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .services-grid,
    .showcase-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-menu {
        gap: 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .tech-badges {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   🎨 ARTISTIC ENHANCEMENTS
   ======================================== */

/* Circuit Board Background Animation */
.circuit-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1000;
    opacity: 0.05;
}

.circuit-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, transparent 24%, rgba(0, 255, 255, 0.03) 25%, rgba(0, 255, 255, 0.03) 26%, transparent 27%),
        linear-gradient(0deg, transparent 24%, rgba(0, 128, 255, 0.03) 25%, rgba(0, 128, 255, 0.03) 26%, transparent 27%);
    background-size: 50px 50px;
    animation: circuitFlow 20s linear infinite;
}

.circuit-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, rgba(0, 255, 128, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 20%, rgba(0, 128, 255, 0.1) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    animation: circuitPulse 8s ease-in-out infinite;
}

@keyframes circuitFlow {
    0% { transform: translateX(-50px) translateY(-50px); }
    100% { transform: translateX(50px) translateY(50px); }
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

/* Glowing Text Effects */
.glow-text {
    text-shadow: var(--glow-cyan);
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
    50% { text-shadow: 0 0 30px rgba(0, 255, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.6); }
}

/* Enhanced Gradient Animations */
.animated-gradient {
    background: linear-gradient(45deg,
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color),
        var(--primary-color)
    );
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* Holographic Service Cards */
.holo-card {
    position: relative;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.holo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 255, 255, 0.1),
        transparent
    );
    transform: rotate(0deg);
    transition: transform 0.6s;
    z-index: -1;
}

.holo-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.8);
}

.holo-card:hover::before {
    transform: rotate(180deg);
}

/* Futuristic Navigation Glow */
.nav-glow {
    position: relative;
    transition: all 0.3s ease;
}

.nav-glow::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-glow:hover {
    color: var(--primary-color);
    text-shadow: var(--glow-cyan);
}

.nav-glow:hover::after {
    transform: scaleX(1);
}

/* Pulsing Button Effects */
.pulse-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    color: var(--dark-bg);
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: var(--glow-cyan);
}

.pulse-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.pulse-btn:hover::before {
    left: 100%;
}

.pulse-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        var(--glow-cyan),
        0 10px 20px rgba(0, 255, 255, 0.3);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

/* Data Stream Effect */
.data-stream {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom,
        transparent,
        var(--primary-color),
        var(--secondary-color),
        transparent
    );
    animation: dataFlow 3s linear infinite;
}

@keyframes dataFlow {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh);
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.glitch::before {
    animation: glitch1 0.3s infinite;
    color: var(--primary-color);
    z-index: -1;
}

.glitch::after {
    animation: glitch2 0.3s infinite;
    color: var(--accent-color);
    z-index: -2;
}

@keyframes glitch1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 2px); }
    80% { transform: translate(-2px, -2px); }
}

/* Constellation effect */
.constellation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, var(--primary-color), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--accent-color), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--secondary-color), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--primary-color), transparent),
        radial-gradient(2px 2px at 160px 30px, var(--accent-color), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: constellation-move 20s linear infinite;
    opacity: 0.4;
}

@keyframes constellation-move {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-200px);
    }
}

/* Particle system */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
    animation: particle-float 15s linear infinite;
}

.particles::before {
    top: -10px;
    left: 20%;
    animation-delay: 0s;
}

.particles::after {
    top: -10px;
    left: 80%;
    animation-delay: -7s;
}

@keyframes particle-float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Advanced Gradient Animations */
.gradient-border {
    position: relative;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 400% 400%;
    animation: gradient-flow 4s ease-in-out infinite;
    padding: 2px;
    border-radius: 12px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--dark-bg);
    border-radius: 10px;
    z-index: -1;
}

@keyframes gradient-flow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Enhanced text gradients */
.gradient-text {
    background: linear-gradient(45deg,
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color),
        var(--primary-color));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Animated gradient overlay */
.gradient-overlay {
    position: relative;
    overflow: hidden;
}

.gradient-overlay::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        var(--primary-color),
        transparent,
        var(--accent-color),
        transparent,
        var(--secondary-color),
        transparent
    );
    animation: gradient-rotate 8s linear infinite;
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

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

/* Enhanced 3D Holographic Effects */
.holo-enhanced {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.holo-enhanced:hover {
    transform: rotateY(5deg) rotateX(5deg) scale(1.05);
    box-shadow:
        0 20px 40px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.1),
        0 0 60px rgba(0, 128, 255, 0.3);
}

/* 3D Card flip effect */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg,
        rgba(0, 255, 255, 0.1),
        rgba(0, 128, 255, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* Hologram scan lines */
.holo-scan {
    position: relative;
    overflow: hidden;
}

.holo-scan::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 255, 255, 0.05) 45%,
        rgba(0, 255, 255, 0.1) 50%,
        rgba(0, 255, 255, 0.05) 55%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: scan-line 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes scan-line {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 140px;
    width: auto;
    filter: drop-shadow(var(--glow-cyan));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(var(--glow-cyan)) drop-shadow(var(--glow-blue));
}

/* Enhanced navigation effects */
.nav-glow {
    position: relative;
}

.nav-glow::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 6px;
}

.nav-glow:hover::before {
    opacity: 0.1;
}
