* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a365d;
    --primary-light: #2b5a8c;
    --primary-lighter: #3b82c4;
    --accent: #e8913a;
    --accent-hover: #d47e2e;
    --text: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --surface: #ffffff;
    --surface-alt: #f7f8fc;
    --border: #e2e8f0;
    --border-light: #edf2f7;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --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 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-lg: 12px;
}

/* Dark Mode */
body.dark-mode {
    --primary: #90cdf4;
    --primary-light: #63b3ed;
    --primary-lighter: #4da2dc;
    --accent: #f6ad55;
    --accent-hover: #ed8936;
    --text: #e2e8f0;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --surface: #1a202c;
    --surface-alt: #1e2533;
    --border: #2d3748;
    --border-light: #2d3748;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    background-color: #141a26;
    color: var(--text);
}

body.dark-mode .header {
    background: linear-gradient(135deg, #0f1b2d 0%, #1a2744 30%, #1e3a5f 70%, #0f2744 100%);
}

body.dark-mode .header-bg-pattern {
    opacity: 0.03;
}

body.dark-mode .navbar {
    background-color: #1a202c;
    border-bottom-color: var(--border);
}

body.dark-mode .section-content {
    color: var(--text-secondary);
}

body.dark-mode .section-content p,
body.dark-mode .section-content li {
    color: var(--text-secondary);
}

body.dark-mode .modal-content {
    background-color: #1a202c;
    color: var(--text);
}

body.dark-mode .modal-content h2 {
    color: var(--primary);
}

body.dark-mode .close {
    color: #718096;
}

body.dark-mode .close:hover {
    color: #e2e8f0;
}

body.dark-mode .form-group label {
    color: var(--text);
}

body.dark-mode .form-group input[type="text"],
body.dark-mode .form-group input[type="email"] {
    background-color: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
}

body.dark-mode .form-group input[type="text"]:focus,
body.dark-mode .form-group input[type="email"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(144, 205, 244, 0.15);
}

body.dark-mode .agenda-item {
    border-bottom-color: var(--border);
}

body.dark-mode .member-affiliation {
    color: var(--text-muted);
}

body.dark-mode .footer {
    background-color: var(--surface);
    border-color: var(--border);
}

body.dark-mode {
    background-color: #0d1117;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

body.dark-mode .coming-soon-content h2 {
    color: var(--text);
}

body.dark-mode .coming-soon-content p {
    color: var(--text-secondary);
}

/* Base */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background-color: var(--surface-alt);
    background-image: 
        linear-gradient(rgba(43, 90, 140, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 90, 140, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, #0f2027 0%, #1a365d 30%, #2b5a8c 70%, #1a365d 100%);
    color: white;
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                       radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
                       radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

.dark-mode-toggle {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

@media (max-width: 768px) {
    .dark-mode-toggle {
        top: 1rem;
        right: 1rem;
        width: 38px;
        height: 38px;
    }

    .toggle-icon {
        width: 16px;
        height: 16px;
    }
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.toggle-icon {
    width: 18px;
    height: 18px;
    stroke: white;
    flex-shrink: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.header-content h1 {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.01em;
}

.header-divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.header-info {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
    opacity: 0.8;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.header-btn {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    font-family: inherit;
}

.header-btn.primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(232, 145, 58, 0.3);
}

.header-btn.primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 145, 58, 0.4);
}

.header-btn.secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1000px;
    padding: 0 2rem;
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex: 1;
}

.nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.2s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background-color: var(--accent);
    transition: transform 0.3s ease;
    border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar-dark-mode-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.navbar-dark-mode-toggle.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.navbar-dark-mode-toggle:hover {
    background: var(--surface-alt);
    border-color: var(--primary-light);
}

.navbar-toggle-icon {
    width: 16px;
    height: 16px;
    stroke: var(--text-secondary);
    flex-shrink: 0;
}

body.dark-mode .navbar-toggle-icon {
    stroke: var(--text);
}

/* Main Content */
.main-content {
    padding: 3rem;
    margin: 2rem auto;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    max-width: 1000px;
}

.section {
    margin-bottom: 2.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.section:last-of-type {
    border-bottom: none;
}

.section h2 {
    font-size: 2.2rem;
    color: var(--text);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.section h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-content {
    color: #555555;
    font-size: 1rem;
}

.section-content p {
    margin-bottom: 1.2rem;
    text-align: left;
    line-height: 1.8;
}

.section-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.section-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.section-content li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.section-content a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

.section-content a:hover {
    text-decoration: underline;
}

.participation-action {
    text-align: center;
    margin-top: 1.5rem;
}

.participation-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.participation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 145, 58, 0.3);
    background-color: var(--accent-hover);
}

/* Agenda Table */
.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 700px;
}

.agenda-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}

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

.agenda-item .time {
    font-weight: 600;
    color: var(--primary-light);
    font-size: 0.95rem;
}

.agenda-item .activity {
    color: var(--text);
    font-weight: 400;
    font-size: 0.95rem;
}

/* Committee Grid */
.committee-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
    margin: 0;
}

.committee-member-entry {
    padding: 0.75rem 0;
    border-bottom: none;
    display: block;
    line-height: 1.6;
}

.committee-member-entry:last-child {
    border-bottom: none;
}

.member-name {
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
    display: inline;
    text-decoration: none;
}

.member-name:hover {
    text-decoration: underline;
}

.member-affiliation {
    color: #666666;
    font-size: 0.9rem;
    font-style: italic;
    display: inline;
}

.member-affiliation::before {
    content: ", ";
    margin-right: 0;
}

.committee-contact {
    font-size: 1rem;
    text-align: left;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--surface);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.coming-soon-content {
    text-align: center;
}

.coming-soon-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.coming-soon-content h2 {
    color: var(--text);
    margin-bottom: 1rem;
}

.coming-soon-content p {
    color: #555555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: var(--text);
}

/* Form Styling */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="email"] {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    margin: 0;
}

