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

body {
    font-family: 'Cairo', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.language-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.lang-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1e40af;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.mobile-lang-dropdown {
    display: none;
    position: relative;
}

.mobile-lang-dropdown select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 500;
    color: #1e40af;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e40af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 35px;
    text-align: center;
}

.mobile-lang-dropdown select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mobile-lang-dropdown select:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.mobile-lang-dropdown select option {
    background: #ffffff;
    color: #1e40af;
    padding: 10px;
}

/* Main Section */
.main-section {
    padding: 100px 20px 40px;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1)), url('images/port.jpeg');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.logo-container {
    background: transparent;
    backdrop-filter: none;
    border-radius: 20px;
    padding: 30px;
    box-shadow: none;
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.logo {
    max-width: 600px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    animation: logoSlideIn 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    transform: translateX(-100vw) scale(0.5);
}

@keyframes logoSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100vw) scale(0.5);
    }
    30% {
        opacity: 0.7;
        transform: translateX(-20vw) scale(0.8);
    }
    60% {
        opacity: 0.9;
        transform: translateX(5vw) scale(1.1);
    }
    80% {
        opacity: 1;
        transform: translateX(-2vw) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.since-text {
    font-size: 1.5rem;
    color: #1e40af;
    font-weight: 300;
    letter-spacing: 1px;
    animation: fadeInUp 1.5s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
    display: inline-block;
    white-space: nowrap;
    margin-top: 10px;
    text-align: center;
}

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

/* Gallery Section */
.gallery-section {
    padding: 30px 0;
    background: rgba(59, 130, 246, 0.05);
    overflow: hidden;
    position: relative;
}

.gallery-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/* Desktop-only elements */
.desktop-only {
    display: block;
}


/* Gallery wrapper for desktop scrolling */
.gallery-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.gallery-track {
    display: flex;
    flex-direction: row;
    transition: transform 0.1s ease-out;
    will-change: transform;
    gap: 20px;
    padding: 0 20px;
    justify-content: flex-start;
    align-items: flex-start;
}

.gallery-item {
    flex: 0 0 400px;
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Custom scrollbar for desktop */
.gallery-scrollbar {
    margin-top: 20px;
    padding: 0 20px;
}

.scrollbar-track {
    width: 100%;
    height: 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.scrollbar-thumb {
    height: 100%;
    background: linear-gradient(45deg, #3b82f6, #1e40af);
    border-radius: 4px;
    width: 20%;
    transition: all 0.3s ease;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    position: absolute;
    top: 0;
    left: 0;
}


.scrollbar-thumb:hover {
    background: linear-gradient(45deg, #1e40af, #3b82f6);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.scrollbar-thumb:active {
    cursor: grabbing;
}

/* Contact Container */
.contact-video-container {
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
}

/* Video Section */
.video-section {
    background: rgba(59, 130, 246, 0.05);
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.main-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    object-fit: cover;
    background: #000;
}

.main-video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Video styling for mobile */
@media (max-width: 768px) {
    .main-video {
        min-height: 200px;
        background: #000;
        object-fit: contain;
    }
    
    .video-container {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 15px;
        position: relative;
    }
    
    /* Ensure video poster shows on mobile */
    .main-video[poster] {
        background-image: url('images/thumbnail.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* About Section */
.about-section {
    padding: 30px 20px;
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
}

/* Desktop layout - side by side for content only */
@media (min-width: 769px) {
    .about-content-wrapper {
        display: flex;
        align-items: center;
        gap: 40px;
        margin-top: 20px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-content {
        flex: 1;
        margin: 0;
        align-self: stretch;
        display: flex;
        align-items: center;
    }
    
    .about-section .video-container {
        flex: 1;
        margin: 0;
        max-width: none;
        align-self: stretch;
    }
}

/* Video container within About section */
.about-section .video-container {
    max-width: 800px;
    margin: 30px auto 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(59, 130, 246, 0.3);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #374151;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Packages Section */
.packages-section {
    padding: 30px 20px;
    background: rgba(59, 130, 246, 0.05);
}

.packages-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.package-category {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: transform 0.3s ease;
}

.package-category:hover {
    transform: translateY(-5px);
}

.package-category h3 {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.package-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    color: #374151;
}

.package-item:last-child {
    border-bottom: none;
}

.price {
    font-weight: 600;
    color: #3b82f6;
    font-size: 1.1rem;
}

/* Banks Section */
.banks-section {
    padding: 30px 20px;
    background: rgba(59, 130, 246, 0.05);
    backdrop-filter: blur(10px);
}

.banks-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: flex-start;
}

.bank-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.bank-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.bank-circle:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
}

.bank-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.bank-circle:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.bank-name {
    color: #1e40af;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(59, 130, 246, 0.3);
    margin-top: 10px;
    max-width: 150px;
    line-height: 1.3;
}

.bank-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 1;
    position: relative;
}

.bank-image {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(59, 130, 246, 0.3);
}

/* Contact Section */
.contact-section {
    padding: 60px 20px;
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: #374151;
    font-size: 16px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    font-family: 'Cairo', Arial, sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(55, 65, 81, 0.7);
    font-family: 'Cairo', Arial, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(255, 255, 255, 0.85);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #3b82f6, #1e40af);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* Footer */
.footer {
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    text-align: center;
    color: #374151;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .language-selector {
        display: flex;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .mobile-lang-dropdown {
        display: none;
    }
    
    .header {
        padding: 15px 20px;
        background: rgba(59, 130, 246, 0.15);
        backdrop-filter: blur(15px);
    }
    
    .logo {
        max-width: 450px;
        animation: logoSlideIn 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    .since-text {
        font-size: 1.2rem;
    }
    
    .logo-container {
        padding: 25px 20px;
    }
    
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        font-size: 1.1rem;
        padding: 20px;
    }
    
    /* Mobile layout - stacked */
    .about-content-wrapper {
        display: block;
    }
    
    /* Video in About section for mobile */
    .about-section .video-container {
        margin: 20px auto 0;
        max-width: 800px;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .package-category {
        padding: 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .banks-container {
        gap: 25px;
    }
    
    .bank-item {
        gap: 12px;
    }
    
    .bank-circle {
        width: 120px;
        height: 120px;
    }
    
    .bank-name {
        font-size: 0.9rem;
        max-width: 120px;
    }
    
    .bank-logo {
        width: 100%;
        height: 100%;
    }
    
    .main-section {
        padding: 60px 15px 20px;
        min-height: 40vh;
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }
    
    /* Gallery responsive */
    .gallery-section {
        padding: 20px 0;
    }
    
    /* Hide desktop controls on mobile */
    .desktop-only {
        display: none;
    }
    
    /* Enable mobile scrolling */
    .gallery-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
    }
    
    .gallery-wrapper::-webkit-scrollbar {
        height: 6px;
    }
    
    .gallery-wrapper::-webkit-scrollbar-track {
        background: rgba(59, 130, 246, 0.1);
        border-radius: 3px;
    }
    
    .gallery-wrapper::-webkit-scrollbar-thumb {
        background: rgba(59, 130, 246, 0.3);
        border-radius: 3px;
    }
    
    .gallery-wrapper::-webkit-scrollbar-thumb:hover {
        background: rgba(59, 130, 246, 0.5);
    }
    
    .gallery-track {
        gap: 15px;
        padding: 0 15px;
        /* Remove transition for mobile to allow smooth scrolling */
        transition: none;
    }
    
    .gallery-item {
        flex: 0 0 320px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .language-selector {
        gap: 6px;
    }
    
    .lang-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .header {
        padding: 12px 15px;
    }
    
    .logo {
        max-width: 350px;
        animation: logoSlideIn 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    .since-text {
        font-size: 1rem;
        padding: 6px 12px;
    }
    
    .logo-container {
        padding: 20px 15px;
    }
    
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-content {
        font-size: 1rem;
        padding: 15px;
    }
    
    /* Small mobile layout - stacked */
    .about-content-wrapper {
        display: block;
    }
    
    /* Video in About section for small mobile */
    .about-section .video-container {
        margin: 15px auto 0;
        max-width: 800px;
    }
    
    .package-category {
        padding: 15px;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .banks-container {
        gap: 20px;
    }
    
    .bank-item {
        gap: 10px;
    }
    
    .bank-circle {
        width: 100px;
        height: 100px;
    }
    
    .bank-name {
        font-size: 0.8rem;
        max-width: 100px;
    }
    
    .bank-logo {
        width: 100%;
        height: 100%;
    }
    
    /* Gallery responsive for small screens */
    .gallery-item {
        flex: 0 0 280px;
        height: 180px;
    }
    
    .gallery-track {
        gap: 10px;
        padding: 0 10px;
        /* Remove transition for mobile to allow smooth scrolling */
        transition: none;
    }
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

/* Force gallery to behave the same in RTL */
[dir="rtl"] .gallery-track {
    flex-direction: row !important;
    justify-content: flex-start !important;
    direction: ltr !important;
}

[dir="rtl"] .gallery-wrapper {
    direction: ltr !important;
}



[dir="rtl"] .logo-container,
[dir="rtl"] .about-content,
[dir="rtl"] .contact-form {
    text-align: center;
}

/* LTR Support */
[dir="ltr"] {
    text-align: left;
}

[dir="ltr"] .logo-container,
[dir="ltr"] .about-content,
[dir="ltr"] .contact-form {
    text-align: center;
}

/* Floating WhatsApp button */
.wa-float-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1500;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.wa-float-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.wa-float-btn__icon {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}
