/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066CC;
    --dark-blue: #004499;
    --light-blue: #E6F2FF;
    --white: #FFFFFF;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 102, 204, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    animation: pageLoad 0.5s ease-out;
}

/* Use Almarai font for Arabic */
html[lang="ar"] body,
html[dir="rtl"] body {
    font-family: 'Almarai', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.hero .container {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

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

.lang-toggle-wrapper {
    margin-right: 1rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 36px;
    background: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.lang-toggle:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
    transform: translateY(-1px);
}

.lang-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding-top: 80px;
    overflow: hidden;
    text-align: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

/* Animated Background Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255, 255, 255, 0.25), transparent);
    background-size: 200% 200%;
    animation: particleMove 20s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes particleMove {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%, 20% 80%;
    }
    50% {
        background-position: 100% 100%, 0% 0%, 50% 50%, 20% 80%, 80% 20%;
    }
}

/* Floating Gradient Orbs */
.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation: floatOrb1 15s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.3) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation: floatOrb2 18s ease-in-out infinite;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation: floatOrb3 12s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, 150px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 100px) scale(0.9);
    }
}

@keyframes floatOrb2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-100px, -150px) scale(1.2);
    }
}

@keyframes floatOrb3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(80px, -100px) scale(1.15);
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/logo.png') center/contain no-repeat;
    opacity: 0.05;
    z-index: 1;
    animation: logoFloat 20s ease-in-out infinite;
}

/* Dynamic 3D Background Shapes */
.dynamic-3d-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 2000px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Ensure sections have relative positioning for 3D shapes */
.section {
    position: relative;
    overflow: hidden;
}

.shape-3d {
    position: absolute;
    transform-style: preserve-3d;
    animation: float3D 20s ease-in-out infinite;
}

/* Code Brackets 3D */
.code-bracket-1 {
    top: 15%;
    left: 10%;
    animation-duration: 15s;
    animation-delay: 0s;
}

.code-bracket-2 {
    top: 60%;
    right: 15%;
    animation-duration: 18s;
    animation-delay: 3s;
}

.code-bracket-3 {
    top: 35%;
    left: 5%;
    animation-duration: 12s;
    animation-delay: 6s;
}

.bracket {
    font-size: 8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    text-shadow: 
        0 0 30px rgba(0, 102, 204, 0.5),
        0 0 60px rgba(0, 102, 204, 0.3);
    transform-style: preserve-3d;
    animation: bracketRotate 10s linear infinite;
    font-family: 'Courier New', monospace;
}

/* Adjust bracket color for white/light backgrounds */
.about-section .bracket,
.vision-mission-section .bracket,
.services-section .bracket,
.values-section .bracket,
.why-choose-section .bracket,
.clients-section .bracket,
.technologies-section .bracket {
    color: rgba(0, 102, 204, 0.1);
    text-shadow: 
        0 0 30px rgba(0, 102, 204, 0.3),
        0 0 60px rgba(0, 102, 204, 0.2);
}

@keyframes bracketRotate {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    50% {
        transform: rotateY(180deg) rotateX(10deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(0deg);
    }
}

/* 3D PC/Monitor Shape */
.pc-shape-3d {
    top: 25%;
    right: 20%;
    animation-duration: 22s;
    animation-delay: 2s;
}

.pc-3d-wrapper {
    transform-style: preserve-3d;
    animation: pcRotate3D 25s linear infinite;
}

.pc-screen-3d {
    width: 120px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 102, 204, 0.4);
    border-radius: 8px;
    position: relative;
    transform: translateZ(10px);
    box-shadow: 
        0 0 30px rgba(0, 102, 204, 0.4),
        inset 0 0 20px rgba(0, 102, 204, 0.2);
}

.pc-screen-3d::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 4px;
}

.pc-stand-3d {
    width: 60px;
    height: 15px;
    background: rgba(200, 200, 200, 0.2);
    position: absolute;
    top: 80px;
    left: 30px;
    transform: translateZ(0);
    border-radius: 0 0 5px 5px;
}

