@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #05070a;
    --accent-primary: #00d2ff;
    --accent-secondary: #9d50bb;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #05070a;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Nav */
header {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(5, 7, 10, 0.7);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 400;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--accent-primary);
}

.menu-toggle {
    display: none;
}

/* Dropdown styles */
.nav-item {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(5, 7, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 101;
    list-style: none;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li {
    width: 100%;
}

.nav-dropdown a {
    display: block;
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0.5px;
}

.nav-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-workspace {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-workspace:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5);
    color: #ffffff;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 500px;
}

#cubesat-3d {
    width: 100%;
    height: 100%;
    cursor: grab;
    user-select: none;
}

.badge {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h1 span {
    display: block;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.ws-info-labels {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeIn 1.2s ease-out;
}

.ws-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.ws-label:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
}

.ws-label strong {
    color: var(--text-main);
}

.ws-label i {
    font-size: 0.8rem;
}

/* Info Sections */
.section {
    padding: 100px 5%;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
}

.card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    transform: translateY(-10px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Educational Content Section */
.edu-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 4rem;
}

.edu-text {
    flex: 1;
}

.edu-image {
    flex: 1;
    background: var(--glass-bg);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
}

/* Footer */
footer {
    padding: 5rem 5% 2rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(5, 7, 10, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-sponsors {
    text-align: center;
    padding: 2.5rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2.5rem;
}

.footer-sponsors-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-sponsors-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.sponsor-logo-link {
    display: inline-flex;
    align-items: center;
    opacity: 0.75;
    transition: var(--transition-smooth);
    filter: brightness(1);
}

.sponsor-logo-link:hover {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.5));
}

.sponsor-logo-img {
    height: 36px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer-branding {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.powered-by {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.powered-by a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.powered-by a:hover {
    color: var(--accent-primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 80px;
        height: auto;
        padding-bottom: 50px;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .ws-info-labels {
        justify-content: center;
    }

    .hero-visual {
        height: 350px;
        width: 100%;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .section {
        padding: 4rem 5%;
    }

    #subsystem-visual {
        height: 200px !important;
        margin-top: 1rem;
    }

    header {
        padding: 1rem 5%;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-main);
        z-index: 1001;
        transition: var(--transition-smooth);
    }

    .menu-toggle.active {
        color: var(--accent-primary);
    }

    nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 7, 10, 0.98);
        backdrop-filter: blur(20px);
        padding-top: 100px;
        transition: var(--transition-smooth);
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2rem;
    }

    nav a {
        font-size: 1.2rem;
    }

    .nav-dropdown {
        position: relative;
        opacity: 0;
        visibility: hidden;
        transform: translateY(0);
        background: transparent;
        border: none;
        padding: 0;
        display: none;
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-dropdown.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        padding: 1rem 0 0 1rem;
    }

    .nav-dropdown a {
        font-size: 1.1rem;
        padding: 0;
    }

    .edu-content {
        flex-direction: column;
    }

    .edu-image {
        width: 100%;
        margin-top: 2rem;
    }

    .footer-branding {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Epic Workspace Immersive Section */
.workspace-immersive {
    position: relative;
    background: radial-gradient(circle at 70% 30%, rgba(0, 210, 255, 0.08), transparent), #05070a;
    overflow: hidden;
}

.workspace-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 6px;
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.workspace-text h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-align: left;
}

.workspace-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-main);
}

.feature-list i {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.workspace-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-workspace-epic {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 12px;
    transition: var(--transition-smooth);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

.btn-workspace-epic:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.5);
}

.version-badge {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* UI Mockup Animation */
.workspace-visual {
    position: relative;
    padding: 2rem;
}

.ui-mockup {
    position: relative;
    background: #0d1117;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: var(--transition-smooth);
}

.ui-mockup:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

.ui-screen {
    background: #05070a;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.ui-header {
    background: #161b22;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ui-dots {
    display: flex;
    gap: 6px;
}

.ui-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #30363d;
}

.ui-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

.ui-content {
    flex: 1;
    display: flex;
}

.ui-sidebar-mock {
    width: 40px;
    background: #161b22;
    border-right: 1px solid #30363d;
}

.ui-viewport-mock {
    flex: 1;
    position: relative;
    background: radial-gradient(circle at center, #1a2233, #05070a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hologram-cube {
    font-size: 5rem;
    color: rgba(0, 210, 255, 0.2);
    animation: float 4s ease-in-out infinite;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 210, 255, 0.3);
    box-shadow: 0 0 10px var(--accent-primary);
    animation: scan 3s linear infinite;
}

.ui-status-bar {
    background: #161b22;
    padding: 5px 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--accent-primary);
    font-family: monospace;
}

.floating-node {
    position: absolute;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatNode 6s ease-in-out infinite;
    z-index: 10;
}

.node-icon {
    width: 32px;
    height: 32px;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.node-data {
    display: flex;
    flex-direction: column;
}

.node-data .lbl {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.node-data .val {
    font-size: 0.85rem;
    font-weight: 700;
}

.node-1 {
    top: -20px;
    left: -30px;
    animation-delay: 0s;
}

.node-2 {
    bottom: 40px;
    right: -40px;
    animation-delay: 1s;
}

.node-3 {
    top: 60px;
    right: -20px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes floatNode {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

@media (max-width: 992px) {
    .workspace-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .workspace-text h2 {
        text-align: center;
        font-size: 2.8rem;
    }

    .feature-list li {
        justify-content: center;
    }

    .workspace-cta {
        justify-content: center;
    }

    .ui-mockup {
        transform: none;
    }
}

.footer-contact h4 {
    margin-bottom: 18px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.footer-link,
.footer-location {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.6;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-link i,
.footer-location i {
    margin-top: 4px;
    min-width: 16px;
    opacity: 0.85;
}

/* --- Premium Sponsors Section --- */
.footer-sponsors {
    position: relative;
    text-align: center;
    padding: 3rem 2rem;
    margin: 0 auto 3.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 210, 255, 0.03) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    max-width: 900px;
    /* Keeps the logos grouped nicely */
    overflow: hidden;
}

/* Subtle background glow effect */
.sponsors-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 210, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.footer-sponsors-label {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    font-weight: 700;
}

.footer-sponsors-logos {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    /* More breathing room */
    flex-wrap: wrap;
}

.sponsor-logo-link {
    display: inline-flex;
    align-items: center;
    opacity: 0.5;
    transform: scale(0.95);
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.sponsor-logo-link:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: grayscale(0%) drop-shadow(0 0 15px rgba(0, 210, 255, 0.4));
}

.sponsor-logo-img {
    height: 42px;
    /* Slightly larger for better readability */
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Helper for the placeholders (Remove if you use your own white logos) */
.invert-placeholder {
    filter: brightness(0) invert(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-sponsors {
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
    }

    .footer-sponsors-logos {
        gap: 2.5rem;
    }

    .sponsor-logo-img {
        height: 32px;
    }
}

.add-supporter-link {
    position: absolute;
    top: 50px;
    right: 0px;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 1px;
    opacity: 0.65;
    transition: var(--transition-smooth);
    z-index: 3;
}

.add-supporter-link:hover {
    color: var(--accent-primary);
    opacity: 1;
    transform: translateY(-1px);
}