/* General Styles */
/* General Styles */


@keyframes showUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes gradientAnimation {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure it's above other content */
    background: #f8f9fa;
    color: #333;
    padding: 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px; /* Adjust as necessary */
    margin-right: 10px;
}

.logo span {
    font-size: 1.2em;
    font-weight: bold;
}

nav {
    flex-grow: 1;
}

header nav {
    flex-grow: 1;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

nav ul li {
    margin: 0 15px;
    position: relative;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.navbar-scrolled {
    background-color: rgba(248, 249, 250, 0.8); /* Adjust as needed */
    backdrop-filter: blur(10px); /* Optional: Adds a blur effect */
}

.navbar-scrolled nav ul ul {
    background-color: rgba(248, 249, 250, 0.8); /* Adjust as needed */
    backdrop-filter: blur(10px); /* Optional: Adds a blur effect */
}


/* 下拉選單容器 */
.dropdown {
    position: relative;
    cursor: pointer;
}

/* 下拉選單內容 */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(248, 249, 250, 0.8);
    min-width: 180px;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(10px);
}

/* 顯示下拉選單時動畫效果 */
nav ul li:hover > .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 下拉選單的每個項目 */
.dropdown-content li {
    list-style: none;
    margin: 0;
}

/* 下拉選單的連結 */
.dropdown-content li a {
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    display: block;
    font-size: 0.95em;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* hover 效果 */
.dropdown-content li a:hover {
    background-color: #f0f0f0;
    color: #0077cc;
    border-left: 3px solid #0077cc;
}


/* Hero Section */
/* Hero Section */
.hero {
    background: url('public/hkust.png') no-repeat center center/cover;
    color: #fff;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}



.hero-content {
    background: rgba(56, 56, 56, 0.5); /* Semi-transparent background */
    padding: 30px;
    border-radius: 10px;
    max-width: 80%;
    z-index: 1; /* Ensure text is above background */
}

.hero h1 {
    margin: 0;
    font-size: 3em;
}

.hero p {
    font-size: 1.2em;
    margin: 20px 0;
}

.cta {
    background: #317af8;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    display: inline-block;
    transition: background 0.3s;
}

.cta:hover {
    background: #5cb9f7;
}



footer {
    background: #585858;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

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

.footer-content p {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 10;
    display: flex;
    justify-content: center; /* Center the items horizontally */
    gap: 30px; /* Add space between the items */
}

.contact-list li {
    display: flex;
    align-items: center;
}

.contact-list li i {
    margin-right: 10px;
    font-size: 1.2em;
}

.contact-list li a {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.contact-list li a:hover {
    color: #ff6600;
}

/* About Section */
.about {
    padding: 50px 20px;
    text-align: center;
}

.video-container {
    max-width: 100%;
    margin: 20px auto;
}

.video-container video {
    width: 100%; /* Ensure video is responsive */
    max-width: 800px; /* Optional: limit video size */
    border-radius: 10px;
}


.all {
    max-width: 1300px;        /* 控制整個頁面最大寬度 */
    margin: 0 auto;           /* 左右自動置中 */
    padding: 20px;            /* 內部留白 */
    
}


/* 限制整體寬度、置中顯示 */
.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 20px;
}

/* logo 與公司名在一行 */
.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* logo 與文字之間的間距 */
}

.company-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

/* 導覽連結 */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    font-size: 1em;
    font-weight: bold;
}

.field-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    padding: 30px 20px;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.field-card img {
    width: 65px;
    height: 65px;
    margin-bottom: 20px;
}

.field-card h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.field-card p {
    font-size: 0.95em;
    color: #555;
}

.field-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}



