:root {
    --primary-blue: #00e1ff;
    --primary-purple: #9d00ff;
    --dark-bg: #05050A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--dark-bg);
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Navigation Bar */
.glass-nav {
    position: fixed;
    top: 30px;
    right: 50px;
    z-index: 100;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-blue);
}

/* 1. Base Image Layer */
.hero-bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.hero-bg-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keep the original photo intact */
    object-position: center 20%;
}

/* 2. Fade to black at the bottom to merge image cleanly into the void */
.dark-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15%;
    background: linear-gradient(to top, rgba(5,5,10,1) 0%, rgba(5,5,10,0) 100%);
    pointer-events: none;
}

/* 3. The Central Console Container */
.ui-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 12vh 20px 0;
    animation: glideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes glideUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Background glass removed. UI floats directly over image void. */

/* 4. Hero Text */
.hero-text-container {
    text-align: center;
    color: #ffffff;
}

.hero-title {
    font-size: 5rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #3b82f6 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 10px 30px rgba(59, 130, 246, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

/* --- SERVICES PAGE STYLES --- */
body.services-page {
    background-color: var(--dark-bg);
    overflow-y: auto;
    padding-top: 12vh;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.services-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    animation: glideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #3b82f6 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 10px 30px rgba(59, 130, 246, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 100px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 225, 255, 0.1);
}

.service-card h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* --- CONTACT PAGE STYLES --- */
body.contact-page {
    background-color: var(--dark-bg);
    overflow-y: auto;
    padding-top: 12vh;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.contact-container {
    width: 100%;
    max-width: 600px;
    padding: 0 40px;
    animation: glideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, .form-group textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.submit-btn {
    background: linear-gradient(90deg, #3b82f6 0%, #9333ea 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

/* --- ABOUT PAGE STYLES --- */
body.about-page {
    background-color: var(--dark-bg);
    overflow-y: auto;
    padding-top: 12vh;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.about-container {
    width: 100%;
    max-width: 800px;
    padding: 0 40px;
    animation: glideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.about-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 50px;
    margin-top: 40px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 5px;
}

.lead-text {
    font-size: 1.2rem;
    color: #3b82f6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* --- DEMO PAGE STYLES --- */
body.demo-page {
    background-color: var(--dark-bg);
    overflow-y: auto;
    padding-top: 12vh;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.demo-container {
    width: 100%;
    max-width: 1000px;
    padding: 0 40px;
    animation: glideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.small-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed rgba(59, 130, 246, 0.5);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #3b82f6;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
