:root {
    --primary: #4a00e0;
    --secondary: #8e2de2;
    --accent: #00c6ff;
    --dark: #0a0a1a;
    --card-bg: rgba(19, 24, 52, 0.85);
}

/* General Body and Page Styling */
body {
    background: linear-gradient(125deg, #000428, #004e92);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animated space background */
.space-background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -3;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    overflow: hidden;
}

/* Stars with different sizes and animations */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration, 5s) infinite ease-in-out;
    animation-delay: var(--delay, 0s);
    opacity: var(--opacity, 0.8);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* UPDATED Satellites */
.satellite {
    position: absolute;
    z-index: -1;
    animation: orbit linear infinite;
    transform-style: preserve-3d;
    /* Styles for the central body */
    width: 40px;
    height: 40px;
    background: #555;
    border: 1px solid #777;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.6);
}

.satellite::before,
.satellite::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 20px;
    background: linear-gradient(90deg, #2a6b9b 0%, #4FC3F7 100%);
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.satellite::before {
    left: -80px;
}

.satellite::after {
    right: -80px;
}

.satellite-1 {
    top: 15%;
    left: -100px;
    animation-duration: 45s;
    animation-name: orbit1;
}

.satellite-2 {
    width: 30px;
    height: 30px;
    top: 65%;
    left: -80px;
    animation-duration: 35s;
    animation-name: orbit2;
    animation-delay: 10s;
}

.satellite-2::before,
.satellite-2::after {
    width: 50px;
    height: 15px;
}

.satellite-2::before { left: -60px; }
.satellite-2::after { right: -60px; }


@keyframes orbit1 {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    25% { transform: translateX(40vw) translateY(20vh) rotate(90deg); }
    50% { transform: translateX(80vw) translateY(0) rotate(180deg); }
    75% { transform: translateX(40vw) translateY(-20vh) rotate(270deg); }
    100% { transform: translateX(0) translateY(0) rotate(360deg); }
}

@keyframes orbit2 {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    25% { transform: translateX(30vw) translateY(-15vh) rotate(-90deg); }
    50% { transform: translateX(60vw) translateY(0) rotate(-180deg); }
    75% { transform: translateX(30vw) translateY(15vh) rotate(-270deg); }
    100% { transform: translateX(0) translateY(0) rotate(-360deg); }
}

/* Communication signals */
.signal {
    position: absolute;
    border: 2px solid rgba(0, 255, 255, 0.6);
    border-radius: 50%;
    animation: pulse 4s infinite;
    z-index: -2;
}
.signal-1 { width: 120px; height: 120px; top: 30%; left: 20%; animation-delay: 0s; }
.signal-2 { width: 80px; height: 80px; top: 60%; left: 70%; animation-delay: 1.3s; }
.signal-3 { width: 100px; height: 100px; top: 20%; left: 65%; animation-delay: 2.7s; }

@keyframes pulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* Main content styling */
.container {
    max-width: 800px;
    margin: 40px auto;
    position: relative;
    z-index: 1;
}
.card {
    background: var(--card-bg);
    border: none;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.card-header {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-bottom: none;
    padding: 20px;
    text-align: center;
}
.card-body { padding: 30px; }

/* UPDATED Form styling */
.form-label {
    font-weight: 600;
    color: #c3d1ff;
    margin-bottom: 8px;
}

.form-control {
    background: rgba(10, 16, 41, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

.form-control:focus {
    background: rgba(10, 16, 41, 0.7);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(0, 198, 255, 0.35), 0 0 15px rgba(0, 198, 255, 0.3) inset;
    color: #fff;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Button styling */
.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(142, 45, 226, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(142, 45, 226, 0.4);
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}

/* Status message */
#status {
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
}

/* Modal styling */
.modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 15px;
}
.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-close {
    filter: invert(1);
}

/* Decorative elements */
.tech-border {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 15px 0;
    border-radius: 2px;
}
.text-accent {
    color: var(--accent) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        max-width: 95%;
        margin: 20px auto;
    }
    .card-body {
        padding: 20px;
    }
    .satellite {
        display: none;
    }
}
.form-check-label {
    color: #A9ADB6 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.form-check-label i {
    color: #A9ADB6 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}