.checkbox-group input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.submit-btn {
    background-color: var(--primary-light);
    color: white;
    border: none;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* Footer */
.footer {
    background-color: var(--surface);
    color: var(--text);
    text-align: center;
    padding: 1.5rem 0;
    margin: 2rem auto 2rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    max-width: 1000px;
}

.footer p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 4rem 0 3rem;
    }

    .header-label {
        font-size: 2.5rem;
        padding: 0 3rem;
    }

    .header-content h1 {
        font-size: 1.05rem;
        padding: 0 3rem;
    }

    .header-info {
        padding: 0 1rem;
    }

    .header-buttons {
        padding: 0 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0;
        justify-content: center;
        width: 100%;
    }

    .nav-links li {
        flex: 0 0 auto;
    }

    .nav-links a {
        padding: 0.75rem 0.85rem;
        font-size: 0.75rem;
    }

    .navbar-dark-mode-toggle {
        display: none;
    }

    .navbar .container {
        padding: 0 1rem;
        justify-content: center;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .agenda-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .agenda-item .time {
        font-size: 0.85rem;
    }

    .committee-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .section-content p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .header-label {
        font-size: 2rem;
        padding: 0 3rem;
    }

    .header-content h1 {
        font-size: 0.95rem;
        padding: 0 3rem;
    }

    .header {
        padding: 4rem 0 2.5rem;
    }

    .header-info {
        padding: 0 1rem;
    }

    .header-buttons {
        padding: 0 1rem;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        width: 100%;
    }

    .nav-links li {
        flex: 1 1 50%;
        min-width: 50%;
    }

    .nav-links a {
        padding: 0.875rem 0.5rem;
        font-size: 0.7rem;
        border-bottom: 1px solid var(--border);
        text-align: center;
        width: 100%;
    }

    .nav-links a::after {
        display: none;
    }

    .navbar .container {
        padding: 0;
        justify-content: center;
    }

    .navbar-dark-mode-toggle {
        display: none;
    }

    .section {
        margin-bottom: 2rem;
    }

    .main-content {
        padding: 2rem 1.5rem;
        margin: 1.5rem;
        border-radius: 8px;
    }

    .footer {
        margin: 1.5rem;
        border-radius: 8px;
    }

    .header-info {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
}
