body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    background: #000000;
    color: #fff;
}

/* Navbar */
nav {
    width: 100%;
    padding: 25px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    backdrop-filter: blur(8px);
    z-index: 999;
}

nav .logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
}

/* ข้อความ 2 อันซ้อนกัน */
nav .logo span {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

/* ข้อความแรก (AHI) */
nav .logo .short {
    opacity: 1;
}

/* ข้อความเต็ม (Astronomy Huh Institute) */
nav .logo .long {
    opacity: 0;
    white-space: nowrap;
}

/* เมื่อ hover → สลับข้อความ */
nav .logo:hover .short {
    opacity: 0;
}
nav .logo:hover .long {
    opacity: 1;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

nav ul a {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
    transition: 0.2s;
    font-size: 1rem;
}

nav ul a:hover {
    opacity: 1;
} อยากให้พวกลิงค์พาเข้าหน้าอื่นติดกับlogo
/* Page Top Space */
.page {
    padding-top: 140px;
}

/* Hero */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding-left: 100px;
    text-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.hero h1 {
    font-size: 4rem;
    max-width: 650px;
    line-height: 1.1;
    font-weight: 700;
}

.hero p {
    margin-top: 18px;
    font-size: 1.2rem;
    max-width: 500px;
    opacity: .85;
}

.btn {
    margin-top: 25px;
    padding: 12px 30px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s;
    display: inline-block;
}

.btn:hover {
    background: #fff;
    color: #000;
}

/* Section */
.section {
    padding: 100px 70px;
    text-align: center;
}

.title {
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.desc {
    max-width: 720px;
    margin: auto;
    font-size: 1.1rem;
    opacity: 0.75;
}

/* Missions Cards */
.card-container {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
}

.card {
    width: 330px;
    background: #0d0d0d;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 0 0 30px;
    transition: 0.3s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    border-color: #fff;
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.card h3 {
    font-size: 1.4rem;
    margin-top: 18px;
}

.card p {
    font-size: 0.95rem;
    opacity: 0.75;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    background: #000000;
    opacity: 0.8;
    font-size: 0.9rem;
    margin-top: 50px;
    letter-spacing: 1px;
}

/* Header */
.about-header {
    text-align: center;
    padding: 80px 20px;
    background: #0a0a0a;
    color: white;
}
.about-header h1 {
    font-size: 40px;
    letter-spacing: 2px;
}
.about-header p {
    opacity: 0.8;
}


/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    width: 6px;
    background: #444;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.container {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

.container.left { left: 0; }
.container.right { left: 50%; }

.container .content {
    background: #ffffff10;
    backdrop-filter: blur(6px);
    border: 1px solid #ffffff22;
    padding: 20px;
    border-radius: 10px;
    color: white;
}

.container.left .content {
    margin-left: 0;
    margin-right: 40px;
}
.container.right .content {
    margin-left: 40px;
}

/* Dots */
.container::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #333;
    border-radius: 50%;
    top: 25px;
    z-index: 10;
}

.container.left::before { right: -10px; }
.container.right::before { left: -10px; }

/* Responsive */
@media (max-width: 768px) {
    .timeline-line { left: 20px; }
    .container {
        width: 100%;
        padding-left: 60px;
    }
    .container.right { left: 0; }
    .container.left::before,
    .container.right::before { left: 0; }
}

/* Timeline Animation */
.container {
    opacity: 0;
    transform: translateY(60px);
    transition: 0.8s ease;
}

.container.show {
    opacity: 1;
    transform: translateY(0);
}
.mission-stats {
    margin-top: 200px;
    display: flex;
    justify-content: center;
    gap: 80px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.stat {
    text-align: center;
}

.stat h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    opacity: .8;
}

.stat .count {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 1px;
}

