/* ==========================================================================
   Teacher Chen He Fa (HH TAN) Personal Branding Website
   Style: Tony Robbins High-Energy Executive Coaching Theme (Dark/Orange)
   ========================================================================== */

/* --- Design Tokens & CSS Variables --- */
:root {
    --bg-dark: #0A0A0C;
    --bg-card: #141519;
    --bg-card-hover: #1E1F25;
    
    --text-primary: #FFFFFF;
    --text-secondary: #A0A5B1;
    --text-muted: #6B7280;
    
    --accent-orange: #FF5722;
    --accent-orange-rgb: 255, 87, 34;
    --accent-orange-hover: #F4511E;
    
    --accent-gold: #FFC107;
    --accent-gold-hover: #FFA000;
    
    --nav-height: 80px;
    --nav-height-shrink: 65px;
    
    --transition-fast: 0.25s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --font-heading: 'Noto Sans SC', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-english: 'Montserrat', sans-serif;
}

/* --- Base Styles & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: #060608;
    color: var(--text-primary);
    font-family: var(--font-heading);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    background-color: transparent;
}

/* --- Infinity Interactive Background Canvas --- */
.infinity-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3; /* Lower than z-index -2 of video/image backgrounds to let them render on top */
    pointer-events: none;
    overflow: hidden;
    background-color: #060608; /* Deep rich canvas base */
}
/* Interactive Mouse Glowing Aura */
.interactive-cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.22) 0%, rgba(255, 193, 7, 0.08) 40%, rgba(255, 87, 34, 0) 70%);
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    left: -300px; /* Offset half of width */
    top: -300px; /* Offset half of height */
    will-change: transform;
    transform: translate3d(-1000px, -1000px, 0);
}


/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 300;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Scrollbar styling --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #2D2F36;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

/* --- Common Components & Grid Container --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-english);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -0.03em;
}

.section-title.text-white {
    color: #FFFFFF;
}

.section-subtitle-light {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--text-primary);
    margin: 20px auto 0;
    border-radius: 2px;
}

.title-underline.bg-orange {
    background-color: var(--accent-orange);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    outline: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(var(--accent-orange-rgb), 0.35);
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(var(--accent-orange-rgb), 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition-normal);
}

/* --- Navigation Scroll Margin Offsets --- */
#stats, #services, #about, #footprint, #gallery, #booking {
    scroll-margin-top: 80px; /* Offset to match the fixed navbar height */
}

@media (max-width: 768px) {
    #stats, #services, #about, #footprint, #gallery, #booking {
        scroll-margin-top: 70px; /* Mobile navbar height offset */
    }
}

.navbar.scrolled {
    height: var(--nav-height-shrink);
    background-color: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #FFFFFF;
}

.logo-sub {
    font-family: var(--font-english);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: 0.25em;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #FFFFFF;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-cta-btn {
    display: inline-block;
    background-color: #FFFFFF;
    color: var(--bg-dark);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.nav-cta-btn:hover {
    background-color: var(--accent-orange);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(var(--accent-orange-rgb), 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle .bar {
    width: 28px;
    height: 2px;
    background-color: #FFFFFF;
    transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 10, 12, 0.82) 0%, 
        rgba(10, 10, 12, 0.65) 60%, 
        rgba(10, 10, 12, 0.30) 100%);
    z-index: -1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 0;
    width: 100%;
    min-height: calc(100vh - var(--nav-height));
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 40px;
    z-index: 10;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: center;
}

.hero-badge {
    background-color: rgba(255, 87, 34, 0.12);
    border: 1px solid rgba(255, 87, 34, 0.3);
    color: var(--accent-orange);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 4px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.highlight-text {
    color: var(--accent-orange);
    background: linear-gradient(90deg, var(--accent-orange) 0%, #FFA726 25%, var(--accent-gold) 50%, #FFA726 75%, var(--accent-orange) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: metallic-shine 4s linear infinite;
}

@keyframes metallic-shine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 300;
    color: var(--text-secondary);
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-portrait-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.hero-portrait {
    max-height: 90vh;
    max-width: 100%;
    width: auto;
    height: auto;
    aspect-ratio: 2/3; /* Lock the aspect ratio to prevent horizontal squishing/distortion */
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
    transition: var(--transition-normal);
    /* Sharp body opacity, fading out only at the bottom screen boundary */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 98%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 98%);
}

.hero-portrait:hover {
    transform: translateY(-8px) scale(1.02);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    z-index: 10;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #FFFFFF;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-orange);
    border-radius: 2px;
    animation: scroll-wheel 1.6s infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #FFFFFF;
    border-right: 2px solid #FFFFFF;
    transform: rotate(45deg);
    margin: -4px;
    animation: scroll-arrows 1.6s infinite;
}

.arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes scroll-arrows {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

/* --- Sound Control Toggle Button --- */
.sound-toggle-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(10, 10, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-english);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    z-index: 20;
    transition: var(--transition-normal);
}

.sound-toggle-btn:hover {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 20px rgba(255, 87, 34, 0.35);
}

.sound-toggle-btn i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.sound-toggle-btn.playing i {
    animation: sound-pulse 1.2s infinite alternate;
}

@keyframes sound-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

@media (max-width: 768px) {
    .sound-toggle-btn {
        bottom: 20px;
        right: 20px;
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}

/* --- Combined Slogan & Achievement Stats Section --- */
.stats-section {
    background-color: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 24px 80px; /* Generous top offset for navbar and bottom breathing room */
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}


.stats-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px; /* Spacious gap between motto and stats */
    position: relative;
    z-index: 2;
}

.motto-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.motto-divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 87, 34, 0) 0%, rgba(255, 87, 34, 0.4) 50%, rgba(255, 87, 34, 0) 100%);
}

