/* ================================================================
   MOON BEAMS LASER WORKS - LANDING PAGE STYLES
   Updated with viewport-based positioning for mobile compatibility
   ================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    font-family: 'Orbitron', sans-serif;
}

/* ================================================================
   MAIN CONTAINER - Full screen amber background
   ================================================================ */
.container {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #f88b1b 0%, #d97910 50%, #f88b1b 100%);
    display: flex;
    align-items: flex-start;  /* Changed from center */
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 15vh;  /* Push metal plate down from top */
}

/* ================================================================
   AMBIENT GLOW EFFECT - Blue laser glow
   ================================================================ */
.ambient-glow {
    position: absolute;
    width: 700px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 100, 255, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 2s ease-in;
}

.ambient-glow.active {
    opacity: 0.3;
}

/* ================================================================
   METAL PLATE - The surface being etched
   ================================================================ */
.metal-plate {
    position: relative;
    padding: clamp(30px, 15vh, 60px) clamp(30px, 6vw, 80px);
    width: clamp(320px, 90vw, 1200px);
    max-width: 90vw;
    background: linear-gradient(135deg, #3a3a3a 0%, #252525 50%, #3a3a3a 100%);
    border-radius: 8px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 2px solid #4a4a4a;
    transform: perspective(1200px) rotateX(35deg) rotateY(-5deg);
    transform-style: preserve-3d;
}

/* Brushed metal texture */
.metal-plate::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.04) 2px,
        rgba(255, 255, 255, 0.04) 4px
    );
    border-radius: 8px;
    pointer-events: none;
}

/* ================================================================
   ENGRAVED RECESS - Carved area that appears as laser scans
   ================================================================ */
.engraved-recess {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 98%;
    height: 80%;
    background: linear-gradient(145deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
    border-radius: 6px;
    box-shadow: 
        inset 0 4px 8px rgba(0, 0, 0, 0.8),
        inset 0 -2px 4px rgba(255, 255, 255, 0.05),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.6);
    z-index: 0;
    clip-path: inset(0 0 100% 0);
    opacity: 1;
}

.engraved-recess::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.02) 0%,
        transparent 30%,
        transparent 70%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
}

/* ================================================================
   REFLECTION EFFECT - Light reflection on metal surface
   ================================================================ */
.metal-plate::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 30px;
    right: 30px;
    height: 100px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    border-radius: 4px;
    pointer-events: none;
}

/* ================================================================
   CONTENT WRAPPER
   ================================================================ */
.content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: clamp(120px, 20vh, 200px);
    overflow: visible;
    z-index: 1;
}

/* ================================================================
   TEXT CONTAINER
   ================================================================ */
.text-container {
    position: relative;
    text-align: center;
    width: 100%;
    overflow: visible;
    z-index: 2;
}

/* ================================================================
   COMPANY NAME STYLING - 3D RAISED LETTERS
   ================================================================ */
.company-name {
    position: relative;
    font-size: clamp(28px, 7.5vw, 80px);
    font-weight: 650;
    letter-spacing: 0.05em;
    color: #4a95d6;
    margin-bottom: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    z-index: 2;
    padding: 0 8px;  /* Add horizontal padding to prevent cutoff */
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        -2px -2px 0 rgba(0, 0, 0, 0.6),
        0 3px 6px rgba(0, 0, 0, 0.6),
        0 -1px 1px rgba(255, 255, 255, 0.15),
        1px 1px 2px rgba(0, 0, 0, 0.5);
}

.company-name.visible {
    opacity: 1;
}

/* ================================================================
   SUBTITLE STYLING - 3D RAISED LETTERS
   ================================================================ */
.subtitle {
    position: relative;
    font-size: clamp(16px, 3.2vw, 40px);
    font-weight: 400;
    letter-spacing: 8px;
    color: #7aabdb;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.7),
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 -1px 1px rgba(255, 255, 255, 0.1),
        1px 1px 1px rgba(0, 0, 0, 0.4);
}

.subtitle.visible {
    opacity: 1;
}

/* ================================================================
   TAGLINE - Bottom message after completion
   Uses viewport height for consistent positioning
   ================================================================ */
.tagline {
    position: absolute;
    bottom: 25vh;  /* 25% from bottom = 75% from top */
    left: 50%;
    transform: translateX(-50%);
    color: #2b5a8a;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 1s ease-in;
    white-space: nowrap;
}

