@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Space+Mono&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background-color: #050505; 
    overflow: hidden;
}

/* --- THE BACKGROUND (INDUSTRIAL HUD STYLE) --- */
.page-wrapper {
    /* Muted Industrial Radial Gradient */
    background: radial-gradient(circle at center, #0a1b2b 0%, #050505 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* THE SLOW, MUTED SCANNING LASER LINE */
.page-wrapper::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 120px;
    /* Muted Cerulean Gradient - Reduced Opacity */
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 123, 167, 0.05) 50%,
        rgba(0, 123, 167, 0.15) 98%,
        rgba(0, 123, 167, 0.3) 100%
    );
    z-index: 2;
    pointer-events: none;
    opacity: 0.6; /* Overall brightness control */
    animation: scan-move 8s linear infinite; /* Slowed down to 8s */
}

.noise-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Layered Background: 1. Scanlines | 2. Tech Grid | 3. Noise Texture */
    background-image: 
        /* Horizontal Scanlines */
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%),
        /* Tech Grid Pattern */
        linear-gradient(rgba(0, 123, 167, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 123, 167, 0.03) 1px, transparent 1px),
        /* Industrial Grain */
        url('https://grainy-gradients.vercel.app/noise.svg');
    background-size: 100% 4px, 40px 40px, 40px 40px, auto;
    opacity: 0.12; /* Muted overall texture brightness */
    pointer-events: none;
    z-index: 3;
}

/* --- THE CONTAINER --- */
.main-content {
    display: flex;
    width: 90%;
    max-width: 850px;
    height: 75vh;
    z-index: 10;
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid #222;
    backdrop-filter: blur(4px);
}

/* --- LEFT: MONOCHROME FRAME --- */
.left-col {
    background-color: #ffffff; 
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-frame img {
    max-width: 85%;
    max-height: 85%;
    filter: grayscale(1);
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.main-content:hover .image-frame img {
    filter: grayscale(0);
}

.corner-text {
    position: absolute;
    top: 15px; left: 15px;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: #999;
}

/* --- RIGHT: THE ORBITRON HUD --- */
.right-col {
    flex: 1.2;
    background: transparent; 
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* BRANDING GROUP: Pinned to the LEFT */
.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    color: #fff;
    font-size: clamp(2.3rem, 5vh, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1;
    align-self: flex-end; /* Alignment to the left */
    text-align: right;
}

.top-meta {
    font-family: 'Space Mono', monospace;
    color: #636363;
    font-size: 10px;
    align-self: flex-end; /* Alignment to the left */
    text-align: right;
    margin-bottom: 5px;
}

.top-meta span {
    display: block; 
    color: #007ba7; 
    margin-top: 5px;
    font-weight: bold;
}

/* NAVIGATION GROUP: Pinned to the RIGHT */
.nav-links {
    align-self: flex-end; 
    text-align: right;
}

.nav-links a {
    display: block;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #666;
    font-size: clamp(1rem, 2.5vh, 1.8rem);
    margin-bottom: 20px;
    transition: 0.3s;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: #007ba7; 
    transform: translateX(-15px);
    text-shadow: 0 0 15px rgba(0, 123, 167, 0.6);
}

/* PULSING ACCENT: Pinned to the RIGHT with buttons */
.bottom-accent {
    width: 60px;
    height: 4px;
    background: #007ba7;
    align-self: flex-end; 
    box-shadow: 0 0 20px rgba(0, 123, 167, 0.5);
    animation: breathe 3s ease-in-out infinite;
}

/* --- ANIMATIONS --- */
@keyframes breathe {
    0%, 100% { opacity: 0.4; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1.1); box-shadow: 0 0 30px rgba(0, 123, 167, 0.8); }
}

@keyframes scan-move {
    0% { top: -120px; }
    100% { top: 100vh; }
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .main-content { flex-direction: column; height: auto; }
    .left-col, .right-col { height: 100vh; }
    .nav-links, .bottom-accent, .logo, .top-meta { align-self: flex-start; text-align: left; }
    .nav-links a:hover { transform: translateX(15px); }
}