.motto-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.motto-text {
    font-size: 2.6rem;
    font-weight: 900;
    color: #FFFFFF;
    text-align: center;
    letter-spacing: 0.05em;
    line-height: 1.4;
    word-break: keep-all;
    filter: drop-shadow(0 0 10px rgba(255, 87, 34, 0.25));
    transition: filter var(--transition-normal), transform var(--transition-normal);
}
.motto-text:hover {
    filter: drop-shadow(0 0 20px rgba(255, 87, 34, 0.6)) drop-shadow(0 0 5px rgba(255, 193, 7, 0.3));
    transform: scale(1.01);
}

.quote-icon-left, .quote-icon-right {
    font-size: 2.5rem;
    color: var(--accent-orange);
    opacity: 0.4;
    transition: var(--transition-normal);
}

.quote-icon-left {
    animation: float-left-quote 3.5s ease-in-out infinite alternate;
}

.quote-icon-right {
    animation: float-right-quote 3.5s ease-in-out infinite alternate;
}

.motto-block:hover .quote-icon-left,
.motto-block:hover .quote-icon-right {
    opacity: 1;
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(255, 87, 34, 0.6);
}

@keyframes float-left-quote {
    0% { transform: translateY(-4px) rotate(-6deg); }
    100% { transform: translateY(4px) rotate(6deg); }
}

