:root {
    --dark-blue: #0b1528; /* Slightly deeper navy to match screenshot */
    --red-accent: #d92027; /* More vibrant red */
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    
    /* Modern shadow variables for softer transitions */
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6, .logo-text, .btn, .pre-title {
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--white); }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* --- Navigation --- */
.navbar {
    background-color: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-bottom: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
    transition: var(--transition-smooth);
}

.logo {
    width: 90px;
    height: 70px;
    position: relative;
    z-index: 10;
}

.nav-logo-img {
    height: 90px; 
    width: 90px;
    object-fit: cover;
    border-radius: 50%;
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;
    transition: var(--transition-smooth);
    position: absolute;
    top: 5px; /* Prevents touching the top edge of the browser, hangs out the bottom */
    left: 0;
}

.navbar.scrolled .nav-logo-img {
    height: 75px;
    width: 75px;
    top: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--red-accent);
    transition: var(--transition-smooth);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--red-accent);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--dark-blue);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 60px;
    background-color: var(--dark-blue);
    color: var(--white); /* FIX: restore white text */
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background-color: var(--red-accent);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(217, 32, 39, 0.3);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #a0aec0;
    margin-bottom: 45px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.btn-white {
    background-color: var(--white);
    color: var(--dark-blue);
    box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

.btn-white:hover {
    background-color: #f1f5f9;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255,255,255,0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
}

.btn-outline-dark:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    perspective: 1000px;
}

.poster-mockup {
    background-color: var(--white);
    padding: 12px;
    border-radius: 12px;
    box-shadow: -15px 25px 45px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 380px;
    transform: rotateY(-12deg) rotateX(4deg) rotateZ(1deg);
    transition: var(--transition-smooth);
}

.poster-mockup:hover {
    transform: rotateY(0) rotateX(0) rotateZ(0) translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.hero-header-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

/* --- Sections Common --- */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.pre-title {
    display: inline-block;
    color: var(--red-accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 10px;
    position: relative;
}

.section-title {
    color: var(--dark-blue);
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* --- Programme Agenda --- */
.day-wrapper {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.day-wrapper:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.day-header {
    background: linear-gradient(to right, var(--dark-blue), #1a2a47);
    color: var(--white);
    padding: 20px 35px;
}

.day-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.day-header h3 span {
    font-weight: 400;
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-left: 10px;
}

.agenda-table {
    display: flex;
    flex-direction: column;
}

.agenda-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.agenda-row:hover {
    background-color: rgba(248, 250, 252, 0.5);
}

.agenda-row:last-child {
    border-bottom: none;
}

.agenda-time {
    width: 160px;
    padding: 25px 35px;
    font-weight: 700;
    color: var(--dark-blue);
    background-color: #f8fafc;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
    font-size: 0.95rem;
}

.agenda-details {
    padding: 25px 35px;
    flex: 1;
}

.agenda-details h4 {
    font-size: 1.1rem;
    color: var(--dark-blue);
    margin-bottom: 8px;
    font-weight: 700;
}

.break-row .agenda-details h4 {
    color: var(--red-accent);
}

.agenda-speakers {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

.agenda-sub {
    list-style: none;
    margin-top: 15px;
}

.agenda-sub li {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.agenda-sub li::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: var(--red-accent);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 9px;
}

.agenda-sub li.indent {
    margin-left: 25px;
}

.agenda-sub li strong {
    color: var(--dark-blue);
    display: inline-block;
    width: 100px;
}

.speaker {
    font-style: italic;
    color: var(--text-light);
}

/* --- Committees Grid --- */
.committee-group {
    margin-bottom: 60px;
}

.group-title {
    font-size: 1.6rem;
    color: var(--dark-blue);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.names-grid.small-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.name-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 15px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.name-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #94a3b8;
    border: 3px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.name-card:hover .avatar {
    color: var(--dark-blue);
    transform: scale(1.05);
}

.name-card h4 {
    font-size: 1rem;
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 5px;
}

.name-card.small {
    padding: 20px 15px;
}

.name-card.small h4 {
    font-size: 0.9rem;
    margin: 0;
}

.speaker-category-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.speaker-cat {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.speaker-cat:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.cat-title {
    color: var(--red-accent);
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 15px;
}

.cat-names {
    list-style: none;
}

.cat-names li {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

.cat-names strong {
    color: var(--dark-blue);
    font-weight: 700;
}

.panelist-elegant-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 0;
}

.panelist-elegant-list li {
    background-color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--dark-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.panelist-elegant-list li i {
    color: var(--red-accent);
    margin-right: 15px;
    font-size: 1.2rem;
}

.panelist-elegant-list li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: #cbd5e1;
}

/* --- General Info --- */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.info-box-elegant {
    display: flex;
    align-items: flex-start;
    background: var(--white);
    border-left: 4px solid var(--dark-blue);
    padding: 25px 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    transition: var(--transition-smooth);
    border-radius: 0 8px 8px 0;
}

.info-box-elegant:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-left-color: var(--red-accent);
}

.wide-box {
    align-items: center;
}

.elegant-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.info-box-elegant:hover .elegant-icon {
    background-color: var(--dark-blue);
    color: var(--white);
    transform: scale(1.1);
}

.info-content h3 {
    font-size: 1.1rem;
    color: var(--dark-blue);
    margin-bottom: 8px;
    font-weight: 700;
}

.info-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* --- Secretariat --- */
.secretariat-section {
    margin-top: 100px;
    padding: 60px 40px;
    background-color: var(--dark-blue);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.secretariat-section h3.text-center {
    color: var(--white) !important;
}

.sec-logo {
    text-align: center;
    margin-bottom: 25px;
}

.sec-logo img {
    max-width: 250px;
    height: auto;
}

.contact-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.contact-box {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.contact-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: #cbd5e1;
}

.contact-box i {
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.contact-box:hover i {
    color: var(--red-accent);
}

.contact-box h4 {
    font-size: 1.1rem;
    color: var(--dark-blue);
    margin-bottom: 12px;
}

.contact-box p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.contact-box a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.contact-box a:hover {
    color: var(--red-accent);
}

/* --- Footer --- */
.footer {
    background-color: #050a14;
    color: #475569;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-graphic {
        justify-content: center;
        width: 100%;
    }
    
    .poster-mockup {
        transform: rotateY(0) rotateX(0) rotateZ(0);
        box-shadow: 0 15px 35px rgba(0,0,0,0.3);
        max-width: 400px;
    }
    
    .poster-mockup:hover {
        transform: translateY(-10px);
    }

    .agenda-row {
        flex-direction: column;
    }

    .agenda-time {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px 25px;
    }

    .speaker-category-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a {
        display: block;
        padding: 20px;
        font-size: 1rem;
    }

    .hamburger {
        display: block;
    }

    .hero {
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        word-break: break-word;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .poster-mockup {
        max-width: 320px;
    }
}
