/* Project Pages Stylesheet - Light Mode */
/* Combines layout from styles.css with theme from styles-new.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Light Mode */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-card-hover: rgba(0, 0, 0, 0.05);
    --accent-primary: #8b5cf6;
    --accent-secondary: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* General body styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* Subtle Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* Navigation Bar */
.navbar {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem 2rem;
}

.navbar a {
    color: var(--text-primary) !important;
    transition: var(--transition-smooth);
}

.navbar .nav-link:hover {
    color: var(--accent-primary) !important;
}

.navbar-toggler {
    border-color: rgba(0, 0, 0, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
    padding-left: 20px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary) !important;
}

.navbar-brand:hover {
    color: var(--accent-primary) !important;
}

/* Dropdown menus */
.dropdown-menu {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.dropdown-item {
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-primary);
}

/* Carets for dropdown menus */
.dropdown-toggle::after {
    display: inline-block;
    vertical-align: middle;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
    content: "";
}

/* Enable hover for dropdown */
.navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

/* Section Headings */
h1,
h2 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    text-align: center;
    font-size: 35px;
}

h2 {
    font-size: 30px;
}

/* Typography */
p {
    line-height: 25px;
    text-align: justify;
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px;
    text-align: center;
}

footer p {
    margin: 0;
    color: var(--text-muted);
    text-align: center;
}

/* Links */
a {
    color: var(--accent-primary);
    transition: var(--transition-smooth);
}

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

a,
a:visited {
    color: var(--accent-primary);
    font-weight: 300;
}

/* Buttons */
button {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Content blocks - keeping original sizes from styles.css */
.content {
    width: 1200px;
    padding: 25px 50px;
    margin: 25px auto;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.content:hover {
    background: var(--bg-card-hover);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: var(--shadow-glow);
}

.contentblock {
    width: 950px;
    margin: 0 auto;
    padding: 0;
    border-spacing: 25px 0;
}

.contentblock td {
    background: var(--bg-card);
    padding: 25px 50px;
    vertical-align: top;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.contentblock td:hover {
    background: var(--bg-card-hover);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: var(--shadow-glow);
}

#authors {
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--text-secondary);
}

#conference {
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-muted);
}

#authors a {
    margin: 0 10px;
}

code {
    display: block;
    padding: 10px;
    margin: 10px 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    color: var(--accent-secondary);
}

p code {
    display: inline;
    padding: 0;
    margin: 0;
}

/* Teasers - keeping original sizes */
#teasers {
    margin: 0 auto;
}

#teasers td {
    margin: 0 auto;
    text-align: center;
    padding: 5px;
}

#teasers img {
    width: 250px;
}

#results img {
    width: 133px;
}

#seeintodark {
    margin: 0 auto;
}

#sift {
    margin: 0 auto;
}

#sift img {
    width: 250px;
}

.downloadpaper {
    padding-left: 20px;
    float: right;
    text-align: center;
}

.downloadpaper a {
    font-weight: bold;
    text-align: center;
}

/* Images - keeping original sizes */
.teaser-img {
    width: 80%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.teaser-gif {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.summary-img {
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.video-iframe {
    width: 1000;
    height: 800;
    margin: auto;
    display: block;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image {
    flex-basis: 40%;
}

.text {
    font-size: 20px;
    padding-left: 20px;
    color: var(--text-secondary);
}

.center {
    margin-left: auto;
    margin-right: auto;
}

.boxshadow {
    border: 1px solid var(--border-color);
    padding: 10px;
    box-shadow: var(--shadow-glow);
}

.spacertr {
    height: 8px;
}

.spacertd {
    width: 40px;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    opacity: 1;
    visibility: visible;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(139, 92, 246, 0.5);
    border-radius: 50%;
    padding: 10px;
}

/* Video and photo containers */
.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0px 0;
}

.photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0px 0;
}

/* Videos styling */
video {
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Images styling */
img {
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 1250px) {
    .content {
        width: 95%;
        padding: 20px 30px;
    }

    .contentblock {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .content {
        width: 95%;
        padding: 15px 20px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar-brand {
        padding-left: 10px;
        font-size: 1.1rem;
    }

    /* Stack side-by-side elements vertically on mobile */
    div[style*="display: flex"][style*="gap"] {
        flex-direction: column !important;
        align-items: center !important;
    }

    div[style*="display: flex"][style*="gap"] video {
        width: 100% !important;
    }

    /* Make videos and images full-width on mobile */
    video {
        width: 100% !important;
        max-width: 100% !important;
    }

    img {
        max-width: 100% !important;
    }

    /* Adjust line height for better mobile readability */
    p {
        line-height: 1.6;
    }
}