@keyframes float-right-quote {
    0% { transform: translateY(4px) rotate(6deg); }
    100% { transform: translateY(-4px) rotate(-6deg); }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 40px 30px;
    border-radius: 4px;
    text-align: center;
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-8px);
    background-color: var(--bg-card-hover);
    border-color: rgba(var(--accent-orange-rgb), 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.stat-number {
    font-family: var(--font-english);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-orange);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-card:hover .stat-number {
    color: var(--accent-gold);
}

.stat-label {
    font-size: 1.05rem;
    font-weight: 500;
    color: #FFFFFF;
}

/* --- Services Section --- */
.services-section {
    background-color: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background: linear-gradient(180deg, #15161B 0%, #0E0F12 100%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 60px 48px;
    border-radius: 8px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(var(--accent-orange-rgb), 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-gold));
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 30px;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    color: var(--accent-gold);
    transform: scale(1.05);
}

.service-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.service-subtitle {
    font-family: var(--font-english);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.service-desc {
    color: var(--text-secondary);
    margin-bottom: 35px;
    font-size: 1.05rem;
    font-weight: 300;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #FFFFFF;
}

.service-features li i {
    color: var(--accent-orange);
    font-size: 1.1rem;
}

/* --- About Section --- */
.about-section {
    background-color: transparent;
}

.about-content {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 25px;
}

.about-lead {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 24px;
    line-height: 1.5;
}

.about-paragraphs p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.about-signature {
    margin-top: 40px;
}

.sig-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sig-name {
    font-size: 1.8rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-top: 5px;
}

.about-image-container {
    position: relative;
    width: 100%;
}

.about-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    filter: brightness(0.9) contrast(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--accent-orange);
    color: #FFFFFF;
    padding: 24px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(var(--accent-orange-rgb), 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.exp-num {
    font-family: var(--font-english);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
}

.exp-text {
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* --- Footprint Section --- */
.footprint-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.footprint-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    transform: scale(1.02);
}

.footprint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(10, 10, 12, 0.95) 0%, 
        rgba(10, 10, 12, 0.88) 50%, 
        rgba(10, 10, 12, 0.95) 100%);
    z-index: -1;
}

.footprint-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.footprint-card {
    background-color: rgba(20, 21, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 6px;
    transition: var(--transition-normal);
}

.footprint-card:hover {
    transform: translateY(-5px) scale(1.02);
    background-color: rgba(30, 31, 37, 0.9);
    border-color: rgba(var(--accent-orange-rgb), 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(var(--accent-orange-rgb), 0.05);
}

.country-header {
    display: flex;
    align-items: flex-start; /* Align with the first line of text */
    gap: 20px; /* Safe gap to prevent expanding circle from touching the letters */
    margin-bottom: 12px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    margin-top: 0.65rem; /* Vertically center the dot with the first line of country name */
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--accent-orange);
    border-radius: 50%;
    animation: pulse-ring 1.8s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
    box-sizing: border-box;
    opacity: 0;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

.country-name {
    font-size: 1.35rem;
    font-weight: 900;
    color: #FFFFFF;
    transition: var(--transition-fast);
}

.footprint-card:hover .country-name {
    color: var(--accent-orange);
}

.event-tag {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* --- Live Gallery & Video Testimonials --- */
.gallery-section {
    background-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.gallery-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--accent-orange-rgb), 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-hover i {
    font-size: 2rem;
    color: #FFFFFF;
    transform: translateY(10px);
    transition: var(--transition-normal);
}

.gallery-hover span {
    font-size: 0.9rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.1em;
    transform: translateY(10px);
    transition: var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-hover {
    opacity: 1;
}

.gallery-item:hover .gallery-hover i,
.gallery-item:hover .gallery-hover span {
    transform: translateY(0);
}

/* Video Grid inside Gallery */
.video-testimonial-title-wrapper {
    margin: 80px 0 35px;
    text-align: center;
}

.video-testimonial-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #FFFFFF;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.video-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
}

.video-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--accent-orange-rgb), 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    filter: brightness(0.85);
    transition: var(--transition-normal);
}

.video-card:hover .video-thumbnail {
    filter: brightness(1.0);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: #FFFFFF;
    opacity: 0.8;
    transition: var(--transition-normal);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.video-card:hover .play-overlay {
    opacity: 1;
    color: var(--accent-orange);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 24px;
}

.video-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.video-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Booking Section --- */
.booking-section {
    background-color: transparent;
    position: relative;
    overflow: hidden;
}


/* --- Centered Premium Booking Panel --- */
.booking-clean-panel {
    background: rgba(20, 21, 25, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    padding: 60px 80px;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 45px;
    transition: var(--transition-normal);
}

.booking-clean-panel:hover {
    border-color: rgba(var(--accent-orange-rgb), 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.bento-badge {
    display: inline-block;
    font-family: var(--font-english);
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--accent-orange);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.booking-title {
    font-size: 2.4rem;
    font-weight: 900;
    margin: 0 0 16px 0;
    color: #FFFFFF;
}

.booking-lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-normal);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(var(--accent-orange-rgb), 0.2);
    transform: translateY(-2px);
}

.contact-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 87, 34, 0.1);
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1.15rem;
    color: #FFFFFF;
    font-weight: 700;
}

.booking-actions {
    display: flex;
}

.btn-booking-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    padding: 18px 36px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: none;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.25);
    transition: var(--transition-normal);
}

.btn-booking-gradient:hover {
    background: linear-gradient(135deg, #2ae771 0%, #16a090 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.45);
}



/* --- Signature Quote Block below Bento Grid --- */
.signature-quote-block {
    margin-top: 65px;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.signature-quote-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    max-width: 850px;
}

.signature-quote-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.08em;
    line-height: 1.4;
    margin: 0;
    text-align: center; /* Center-align the text across multiple lines for visual symmetry */
    filter: drop-shadow(0 0 8px rgba(255, 87, 34, 0.2));
    transition: filter var(--transition-normal), transform var(--transition-normal);
}
.signature-quote-text:hover {
    filter: drop-shadow(0 0 16px rgba(255, 87, 34, 0.5)) drop-shadow(0 0 4px rgba(255, 193, 7, 0.2));
    transform: scale(1.01);
}