.pc-stand-3d::after {
    content: '';
    width: 40px;
    height: 20px;
    background: rgba(150, 150, 150, 0.2);
    position: absolute;
    bottom: -20px;
    left: 10px;
    border-radius: 0 0 8px 8px;
}

@keyframes pcRotate3D {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: rotateY(90deg) rotateX(10deg);
    }
    50% {
        transform: rotateY(180deg) rotateX(0deg);
    }
    75% {
        transform: rotateY(270deg) rotateX(-10deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(0deg);
    }
}

/* 3D Mouse Shape */
.mouse-shape-3d {
    bottom: 20%;
    left: 15%;
    animation-duration: 16s;
    animation-delay: 4s;
}

.mouse-3d-wrapper {
    transform-style: preserve-3d;
    animation: mouseRotate3D 18s linear infinite;
}

.mouse-top-3d {
    width: 80px;
    height: 50px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(0, 102, 204, 0.3);
    border-radius: 40px 40px 20px 20px;
    position: relative;
    transform: translateZ(8px);
    box-shadow: 
        0 0 25px rgba(0, 102, 204, 0.3),
        inset 0 0 15px rgba(0, 102, 204, 0.1);
}

.mouse-bottom-3d {
    width: 80px;
    height: 8px;
    background: rgba(200, 200, 200, 0.15);
    position: absolute;
    top: 50px;
    transform: translateZ(0);
    border-radius: 0 0 10px 10px;
}

.mouse-wheel-3d {
    width: 4px;
    height: 20px;
    background: rgba(0, 102, 204, 0.5);
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%) translateZ(10px);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.6);
    animation: wheelScroll 2s ease-in-out infinite;
}

@keyframes wheelScroll {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) translateZ(10px) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateZ(10px) translateY(5px);
    }
}

@keyframes mouseRotate3D {
    0% {
        transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg);
    }
    33% {
        transform: rotateY(120deg) rotateX(15deg) rotateZ(5deg);
    }
    66% {
        transform: rotateY(240deg) rotateX(-15deg) rotateZ(-5deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(0deg) rotateZ(0deg);
    }
}

/* Floating Animation for All 3D Shapes */
@keyframes float3D {
    0%, 100% {
        transform: translateY(0) translateX(0) rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotateY(90deg) rotateX(5deg);
    }
    50% {
        transform: translateY(-50px) translateX(0) rotateY(180deg) rotateX(0deg);
    }
    75% {
        transform: translateY(-30px) translateX(-20px) rotateY(270deg) rotateX(-5deg);
    }
}

/* Right to Left Animated Elements */
.rtl-animated-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.rtl-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: moveRightToLeft linear infinite;
}

.rtl-shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    animation-duration: 15s;
    animation-delay: 0s;
    box-shadow: 0 0 30px rgba(0, 102, 204, 0.3);
}

.rtl-shape-2 {
    width: 120px;
    height: 120px;
    top: 40%;
    animation-duration: 20s;
    animation-delay: 2s;
    box-shadow: 0 0 40px rgba(0, 102, 204, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.rtl-shape-3 {
    width: 60px;
    height: 60px;
    top: 60%;
    animation-duration: 12s;
    animation-delay: 4s;
    box-shadow: 0 0 25px rgba(0, 102, 204, 0.3);
}

.rtl-shape-4 {
    width: 100px;
    height: 100px;
    top: 75%;
    animation-duration: 18s;
    animation-delay: 1s;
    box-shadow: 0 0 35px rgba(0, 102, 204, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.rtl-shape-5 {
    width: 70px;
    height: 70px;
    top: 10%;
    animation-duration: 14s;
    animation-delay: 3s;
    box-shadow: 0 0 28px rgba(0, 102, 204, 0.3);
}

@keyframes moveRightToLeft {
    0% {
        transform: translateX(calc(100vw + 200px)) translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(-200px) translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Additional floating particles from right */
.rtl-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.rtl-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleRTL linear infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes particleRTL {
    0% {
        transform: translateX(calc(100vw + 50px)) translateY(0);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateX(-50px) translateY(calc(var(--random-y) * 1px));
        opacity: 0;
    }
}

@keyframes logo3DAppear {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0) rotateY(180deg);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1) rotateY(0deg);
    }
}


@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0.05;
    }
    50% {
        transform: translateY(-30px) scale(1.05) rotate(2deg);
        opacity: 0.08;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    opacity: 1;
    visibility: visible;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: wordReveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    color: var(--white);
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.5),
        0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    font-weight: 700;
}

/* Fallback: if background-clip doesn't work, use solid white */
@supports not (-webkit-background-clip: text) {
    .title-word {
        color: var(--white);
        background: none;
        -webkit-text-fill-color: var(--white);
    }
}

.title-word::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
    opacity: 0;
    animation: wordShine 2s ease-in-out infinite;
}

