/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.5s;
}

.header-scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.nav-favicon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-favicon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Navigation styles */
.navbar {
    display: flex;
    gap: 2.5rem;
}

.navbar a {
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    transition: width 0.3s ease;
}

.navbar a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.navbar a:hover::after {
    width: 100%;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 2.5rem;
}

.dropbtn {
    background-color: transparent;
    color: white;
    padding: 10px 20px;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.dropbtn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.dropbtn:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.dropbtn:hover::after {
    width: 80%;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.95);
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 0;
    top: 100%;
    margin-top: 10px;
}

.dropdown-content a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    margin: 0 !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-content a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 25px;
}

.dropdown-content a:hover::before {
    left: 100%;
}

/* Fix for dropdown hover issues */
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Add a small invisible area to help with hover transition */
.dropdown::after {
    content: '';
    position: absolute;
    height: 20px;
    bottom: -20px;
    left: 0;
    right: 0;
    z-index: 0;
}

/* Extra hover space above dropdown content */
.dropdown-content::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 100%;
    top: -20px;
    left: 0;
    z-index: 0;
}

/* Section styles */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.section .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.7);
}

/* Video background styling */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7);
}

/* Make sure video is responsive */
@media (max-aspect-ratio: 16/9) {
    .video-background {
        width: auto;
        height: 100%;
    }
}

@media (min-aspect-ratio: 16/9) {
    .video-background {
        width: 100%;
        height: auto;
    }
}

.section .content {
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Typography */
.section h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
}

.section h3 {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.05em;
}

.section p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.section .chinese-text {
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
}

.section .english-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-style: italic;
    letter-spacing: 0.05em;
}

/* Background images */
#Past .background {
    background-image: url('../images/1.png');
}

#Present .background {
    background-image: url('../images/2.png');
}

#Future .background {
    background-image: url('../images/3.png');
}

/* Background overlay for better text readability */
.section .background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.4));
}

/* Responsive styles */
@media (max-width: 768px) {
    .section h2 {
        font-size: 2.5rem;
    }
    
    .section h3 {
        font-size: 1.5rem;
    }
    
    .section p {
        font-size: 1rem;
    }
}

/* Footer styles */
footer {
    background-color: #000;
    color: white;
    padding: 3rem 5%;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(40, 40, 40, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 2rem;
    padding: 0 1.5rem;
    position: relative;
}

.footer-section::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 0;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-section:last-child::after {
    display: none;
}

.footer-heading {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #fff, transparent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 15px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.artist-signature {
    margin-right: 3rem;
}

.signature-text {
    font-size: 2.5rem;
    font-weight: 700;
    display: inline-flex;
}

.signature-text .letter {
    display: inline-block;
    position: relative;
    transform-style: preserve-3d;
    perspective: 500px;
    transition: all 0.3s ease;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.signature-text:hover .letter:nth-child(1) { transform: translateY(-6px) rotate(-8deg); color: #ff7e5f; }
.signature-text:hover .letter:nth-child(2) { transform: translateY(2px) rotate(5deg); color: #feb47b; }
.signature-text:hover .letter:nth-child(3) { transform: translateY(-4px) rotate(-4deg); color: #ffcb8f; }
.signature-text:hover .letter:nth-child(4) { transform: translateY(3px) rotate(7deg); color: #f9f871; }
.signature-text:hover .letter:nth-child(5) { transform: translateY(-5px) rotate(-6deg); color: #fdffac; }

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    font-size: 1.8rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.7;
}

.social-icon::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-5px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

.social-icon:hover::after {
    width: 100%;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 2rem;
        padding: 0;
    }
    
    .footer-section::after {
        display: none;
    }
    
    .footer-brand {
        flex-direction: column;
        gap: 2rem;
    }
    
    .artist-signature {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}

/* Project Directory Styles */
.project-directory {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-directory h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Research Directory Styles */
.research-directory {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.research-directory h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}


/* Life Directory Styles */
.life-directory {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.life-directory h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.directory-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.directory-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.directory-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.directory-item:hover::before {
    left: 100%;
}

.directory-item h4 {
    margin-bottom: 1rem;
}

.directory-item h4 a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.directory-item h4 a:hover {
    color: #feb47b;
    text-shadow: 0 0 15px rgba(254, 180, 123, 0.5);
}

.directory-item .date {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

@media (max-width: 768px) {
    .directory-item {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .directory-item h4 a {
        font-size: 1.2rem;
    }
    
    .directory-item .date {
        position: static;
        display: block;
        margin-top: 1rem;
        text-align: right;
    }
} 