/* General Styles */
:root {
    --primary-color: #c5b358; /* Gold color inspired by the reference */
    --dark-bg: #1a1a1a;
    --text-light: #f4f4f4;
    --text-secondary: #aaa;
}

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

body {
    font-family: 'Helvetica Neue', 'Arial', '微軟正黑體', 'Microsoft JhengHei', sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header Styles */
header {
    background-color: var(--dark-bg);
    color: var(--text-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}



.social-media a {
    margin-left: 18px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--primary-color);
}

/* Main Navigation */
.main-nav {
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between image and text */
}

.logo img {
    height: 85px;
    width: auto;
}

.logo h1 {
    font-size: 3.0rem;
    font-weight: bold;
    color: var(--text-light);
    margin: 0;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

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

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

/* General Page Title Styling */
main > h1 {
    text-align: center;
    padding: 50px 20px;
    font-size: 2.5rem;
    color: #333;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 40px;
}

/* Footer Styles */
footer {
    background-color: var(--dark-bg);
    color: var(--text-secondary);
    padding: 50px 0 30px;
    margin-top: 60px;
    position: relative;
}

.footer-container {
    flex-direction: column;
    align-items: stretch;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    width: 100%;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 280px;
}

.footer-section h4 {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section p {
    margin-bottom: 12px;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
}

.footer-section.links ul li a {
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-section.links ul li a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.footer-section.contact p i {
    margin-right: 12px;
    color: var(--primary-color);
    width: 18px;
    text-align: center;
    margin-top: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    width: 100%;
    padding-top: 30px;
    border-top: 1px solid #3a3a3a;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom .social-media {
    order: 2;
}

.footer-bottom .copyright {
    order: 1;
    flex-grow: 1;
    text-align: center;
}

/* Making footer social icons similar to header but adaptable */
.footer-bottom .social-media a {
    margin: 0 10px;
    font-size: 1.2rem;
}

/* Hamburger Menu & Mobile Navigation */
.hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 15px;
    z-index: 1001;
    background-color: transparent;
    border: none;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-light);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 1023px) {
    .hamburger-menu {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        position: fixed; /* Use fixed positioning */
        top: 0;
        right: -100%; /* Start off-screen to the right */
        width: 300px; /* Set a fixed width for the menu */
        height: 100vh; /* Full height */
        background-color: var(--dark-bg);
        padding: 100px 20px 20px;
        box-shadow: -4px 0 8px rgba(0,0,0,0.2);
        transition: right 0.4s ease-in-out;
        z-index: 1000; /* Ensure it's above the overlay */
    }

    .nav-links.nav-active {
        right: 0; /* Slide into view */
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .hamburger-menu.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }

.hamburger-menu.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Overlay for mobile menu */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Below the nav links but above everything else */
}

.overlay.is-active {
    display: block;
}