@keyframes wordReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes wordShine {
    0%, 100% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 0.5;
        transform: translateX(100%);
    }
}

.word-1 { animation-delay: 0.1s; }
.word-2 { animation-delay: 0.2s; }
.word-3 { animation-delay: 0.3s; }
.word-4 { animation-delay: 0.4s; }

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    line-height: 1.8;
    animation: subtitleFadeIn 1s ease forwards;
    animation-delay: 0.8s;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.subtitle-text {
    display: inline-block;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 255, 255, 0.3);
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards;
    animation-delay: 1.5s;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    position: relative;
    animation: mouseMove 2s ease-in-out infinite;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 2s ease-in-out infinite;
}

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

@keyframes wheelScroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.scroll-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: var(--white);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: buttonReveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 1s;
}

@keyframes buttonReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9) rotateX(90deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

.button-text {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.button-icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.8);
}

.button-shine {
    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.6s;
    z-index: 1;
}

.cta-button:hover .button-shine {
    left: 100%;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 1;
}

.cta-button:hover::before {
    width: 400px;
    height: 400px;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.cta-button:hover .button-text {
    transform: translateX(-5px);
}

.cta-button:hover .button-icon {
    transform: scale(1) translateX(5px) rotate(-15deg);
    background: var(--dark-blue);
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--primary-blue);
    margin: 0 auto;
    border-radius: 2px;
    animation: underlineExpand 1s ease-out;
}

@keyframes underlineExpand {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

/* About Section */
.about-section {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 102, 204, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 68, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    transform-style: preserve-3d;
}

.about-text {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-dark);
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin: 0 auto;
    max-width: 850px;
    padding: 3rem 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 102, 204, 0.05);
    position: relative;
}

.about-text::first-line {
    font-weight: 500;
    color: var(--primary-blue);
    font-size: 1.3rem;
}

.about-text strong {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.25rem;
}

.about-text em {
    color: var(--dark-blue);
    font-style: normal;
    font-weight: 500;
    position: relative;
}

/* Vision & Mission Section */
.vision-mission-section {
    background: var(--bg-light);
    perspective: 1200px;
    overflow: hidden;
    position: relative;
}

.vision-mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 102, 204, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 68, 153, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.vision-mission-section .container {
    position: relative;
    z-index: 1;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.vm-card {
    background: var(--white);
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 102, 204, 0.05);
    transition: box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.6s;
    z-index: 0;
}

.vm-card > * {
    position: relative;
    z-index: 1;
}

.vm-card:hover {
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 102, 204, 0.1);
}

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


.vm-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    display: inline-block;
    transition: color 0.3s ease;
    position: relative;
}

.vm-icon i {
    display: block;
}

.vm-card:hover .vm-icon {
    color: var(--dark-blue);
}

.vm-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.vm-text {
    color: var(--text-dark);
    line-height: 2;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    margin-top: 0.5rem;
}

