:root {
    --primary-dark: #2B0057;
    --medium-purple: #51158C;
    --light-purple: #B163FF;
    --vibrant-turquoise: #00CEC8;
    --pale-turquoise: #81DACA;
    --medium-turquoise: #00B9B3;
    --dark-green: #005451;
    --very-light-gray: #D3D3D3;
    --medium-gray: #878787;
    --black: #000000;
    --white: #ffffff;
    --glass-bg: rgba(81, 21, 140, 0.15);
    --glass-border: rgba(177, 99, 255, 0.3);
    --accent-glow: 0 0 20px var(--vibrant-turquoise);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-dark);
    background-image: 
        radial-gradient(circle at 5% 5%, rgba(81, 21, 140, 0.4) 0%, transparent 30%),
        radial-gradient(circle at 95% 95%, rgba(0, 206, 200, 0.2) 0%, transparent 30%);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
.main-header {
    background: rgba(43, 0, 87, 0.85);
    backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo img {
    height: 60px;
    border-radius: 10px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo img:hover {
    transform: scale(1.1) rotate(-3deg);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--very-light-gray);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--vibrant-turquoise);
    text-shadow: var(--accent-glow);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--vibrant-turquoise);
    transition: width 0.3s ease;
    box-shadow: var(--accent-glow);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Footer */
.main-footer {
    background: var(--black);
    padding: 5rem 0 2rem;
    margin-top: 100px;
    border-top: 1px solid var(--medium-purple);
    text-align: center;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--vibrant-turquoise), transparent);
}




#cl {
    color: #ffffff;
    font-size: 28px;
    letter-spacing: 1.5px;
    padding: 25px 40px;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 0 25px rgba(180, 120, 255, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.2);

    text-align: center;
    text-transform: uppercase;

    animation: floatGlow 4s ease-in-out infinite;
}

@keyframes floatGlow {
    0% {
        transform: translateY(0);
        box-shadow:
            0 0 20px rgba(180, 120, 255, 0.5),
            inset 0 0 10px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: translateY(-12px);
        box-shadow:
            0 0 40px rgba(200, 140, 255, 0.9),
            inset 0 0 20px rgba(255, 255, 255, 0.3);
    }
    100% {
        transform: translateY(0);
        box-shadow:
            0 0 20px rgba(180, 120, 255, 0.5),
            inset 0 0 10px rgba(255, 255, 255, 0.2);
    }
}









.footer-content p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* 3D Text Effects */
.text-3d-animate {
    perspective: 1000px;
    display: inline-block;
}

.text-3d-animate span {
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.text-3d-animate:hover span {
    transform: translateZ(80px) rotateX(15deg);
    color: var(--vibrant-turquoise);
    text-shadow: 0 15px 30px rgba(0, 206, 200, 0.6);
}

/* 3D Carousel (Home Page) */
.carousel-3d-container {
    perspective: 2000px;
    width: 100%;
    height: 450px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
}

.carousel-3d-inner {
    width: 300px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.carousel-item-3d {
    position: absolute;
    width: 300px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.5s;
    cursor: pointer;
}

.carousel-item-3d:hover {
    border-color: var(--vibrant-turquoise);
    box-shadow: var(--accent-glow);
}

.carousel-item-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* VR Animation */
.vr-container {
    width: 100%;
    height: 500px;
    background: radial-gradient(circle, rgba(81, 21, 140, 0.2), transparent);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--glass-border);
}

.tech-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: rotateX(60deg) translateY(-50%);
    animation: gridMove 20s infinite linear;
    opacity: 0.2;
}

@keyframes gridMove {
    from { transform: rotateX(60deg) translateY(-50%); }
    to { transform: rotateX(60deg) translateY(0%); }
}

.vr-box {
    width: 220px;
    height: 220px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateVR 30s infinite linear;
}

.vr-box div {
    position: absolute;
    width: 220px;
    height: 220px;
    background: rgba(0, 206, 200, 0.05);
    border: 1px solid var(--vibrant-turquoise);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--white);
    box-shadow: 0 0 40px rgba(0, 206, 200, 0.2);
    backdrop-filter: blur(10px);
}

.front  { transform: translateZ(110px); }
.back   { transform: rotateY(180deg) translateZ(110px); }
.right  { transform: rotateY(90deg) translateZ(110px); }
.left   { transform: rotateY(-90deg) translateZ(110px); }
.top    { transform: rotateX(90deg) translateZ(110px); }
.bottom { transform: rotateX(-90deg) translateZ(110px); }

@keyframes rotateVR {
    0% { transform: rotateX(0) rotateY(0) rotateZ(0); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

/* Cards & Sections */
.card-3d {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 30px;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-3d:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(177, 99, 255, 0.2);
    border-color: var(--vibrant-turquoise);
}

.hero-section {
    padding: 180px 0 100px;
    position: relative;
}

.btn-primary {
    background: linear-gradient(45deg, var(--vibrant-turquoise), var(--medium-turquoise));
    border: none;
    color: var(--primary-dark);
    font-weight: 900;
    padding: 20px 50px;
    border-radius: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s;
    box-shadow: 0 15px 30px rgba(0, 206, 200, 0.3);
}

.btn-primary:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 206, 200, 0.5);
    background: linear-gradient(45deg, var(--pale-turquoise), var(--vibrant-turquoise));
}


/* Language Switcher */
.lang-switch-btn {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--vibrant-turquoise);
    padding: 8px 25px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 900;
    transition: all 0.3s;
}

.lang-switch-btn:hover {
    background: var(--vibrant-turquoise);
    color: var(--primary-dark);
    box-shadow: var(--accent-glow);
}

/* RTL Support */
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .header-container { flex-direction: row-reverse; }

/* Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--light-purple);
    border-radius: 50%;
    opacity: 0.2;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
    50% { opacity: 0.4; }
    100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(120, 60, 200, 0.7);
    border: none;
    color: white;
    font-size: 35px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(170, 100, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.left { left: -25px; }
.right { right: -25px; }

/* Animation */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
