/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;600&display=swap');

:root {
    --deep-bg: #0a1f24;
    --card-bg: rgba(255, 255, 255, 0.03);
    --neon-cyan: #4fffff;
	--mint-green: #a7f3d0;
    --gold-primary: #d4af37;
    --gold-secondary: #f9e29d;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--deep-bg);
    /* พื้นหลังไล่เฉดสี Teal ตามรูปต้นฉบับ */
    background-image: radial-gradient(circle at 50% 50%, #134e5e 0%, #0a1f24 100%);
    color: white;
    margin: 0;
    overflow-x: hidden;
}

/* Glassmorphism Navbar */
.nav-glass {
    /* ไล่เฉดจากสีพื้นหลังไปหาเขียวอ่อนจางๆ ทางด้านขวา */
    background: linear-gradient(135deg, 
        rgba(10, 31, 36, 0.95) 0%, 
        rgba(5, 150, 105, 0.05) 50%, 
        rgba(79, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(167, 243, 208, 0.2); /* เปลี่ยนขอบเป็นเขียวอ่อนจางๆ */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-link {
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding-bottom: 5px;
}
.nav-link:hover { color: var(--neon-cyan); }
.nav-link.active { border-bottom: 2px solid var(--neon-cyan); }


/* ปรับปรุง Class gold-gradient ให้รองรับ inline-block */
.gold-gradient {
    background: linear-gradient(to bottom, #f9e29d, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    /* เพิ่มเงาสีทองฟุ้งๆ */
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

/* ปรับขนาดและตำแหน่งของ st ให้สวยงาม */
sup.gold-gradient {
    vertical-align: super;
    font-size: 2.1em; /* ปรับขนาด st ให้เล็กลงครึ่งหนึ่งของ 51 */
    margin-left: 5px;
}

/* ส่วนของกรอบเนื้อหาหลัก */
.hero-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08); /* ขอบบางๆ รอบตัว */
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    /* เอา overflow: hidden ออกเพื่อให้แสงเรืองแสงฟุ้งออกนอกกรอบได้ */
}

/* เส้นเรืองแสงด้านบน */
.hero-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 15px var(--neon-cyan), 0 0 5px #fff;
    z-index: 2;
}

/* เส้นเรืองแสงด้านล่าง */
.hero-container::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 15px var(--neon-cyan), 0 0 5px #fff;
    z-index: 2;
}

/* ปรับปรุงกล่องวันที่ให้มีแสงฟุ้งข้างใน */
.date-box {
    border: 1.5px solid var(--neon-cyan);
    box-shadow: 
        0 0 15px rgba(79, 255, 255, 0.3),
        inset 0 0 15px rgba(79, 255, 255, 0.2);
    background: rgba(79, 255, 255, 0.08);
    backdrop-filter: blur(5px);
}

/* --- วงกลมเรืองแสงชั้นนอกสุด --- */
.outer-orbit-ring {
    position: absolute;
    /* ใช้ค่าคงที่ที่ใหญ่กว่า .glow-circle หรือใช้ aspect-ratio */
    width: 480px; 
    height: 480px; 
    
    /* ล็อคทรงกลมด้วยวิธีนี้ชัวร์ที่สุด */
    aspect-ratio: 1 / 1; 
    
    border: 1px solid rgba(79, 255, 255, 0.2);
    border-radius: 50%;
    
    /* จัดตำแหน่งให้อยู่กึ่งกลางเป๊ะ */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 0 20px rgba(79, 255, 255, 0.1);
}
/* เพิ่มเส้นประวงกลมอีกชั้นเพื่อให้ดูเป็นเครือข่าย */
.outer-orbit-ring::after {
    content: '';
    position: absolute;
    inset: -15px;
    border: 1px dashed rgba(79, 255, 255, 0.1);
    border-radius: 50%;
}

/* Handshake Glow Circle (จุดกึ่งกลาง) */
.glow-circle {
    width: 350px; /* ขนาดวงกลมหลัก */
    height: 350px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(79, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(79, 255, 255, 0.02);
}

.center-icon {
    width: 260px; 
    height: 260px;
    object-fit: contain; 
    transition: transform 0.3s ease-in-out;
    filter: drop-shadow(0 0 15px rgba(79, 255, 255, 0.6)); /* เพิ่มแสงเรืองแสงให้รูปกลาง */
}

/* --- ส่วนของ Orbit ที่ปรับปรุงใหม่ให้สมมาตร --- */

.icon-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    /* หมุนวงโคจรทั้งวง */
    animation: rotate 40s linear infinite;
}

/* ตัวกำหนดมุมของไอคอนแต่ละชิ้น */
.orbit-slot {
    position: absolute;
    width: 100%;
    height: 100%;
    /* หมุน slot ไปตามมุมที่ระบุใน HTML (--angle) */
    transform: rotate(var(--angle));
}

.orbit-item {
    position: absolute;
    top: 0;
    left: 50%;
    /* ปรับตำแหน่งให้อยู่กึ่งกลางเส้นรอบวง และหมุนไอคอนกลับให้ตั้งตรงเสมอ */
    transform: translate(-50%, -50%) rotate(calc(var(--angle) * -1));
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* แอนิเมชั่นหมุนสวนทางเพื่อไม่ให้รูปกลับหัว */
    animation: counter-rotate 40s linear infinite;
}

.orbit-item img {
    width: 65px; /* ขนาดไอคอนย่อยให้ดูสมดุล */
    height: 65px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(79, 255, 255, 0.8));
}

/* Animations */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes counter-rotate {
    from { transform: translate(-50%, -50%) rotate(calc(var(--angle) * -1 + 0deg)); }
    to { transform: translate(-50%, -50%) rotate(calc(var(--angle) * -1 - 360deg)); }
}

/* ส่วนประกอบอื่นๆ */
.gold-gradient {
    background: linear-gradient(to bottom, var(--gold-secondary), var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* การ์ดวันที่สไตล์ Modern */
.date-card-modern {
    backdrop-filter: blur(10px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.date-card-modern:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
}

/* เอฟเฟกต์แสงจางๆ ด้านหลังการ์ดเมื่อ Hover */
.date-card-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.date-card-modern:hover::after {
    transform: translateX(100%);
}

/* ฟอนต์ภาษาไทยสำหรับคำอธิบายเสริม */
.font-prompt {
    font-family: 'Prompt', sans-serif;
}

.footer-custom {
    /* ไล่เฉดสีจากเข้มไปหาเขียวเข้มจางๆ ด้านล่าง */
    background: linear-gradient(to bottom, 
        #061619 0%, 
        rgba(6, 78, 59, 0.15) 100%);
    border-top: 1px solid rgba(167, 243, 208, 0.1);
    position: relative;
}

/* หัวข้อ Footer ให้มีแสงเรืองอ่อนๆ */
.footer-heading {
    color: var(--mint-green);
    font-weight: 600;
    text-transform: uppercase;
    tracking-widest: 0.2em;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(167, 243, 208, 0.3));
}

/* เอฟเฟกต์ Hover สำหรับลิงก์ */
.footer-link {
    color: #9ca3af; /* gray-400 */
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--neon-cyan);
    padding-left: 5px; /* ขยับเล็กน้อยเวลา hover */
}

.social-icon {
    color: #6b7280; /* gray-500 */
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: var(--mint-green);
    transform: translateY(-3px);
}


/* --- Contact Page Custom Styles --- */

/* พื้นหลังหน้า Contact */
.contact-section {
    background-color: #0a1f24;
    background-image: radial-gradient(circle at 50% 0%, #134e5e 0%, #0a1f24 70%);
}

/* การ์ดข้อมูลติดต่อสไตล์กระจกฝ้า */
.contact-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(79, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    transition: all 0.4s ease;
}

.contact-info-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 255, 255, 0.1);
}

/* ปรับแต่งไอคอนในหน้า Contact */
.icon-box-contact {
    width: 60px;
    height: 60px;
    background: rgba(79, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ปรับแต่ง Google Map ให้เป็นโทนเข้ม */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(79, 255, 255, 0.2);
    filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.1);
}

/* Follow Us Box */
.follow-us-box {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(10, 31, 36, 0.9) 100%);
    border: 1px solid rgba(167, 243, 208, 0.2);
    border-radius: 20px;
}

/* ปุ่ม Social Media ในหน้า Contact */
.social-btn-contact {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-btn-contact:hover {
    background: var(--neon-cyan);
    color: #0a1f24;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* ปรับแต่งรูปภาพพื้นหลังให้ดูเข้ากับธีม Dark */
.venue-bg-image {
    filter: brightness(0.4) contrast(1.1) saturate(0.8);
}
    
/* เอฟเฟกต์ Glassmorphism ให้ลอยเด่นบนรูปพื้นหลัง */
.glass-card {
    background: rgba(10, 31, 36, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}