@font-face {
    font-family: 'GibsonSemiBd';
    src: url('../Fonts/GibsonSemiBd.OTF') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'GibsonSemiBd';
    src: url('../Fonts/GibsonSemiBd.OTF') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'GibsonRegular';
    src: url('../Fonts/GibsonRegular.OTF') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'gibson-medium';
    src: url('../Fonts/gibson-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

:root {
    --primary-purple: #2f1e58; /* Deep purple */
    --gold: #E8CC7A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'GibsonRegular', sans-serif;
    font-weight: normal; /* Use Normal by default */
    background: url('../pic/cad-bg.png') repeat;
    background-size: cover; 
    color: white;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    touch-action: pan-x pan-y; /* Disable pinch zoom */
}

.container {
    width: 100%;
    max-width: 480px; /* Mobile constraint */
    margin: 0 auto;
    /* background-color: var(--primary-purple); REMOVED */
    position: relative;
    min-height: 100vh; /* Changed from height: 100vh */
    overflow-y: auto; /* Changed from overflow: hidden */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
}

/* Header */
header {
    display: flex;
    justify-content: center; /* Logo centered */
    padding: 15px 0;
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

.menu-icon {
    position: absolute;
    left: 20px;
    width: 55px !important; /* Smaller menu button */
    top: 30px !important; /* Aligned with logo top (30px padding) */
    cursor: pointer;
    z-index: 100;
    transform: none !important;
}

.logo {
    width: 100px;
}

/* Main Carousel */
.carousel-container {
    flex: 1; /* Takes available space */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    overflow: visible; /* Allow button overlap */
    padding: 0;
}

.carousel-slide {
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    justify-content: center; /* Vertically center content */
    animation: fadeIn 0.5s ease;
}

.carousel-slide.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.main-img {
    z-index: 1;
    position: relative;
    max-width: 400px;
}

.img-slide1 {
    width: 75%;
    margin-bottom: -5px; /* Overlap for Golden Egg */
}

.img-slide2 {
    width: 70%; /* Smaller for Mandai leaf */
    margin-bottom: 10px; /* Positive space, no overlap */
}
.gold-btn {
    /* Click effect fixes */
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.gold-btn span {
    cursor: pointer;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.cta-btn {
    cursor: pointer;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    max-width: 380px;
}

.btn-slide1 {
    width: 75%; /* Button 1 size */
}

.btn-slide2 {
    width: 65%; /* Button 2 smaller */
}

/* Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0; /* Remove padding */
    width: 20px; /* Reduced size based on user feedback */
    height: auto;
    z-index: 20;
    outline: none;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}
/* Removed ::after pseudo-elements */

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 60px; /* Increased gap further */
    margin-top: auto; /* Push to bottom before flowers */
    padding: 10px 0;
    width: 100%;
    flex-shrink: 0;
    z-index: 10;
}

.footer-links a {
    color: white;
    text-decoration: underline;
    font-size: 0.9rem;
    font-weight: normal; /* Removed bold */
}

/* Floral Footer */
.footer-decoration {
    width: 100%;
    margin-top: 0; /* Remove extra space */
    display: block;
    flex-shrink: 0;
    line-height: 0; /* Remove inline gap */
}

.footer-decoration img {
    width: 100%;
    display: block;
}

/* Side Menu Overlay */
/* Menu Overlay Iframe */
/* Menu Overlay Iframe */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    border: none;
    background: transparent; /* 关键：iframe 本身不带颜色 */
    display: none; /* 初始隐藏 */
}

.menu-overlay.open {
    display: block;
}

/* Restored Menu Component Styles */
.menu-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center; /* Center logo */
    position: relative;
}

.menu-wrapper {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    padding-top: 50px; 
    padding-bottom: 800px; /* Added bottom darkening area */
    display: flex;
    flex-direction: column;
}

.menu-content {
    width: 100%; 
    background: #493285; /* Lighter Purple for Menu Background */
    height: auto;
    margin-left: auto; /* Fit to right */
}

.menu-list {
    list-style: none;
    padding: 0 0 10px 0; /* Remove top padding to flush first item */
    margin: 0; /* Remove default ul margin */
    flex: 1; 
}

.menu-list li {
    padding: 0; 
    margin-bottom: 0; /* Reduced spacing significantly */
}

.menu-list li a {
    color: white;
    text-decoration: none;
    font-size: 1.25rem; /* Increased size */
    display: block;
    font-family: 'gibson-medium', sans-serif;
    font-weight: 500;
    padding: 15px 30px; /* Comfortable touch target */
    transition: background-color 0.3s;
}

.menu-list li a.active {
    background-color: #2f1e58; /* Active Highlight */
    font-weight: 600; /* Optional: make active slightly bolder */
}

/* Styles reused inside menu.html via import, but overrides applied there */


.stylized-form-box {
    width: 90%;
    max-width: 380px;
    margin: 20px auto; 
    position: relative;
    /* No background or border to match Figure 2 */
}

/* Dots removed per user request */


input, button, select, textarea {
    font-family: 'GibsonRegular', sans-serif;
    font-weight: normal;
}
