/* 3D Laptop & Ambient Pulse Styles */

.video-section {
    perspective: 2000px;
    padding: 12rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #0a1f3d 0%, var(--bg-dark) 80%);
}

/* 3D Model Container */
.laptop-wrapper {
    width: 800px;
    height: 480px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(15deg) rotateY(-12deg) rotateZ(2deg);
    transition: transform 0.5s ease;
    /* The "Ambient Pulse" Glow */
    animation: ambient-pulse 4s ease-in-out infinite;
}

.laptop-wrapper:hover {
    transform: rotateX(10deg) rotateY(-8deg) rotateZ(1deg) scale(1.02);
}

@keyframes ambient-pulse {
    0% {
        filter: drop-shadow(0 0 20px rgba(255, 76, 0, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 60px rgba(255, 76, 0, 0.6));
    }

    /* Peak Glow */
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 76, 0, 0.3));
    }
}

/* REALISTIC MACBOOK PRO BODY */
.laptop-lid-back {
    position: absolute;
    width: 720px;
    height: 440px;
    background: #2a2a2a;
    border-radius: 20px;
    transform: translateZ(-2px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.laptop-screen {
    width: 720px;
    height: 440px;
    background: #000;
    border-radius: 20px;
    border: 1px solid #444;
    box-shadow:
        inset 0 0 0 2px #111,
        0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 10;
    margin: 0 auto;
    overflow: hidden;
    transform-style: preserve-3d;
}

.laptop-screen::after {
    /* Metallic Rim */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 30;
}

.camera-dot {
    width: 8px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 50%;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Screen Content */
.screen-content {
    width: 100%;
    height: 100%;
    background: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Subtle breathing effect on screen brightness */
    animation: screen-breathe 4s ease-in-out infinite;
}

@keyframes screen-breathe {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.05);
    }
}

/* Briefing Video */
#briefing-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.screen-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%, rgba(255, 255, 255, 0.02) 100%);
    z-index: 15;
    pointer-events: none;
}

.laptop-base {
    width: 840px;
    height: 35px;
    background: linear-gradient(to bottom, #7A7A7A 0%, #4D4D4D 100%);
    border-radius: 4px 4px 24px 24px;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) rotateX(85deg);
    z-index: 5;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 50px 100px rgba(0, 0, 0, 0.8);
}

.laptop-notch {
    width: 140px;
    height: 12px;
    background: #333;
    border-radius: 0 0 12px 12px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* --- Responsive Laptop --- */
@media (max-width: 860px) {
    .laptop-wrapper {
        transform: scale(0.4) rotateX(10deg) rotateY(-8deg);
        margin: -80px auto;
        width: 800px;
        position: relative;
        left: 0;
        right: 0;
    }

    .video-section {
        padding: 4rem 0;
        min-height: 400px;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .laptop-wrapper {
        transform: scale(0.35) rotateX(10deg) rotateY(-8deg);
        margin: -100px auto;
    }
}