:root {
    --primary: #0A3966; /* DCC Blue */
    --secondary: #D12026; /* HKTDC Red */
    --accent: #009D4E; /* Irish Green */
    --dark: #1a2a3a;
    --light: #f8f9fa;
    --chat-bg: #f0f4f8;
    --focus: #ffbf47;
    --body-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark);
    background-color: white;
    transition: all 0.3s ease;
    padding-top: 70px;
    /* Double font size except for headers */
    font-size: 1.2rem;
}

body.high-contrast {
    background-color: black;
    color: white;
}

body.large-text {
    font-size: 1.8rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

/* ===== Navigation & Header Styles ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--primary);
    padding: 15px 5%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background 0.3s;
    font-size: 1.1rem;
}

nav a:hover {
    background: rgba(255,255,255,0.1);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 5% 50px;
    background: linear-gradient(135deg, var(--primary) 0%, #0a4b8f 100%);
    color: white;
}

.logo img {
    height: 80px;
}

.header-content {
    text-align: center;
    flex-grow: 1;
    padding: 0 20px;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.language-switcher {
    align-self: flex-start;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 100px 5%;
    text-align: center;
    background: linear-gradient(rgba(10, 57, 102, 0.8), rgba(10, 57, 102, 0.8)), 
                url('images/hk-dublin-bg.jpg') center/cover no-repeat;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #a91a1f;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* ===== Section Styles ===== */
section {
    padding: 80px 5%;
}

h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary);
    font-size: 2rem;
}

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

.content-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    font-size: 1.2rem;
}

.content-card:hover {
    transform: translateY(-5px);
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.tech-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-size: 1.2rem;
}

.tech-item img {
    height: 80px;
    margin-bottom: 20px;
}

.feature-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-size: 1.2rem;
}

.feature ul {
    padding-left: 20px;
}

.feature li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* ===== Events Timeline ===== */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    counter-reset: step-counter;
}

.step {
    position: relative;
    padding: 30px 20px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-size: 1.2rem;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    background: var(--accent);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===== Partners Section ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.partner {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-size: 1.2rem;
}

.partner img {
    max-height: 100px;
    margin-bottom: 20px;
}

.governance {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

/* ===== Footer Styles ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: 50px 5% 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--accent);
}

.compliance-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.compliance-badges img {
    height: 60px;
}

.legal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    font-size: 1.1rem;
}

.legal a {
    color: #ddd;
    text-decoration: none;
}

.legal a:hover {
    color: white;
}

/* ===== Section Navigation ===== */
.section-nav {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 15px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: #0c4a8a;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

/* ===== Accessibility Controls ===== */
.accessibility-controls {
    position: fixed;
    bottom: 30px;
    right: 100px;
    display: flex;
    gap: 10px;
    z-index: 999;
}

.accessibility-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}

/* ===== DeepSeek Chat Styles ===== */
.deepseek-chat-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
    transition: transform 0.3s;
}

.deepseek-chat-btn:hover {
    transform: scale(1.1);
}

.deepseek-chat-btn img {
    width: 70%;
    height: auto;
}

.deepseek-modal {
    display: none;
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e1e5eb;
}

.modal-header {
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 10px;
}

.chat-container {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: var(--chat-bg);
    max-height: 350px;
}

.chat-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 1.1rem;
}

.user-message {
    background: var(--primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.bot-message {
    background: white;
    color: var(--dark);
    border: 1px solid #e1e5eb;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.chat-input {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid #e1e5eb;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 1.1rem;
}

.chat-input button {
    background: var(--accent);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-input button:hover {
    background: #008040;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 80px 5% 40px;
    }
    
    .language-switcher {
        align-self: center;
        margin-top: 20px;
    }
    
    nav {
        flex-wrap: wrap;
    }
    
    nav a {
        margin: 5px;
        padding: 6px 12px;
        font-size: 1rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .section-nav {
        margin-top: 30px;
    }
    
    .accessibility-controls {
        right: 20px;
        bottom: 100px;
    }
    
    .deepseek-modal {
        width: 90%;
        left: 5%;
        bottom: 100px;
    }
    
    /* Adjust font sizes for mobile */
    body {
        font-size: 1.1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .content-card, .tech-item, .feature, .step {
        font-size: 1.1rem;
    }
}