/* Services Section */
.services-section {
    background: var(--bg-white);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    box-shadow: 0 15px 40px var(--shadow-hover);
    border-color: var(--primary-blue);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.service-icon i {
    display: block;
}

.service-card:hover .service-icon {
    color: var(--dark-blue);
}

.service-card:hover .service-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    border-radius: 50%;
    z-index: -1;
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-text {
    color: var(--text-light);
    line-height: 1.7;
}

/* Values Section */
.values-section {
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
}

.value-item:hover {
    box-shadow: 0 12px 30px var(--shadow-hover);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    display: inline-block;
    transition: all 0.4s ease;
    position: relative;
}

.value-icon i {
    display: block;
}

.value-item:hover .value-icon {
    color: var(--dark-blue);
}

.value-item:hover .value-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: pulse 1.5s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.value-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Why Choose Section */
.why-choose-section {
    background: var(--bg-white);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.why-item:nth-child(4) {
    grid-column: 1;
}

.why-item:nth-child(5) {
    grid-column: 3;
}

.why-item {
    text-align: center;
    padding: 2rem;
}

.why-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.why-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.why-text {
    color: var(--text-light);
    line-height: 1.7;
}

/* Clients Section */
.clients-section {
    background: var(--bg-light);
}

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

.client-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
}

.client-card:hover {
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.client-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.client-icon i {
    display: block;
}

.client-card:hover .client-icon {
    color: var(--dark-blue);
}

.client-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Technologies Section */
.technologies-section {
    background: var(--bg-white);
}

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

.tech-category {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-blue);
}

.tech-category-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    background: var(--white);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
}

.contact-section .section-title {
    color: var(--white);
}

.contact-section .title-underline {
    background: var(--white);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--white);
    display: inline-block;
    transition: all 0.3s ease;
}

.contact-icon i {
    display: block;
}

.contact-item:hover .contact-icon {
    transform: scale(1.2) rotate(10deg);
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Keep In Touch Section */
.keep-in-touch {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.keep-in-touch-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: 0;
}

.social-icon i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon:hover i {
    transform: scale(1.2);
}

/* Specific colors for social icons */
.social-icon:nth-child(1):hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.social-icon:nth-child(2):hover {
    background: #1877F2;
    border-color: #1877F2;
    color: var(--white);
}

.social-icon:nth-child(3):hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
    color: var(--white);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 35px;
    width: auto;
}

