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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    overflow-x: hidden;
    direction: rtl;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.background-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.background-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.4) 0%, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 3;
}

.background-image[src*=".mp4"],
.background-image[src*=".webm"],
.background-image[src*=".ogg"] {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    filter: blur(10px);
}

.content {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
}

/* Video background styles */
video.background-image {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    filter: blur(3px);
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
    transform-origin: center center;
}

/* Large screens (Desktop) - 1920px and above */
@media (min-width: 1920px) {
    video.background-image {
        transform: scale(1.0);
        filter: blur(2px);
    }
}

/* Large laptops - 1440px to 1919px */
@media (min-width: 1440px) and (max-width: 1919px) {
    video.background-image {
        transform: scale(1.1);
        filter: blur(2px);
    }
}

/* Medium laptops - 1024px to 1439px */
@media (min-width: 1024px) and (max-width: 1439px) {
    video.background-image {
        transform: scale(1.2);
        filter: blur(3px);
    }
}

/* Tablets - 768px to 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    video.background-image {
        transform: scale(1.5);
        filter: blur(4px);
    }
}

/* Large phones - 481px to 767px */
@media (min-width: 481px) and (max-width: 767px) {
    video.background-image {
        transform: scale(2.0);
        filter: blur(5px);
    }
}

/* Small phones - 320px to 480px */
@media (max-width: 480px) {
    video.background-image {
        transform: scale(2.5);
        filter: blur(6px);
    }
}

/* Extra small phones - below 320px */
@media (max-width: 320px) {
    video.background-image {
        transform: scale(3.0);
        filter: blur(7px);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    video.background-image {
        transform: scale(1.8);
        filter: blur(4px);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    video.background-image {
        filter: blur(2px);
    }
}



.center-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 412px;
    height: 915px;
    border-radius: 20px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
}

.center-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    z-index: -1;
}

.profile-large {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.5));
    margin-top: 1rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
}

.profile-large:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.logo-inside {
    position: absolute;
    transform: translateY(280px) translateX(-5px);
    max-width: 250px;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    margin-bottom: 1rem;
    z-index: 16;
}

.language-selector {
    display: flex;
    gap: 10px;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.content-text {
    text-align: center;
    max-width: 350px;
    margin-top: 6rem;
}

.text-content {
    display: none;
    color: white;
}

.text-content.active {
    display: block;
}

.text-content h3 {
    font-size: 24px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.text-content p {
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.social-media {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
    justify-content: center;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
}

.social-icon.youtube:hover {
    background: #ff0000;
    border-color: transparent;
}

.social-icon.facebook:hover {
    background: #1877f2;
    border-color: transparent;
}

.social-icon.tiktok:hover {
    background: linear-gradient(45deg, #ff0050, #00f2ea);
    border-color: transparent;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
    }
    
    html {
        overflow-x: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    .content {
        padding: 1rem;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .logo {
        max-width: 150px;
    }
    
    .profile {
        max-width: 100px;
    }
    
    .social-media {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
}
