:root {
    --space-bg: #050914;
    --space-card: rgba(20, 30, 50, 0.6);
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-pink: #ff0055;
    --star-color: #ffffff;
    --text-main: #e0e6ed;
    --text-muted: #cbd5e1; /* Lighter for better contrast */
    --border-color: rgba(51, 65, 85, 0.5);
}

body {
    background-color: var(--space-bg);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Background Stars Animation */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    overflow: hidden;
}

.stars {
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow: 1744px 122px #FFF , 134px 1321px #FFF , 92px 859px #FFF;
    animation: animStar 50s linear infinite;
}

.stars2 {
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: 1744px 122px #FFF , 134px 1321px #FFF; 
    animation: animStar 100s linear infinite;
}

@keyframes animStar {
    from { transform: translateY(0px); }
    to { transform: translateY(-2000px); }
}

/* Neon Text */
.neon-text-cyan {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--neon-cyan), 0 0 30px var(--neon-cyan), 0 0 40px var(--neon-cyan);
}

.neon-text-purple {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--neon-purple), 0 0 30px var(--neon-purple), 0 0 40px var(--neon-purple);
}

.neon-text-pink {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--neon-pink), 0 0 30px var(--neon-pink), 0 0 40px var(--neon-pink);
}

/* Glass Cards */
.space-card {
    background: var(--space-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.space-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

/* Buttons */
.btn-space {
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 10px 30px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-space:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--neon-cyan);
}

.btn-space-purple {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

.btn-space-purple:hover {
    background: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 20px var(--neon-purple);
}

/* Bootstrap Button Overrides */
.btn-primary {
    background-color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
}

.btn-outline-primary {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

.btn-outline-primary:hover {
    background-color: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* Form Styles */
.form-control, .form-select {
    background-color: rgba(5, 9, 20, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}

.form-control:focus, .form-select:focus {
    background-color: rgba(5, 9, 20, 0.8);
    border-color: var(--neon-cyan);
    color: var(--text-main);
    box-shadow: 0 0 0 0.25rem rgba(0, 243, 255, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Table Styles */
.table {
    color: var(--text-main);
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-main);
    --bs-table-border-color: var(--border-color);
}

.table-hover > tbody > tr:hover > * {
    color: var(--text-main);
    background-color: rgba(6, 182, 212, 0.1);
}

/* Gallery / Product Styles */
.gallery-trigger {
    display: block;
    position: relative;
}

.gallery-trigger:hover img {
    transform: scale(1.1);
}

.gallery-trigger:hover .overlay {
    opacity: 1 !important;
}

.transition-transform {
    transition: transform 0.5s ease;
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.drop-shadow-glow {
    filter: drop-shadow(0 0 5px #06b6d4);
}

.text-shadow-glow {
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
}

.product-title {
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

.gallery-trigger:hover .product-title {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 5px rgba(6, 182, 212, 0.5);
}

/* Modal */
.modal-content {
    background-color: rgba(5, 9, 20, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--neon-cyan);
}

.modal-header, .modal-footer {
    border-color: var(--border-color);
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Links */
a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--neon-cyan);
}
