/* site/gallery.css */
/* Portfolio Specific */
.portfolio-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item h3 {
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    .portfolio-item h3 {
        font-size: 1.125rem !important; /* Smaller on mobile */
        margin-bottom: 0.25rem !important;
    }
}

.portfolio-card-click {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

.portfolio-image {
    transition: opacity 0.5s ease;
}

.portfolio-video {
    transition: opacity 0.2s ease;
    pointer-events: none;
    opacity: 0;
}

/* Desktop only: show video on hover when playing.
   @media (hover: hover) ensures this NEVER fires on touch screens,
   preventing the black-screen "stuck hover" issue on mobile. */
@media (hover: hover) {
    .portfolio-item:hover .portfolio-video.playing {
        opacity: 1;
    }

    .portfolio-item:hover .portfolio-image.has-video {
        opacity: 0;
    }
}

/* ============================================
   Anti-Gravity Floating Animation
   ============================================ */
@keyframes antiGravityFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.anti-gravity {
    animation: antiGravityFloat 6s ease-in-out infinite;
    box-shadow: 0 8px 30px rgba(43, 124, 238, 0.08), 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.4s ease;
}

.anti-gravity:hover {
    box-shadow: 0 16px 50px rgba(43, 124, 238, 0.15), 0 8px 25px rgba(0, 0, 0, 0.18);
}

/* Stagger animation delays for variety */
.anti-gravity-delay-1 { animation-delay: 0s; }
.anti-gravity-delay-2 { animation-delay: 1s; }
.anti-gravity-delay-3 { animation-delay: 2s; }
.anti-gravity-delay-4 { animation-delay: 0.5s; }
.anti-gravity-delay-5 { animation-delay: 1.5s; }
.anti-gravity-delay-6 { animation-delay: 2.5s; }

/* ============================================
   Video Play Indicator Overlay
   ============================================ */
.video-play-indicator {
    position: absolute;
    bottom: 80px;
    left: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    z-index: 5;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.35s ease;
}

.video-play-indicator .play-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(43, 124, 238, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(43, 124, 238, 0.3);
}

.video-play-indicator .play-icon-circle .material-symbols-outlined {
    font-size: 16px;
    color: #fff;
}

.video-play-indicator .play-text {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Fully hide indicator on hover so it doesn't obstruct */
@media (hover: hover) {
    .portfolio-item:hover .video-play-indicator {
        opacity: 0;
    }
}

/* ============================================
   Hamburger Menu Styles
   ============================================ */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 60;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 767px) {
    .hamburger-btn {
        display: flex;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(16, 24, 34, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-overlay a {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e2e8f0;
    padding: 14px 32px;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-menu-overlay a:hover,
.mobile-menu-overlay a:active {
    color: #2b7cee;
    background: rgba(43, 124, 238, 0.08);
}

.mobile-menu-overlay .mobile-order-btn {
    margin-top: 16px;
    background: #2b7cee;
    color: #fff;
    padding: 14px 40px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.mobile-menu-overlay .mobile-order-btn:hover {
    background: #fff;
    color: #2b7cee;
}

/* ============================================
   Language Toggle Buttons
   ============================================ */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.lang-btn {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    letter-spacing: 0.5px;
    border-radius: 9999px;
}

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