.quote-mark-left, .quote-mark-right {
    font-size: 1.6rem;
    color: rgba(255, 87, 34, 0.3); /* Elegant rust-orange quotes matching the theme */
    transition: var(--transition-normal);
}

.signature-quote-block:hover .quote-mark-left,
.signature-quote-block:hover .quote-mark-right {
    color: var(--accent-orange);
    text-shadow: 0 0 15px rgba(255, 87, 34, 0.5);
}

/* --- Footer --- */
.footer {
    background-color: transparent;
    padding: 40px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    background-color: var(--accent-orange);
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* --- Lightbox Modal (Premium Popup) --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 6, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox[aria-hidden="false"] {
    display: flex;
    animation: fade-in 0.3s ease forwards;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #FFFFFF;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
    z-index: 10010;
}

.lightbox-close:hover {
    color: var(--accent-orange);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.05);
    border: none;
    color: #FFFFFF;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 10010;
}

.lightbox-nav:hover {
    background: var(--accent-orange);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-content-wrapper {
    max-width: 80%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    display: none;
}

.lightbox-video {
    width: 800px;
    max-width: 100%;
    max-height: 70vh;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    display: none;
}

.lightbox-caption {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

/* --- Scroll Entrance Animations (Fallback JS triggered) --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-el {
    opacity: 0;
    transform: translateY(20px);
}

.hero.loaded .fade-in-el {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero.loaded .fade-in-el:nth-child(1) { transition-delay: 0.1s; }
.hero.loaded .fade-in-el:nth-child(2) { transition-delay: 0.3s; }
.hero.loaded .fade-in-el:nth-child(3) { transition-delay: 0.5s; }
.hero.loaded .fade-in-el:nth-child(4) { transition-delay: 0.7s; }

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-container {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footprint-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-clean-panel {
        padding: 50px 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }
    
    /* Navigation Menu Toggle */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: #0A0A0C;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 40px;
    }
    
    .nav-menu.open {
        transform: translateX(0);
    }
    
    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 20px;
    }
    
    .hero-badge, .hero-ctas {
        align-self: center;
        justify-content: center;
    }
    
    .hero-portrait-container {
        justify-content: center;
    }
    
    .hero-portrait {
        max-height: 50vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stats-section {
        min-height: 100vh;
        padding: 90px 16px 40px; /* Snug paddings to fit mobile viewports */
    }

    .stats-container {
        gap: 35px; /* Compact gap on mobile */
    }

    .motto-container {
        flex-direction: column;
        gap: 20px;
        padding: 0;
        width: 100%;
    }
    
    .motto-text {
        font-size: 1.85rem; /* Highly balanced size for mobile screens */
        line-height: 1.5;
        letter-spacing: 0.05em;
    }

    .quote-icon-left, .quote-icon-right {
        font-size: 2.2rem; /* Scaled down quote marks for mobile */
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-card {
        padding: 40px 30px;
    }
    
    .footprint-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Balanced 2-column grid instead of endless vertical stack or clumsy horizontal scroll */
        gap: 15px;
        margin-top: 30px;
    }
    
    .footprint-card {
        padding: 20px 15px; /* Tighter padding for mobile screens */
        border-radius: 6px;
    }
    
    .country-name {
        font-size: 1.1rem; /* Prevent layout breakage and text wrapping */
        margin-bottom: 6px;
    }
    
    .event-tag {
        font-size: 0.8rem;
    }
    
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Balanced 2x2 double column photo wall */
        gap: 10px;
        margin-bottom: 40px;
    }
    
    .gallery-item {
        border-radius: 6px;
        aspect-ratio: 4/3;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-nav {
        display: none; /* Hide nav arrows on mobile, swipe is not supported, simplify */
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid for compact layout instead of endless 4 stacked cards */
        gap: 12px;
        width: 100%;
    }
    
    .stats-grid .stat-card {
        padding: 24px 12px; /* Substantially reduced to fit mobile containers */
    }
    
    .stats-grid .stat-number {
        font-size: 2.2rem; /* Sized down to prevent overflow clipping of large numbers */
    }
    
    .stats-grid .stat-label {
        font-size: 0.85rem;
    }
    
    .booking-clean-panel {
        padding: 40px 24px;
        gap: 30px;
    }
    
    .booking-title {
        font-size: 1.8rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .signature-quote-block {
        margin-top: 45px;
        padding: 5px 0;
    }

    .signature-quote-container {
        gap: 15px;
    }

    .signature-quote-text {
        font-size: 1.25rem;
        letter-spacing: 0.05em;
        line-height: 1.5;
    }

    .quote-mark-left, .quote-mark-right {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   ELEVATION FEATURES: Ambient Glow, 3D Tilt, Magnetic Cards, Curtain Reveal
   ========================================================================== */

/* --- Ambient Glow Background Meshes --- */
.stats-section, .services-section, .about-section, .booking-section {
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.12) 0%, rgba(255, 87, 34, 0.05) 50%, rgba(255, 87, 34, 0) 70%);
    filter: blur(150px);
    z-index: 0;
    pointer-events: none;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.16) 0%, rgba(255, 87, 34, 0) 70%);
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.14) 0%, rgba(255, 193, 7, 0) 70%);
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
}

