/* 
   CVOS Lab - Modern Premium Style Sheet
  
   Theme: Sleek Glassmorphic Midnight with Indigo & Cyan Accents
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(30, 41, 59, 0.45);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(6, 182, 212, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --glow-purple: rgba(139, 92, 246, 0.15);
    --glow-cyan: rgba(6, 182, 212, 0.15);
    --nav-height: 120px;
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-inter);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Gradients Glow */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bg-glow::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
    filter: blur(80px);
}

.bg-glow::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 70%);
    filter: blur(80px);
}

/* Navigation Bar (Glassmorphic) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-card);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 40px;
}

.logo {
    margin-right: auto;
    font-family: var(--font-outfit);
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-outfit);
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    padding: 8px 0;
}

nav a:hover, nav a.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

/* Page Container Layout */
main {
    max-width: 1200px;
    margin: 160px auto 60px;
    padding: 0 40px;
}

/* Hero Section (Modern Clean Home) */
.hero {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    margin-bottom: 80px;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.hero-content * {
    pointer-events: auto;
}

.hero-subtitle {
    font-family: var(--font-outfit);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.hero-title {
    font-family: var(--font-outfit);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, var(--text-primary), #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-bio {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font-outfit);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn.primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
}

.social-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
}

.social-btn.secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
}

.social-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.hero-img-container {
    width: 320px;
    height: 320px;
    position: relative;
    z-index: 2;
}

.hero-img-container::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    z-index: -1;
    animation: rotateGlow 10s linear infinite;
}

.hero-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-main);
    border: 4px solid var(--bg-main);
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Grid Sections (Card Layouts) */
.section-title {
    font-family: var(--font-outfit);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 2px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Glassmorphic Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 36px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(6, 182, 212, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.glass-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 36px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-title {
    font-family: var(--font-outfit);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.card-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Publications Page Styling */
.filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 20px;
    font-family: var(--font-outfit);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-purple);
    color: var(--text-primary);
    border-color: var(--accent-purple);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.pub-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pub-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    padding: 24px 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.pub-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateX(4px);
}

.pub-num {
    font-family: var(--font-outfit);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-cyan);
    min-width: 24px;
}

.pub-content {
    flex: 1;
}

.pub-title {
    font-family: var(--font-outfit);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.pub-title:hover {
    color: var(--accent-cyan);
}

.pub-authors {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}

.pub-authors strong {
    color: var(--text-primary);
}

.pub-journal {
    color: var(--accent-purple);
    font-size: 14px;
    font-weight: 500;
}

.pub-year {
    font-size: 14px;
    color: var(--text-muted);
}

/* Datasets Page & Calculator Styles */
.dataset-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.dataset-badge {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 16px;
}

.dataset-meta {
    margin: 20px 0;
    border-top: 1px solid var(--border-card);
    border-bottom: 1px solid var(--border-card);
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dataset-meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.dataset-meta-label {
    color: var(--text-secondary);
}

.dataset-meta-value {
    color: var(--text-primary);
    font-weight: 500;
}

.calc-box {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 16px;
}

.calc-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.calc-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.calc-input {
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid var(--border-card);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-family: var(--font-inter);
    font-size: 14px;
    width: 100px;
    outline: none;
    transition: border-color 0.3s ease;
}

.calc-input:focus {
    border-color: var(--accent-cyan);
}

.calc-result {
    font-size: 14px;
    color: var(--text-secondary);
}

.calc-result strong {
    color: var(--text-primary);
}

.btn-download {
    width: 100%;
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 8px;
    font-family: var(--font-outfit);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.btn-download:hover {
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

/* Contact Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 24px 30px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-icon {
    font-size: 28px;
    color: var(--accent-cyan);
}

.contact-details h4 {
    font-family: var(--font-outfit);
    font-size: 18px;
    margin-bottom: 4px;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-details a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border-card);
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    font-family: var(--font-outfit);
}

/* Mobile responsive styles */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-img-container {
        order: -1;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* AI Neural Canvas Styles */
.ai-canvas-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(11, 15, 25, 0.4);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    overflow: hidden;
    margin: 40px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ai-canvas-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    pointer-events: none;
}

.ai-canvas-title {
    font-family: var(--font-outfit);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-canvas-desc {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
}

/* Animated Student SVG Avatars & People Styles */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.people-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.people-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.15);
}

.avatar-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.people-card:hover .avatar-container {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.05);
}

/* SVG Animations */
.animated-svg-avatar {
    width: 80px;
    height: 80px;
}

.svg-gear {
    transform-origin: center;
    animation: spinGear 8s linear infinite;
    fill: var(--accent-cyan);
}

.svg-neural-core {
    animation: pulseCore 2s ease-in-out infinite alternate;
    fill: var(--accent-purple);
}

.svg-wave {
    animation: waveMotion 1.5s ease-in-out infinite alternate;
    stroke: var(--accent-blue);
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
}

.svg-hat-glow {
    animation: pulseHat 3s ease-in-out infinite alternate;
    fill: var(--accent-cyan);
}

@keyframes spinGear {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseCore {
    0% { transform: scale(0.95); opacity: 0.6; }
    100% { transform: scale(1.08); opacity: 1; }
}

@keyframes waveMotion {
    0% { stroke-dashoffset: 40; }
    100% { stroke-dashoffset: -40; }
}

@keyframes pulseHat {
    0% { opacity: 0.3; }
    100% { opacity: 0.9; }
}

.people-name {
    font-family: var(--font-outfit);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.people-role {
    font-family: var(--font-outfit);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.people-bio {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Recruiting & Interactive Modal Styles */
.recruitment-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.recruitment-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.recruit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.recruit-title {
    font-family: var(--font-outfit);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.recruit-badge {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.recruit-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-card);
    font-size: 14px;
}

.recruit-detail-item {
    color: var(--text-secondary);
}

.recruit-detail-item strong {
    color: var(--text-primary);
}

/* Accordion application form */
.recruit-apply-box {
    margin-top: 24px;
    border-top: 1px dashed var(--border-card);
    padding-top: 20px;
}

.apply-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: rgba(11, 15, 25, 0.5);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border-card);
}

.apply-form-full {
    grid-column: span 2;
}

.apply-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 6px;
}

.apply-input {
    width: 100%;
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid var(--border-card);
    border-radius: 6px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-inter);
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.apply-input:focus {
    border-color: var(--accent-cyan);
}

/* Elegant Research Video Gallery Styling */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 28px;
    width: 100%;
    grid-column: span 2; /* Spans full width of the horizontal cards */
}

@media (max-width: 992px) {
    .video-gallery {
        grid-column: span 1;
    }
}

.video-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-outfit);
}

.video-title i {
    color: var(--accent-cyan);
    font-size: 14px;
}

.video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-card);
    aspect-ratio: 16 / 9;
    background: #000000;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.15);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

