/* Hero Section*/
.hero {
    position: relative;
    max-width: 100%;
    height: calc(100vh - 80px);
    overflow: hidden;
}

.hero-slide {
    display: none;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-slide::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.25);
	z-index: 1;
}

.hero-slide.active {
    display: block;
    opacity: 1;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide {
    display: none;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* ===========================
   HERO CONTENT (TEXT OVERLAY)
=========================== */

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #ffffff;
    text-align: left;
    z-index: 2;
    max-width: 520px;
}

/* Title */
.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 12px;
}

/* Subtitle */
.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 18px;
    opacity: 0.95;
}

/* Button */
.hero-content .btn-more-info {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b5bff, #6c8cff);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-content .btn-more-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(59, 91, 255, 0.35);
}


.text-overlay {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
}

/* Navigation buttons for Hero */
.nav-btn {
    position: absolute;
    top: 50%;
    background-color: rgba(0, 0, 0, 0);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
	z-index: 3;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.nav-btn:hover {
    /*background-color: #2039b7ef;*/
	background-color: inherit;
}

/* Styles for the 'More Information' buttons */
.btn-more-info {
    display: inline-block;
    padding: 10px 40px; 
    margin-top: 20px;
    background-color: #2010ee;
    color: white;
    text-decoration: none;
    border-radius: 50px; 
    transition: background-color 0.3s ease;
    border: 2px solid transparent; 
}

.btn-more-info:hover {
    background-color: #9cbdffcf;
    border-color: #9cbdffcf; 
    color: black;
}

/* Initial overlay styling */
/* Container for the opening effect */

.opening-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;         /* 从 100vw 改成 100% */
    min-height: 100vh;   /* 从 110vh 改成 100vh */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 30% 20%, rgba(0,150,255,0.12), transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(0,200,120,0.08), transparent 70%),
                linear-gradient(135deg, #e6f5ff, #e2fbf3);
    animation: bgMove 3s ease-in-out infinite alternate;
    perspective: 1200px;
    z-index: 10;
}

@keyframes bgMove {
    0% {
        background-position: 0% 0%, 100% 100%, 0% 0%;
    }
    50% {
        background-position: 20% 10%, 80% 90%, 50% 50%;
    }
    100% {
        background-position: 0% 20%, 60% 100%, 100% 0%;
    }
}

.opening-container::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.7), transparent 70%);
    pointer-events: none;
}

.opening-container.fade-out {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.98);
    transition: opacity 1.2s ease-out, filter 1.2s ease-out, transform 1.2s ease-out;
}

/* Left and Right Panels */
.panel {
	position: absolute;
	top: 0;
	width: 50%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 1.5s ease-out;
	background-color:  #fbfffd;
	z-index: 10;
	transform-style: preserve-3d;
}

.panel.left {
	left: 0;
	transform-origin: left center;
	justify-content: flex-end;
}

.panel.right {
	right: 0;
	transform-origin: right center;
	justify-content: flex-start;
}

/* Main content (hidden initially) */
.main-content {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	background: linear-gradient(to bottom right, #eff7f3, #e0eeff);
	opacity: 0;
	transition: opacity 1s ease 0.5s; /* Delayed fade-in */
}

/* Define fade-up animation */
@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(20px); /* Start slightly below */
	}
	to {
		opacity: 1;
		transform: translateY(0); /* End at the original position */
	}
}

.main-content.fade-up {
	opacity: 0; 
	animation: fadeUp 1s ease forwards; 
}

/* Show main content after the center image fades */
body.door-open .main-content {
	opacity: 1;
}

.hero-slide.active {
	display: block;
	opacity: 1;
}

/* Quality Statement box styling */
.quality-box {
    text-align: center;
    opacity: 1;
    transition: opacity 6s ease-out;
}

/* divider design */
.quality-box .divider {
    width: 300px;
    height: 4px;
    background: linear-gradient(to right, #00AEEF, #4CAF50);
    margin: 10px auto 20px;
    border-radius: 10px;
}

/*Screen Resolution*/
		
/* Cookie Banner Styling */
.cookie-banner {
    position: fixed;
    bottom: 10px;
	right:5px;
    max-width: 1000px;
    background-color: #ecedff;
    text-align: justify;
	border-radius: 10px;
    color: #010816;
    padding: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Slide-up animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0%);
        opacity: 1;
    }
}

/* Slide-down animation (after click on accept or reject button)*/ 
@keyframes slideDown {
    from {
        transform: translateY(0%);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-banner.hide {
  animation: slideDown 0.5s ease forwards;
}

.cookie-banner p {
    margin: 0;
}

.cookie-banner a {
    color: #1a2288;
    text-decoration: underline;
}

/* Buttons Container */
.cookie-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

/* Shared button styles */
.cookie-banner button {
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cookie-banner button:hover {
    background-color: blue;
    color: white;
    transform: translateY(-2px);
}

/* Cookie Settings Modal */
#cookie-settings-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.cookie-settings-content {
    background: #ecedff;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: left;
}

.cookie-settings-content h3 {
    margin-top: 0;
}

.cookie-settings-options label {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.cookie-settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.cookie-settings-actions button {
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cookie-settings-actions button:hover {
    background-color: blue;
    color: white;
    transform: translateY(-2px);
}

.cookie-option {
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 8px;
    position: relative;
}

.cookie-info-toggle {
    position: absolute;
    right: 100px;
    top: 25px;
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
}

.cookie-info {
    display: none;
    color: #333;
    margin-top: 5px;
}

/* Switch toggle styles */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    margin-left: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: blue;
}

input:checked + .slider:before {
    transform: translateX(18px);
}

/* Optional label spacing */
.switch-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
}