/* Custom properties */
:root {
    --color-primary: #2563eb;         /* Blue */
    --color-primary-light: #93c5fd;   /* Light blue */
    --color-secondary: #8b5cf6;       /* Purple */
    --color-text: #1e293b;            /* Dark slate */
    --color-text-light: #475569;      /* Slate */
    --color-background: #f8fafc;      /* Light gray background */
    --color-white: #ffffff;           /* White */
    --color-accent: #4f46e5;          /* Indigo for accents */
    --color-code-bg: #f1f5f9;         /* Very light gray for code */
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.08);
    
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    
    --transition: 180ms ease-out;
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base styles and resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header styles */
header {
    text-align: center;
    padding: 4rem 1rem 1.5rem;
    background: linear-gradient(180deg, var(--color-background) 0%, rgba(248, 250, 252, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

header h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.02em;
}

/* Author styles */
.authors {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.authors a {
    color: var(--color-primary);
    text-decoration: none;
    margin: 0 0.25em;
    position: relative;
    transition: var(--transition);
}

.authors a:hover {
    color: var(--color-accent);
}

.authors a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-primary-light);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: right;
}

.authors a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Resource links */
.resources {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    margin: 0 auto 2.5rem;
    max-width: 800px;
}

.resources a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resources a:hover {
    color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Main content */
main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem 4rem 2rem;
    position: relative;
    margin-top: 0;
    z-index: 10;
}

/* Section styles */
section {
    margin-bottom: 4rem;
    position: relative;
    text-align: center;
}

section:last-child {
    margin-bottom: 1.5rem;
}

section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}



section p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text-light);
    margin: 0 auto 1.5rem;
    text-align: center;
    max-width: 700px;
}

#abstract p {
    max-width: 900px;
    width: 100%;
    text-align: justify;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.results-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
}
.results-images img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: #fff;
    padding: 0.25rem;
}



/* BibTeX section */
#bibtex {
    text-align: left;
}

#bibtex h2 {
    text-align: left;
    margin-left: 0;
}

section pre {
    background: var(--color-code-bg);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-family: var(--font-mono);
    overflow-x: auto;
    line-height: 1.5;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
}

code {
    font-family: var(--font-mono);
    color: var(--color-text);
}

/* Footer */


.video-container {
    width: 100%;
    max-width: 1200px;
    margin: 0.5rem auto 2rem auto;
    padding: 0 1rem;
}

.video-container video {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.video-placeholder {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2.5rem auto;
}
.fake-video {
    width: 80vw;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #222;
    border-radius: 1rem;
    border: 3px solid #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    position: relative;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
}
.fake-video span {
    position: relative;
    z-index: 2;
}
.fake-video::before {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.fake-video::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 26px solid #222;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    transform: translate(-40%, -50%);
    z-index: 2;
}

/* Responsive design */
@media (max-width: 768px) {
    main {
        padding: 0.5rem 1.2rem 3rem;
        margin-top: -1rem;
    }
    
    section h2 {
        font-size: 1.4rem;
    }
    
    section p {
        font-size: 1rem;
        line-height: 1.65;
    }
}

@media (max-width: 600px) {
    header {
        padding: 2.5rem 1rem 2rem;
    }
    
    header h1 {
        font-size: 1.5rem;
        letter-spacing: -0.01em;
    }
    
    .authors {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .resources {
        gap: 0.5rem;
    }
    
    .resources a {
        font-size: 0.9rem;
        padding: 0.3rem 0.7rem;
    }
    
    main {
        padding: 0.5rem 1rem 2.5rem;
    }
    
    section h2 {
        font-size: 1.2rem;
    }
    
    section pre {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

/* Add fonts preload */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');
