/* Modern UDRC Design System - 2026 Ultimate Edition */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@400;500;600;700;800&display=swap');

/* Overrides for Bootstrap Utilities */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
    color: var(--dark) !important;
}

.btn-secondary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: var(--dark) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

:root {
    /* Color Palette - Blue & Yellow Theme */
    --primary: #2563EB;
    /* Blue 600 */
    --primary-hover: #1D4ED8;
    /* Blue 700 */
    --secondary: #FFC107;
    /* Amber 400 - Significantly brighter */
    --accent: #FFD700;
    /* Gold - More prominent */
    --success: #10B981;
    --dark: #111827;
    /* Gray 900 */
    --text-main: #1F2937;
    /* Gray 800 */
    --text-muted: #6B7280;
    /* Gray 500 */
    --light: #F9FAFB;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-strong: rgba(255, 255, 255, 0.9);
    --blur: blur(12px);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);

    /* Transitions */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s var(--ease-out);
}

/* Accessibility Focus States & Skip Link */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--dark);
    color: white;
    padding: 15px 20px;
    z-index: 99999;
    transition: top 0.3s;
    border-radius: 0 0 10px 0;
    text-decoration: none;
    font-weight: bold;
}

.skip-to-content:focus,
.skip-to-content:active,
.skip-to-content:focus-visible {
    top: 0;
    outline: none;
    box-shadow: var(--shadow-lg);
}

/* Global Reset & Typography */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #F3F4F6;
    /* Abstract energetic background */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 193, 7, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 45%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body.home-page {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.78)),
        url('../assets/brand/home/modern_data_viz.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.publication-page {
    background-color: #FFFFFF !important;
    background-image: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dark);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    text-decoration: none;
    transition: var(--transition);
    color: var(--primary);
}

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

/* Layout Utilities */
.container-narrow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main_wide {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.object-fit-cover {
    object-fit: cover;
    object-position: center;
}

/* Glass Components */
.glass-panel {
    background: var(--glass-strong);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    border-radius: 1rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(79, 70, 229, 0.3);
}

/* Navbar */
.navbarStyle {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar-brand div {
    line-height: 1.1;
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.nav-link {
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-main) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    margin: 0 0.25rem;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary) !important;
}

.dropdown-menu {
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    border-radius: 1rem;
    margin-top: 1rem;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
}

.dropdown-item:hover {
    background-color: rgba(79, 70, 229, 0.05);
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-size: 3.5rem;
    background: -webkit-linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Grids */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.features-grid>* {
    max-width: 550px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Team Card Specifics */
.team-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(6, 182, 212, 0.3);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid rgba(79, 70, 229, 0.1);
    padding: 4px;
    background: white;
}

.team-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.team-role {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

/* Forms (Data Request) */
.form-floating>.form-control {
    border-radius: 0.75rem;
    border: 1px solid #E5E7EB;
    background: rgba(255, 255, 255, 0.7);
}

.form-floating>.form-control:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.3);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--dark) 100%);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

/* Tables */
.table-glass {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: white;
}

.table-glass th {
    background: #F9FAFB;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 2px solid #E5E7EB;
}

.table-glass td {
    padding: 1rem;
    border-bottom: 1px solid #F3F4F6;
    color: var(--text-main);
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 6rem;
    padding: 4rem 0 2rem;
}

.footer-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.footer-link {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Page Header Component (Subpages) */
.page-header {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(to right, rgba(37, 99, 235, 0.05), rgba(79, 70, 229, 0.02));
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    padding: 4rem 0 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.page-header h1 {
    font-size: 3rem;
    background: -webkit-linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* Interaction Utility */
.grayscale-to-color {
    /* No longer enforcing grayscale initially */
    filter: none;
    opacity: 1;
    transition: all 0.4s var(--ease-out);
}

.card:hover .grayscale-to-color,
.glass-card:hover .grayscale-to-color,
a:hover .grayscale-to-color,
.grayscale-to-color:hover {
    transform: scale(1.05);
}

/* Timeline Custom Component */
.timeline-container {
    position: relative;
    padding-left: 2.5rem;
    margin-top: 3.5rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    height: calc(100% - 10px);
    width: 2px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 2px;
}

.timeline-step {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-icon {
    position: absolute;
    left: -2rem;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    top: 5px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.timeline-step:hover .timeline-icon {
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2);
}

.timeline-content {
    font-weight: 500;
    color: var(--text-main);
}

.timeline-content .text-muted {
    font-weight: 400;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .page-header h1 {
        font-size: 2.25rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .navbar-brand img {
        width: 30px;
        height: auto;
    }
}

/* Accessibility Fixes */
.table-glass th {
    color: #343a40 !important;
}