.footer-logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-text {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-copyright {
    opacity: 0.6;
    font-size: 0.9rem;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Animation Delays */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }
.service-card:nth-child(7) { transition-delay: 0.7s; }

.value-item:nth-child(1) { transition-delay: 0.1s; }
.value-item:nth-child(2) { transition-delay: 0.2s; }
.value-item:nth-child(3) { transition-delay: 0.3s; }
.value-item:nth-child(4) { transition-delay: 0.4s; }
.value-item:nth-child(5) { transition-delay: 0.5s; }

/* Enhanced Card Animations */
.service-card,
.vm-card,
.value-item,
.client-card {
    animation: fadeInScale 0.6s ease-out backwards;
}

.service-card {
    animation-delay: calc(var(--index, 0) * 0.1s);
}

/* Parallax Effect */
.hero-background {
    animation: parallax 20s ease-in-out infinite;
}

@keyframes parallax {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* Title Underline Animation */
.title-underline {
    position: relative;
    overflow: hidden;
}

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

/* Number Counter Animation */
.why-number {
    position: relative;
    overflow: hidden;
}

.why-item:hover .why-number {
    animation: numberPulse 0.6s ease;
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Responsive Design */
/* Medium screens - tablets */
@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .lang-toggle-wrapper {
        margin-right: 0.5rem;
    }
    
    .lang-toggle {
        width: 55px;
        height: 32px;
    }
    
    .lang-text {
        font-size: 0.75rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 5px 10px var(--shadow);
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
        gap: 0.3rem;
    }

    .title-word {
        font-size: 0.9em;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .hero-gradient-orb {
        opacity: 0.2;
    }

    .orb-1 {
        width: 250px;
        height: 250px;
    }

    .orb-2 {
        width: 200px;
        height: 200px;
    }

    .orb-3 {
        width: 150px;
        height: 150px;
    }
    

    .section-title {
        font-size: 2rem;
    }

    .vm-grid,
    .services-grid,
    .clients-grid,
    .tech-categories {
        grid-template-columns: 1fr;
    }
    
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .why-item:nth-child(4),
    .why-item:nth-child(5) {
        grid-column: span 1;
    }
    
    .why-item:nth-child(4) {
        grid-column-start: 1;
    }
    
    .why-item:nth-child(5) {
        grid-column-start: 2;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-details {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .keep-in-touch {
        margin-top: 2rem;
        padding-top: 2rem;
    }
    
    .keep-in-touch-title {
        font-size: 1.3rem;
    }
    
    .social-icons {
        gap: 1.5rem;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    /* Responsive 3D Shapes */
    .bracket {
        font-size: 4rem;
    }
    
    .pc-screen-3d {
        width: 80px;
        height: 55px;
    }
    
    .pc-stand-3d {
        width: 40px;
        height: 10px;
        top: 55px;
        left: 20px;
    }
    
    .mouse-top-3d {
        width: 50px;
        height: 35px;
    }
    
    .mouse-bottom-3d {
        width: 50px;
        height: 6px;
        top: 35px;
    }
}

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .why-item:nth-child(4),
    .why-item:nth-child(5) {
        grid-column: span 1;
    }
    
    .why-item:nth-child(4) {
        grid-column-start: 1;
    }
    
    .why-item:nth-child(5) {
        grid-column-start: 1;
    }
    
}

/* ============================================
   ENHANCED 3D ANIMATIONS - PROFESSIONAL
   ============================================ */

/* Floating 3D Cubes */
.cube-3d {
    position: absolute;
    width: 60px;
    height: 60px;
    transform-style: preserve-3d;
    animation: cubeFloat 20s ease-in-out infinite;
}

.cube-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.cube-2 {
    top: 65%;
    right: 12%;
    width: 45px;
    height: 45px;
    animation-delay: -7s;
    animation-duration: 18s;
}

.cube-3 {
    top: 35%;
    right: 25%;
    width: 35px;
    height: 35px;
    animation-delay: -14s;
    animation-duration: 22s;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}

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

.cube-2 .cube-face.front,
.cube-2 .cube-face.back,
.cube-2 .cube-face.right,
.cube-2 .cube-face.left,
.cube-2 .cube-face.top,
.cube-2 .cube-face.bottom { transform: translateZ(22.5px); }

.cube-2 .cube-face.back { transform: rotateY(180deg) translateZ(22.5px); }
.cube-2 .cube-face.right { transform: rotateY(90deg) translateZ(22.5px); }
.cube-2 .cube-face.left { transform: rotateY(-90deg) translateZ(22.5px); }
.cube-2 .cube-face.top { transform: rotateX(90deg) translateZ(22.5px); }
.cube-2 .cube-face.bottom { transform: rotateX(-90deg) translateZ(22.5px); }

.cube-3 .cube-face.front,
.cube-3 .cube-face.back,
.cube-3 .cube-face.right,
.cube-3 .cube-face.left,
.cube-3 .cube-face.top,
.cube-3 .cube-face.bottom { transform: translateZ(17.5px); }

.cube-3 .cube-face.back { transform: rotateY(180deg) translateZ(17.5px); }
.cube-3 .cube-face.right { transform: rotateY(90deg) translateZ(17.5px); }
.cube-3 .cube-face.left { transform: rotateY(-90deg) translateZ(17.5px); }
.cube-3 .cube-face.top { transform: rotateX(90deg) translateZ(17.5px); }
.cube-3 .cube-face.bottom { transform: rotateX(-90deg) translateZ(17.5px); }

@keyframes cubeFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: translateY(-30px) rotateX(90deg) rotateY(90deg) rotateZ(45deg);
    }
    50% {
        transform: translateY(-50px) rotateX(180deg) rotateY(180deg) rotateZ(90deg);
    }
    75% {
        transform: translateY(-25px) rotateX(270deg) rotateY(270deg) rotateZ(135deg);
    }
}

/* Floating Code Lines */
.code-line-3d {
    position: absolute;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border-left: 3px solid rgba(0, 200, 255, 0.6);
    backdrop-filter: blur(10px);
    opacity: 0.7;
    white-space: nowrap;
    animation: codeLineFloat 15s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.code-line-1 {
    top: 25%;
    right: 5%;
    animation-delay: 0s;
}

.code-line-2 {
    bottom: 30%;
    left: 3%;
    animation-delay: -5s;
}

.code-line-3 {
    top: 70%;
    right: 20%;
    animation-delay: -10s;
}

.code-keyword {
    color: #ff79c6;
}

.code-var {
    color: #50fa7b;
}

.code-string {
    color: #f1fa8c;
}

.code-func {
    color: #8be9fd;
}

@keyframes codeLineFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) rotateX(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotateX(5deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-30px) translateX(-5px) rotateX(-3deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-15px) translateX(15px) rotateX(3deg);
        opacity: 0.85;
    }
}

/* 3D Hexagons */
.hexagon-3d {
    position: absolute;
    width: 80px;
    height: 92px;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.15) 0%, rgba(100, 150, 255, 0.1) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexFloat 12s ease-in-out infinite;
    border: 2px solid rgba(0, 200, 255, 0.3);
    backdrop-filter: blur(5px);
}

.hex-1 {
    top: 20%;
    right: 8%;
    animation-delay: 0s;
}

.hex-2 {
    bottom: 25%;
    left: 10%;
    width: 60px;
    height: 69px;
    animation-delay: -4s;
    animation-duration: 14s;
}

.hex-3 {
    top: 55%;
    left: 25%;
    width: 50px;
    height: 58px;
    animation-delay: -8s;
    animation-duration: 16s;
}

@keyframes hexFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translateY(-40px) rotate(60deg) scale(1.1);
        opacity: 0.9;
    }
    66% {
        transform: translateY(-20px) rotate(120deg) scale(0.95);
        opacity: 0.7;
    }
}

