:root {
            --primary-color: #1a3a6c;
            --secondary-color: #1a3a6c;
            --accent-color: #ff0c0c;
            --light-color: #f8f9fa;
            --dark-color: #212529;
            --panel-bg: rgba(15, 23, 42, 0.8);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Tajawal', sans-serif;
        }

        body {
            background-color: #000000;
            color: var(--light-color);
            overflow-x: hidden;
            height: 100vh;
            position: relative;
            animation: art-shine 8s infinite;
        }

        .container-fluid {
            height: 100vh;
            padding: 0;
            overflow: hidden;
        }
        
        .split-row {
            height: 100%;
            margin: 0;
        }
        
        .right-panel, .left-panel {
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 1rem;
            position: relative;
            transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .right-panel {
            background-image: url("../img/bg_r.jpg");
            background-repeat: no-repeat;
            background-size: cover;
            border: none !important;
            box-shadow: none !important;
            outline: none !important;
        }
        
        .left-panel {
            padding: 0;
            overflow: hidden;
        }
        
        .logo-container {
            margin-bottom: 2rem;
            text-align: center;
            width: 100%;
            padding: 0 1rem;
        }
        
        .company-logo {
            width: 120px;
            height: 120px;
            margin-bottom: 1.5rem;
            object-fit: contain;
            transition: opacity 1.5s ease;
            animation: pulse 2s infinite;
        }
        
        .section-logo{
            object-fit: contain;
            transition: opacity 1.5s ease;
            animation: float 3s ease-in-out infinite;
        }

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

        .company-name {
            font-size: 2rem;
            font-weight: 800;
            background: linear-gradient(45deg,rgb(4, 52, 94),rgb(254, 0, 0));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 1.5rem;
            line-height: 1.2;
        }
        
        .social-links {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            width: 100%;
            padding: 0 1rem;
        }
        
        .social-icon {
            font-size: 1.2rem;
            color: var(--dark-color);
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.1);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .social-icon:hover {
            transform: translateY(-3px);
            color: var(--accent-color);
            background: rgba(255, 255, 255, 0.2);
        }
        
        .language-selector {
            margin-top: 1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            padding: 0 1rem;
        }
        
        .lang-buttons {
            display: flex;
            gap: 0.8rem;
            justify-content: center;
            flex-wrap: wrap;
            width: 100%;
            margin-bottom: 1rem;
        }
        
        .lang-btn, .contact-btn {
            padding: 0.4rem 1rem;
            border: 1px solid rgba(255, 255, 255, 0.3);
            background: transparent;
            color: var(--dark-color);
            border-radius: 20px;
            transition: all 0.3s ease;
            font-weight: bold;
            font-size: 0.9rem;
            cursor: pointer;
        }
        
        .lang-btn:hover, .lang-btn.active {
            background: var(--accent-color);
            color: var(--light-color);
            border-color: var(--accent-color);
            transform: translateY(-2px);
        }
        
        .contact-btn {
            width: calc(100% - 2rem);
            max-width: 300px;
            background: rgba(255, 107, 53, 0.2);
            position: relative;
            overflow: hidden;
            text-align: center;
            margin-top: 0.5rem;
        }
        
        .contact-btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transform: translateX(-100%);
            transition: transform 0.6s ease;
        }
        
        .contact-btn:hover {
            background: var(--accent-color);
            border-color: var(--accent-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }
        
        .contact-btn:hover::after {
            transform: translateX(100%);
        }
        
        .sections-container {
            height: 100%;
            width: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .section {
            flex: 1;
            min-height: 33.33%;
            height: 33.33%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.5s ease;
            font-size: 1.8rem;
            font-weight: 700;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
            padding: 1rem;
        }
        
        /* حركة الأقسام عند النقر */
        .section {
            transition: all 0.6s cubic-bezier(.4,2,.6,1);
            cursor: pointer;
            z-index: 1;
        }
        .section.selected {
            z-index: 2;
            transform: scale(1.08);
            box-shadow: 0 8px 32px rgba(44,62,80,0.18);
            background: #f8fafc;
        }
        .section.unselected {
            opacity: 0.5;
            filter: blur(1px);
            pointer-events: none;
        }
        
        .section:last-child {
            border-bottom: none;
        }
        
        .section-1 {
            background-color: #000000;
            background-image: url("../img/cv.jpg");
            background-repeat: no-repeat;
            background-size: cover;
        }
        
        .section-2 {
            background-color: #000000;
            background-image: url("../img/cv.jpg");
            background-repeat: no-repeat;
            background-size: cover;
        }
        
        .section-3 {
            background-color: #000000;
            background-image: url("../img/cv.jpg");
            background-repeat: no-repeat;
            background-size: cover;
        }
        
        .loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--light-color);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 1.8s ease;
            background-image: url("../img/bg.jpg");
            background-repeat: no-repeat;
            background-attachment: fixed; 
            background-size: 100% 100%;
            filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.9));
        }

        #section-loading {
            display: none;
            background: rgba(15, 23, 42, 0.9);
        }
        
        .loading-screen.hidden {
            opacity: 0;
            pointer-events: none;
        }
        
        #section-loading.hidden {
            display: none;
        }
        
        .loading-logo {
            width: 100px;
            height: 100px;
            background-size: contain;
            animation: ping 1.8s linear infinite;
            margin-bottom: 1.5rem;
        }
        
        .loading-text {
            font-size: 1.2rem;
            color: var(--light-color);
        }
        
        .section-content {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--dark-color);
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 1.5rem;
            z-index: 100;
            overflow-y: auto;
        }
        
        .close-btn {
            position: absolute;
            top: 1rem;
            right: 1rem;
            font-size: 1.2rem;
            color: var(--light-color);
            background: rgba(255, 255, 255, 0.1);
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 101;
        }
        
        .close-btn:hover {
            transform: rotate(25deg);
            background: var(--accent-color);
        }
        
        .content-title {
            font-size: 2rem;
            margin-bottom: 1.5rem;
            text-align: center;
            background: linear-gradient(45deg, var(--accent-color), #ff9e6d);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .content-text {
            font-size: 1rem;
            max-width: 700px;
            text-align: center;
            line-height: 1.7;
            margin-bottom: 1.5rem;
            padding: 0 1rem;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        @keyframes ping {
            75%, 100% {transform: scale(2);opacity: 0;}
        }
        
        @keyframes pulse {
            0% { transform: scale(1); opacity: 0.8; }
            50% { transform: scale(1.05); opacity: 1; }
            100% { transform: scale(1); opacity: 0.8; }
        }
        
        /* تعديلات لضبط حركة العناصر حسب الاتجاه */
        html[dir="ltr"] .right-panel,
        html[dir="ltr"] .section {
            transform-origin: left center;
        }
        
        html[dir="rtl"] .right-panel,
        html[dir="rtl"] .section {
            transform-origin: right center;
        }
        
        @media (max-width: 992px) {
            .company-name {
                font-size: 1.8rem;
            }
            
            .section {
                font-size: 1.5rem;
                padding: 0.8rem;
            }
        }
        
        @media (max-width: 768px) {
            .split-row {
                flex-direction: column;
                height: 100vh;
            }
            
            .right-panel {
                height: 40vh;
                min-height: 40vh;
                padding: 1.5rem 1rem;
                border-right: none;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            }
            
            .left-panel {
                height: 60vh;
                min-height: 60vh;
                flex: 1;
            }
            
            .sections-container {
                height: 100%;
                min-height: 100%;
                display: flex;
                flex-direction: column;
            }
            
            .section {
                flex: 1;
                min-height: calc(100% / 3) !important;
                height: calc(100% / 3) !important;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 1.4rem;
            }
            
            .company-logo {
                width: 80px;
                height: 80px;
                margin-bottom: 1rem;
            }
            
            .company-name {
                font-size: 1.6rem;
                margin-bottom: 1rem;
            }
            
            .social-icon {
                width: 36px;
                height: 36px;
                font-size: 1rem;
            }
            
            .lang-btn, .contact-btn {
                padding: 0.3rem 0.8rem;
                font-size: 0.8rem;
            }
        }
        
        @media (max-width: 576px) {
            .right-panel {
                min-height: 40vh;
                height: 40vh;
            }
            
            .left-panel {
                min-height: 60vh;
                height: 60vh;
            }
            
            .section {
                min-height: calc(60vh / 3) !important;
                height: calc(60vh / 3) !important;
                font-size: 1.3rem;
                padding: 0.5rem;
            }
            
            .company-name {
                font-size: 1.4rem;
            }
            
            .contact-btn {
                width: calc(100% - 1rem);
            }
        }
        
        @media (max-height: 700px) and (max-width: 576px) {
            .right-panel {
                min-height: 45vh;
                height: 45vh;
            }
            
            .left-panel {
                min-height: 55vh;
                height: 55vh;
            }
            
            .section {
                min-height: calc(55vh / 3) !important;
                height: calc(55vh / 3) !important;
                font-size: 1.2rem;
            }
        }

        /* إضافة أنماط للغة الإنجليزية والإسبانية عندما تكون نشطة */
        html[dir="ltr"] body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        html[dir="ltr"] .section {
            text-align: left;
        }
        
        html[dir="ltr"] .content-text {
            text-align: left;
        }