/* Hero Section with Static Content */
.orange-hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('../img/home-theater-22.webp') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.orange-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.orange-static-content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.orange-text-container {
    max-width: 800px;
    margin-bottom: 40px;
    animation: orangeFadeIn 1s ease-out;
}

@keyframes orangeFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.orange-changing-text {
    font-size: 45px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 10px 0;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.orange-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    opacity: 0.9;
    padding: 20px;
    border-radius: 10px;
}

.orange-dive-in-btn {
    background: transparent;
    color: white;
    border: 1px solid #fff;
    padding: 8px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 3;
}

.orange-dive-in-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 126, 0, 0.4);
}

.orange-dive-in-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Lightbox Popup */
.orange-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.orange-lightbox-overlay.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.orange-lightbox-container {
    width: 95%;
    max-width: 1400px;
    height: 65vh;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: orangeLightboxAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.orange-lightbox-content {
    display: flex;
    height: 100%;
    width: 100%;
}

.orange-lightbox-left {
    flex: 0.4;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #111;
}

.orange-lightbox-right {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #000;
}

.orange-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.orange-popup-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.orange-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.orange-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Mobile Device Container */
.orange-mobile-device-container {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    position: relative;
}

.orange-mobile-device {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    background: #222;
    transform-style: preserve-3d;
    animation: orangeDeviceAppear 0.4s ease-out forwards;
}

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

.orange-mobile-device-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1a1a, #222);
    border-radius: 26px;
    display: flex;
    flex-direction: column;
    padding: 15px;
    color: white;
    overflow: hidden;
}

.orange-mobile-device-screen {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #0a0a0a;
}

.orange-device-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    text-align: center;
}

.orange-device-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 5px;
    background: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.orange-device-location {
    opacity: 0.8;
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: none;
}

.orange-device-status {
    font-size: 1.2rem;
    font-weight: 300;
    margin: 15px 0;
    color: #4CAF50;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.orange-device-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: 15px;
}

.orange-device-control-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 2px 2px;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.orange-device-control-btn.active {
    background: #000;
    border-color: #000;
}

.orange-device-control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.orange-control-icon {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.orange-control-label {
    font-size: 10px;
}

/* Responsive Design - Enhanced */
@media (min-width: 1201px) {
    .orange-lightbox-content {
        flex-direction: row;
    }
    .orange-lightbox-left {
        flex: 0 0 20%;
    }
    .orange-lightbox-right {
        flex: 0 0 80%;
    }
    .orange-mobile-device-container {
        max-width: 280px;
    }
}

@media (max-width: 1200px) and (min-width: 1025px) {
    .orange-lightbox-container {
        max-width: 1200px;
    }
    .orange-mobile-device-container {
        max-width: 250px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .orange-lightbox-content {
        flex-direction: row;
        height: 100%;
    }
    .orange-lightbox-left {
        flex: 0 0 40%;
    }
    .orange-lightbox-right {
        flex: 0 0 60%;
    }
    .orange-mobile-device-container {
        max-width: 220px;
    }
    .orange-hero-section {
        height: 70vh;
    }
    .orange-static-content {
        height: 70vh;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .orange-lightbox-content {
        flex-direction: column;
    }
    .orange-lightbox-left {
        flex: 0 0 40%;
        min-height: 40vh;
        width: 100%;
        padding: 15px;
    }
    .orange-lightbox-right {
        flex: 0 0 60%;
        min-height: 50vh;
        width: 100%;
    }
    .orange-lightbox-container {
        width: 97%;
        height: 95vh;
        border-radius: 15px;
    }
    .orange-mobile-device-container {
        max-width: 200px;
    }
    .orange-changing-text {
        font-size: 2.2rem;
    }
    .orange-dive-in-btn {
        padding: 16px 40px;
        font-size: 1.1rem;
    }
    .orange-hero-section {
        height: 60vh;
    }
    .orange-static-content {
        height: 60vh;
    }
    .orange-device-title {
        font-size: 1.4rem;
    }
    .orange-device-controls {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) and (min-width: 361px) {
    .orange-lightbox-content {
        flex-direction: column;
    }
    .orange-lightbox-left {
        flex: 0 0 35%;
        min-height: 35vh;
        padding: 10px;
    }
    .orange-lightbox-right {
        flex: 0 0 65%;
        min-height: 55vh;
    }
    .orange-lightbox-container {
        width: 98%;
        height: 96vh;
        border-radius: 10px;
    }
    .orange-mobile-device-container {
        max-width: 180px;
    }
    .orange-changing-text {
        font-size: 1.8rem;
    }
    .orange-dive-in-btn {
        padding: 6px 25px;
        font-size: 1rem;
    }
    .orange-close-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
    .orange-hero-section {
        height: 50vh;
    }
    .orange-static-content {
        height: 50vh;
    }
    .orange-device-title {
        font-size: 1.3rem;
    }
    .orange-device-controls {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .orange-lightbox-content {
        flex-direction: column;
    }
    .orange-lightbox-left {
        flex: 0 0 30%;
        min-height: 30vh;
        padding: 8px;
    }
    .orange-lightbox-right {
        flex: 0 0 70%;
        min-height: 60vh;
    }
    .orange-lightbox-container {
        width: 99%;
        height: 97vh;
        border-radius: 8px;
    }
    .orange-mobile-device-container {
        max-width: 160px;
    }
    .orange-changing-text {
        font-size: 1.5rem;
    }
    .orange-dive-in-btn {
        padding: 5px 20px;
        font-size: 0.9rem;
    }
    .orange-close-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
        top: 8px;
        right: 8px;
    }
    .orange-hero-section {
        height: 45vh;
    }
    .orange-static-content {
        height: 45vh;
    }
    .orange-device-title {
        font-size: 1.1rem;
    }
    .orange-device-controls {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .orange-control-icon {
        font-size: 1rem;
    }
    .orange-control-label {
        font-size: 0.65rem;
    }
}

/* Landscape mode optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .orange-lightbox-content {
        flex-direction: row;
    }
    .orange-lightbox-left {
        flex: 0 0 35%;
        min-height: auto;
        height: 100%;
    }
    .orange-lightbox-right {
        flex: 0 0 65%;
        min-height: auto;
        height: 100%;
    }
    .orange-lightbox-container {
        height: 85vh;
    }
    .orange-hero-section {
        height: 100vh;
    }
    .orange-static-content {
        height: 100vh;
    }
}

/* Prevent video blinking on loop */
.orange-popup-video {
    opacity: 1 !important;
    visibility: visible !important;
}