/* Circuit Lines */
.circuit-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.4;
}

.circuit-svg {
    width: 100%;
    height: 100%;
}

.circuit-path {
    fill: none;
    stroke: rgba(0, 200, 255, 0.5);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: circuitDraw 8s ease-in-out infinite;
}

.circuit-1 { animation-delay: 0s; }
.circuit-2 { animation-delay: -2.5s; }
.circuit-3 { animation-delay: -5s; }

.circuit-node {
    fill: rgba(0, 200, 255, 0.8);
    animation: nodePulse 2s ease-in-out infinite;
}

.node-1 { animation-delay: 0s; }
.node-2 { animation-delay: -0.5s; }
.node-3 { animation-delay: -1s; }
.node-4 { animation-delay: -1.5s; }

@keyframes circuitDraw {
    0%, 100% {
        stroke-dashoffset: 1000;
        opacity: 0.3;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 0.6;
    }
}

@keyframes nodePulse {
    0%, 100% {
        r: 5;
        opacity: 0.6;
    }
    50% {
        r: 8;
        opacity: 1;
    }
}

/* Enhanced PC Screen */
.screen-content {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
}

.screen-line {
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(0, 255, 100, 0.6) 0%, 
        rgba(0, 200, 255, 0.4) 50%, 
        transparent 100%);
    border-radius: 2px;
    animation: screenType 3s ease-in-out infinite;
}

.screen-line:nth-child(1) { width: 80%; animation-delay: 0s; }
.screen-line:nth-child(2) { width: 60%; animation-delay: 0.3s; }
.screen-line:nth-child(3) { width: 70%; animation-delay: 0.6s; }

@keyframes screenType {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(0.8);
        transform-origin: left;
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Floating Spheres */
.sphere-3d {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(0, 150, 255, 0.2) 50%, 
        rgba(0, 100, 200, 0.1) 100%);
    box-shadow: 
        inset -10px -10px 30px rgba(0, 0, 0, 0.2),
        inset 10px 10px 30px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(0, 150, 255, 0.3);
    animation: sphereFloat 18s ease-in-out infinite;
}

.sphere-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}

.sphere-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 8%;
    animation-delay: -6s;
}

.sphere-3 {
    width: 40px;
    height: 40px;
    top: 45%;
    left: 20%;
    animation-delay: -12s;
}