.about-section::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.14) 0%, rgba(255, 87, 34, 0) 70%);
    filter: blur(150px);
    z-index: 0;
    pointer-events: none;
}

.booking-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.18) 0%, rgba(255, 193, 7, 0.08) 40%, rgba(255, 87, 34, 0) 70%);
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
}

/* Ensure container content overlays the ambient glow backgrounds */
.motto-block, .stats-grid, .services-grid, .about-content, .booking-clean-panel, .signature-quote-block {
    position: relative;
    z-index: 2;
}

/* --- 3D Card Tilt & Magnetic Glow Background --- */
.service-card, .stat-card {
    background: radial-gradient(circle 250px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 87, 34, 0.06) 0%, rgba(255, 87, 34, 0) 80%), linear-gradient(180deg, #15161B 0%, #0E0F12 100%);
    transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.15s ease, border-color 0.15s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.service-card:hover, .stat-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 87, 34, 0.1);
    border-color: rgba(255, 87, 34, 0.3) !important;
}

/* Push card elements outward in 3D space */
.service-icon, .service-title, .service-subtitle, .service-desc, .service-features,
.stat-number, .stat-label {
    transform: translateZ(30px);
    transition: transform 0.15s ease;
}

/* --- Curtain Text Reveal --- */
.curtain-text-reveal {
    overflow: hidden;
    position: relative;
    display: block; /* Stack on a new line, keeping titles centered and balanced */
    width: 100%;
}

.curtain-text-reveal .section-title, 
.curtain-text-reveal .booking-title {
    transform: translateY(105%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 0;
}

.curtain-text-reveal.active .section-title,
.curtain-text-reveal.active .booking-title {
    transform: translateY(0);
}

/* --- Hero Parallax Improvements --- */
.hero-portrait {
    transition: filter 0.4s ease, opacity 0.4s ease, -webkit-mask-image 0.4s ease, transform 0.2s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.hero-video-bg {
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* --- Clients Section Styling (Infinite Marquee Ticker) --- */
.logos-marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #FFFFFF; /* Reverted back to pure white background as requested */
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding: 25px 0;
}

/* Ambient alpha-fades on left and right edges (fading to card background #FFFFFF) */
.logos-marquee-container::before,
.logos-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.logos-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.logos-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.clients-grid {
    display: flex;
    width: max-content; /* Allow the track to extend horizontally */
    flex-wrap: nowrap; /* Keep all items in a single horizontal track */
    gap: 60px;
    padding-left: 60px;
    align-items: center;
    animation: marquee-scroll 45s linear infinite; /* Seamless loop scrolling */
    will-change: transform; /* Promotes track to its own GPU composite layer to prevent main thread lag */
    transform: translate3d(0, 0, 0); /* Forces GPU hardware acceleration */
}

/* Pause the scrolling animation when user hovers to explore logos easily */
.logos-marquee-container:hover .clients-grid {
    animation-play-state: paused;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 120px; /* Fixed width prevents dynamic layout calculations as images load, ensuring stutter-free animation */
    flex-shrink: 0; /* Prevent logos from shrinking in the track */
    transition: var(--transition-normal);
    filter: grayscale(100%) opacity(50%); /* Reverted to premium uniform grayscale */
}

.logo-item:hover {
    filter: grayscale(0%) opacity(100%); /* Reverted to full brand colors on hover! */
    transform: scale(1.1);
}

.logo-item img {
    max-height: 38px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

/* Seamless Marquee Keyframe (GPU hardware-accelerated translation) */
@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0); /* Scroll exactly by half of track (one list length) */
    }
}