.tagline.visible {
    opacity: 1;
}

/* ================================================================
   LASER BEAM EFFECT - Blue laser
   ================================================================ */
.laser-beam {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.laser-beam.active {
    opacity: 1;
}

/* Vertical laser beam */
.laser-beam.vertical {
    width: 1.5px;
    top: -50px;
    height: calc(100% + 50px);
    background: #00d9ff;
    box-shadow: 
        0 0 10px #00d9ff,
        0 0 20px #00d9ff,
        0 0 30px rgba(0, 217, 255, 0.5);
    filter: blur(1px);
}

.laser-beam.vertical.active {
    opacity: 0.5;
}

/* Horizontal scan line */
.laser-beam.horizontal {
    width: 100%;
    height: 1.5px;
    left: 0;
    background: #00d9ff;
    box-shadow: 
        0 0 10px #00d9ff,
        0 0 20px #00d9ff;
    filter: blur(1px);
}

.laser-beam.horizontal.active {
    opacity: 0.8;
}

/* ================================================================
   LASER POINT - Bright spot where laser touches
   ================================================================ */
.laser-point {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ffffff 0%, #ffffff 40%, #00d9ff 70%, transparent 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 15px #ffffff,
        0 0 25px #ffffff,
        0 0 35px #00d9ff,
        0 0 45px #00d9ff,
        0 0 60px rgba(0, 217, 255, 0.8);
    pointer-events: none;
    z-index: 15;
    opacity: 1;
    transform: translate(-50%, -50%);
}

.laser-point::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #00d9ff 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(10px);
}

/* ================================================================
   SMOKE PARTICLES
   ================================================================ */
.smoke-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 180, 255, 0.7) 0%, transparent 70%);
    filter: blur(3px);
    pointer-events: none;
    z-index: 10;
}

/* ================================================================
   SCAN MASK - Reveals text progressively
   ================================================================ */
.scan-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    overflow: hidden;
    transition: none;
}

.text-container .company-name,
.text-container .subtitle {
    position: relative;
}

/* ================================================================
   ENTER BUTTON - Appears after animation
   Uses viewport height for consistent positioning
   ================================================================ */
.enter-button {
    position: absolute;
    bottom: 18vh;  /* 18% from bottom = 82% from top */
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    padding: 10px 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    border: 2px solid #0080ff;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 
        0 0 20px rgba(0, 102, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: all 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

.enter-button.visible {
    opacity: 1;
}

.enter-button:hover {
    background: linear-gradient(135deg, #0080ff 0%, #0066ff 100%);
    box-shadow: 
        0 0 30px rgba(0, 102, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateX(-50%) translateY(-2px);
}

.enter-button:active {
    transform: translateX(-50%) translateY(0);
    box-shadow: 
        0 0 15px rgba(0, 102, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */
@media (max-width: 768px) {
    .container {
        padding-top: 10vh;  /* Less padding on mobile */
    }
    
    .metal-plate {
        transform: perspective(1200px) rotateX(30deg) rotateY(-3deg);
    }
    
    .company-name {
        letter-spacing: 0.02em;
        font-size: clamp(26px, 7vw, 70px);  /* Slightly smaller on mobile */
    }
    
    .subtitle {
        letter-spacing: 4px;
    }
    
    .tagline {
        font-size: 12px;
        letter-spacing: 2px;
        bottom: 22vh;  /* Slightly higher on mobile */
    }
    
    .enter-button {
        font-size: 12px;
        padding: 8px 24px;
        bottom: 15vh;  /* Slightly higher on mobile */
    }
}

@media (max-width: 480px) {
    .container {
        padding-top: 8vh;
    }
    
    .company-name {
        font-size: clamp(24px, 6.5vw, 60px);  /* Even smaller on small phones */
        letter-spacing: 0.01em;
    }
    
    .tagline {
        font-size: 10px;
        letter-spacing: 1px;
        bottom: 20vh;
    }
    
    .enter-button {
        font-size: 11px;
        padding: 7px 20px;
        bottom: 13vh;
    }
}

/* ================================================================
   LANDSCAPE ORIENTATION - Extra adjustments
   ================================================================ */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        padding-top: 5vh;
    }
    
    .tagline {
        bottom: 15vh;
        font-size: 11px;
    }
    
    .enter-button {
        bottom: 8vh;
        font-size: 11px;
        padding: 6px 20px;
    }
}