@keyframes sphereFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
    }
    25% {
        transform: translateY(-50px) translateX(30px) scale(1.05);
    }
    50% {
        transform: translateY(-80px) translateX(-20px) scale(0.95);
    }
    75% {
        transform: translateY(-40px) translateX(40px) scale(1.02);
    }
}

/* Data Streams */
.data-stream {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: rgba(0, 255, 150, 0.6);
    animation: dataFlow 10s linear infinite;
}

.stream-1 {
    top: 30%;
    right: 3%;
}

.stream-2 {
    bottom: 35%;
    left: 2%;
    animation-delay: -5s;
}

.data-stream span {
    animation: dataGlow 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(0, 255, 150, 0.5);
}

.data-stream span:nth-child(1) { animation-delay: 0s; }
.data-stream span:nth-child(2) { animation-delay: 0.3s; }
.data-stream span:nth-child(3) { animation-delay: 0.6s; }

@keyframes dataFlow {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-200px);
        opacity: 0;
    }
}

@keyframes dataGlow {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

/* Floating Tech Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.float-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    animation: iconFloat 20s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.icon-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
    color: #61DAFB;
}

.icon-2 {
    top: 60%;
    left: 8%;
    animation-delay: -3s;
    color: #68A063;
}

.icon-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: -6s;
    color: #3776AB;
}

.icon-4 {
    top: 20%;
    right: 5%;
    animation-delay: -9s;
    color: #F7DF1E;
}

.icon-5 {
    top: 50%;
    right: 8%;
    animation-delay: -12s;
    color: #00758F;
}

.icon-6 {
    bottom: 25%;
    right: 12%;
    animation-delay: -15s;
    color: #4285F4;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) rotate(10deg) scale(1.1);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-50px) rotate(-5deg) scale(1);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-25px) rotate(8deg) scale(1.05);
        opacity: 0.85;
    }
}

.float-icon:hover {
    transform: scale(1.3) !important;
    opacity: 1 !important;
    box-shadow: 0 0 30px currentColor;
}

/* Glowing Grid */
.glowing-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 200, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.3;
        background-size: 50px 50px;
    }
    50% {
        opacity: 0.5;
        background-size: 52px 52px;
    }
}

/* Enhanced Bracket Glow */
.bracket {
    font-size: 8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    text-shadow: 
        0 0 30px rgba(0, 200, 255, 0.5),
        0 0 60px rgba(0, 200, 255, 0.3),
        0 0 100px rgba(0, 200, 255, 0.2);
    transform-style: preserve-3d;
    animation: bracketRotate 10s linear infinite, bracketGlow 4s ease-in-out infinite;
    font-family: 'Courier New', monospace;
}

@keyframes bracketGlow {
    0%, 100% {
        text-shadow: 
            0 0 30px rgba(0, 200, 255, 0.5),
            0 0 60px rgba(0, 200, 255, 0.3),
            0 0 100px rgba(0, 200, 255, 0.2);
    }
    50% {
        text-shadow: 
            0 0 50px rgba(0, 200, 255, 0.8),
            0 0 100px rgba(0, 200, 255, 0.5),
            0 0 150px rgba(0, 200, 255, 0.3);
    }
}

/* Responsive adjustments for 3D elements */
@media (max-width: 768px) {
    .cube-3d {
        transform: scale(0.7);
    }
    
    .code-line-3d {
        font-size: 0.65rem;
        padding: 6px 12px;
    }
    
    .hexagon-3d {
        transform: scale(0.6);
    }
    
    .sphere-3d {
        transform: scale(0.6);
    }
    
    .float-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .data-stream {
        font-size: 0.6rem;
    }
    
    .circuit-container {
        opacity: 0.2;
    }
    
    .glowing-grid {
        background-size: 30px 30px;
    }
}

@media (max-width: 480px) {
    .cube-3d,
    .hexagon-3d,
    .code-line-3d,
    .data-stream {
        display: none;
    }
    
    .float-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .sphere-3d {
        transform: scale(0.4);
    }
}
