@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

body.rtl {
    font-family: "Cairo", sans-serif;
    direction: rtl;
}

.early-access-section {
    min-height: 100vh;
    display: flex;
    background: #EBEBEB;
}

/* Left Content */
.left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    background: #EBEBEB;
    transition: padding 0.3s ease;
}

.main-heading {
    font-size: 5.5rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #000;
}

.sub-heading {
    font-size: 1.45rem;
    font-weight: 400;
    color: #333;
    letter-spacing: 0.02em;
}

/* Right Content */
.right-content {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    position: absolute;
    width: 60%;
    max-width: 600px;
    height: 100%;
    margin-right: 300px;
}

body.rtl .video-container {
    margin-right: 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Initial animation for access items */
@keyframes showHoverHint {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-20px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes showHoverHintRTL {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(20px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Add initial animation to access items */
.access-item {
    animation: showHoverHint 1s ease-out 1s 1 normal forwards;
    opacity: 0;
}

body.rtl .access-item {
    animation: showHoverHintRTL 1s ease-out 1s 1 normal forwards;
}

.access-item:nth-child(1) {
    animation-delay: 0.5s;
}

.access-item:nth-child(2) {
    animation-delay: 1s;
}

.access-item:nth-child(3) {
    animation-delay: 1.5s;
}

.access-item.show {
    opacity: 1;
}

/* Access Buttons Container */
.access-buttons {
    position: absolute;
    right: 0;
    top: 80%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-right: 80px;
    z-index: 10;
    transition: all 0.3s ease;
}

body.rtl .access-buttons {
    right: auto;
    left: 0;
    margin-right: 0;
    margin-left: 80px;
}

/* Individual Access Item */
.access-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    flex-direction: row-reverse;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

body.rtl .access-item {
    flex-direction: row-reverse;
}

/* Icon Circle - First Section (Right Side) */
.access-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(228, 228, 228, 0.767);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

/* Font Awesome Icons */
.access-icon i {
    font-size: 28px;
    transition: transform 0.3s ease;
}

.fa-whatsapp,
.fa-envelope,
.fa-instagram {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Rectangle Section - Second Section (Left Side) */
.access-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 35px 0 20px;
    background: rgba(238, 236, 236, 0.767);
    height: 3.2em;
    white-space: nowrap;
    margin-right: -25px;
    border-radius: 3px 0 0 3px;
    width: 230px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

body.rtl .access-content {
    margin-right: 0;
    margin-left: -25px;
    border-radius: 0 3px 3px 0;
    padding: 0 20px 0 35px;
    flex-direction: row-reverse;
}

.access-label {
    font-size: 1.2em;
    font-weight: 700;
    font-style: italic;
    color: #000;
    letter-spacing: 0.03em;
    transition: opacity 0.3s ease;
}

.access-details {
    font-size: 1.2em;
    font-weight: 400;
    margin-left: 150px;
    color: #000;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

body.rtl .access-details {
    margin-left: 0;
    margin-right: 150px;
}

/* Icon Colors */
.whatsapp-icon {
    transition: color 0.3s ease;
}

.whatsapp-icon:hover {
    color: #128C7E;
}

.email-icon {
    transition: color 0.3s ease;
}

.email-icon:hover {
    color: #fa0303;
}

.instagram-icon {
    transition: color 0.3s ease;
}

.instagram-icon:hover {
    color: #C13584;
}

/* Hover Effects */
.access-item:hover .access-icon,
.access-item.hover-effect .access-icon {
    background: rgba(238, 236, 236, 0.767);
}

.access-item:hover .access-icon i,
.access-item.hover-effect .access-icon i {
    transform: scale(1.2);
    position: relative;
    top: -2px;
    left: -2px;
}

body.rtl .access-item:hover .access-icon i,
body.rtl .access-item.hover-effect .access-icon i {
    left: auto;
    right: -2px;
}

.access-item:hover .access-content,
.access-item.hover-effect .access-content {
    width: 800px;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
}

body.rtl .access-item:hover .access-content,
body.rtl .access-item.hover-effect .access-content {
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.15);
    width: 800px;
}

.access-item:hover .access-details,
.access-item:hover .access-divider,
.access-item.hover-effect .access-details,
.access-item.hover-effect .access-divider {
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

body.rtl .modal-close {
    right: auto;
    left: 20px;
}

.modal-close:hover {
    color: #000;
}

.modal-header {
    margin-bottom: 30px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 1rem;
    color: #666;
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.modal-icon.vip {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.modal-icon.priority {
    background: rgba(255, 0, 0, 0.1);
    color: #fa0303;
}

.modal-icon.basic {
    background: rgba(193, 53, 132, 0.1);
    color: #C13584;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

body.rtl .form-input {
    text-align: right;
    direction: rtl;
}

.form-input:focus {
    outline: none;
    border-color: #000;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.form-submit:hover {
    background: #333;
}

.form-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Responsive Design - Tablet (max-width: 991px) */
@media (max-width: 991px) {
    .left-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 60px;
    }

    .main-heading {
        font-size: 5.5rem;
        z-index: 1;
    }

    .sub-heading {
        font-size: 1.5rem;
        z-index: 1;
    }

    .access-buttons {
        margin-right: 40px;
        top: 80%;
    }

    body.rtl .access-buttons {
        margin-right: 0;
        margin-left: 40px;
    }

    .access-icon {
        width: 60px;
        height: 60px;
    }

    .access-icon i {
        font-size: 30px;
    }

    .access-content {
        width: 220px;
        height: 3em;
    }

    .access-item:hover .access-content,
    .access-item.hover-effect .access-content {
        width: 600px;
    }

    body.rtl .access-item:hover .access-content,
    body.rtl .access-item.hover-effect .access-content {
        width: 600px;
    }

    .access-label {
        font-size: 1rem;
    }

    .access-details {
        font-size: 0.85rem;
        margin-left: 80px;
    }

    body.rtl .access-details {
        margin-left: 0;
        margin-right: 80px;
    }

    .right-content {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    body.rtl .right-content {
        right: auto;
        left: 0;
    }


        .video-container {
        position: absolute;
        width: 100%;
        height: 200%;
        max-width: none;
        margin: 0;
        top: 50%;
        transform-origin: center center;
        transform: translateY(-35%) rotate(35deg);
    }

    body.rtl .video-container {
        transform: translateY(-35%) rotate(-35deg); 
    }

    .video-wrapper {
        position: relative;
        width: 150%;
        height: 100%;
        overflow: hidden;
    }

    .video-wrapper video {
        position: absolute;
        top: 50%;
        left: 50%;
        right: auto;
        transform-origin: center center;
        object-fit: cover;
        width: auto;  
        height: 120%; 
        transform: translate(-80%, -70%) rotate(-35deg); 
    }

    body.rtl .video-wrapper video {
        left: auto;
        right: 50%;
        transform: translate(80%, -70%) rotate(35deg); 
    }
}

/* Responsive Design - Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .left-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px;
    }

    body.rtl .left-content {
        align-items: flex-start;
    }

    .main-heading {
        font-size: 3rem;
        z-index: 1;
    }


    .sub-heading {
        font-size: 1rem;
        z-index: 1;
    }

    body.rtl .sub-heading {
        text-align: left;
    }

    /* Position buttons on the LEFT side for BOTH languages */
    .access-buttons {
        left: 20px;
        right: auto;
        top: 80%;
        gap: 10px;
        margin-right: 0;
        margin-left: 0;
    }

    body.rtl .access-buttons {
        left: 20px;
        right: 20px;
    }

    /* Icon on left, content on right for BOTH languages */
    .access-item {
        flex-direction: row;
        width: auto;
    }

    body.rtl .access-item {
        flex-direction: row;
    }

    .access-icon {
        width: 50px;
        height: 50px;
    }

    .access-icon i {
        font-size: 24px;
    }

    /* Content always visible and expanded - same for both */
    .access-content {
        opacity: 1;
        transform: translateX(0);
        margin-left: -25px;
        width: 300px;
        margin-right: 0;
        border-radius: 0 3px 3px 0;
        padding: 0 20px 0 35px;
        height: 2.8em;
        flex-direction: row;
    }

    body.rtl .access-content {
        margin-left: -25px;
        margin-right: 0;
        border-radius: 0 3px 3px 0;
        padding: 0 20px 0 35px;
        flex-direction: row;
    }

    /* Always show details */
    .access-details {
        display: inline;
        margin-left: 0;
        opacity: 1;
    }

    .access-label {
        letter-spacing: 0.01em;
        font-size: 0.7rem;
    }

    .access-details {
        font-size: 0.55rem;
        margin-left: 5px;
    }

    body.rtl .access-details {
        margin-left: 5px;
        margin-right: 0;
    }

    /* Same hover effects for both */
    .access-item:hover .access-content,
    .access-item.hover-effect .access-content {
        width: 300px;
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.15);
    }

    body.rtl .access-item:hover .access-content,
    body.rtl .access-item.hover-effect .access-content {
        width: 300px;
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.15);
    }

    .right-content {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    body.rtl .right-content {
        right: 0;
        left: auto;
    }

        .video-container {
        position: absolute;
        width: 100%;
        height: 200%;
        max-width: none;
        margin: 0;
        top: 50%;
        transform-origin: center center;
        transform: translateY(-35%) rotate(35deg);
    }

    body.rtl .video-container {
        transform: translateY(-35%) rotate(-35deg); 
    }

    .video-wrapper {
        position: relative;
        width: 150%;
        height: 100%;
        overflow: hidden;
    }

    .video-wrapper video {
        position: absolute;
        top: 50%;
        left: 50%;
        right: auto;
        transform-origin: center center;
        object-fit: cover;
        width: auto;  
        height: 120%; 
        transform: translate(-80%, -70%) rotate(-35deg); 
    }

    body.rtl .video-wrapper video {
        left: auto;
        right: 50%;
        transform: translate(80%, -70%) rotate(35deg); 
    }
}