/* ── Research page – Dark purple bento theme ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
    background-color: #060010;
    color: #fff;
}

/* ── Back button ── */
.back-btn {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 999;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(132, 0, 255, 0.08);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    border: 1px solid rgba(132, 0, 255, 0.25);
}
.back-btn:hover {
    background: rgba(132, 0, 255, 0.18);
    transform: translateX(-4px);
    box-shadow: 0 0 24px rgba(132, 0, 255, 0.45);
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 60px;
}

/* ── Hero ── */
.hero-section {
    margin-bottom: 60px;
    padding: 70px 40px;
    text-align: center;
    position: relative;
    border-radius: 24px;
    background: radial-gradient(ellipse at 50% 60%, rgba(132, 0, 255, 0.12), transparent 70%);
    border: 1px solid rgba(132, 0, 255, 0.18);
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='0.6' fill='rgba(132,0,255,0.08)'/%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-content h1 {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 20%, #a855f7 70%, #8400ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content h3 {
    font-size: 22px;
    font-weight: 400;
    color: rgba(168, 85, 247, 0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── Section headings ── */
.section-heading {
    font-size: 42px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #c084fc, #8400ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Sections spacing ── */
.project-section,
.tech-section,
.visuals-section {
    margin-bottom: 60px;
}

/* ── Slideshow section ── */
.slideshow-section {
    margin-bottom: 60px;
    padding: 50px;
    background: rgba(132, 0, 255, 0.04);
    border: 1px solid rgba(132, 0, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}
.slideshow-section h2 {
    font-size: 42px;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, #c084fc, #8400ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    background: #000;
    border-radius: 16px;
    border: 1px solid rgba(132, 0, 255, 0.3);
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(132, 0, 255, 0.2);
}

.slide {
    display: none;
    width: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background: #000;
}
.slide.fade { animation: fadeInSlide 0.8s ease-in-out; }
@keyframes fadeInSlide { from { opacity: 0; } to { opacity: 1; } }
.slide img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 400px;
    object-fit: cover;
}

/* Nav arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    color: #fff;
    font-weight: bold;
    font-size: 22px;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(132, 0, 255, 0.2);
    border: 1px solid rgba(132, 0, 255, 0.4);
    z-index: 10;
    user-select: none;
}
.prev:hover, .next:hover {
    background: rgba(132, 0, 255, 0.45);
    border-color: rgba(132, 0, 255, 0.8);
    box-shadow: 0 0 28px rgba(132, 0, 255, 0.6);
    transform: scale(1.1);
}
.prev { left: 14px; }
.next { right: 14px; }

/* Dots */
.dots {
    text-align: center;
    padding: 18px 0;
    background: rgba(132, 0, 255, 0.04);
}
.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 7px;
    background-color: rgba(132, 0, 255, 0.25);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(132, 0, 255, 0.45);
}
.dot.active {
    background: linear-gradient(135deg, #a855f7, #8400ff);
    width: 30px;
    border-radius: 5px;
    border-color: rgba(132, 0, 255, 0.8);
    box-shadow: 0 0 18px rgba(132, 0, 255, 0.5);
}
.dot:hover {
    background-color: rgba(132, 0, 255, 0.45);
    box-shadow: 0 0 10px rgba(132, 0, 255, 0.35);
    transform: scale(1.2);
}

/* Auto-play indicator */
.slideshow-container::after {
    content: '⏵ Auto-playing';
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 12px;
    color: rgba(168, 85, 247, 0.7);
    background: rgba(0, 0, 0, 0.65);
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(132, 0, 255, 0.25);
    backdrop-filter: blur(5px);
    z-index: 5;
}
.slideshow-container:hover::after {
    content: '⏸ Paused';
    color: rgba(251, 146, 60, 0.7);
    border-color: rgba(251, 146, 60, 0.3);
}

/* ── Publication section ── */
.publication-section {
    text-align: center;
    padding: 50px;
    background: rgba(132, 0, 255, 0.04);
    border: 1px solid rgba(132, 0, 255, 0.15);
    border-radius: 20px;
    margin-bottom: 40px;
}
.publication-section h2 {
    font-size: 36px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #c084fc, #8400ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pub-link {
    display: inline-block;
    padding: 14px 36px;
    background: rgba(132, 0, 255, 0.1);
    border: 1px solid rgba(132, 0, 255, 0.4);
    border-radius: 12px;
    color: #c084fc;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s ease;
}
.pub-link:hover {
    background: rgba(132, 0, 255, 0.22);
    border-color: rgba(132, 0, 255, 0.8);
    box-shadow: 0 8px 36px rgba(132, 0, 255, 0.3);
    transform: translateY(-3px);
}

/* ── Demo section (if used) ── */
.demo-section {
    margin-bottom: 60px;
    padding: 50px;
    background: rgba(132, 0, 255, 0.04);
    border: 1px solid rgba(132, 0, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}
.demo-section h2 {
    font-size: 36px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #c084fc, #8400ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.demo-section p {
    font-size: 16px;
    color: #9ca3af;
    margin-bottom: 24px;
}
.research-video {
    width: 100%;
    max-height: 600px;
    border-radius: 14px;
    border: 1px solid rgba(132, 0, 255, 0.25);
    background: #000;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .container { padding: 80px 30px 40px; }
    .hero-content h1 { font-size: 52px; }
}
@media (max-width: 768px) {
    .container { padding: 80px 20px 40px; }
    .hero-section { padding: 40px 20px; }
    .hero-content h1 { font-size: 40px; }
    .hero-content h3 { font-size: 16px; }
    .section-heading,
    .slideshow-section h2,
    .publication-section h2 { font-size: 30px; }
    .slideshow-section,
    .publication-section { padding: 30px 20px; }
    .prev, .next { width: 38px; height: 38px; margin-top: -19px; font-size: 18px; }
    .prev { left: 10px; } .next { right: 10px; }
    .dot { height: 9px; width: 9px; margin: 0 5px; }
    .dot.active { width: 26px; }
}
@media (max-width: 480px) {
    .container { padding: 70px 15px 30px; }
    .hero-section { padding: 24px 16px; }
    .hero-content h1 { font-size: 32px; }
    .hero-content h3 { font-size: 14px; }
    .section-heading,
    .slideshow-section h2,
    .publication-section h2 { font-size: 24px; }
    .slideshow-section,
    .publication-section { padding: 20px 14px; }
    .pub-link { padding: 10px 24px; font-size: 15px; }
    .slide img { min-height: 250px; }
    .prev, .next { width: 34px; height: 34px; margin-top: -17px; font-size: 16px; }
    .prev { left: 8px; } .next { right: 8px; }
    .dot { height: 7px; width: 7px; margin: 0 4px; }
    .dot.active { width: 22px; }
    .slideshow-container::after { font-size: 11px; padding: 4px 8px; }
}
