/* Light Blue Tech Theme (Light Mode) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Orbitron:wght@400;700&display=swap');

:root {
    --bg-color: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-color: #0ea5e9;
    /* Light Blue */
    --accent-glow: rgba(14, 165, 233, 0.15);
    --border-color: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.9);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image:
        linear-gradient(to right, rgba(14, 165, 233, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Main Content */
main {
    max-width: 1000px;
    margin: 100px auto 2rem;
    padding: 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    margin-bottom: 1em;
}

h1 {
    font-size: 3rem;
    text-align: center;
    margin-top: 2rem;
    color: var(--text-primary);
    letter-spacing: 2px;
    background: -webkit-linear-gradient(45deg, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 4rem;
    display: inline-block;
    padding-right: 2rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30%;
    height: 2px;
    background: var(--accent-color);
}

h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-top: 2rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

p,
li {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

li::marker {
    color: var(--accent-color);
}

/* Images & Video */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

img:hover,
video:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(14, 165, 233, 0.15);
    border-color: var(--accent-color);
}

.caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Header Section */
header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.subtitle {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.authors {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Demo Section */
#demo {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

#demo h2 {
    margin-top: 0;
    border-bottom: none;
}

#demo h2::after {
    display: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    background: var(--bg-secondary);
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Code/Pre */
code {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mobile Responsiveness */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--nav-bg);
        backdrop-filter: blur(15px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        border-bottom: 1px solid var(--border-color);
        gap: 1.5rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a::after {
        display: none;
    }

    main {
        margin-top: 80px;
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    h2 {
        font-size: 1.6rem;
        margin-top: 3rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .authors {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    #demo {
        padding: 1rem;
    }

    /* Stack images in results more cleanly on mobile */
    #result div[style*="display: flex"] {
        flex-direction: column;
        align-items: center;
    }

    #result img {
        width: 100% !important;
        margin: 1rem 0;
    }

    /* Adjust the menu toggle animation when active */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}