* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kantumruy Pro', 'Inter', sans-serif;
}

body, html {
    width: 100%;
    background-color: #111;
    color: #fff;
    overflow-x: hidden;
}

/* ----------------------------------
    TRANSPARENT TO STICKY HEADER 
    ---------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease, padding 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 20px;
    transition: padding 0.3s ease;
}

.site-header.scrolled .header-container {
    padding: 15px 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.header-logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.logo-text-box {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
}

.logo-sub {
    font-size: 10px;
    color: #f39c12;
    font-weight: 600;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.header-nav a:hover, 
.header-nav a.active {
    color: #ffffff;
}

.header-nav a.active::after,
.header-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #d4af37;
}

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    padding: 5px;
    transition: opacity 0.2s;
}

.mobile-menu-btn:hover {
    opacity: 0.7;
}

/* Full-Screen Mobile Menu Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background-color: #f39c12;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    transition: right 0.35s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 20px;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ffffff;
    font-size: 24px;
    padding: 5px;
    transition: opacity 0.2s;
}

.drawer-close-btn:hover {
    opacity: 0.7;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.drawer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.drawer-links a:hover {
    opacity: 0.7;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1500;
    display: none;
}

.drawer-overlay.open {
    display: block;
}

/* Hero Section ពេញអេក្រង់ */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('images/vlcsnap-2024-10-04-21h16m05s364.png') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 30px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator i {
    font-size: 12px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

/* ផ្នែក Featured Destinations ពណ៌លឿងទុំ */
.featured-section {
    background-color: #f39c12;
    padding: 80px 20px;
    text-align: center;
    color: #222;
}

.featured-header-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.featured-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.featured-title-line {
    width: 40px;
    height: 3px;
    background-color: #222;
    margin: 0 auto 50px auto;
}

/* Cards Grid Layout */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

/* ----------------------------------
    KEYFRAMES (OPTIMIZED)
    ---------------------------------- */
@keyframes rotBGimg {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ដំណើរការតែ Opacity & Scale កុំឱ្យស៊ី CPU */
@keyframes blur-animation {
    0% {
        opacity: 0.8;
        transform: scale(1) translateZ(0);
    }
    100% {
        opacity: 1;
        transform: scale(1.03) translateZ(0);
    }
}

/* ----------------------------------
    CARD 1 (FIRMWARE ONLY - ROTATING BEAM)
    ---------------------------------- */
.card {
    position: relative;
    width: 100%;
    height: 100%;
    background: #07182E;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 6px;
    transition: transform 0.3s ease;
    z-index: 1;
    transform: translateZ(0);
}

.card:hover {
    transform: translateY(-8px) translateZ(0);
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: conic-gradient(
        transparent, 
        transparent, 
        transparent, 
        rgb(0, 183, 255), 
        rgb(255, 48, 255)
    );
    animation: rotBGimg 3.5s linear infinite;
    z-index: -2;
    will-change: transform;
}

.card::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: #07182E;
    border-radius: 16px;
    z-index: -1;
}

.card .top-section {
    height: 220px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(45deg, rgb(4, 159, 187) 0%, rgb(80, 246, 255) 100%);
    position: relative;
    overflow: hidden;
}

.card .top-section .border {
    border-bottom-right-radius: 10px;
    height: 36px;
    width: 170px;
    background: #07182E;
    position: relative;
    transform: skew(-40deg);
    box-shadow: -10px -10px 0 0 #07182E;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card .top-section .border::before {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    top: 0;
    right: -15px;
    background: transparent;
    border-top-left-radius: 10px;
    box-shadow: -5px -5px 0 2px #07182E;
}

.card .top-section::before {
    content: "";
    position: absolute;
    top: 36px;
    left: 0;
    background: transparent;
    height: 15px;
    width: 15px;
    border-top-left-radius: 15px;
    box-shadow: -5px -5px 0 2px #07182E;
}

.card .top-section .border .badge-text {
    transform: skew(40deg);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
    padding-left: 10px;
}

.card .bottom-section {
    padding: 25px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card .bottom-section .title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    letter-spacing: 2px;
}

.card .bottom-section .row {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.card .bottom-section .row .item {
    flex: 1;
    text-align: center;
    padding: 5px;
    color: rgba(170, 222, 243, 0.85);
}

.card .bottom-section .row .item .big-text {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 3px;
}

.card .bottom-section .row .item .regular-text {
    font-size: 11px;
}

.card .bottom-section .row .item:nth-child(2) {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

/* ----------------------------------
    CARD 2 & CARD 3 (APPLE M2 GLOW - SMOOTH)
    ---------------------------------- */
.destination-card {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease;
    z-index: 1;
    transform: translateZ(0);
}

.destination-card::before {
    content: "";
    position: absolute;
    top: -6px;
    left: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    background: radial-gradient(circle at 0 0, hsl(27deg 93% 60%), transparent 60%),
                radial-gradient(circle at 100% 0, #00a6ff, transparent 60%),
                radial-gradient(circle at 0 100%, #ff0056, transparent 60%),
                radial-gradient(circle at 100% 100%, #6500ff, transparent 60%);
    border-radius: 24px;
    z-index: -2;
    filter: blur(14px);
    animation: blur-animation 3s ease-in-out alternate infinite;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.destination-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-radius: 18px;
    z-index: -1;
}

.destination-card:hover {
    transform: translateY(-8px) translateZ(0);
}

.destination-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.destination-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #e67e22;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 13.5px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 12px;
    font-weight: 600;
    color: #444;
}

.card-footer a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.card-footer a:hover {
    color: #e67e22;
}

/* Responsive */
@media (max-width: 992px) {
    .header-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .destinations-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
    .header-container {
        padding: 15px 20px;
    }
    .hero-title {
        font-size: 32px;
    }
}