:root {
    /* Space-Inspired Cosmic Theme Palette */
    --primary-color: #00d2ff;
    --primary-hover: #0099bb;
    --bg-dark: #070314;
    --bg-nebula: radial-gradient(circle at 50% 20%, #1a0b36 0%, #070314 70%);
    --bg-card: rgba(22, 11, 46, 0.65);
    --bg-card-border: rgba(0, 210, 255, 0.3);
    --text-main: #FFFFFF;
    --text-muted: #b8b3d1;
    --font-family: 'Montserrat', sans-serif;
    --border-radius: 14px;
    --transition: all 0.35s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    background-image: var(--bg-nebula);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons & Cards with Space Glow */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #00d2ff, #0077ff);
    color: var(--text-main);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.8);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 3, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 210, 255, 0.15);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.6));
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.brand-name .highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
}

.brand-tagline {
    font-size: 0.55rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer */
footer {
    border-top: 1px solid rgba(0, 210, 255, 0.15);
    padding: 40px 0;
    text-align: center;
    margin-top: 80px;
    background: rgba(7, 3, 20, 0.5);
}

.footer-brand h3 {
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.footer-brand p {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   EXPANDED FOOTER STYLES
   ========================================================================== */
.site-footer {
    border-top: 1px solid rgba(0, 210, 255, 0.15);
    padding: 70px 0 30px 0;
    margin-top: 100px;
    background: rgba(7, 3, 20, 0.75);
    backdrop-filter: blur(15px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.footer-logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.6));
}

.footer-brand-col h3 {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.footer-brand-col>p:not(.footer-desc) {
    font-size: 0.55rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-col h4 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-newsletter p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-form input {
    flex-grow: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    border-radius: 6px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.footer-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.3);
}

.footer-form button {
    padding: 10px 18px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid var(--bg-card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.6);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary-color);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        display: none;
        border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    }

    .nav-links.active {
        display: flex;
    }
}

/* Loading screen fade-out state */
.loader-hidden {
  opacity: 0;
  pointer-events: none;
}
/* ==========================================================================
   COSMIC LOADING SCREEN STYLES
   ========================================================================== */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-dark);
    background-image: var(--bg-nebula);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

#loader-wrapper.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    animation: cosmicFloat 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.6));
    margin-bottom: 15px;
}

.loader-title {
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.loader-title span {
    color: var(--primary-color);
}

.loader-subtitle {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-top: 5px;
}

.brand-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.6));
    animation: navLogoFloat 4s ease-in-out infinite;
    transition: var(--transition);
}

.brand-logo-img:hover {
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 1));
    transform: scale(1.08) rotate(5deg);
}

@keyframes navLogoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}
@keyframes cosmicFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.03);
    }
}