/* Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #0a0e17;
    color: #f0f4f8;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, .brand-name {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

/* Header & Nav */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.brand-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
}

nav a {
    color: #ced4da;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #00bfff;
}

.cta-btn {
    background: #d62828; /* Logo Rocket Red */
    padding: 8px 16px;
    border-radius: 4px;
    color: white !important;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 40px 5%; /* Gives room for the fixed header */
    background: radial-gradient(circle at top right, #170a2f 0%, #0a0e17 70%);
}

/* This aligns your content side-by-side */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    z-index: 2;
}

.hero-content {
    flex: 1.1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: #00bfff; /* Bright Cosmic Blue from image_579897.jpg */
    text-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

.hero p {
    font-size: 1.2rem;
    color: #aeb9cc;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-submit {
    background: #d62828;
    color: white;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(214, 40, 40, 0.3);
    transition: transform 0.2s, background 0.3s;
}

.btn-primary:hover, .btn-submit:hover {
    background: #f03e3e;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid #00bfff;
    color: #00bfff;
    padding: 12px 26px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(0, 191, 255, 0.1);
}

/* Video Layout Controls */
.hero-video-wrapper {
    flex: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video {
    width: 100%;
    max-width: 520px; /* Adjust this number to make the video smaller or larger */
    height: auto;
    border-radius: 12px;
}

/* Standard Mobile Stacking Layout */
@media (max-width: 968px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Before / After Interactive Section */
.interactive-space {
    padding: 100px 5%;
    text-align: center;
    background: #0d1321;
}

.interactive-space h2 {
    margin-bottom: 10px;
}

.subtitle {
    color: #8a99ad;
    margin-bottom: 40px;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 450px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Placeholder gradients to represent messy vs clean space theme */
/* Connects your actual junk and clean images to the slider */
.before-img {
    background-image: url('Junk.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.after-img {
    background-image: url('clean.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 50%; /* This is the initial split viewpoint controlled by your script.js */
    border-right: 3px solid #00bfff; /* Cosmic blue slider dividing line */
}

.label {
    position: absolute;
    bottom: 20px;
    background: rgba(0,0,0,0.7);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.before-img .label { left: 20px; }
.after-img .label { right: 20px; white-space: nowrap;}

.slider {
    position: absolute;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

/* Services Section */
.services {
    padding: 100px 5%;
    text-align: center;
}

.services h2 { margin-bottom: 50px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #131a26;
    padding: 40px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #00bfff;
}

.card h3 {
    margin-bottom: 15px;
    color: #fff;
}

.card p {
    color: #8a99ad;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Contact/Mission Control Form */
.mission-control {
    padding: 100px 5%;
    background: radial-gradient(circle at bottom left, #170a2f 0%, #0a0e17 60%);
    display: flex;
    justify-content: center;
}

.form-wrapper {
    background: #131a26;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-wrapper h2 { margin-bottom: 10px; text-align: center;}
.form-wrapper p { margin-bottom: 30px; text-align: center; color: #8a99ad;}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: #00bfff;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    background: #0a0e17;
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #00bfff;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

/* Footer */
footer {
    padding: 40px 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #5c697a;
    font-size: 0.9rem;
}
footer p { margin-bottom: 8px; }
