:root {
    --bg: #050505;
    --surface: #111111;
    --surface-hover: #1a1a1a;
    --primary: #32d74b;
    /* Vibrant Green from CHG */
    --primary-dim: rgba(50, 215, 75, 0.1);
    --text: #ffffff;
    --text-muted: #888888;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    gap: 10px;
}

.btn.primary {
    background: var(--primary);
    color: #000;
    position: relative;
    overflow: hidden;
}

.btn.primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.btn.primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(50, 215, 75, 0.4);
}

.btn.secondary {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    backdrop-filter: blur(10px);
}

.btn.secondary:hover {
    background: var(--glass-border);
    transform: translateY(-2px);
}

/* Layout */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.3s;
}

header.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    color: var(--text);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Sections */
section {
    padding: 100px 0;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    animation: reveal 1s ease-out;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary-dim);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(50, 215, 75, 0.2);
}

.hero h1 {
    font-size: clamp(40px, 8vw, 72px);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #a2ffb3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#camera-flash {
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    z-index: 100;
    pointer-events: none;
    animation: flash 8s infinite 2s;
}

@keyframes flash {

    0%,
    94%,
    100% {
        opacity: 0;
    }

    95% {
        opacity: 0.3;
    }

    96% {
        opacity: 0;
    }

    97% {
        opacity: 0.5;
    }

    98% {
        opacity: 0;
    }
}

.hero-float-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.float-item {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    color: var(--primary);
    font-size: 24px;
    backdrop-filter: blur(5px);
    animation: float 6s infinite ease-in-out;
    opacity: 0.4;
}

.float-item.p1 {
    top: 40%;
    left: 10%;
    animation-delay: 0s;
}

.float-item.p2 {
    top: 60%;
    right: 25%;
    animation-delay: 1s;
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.float-item.p3 {
    top: 30%;
    right: 40%;
    animation-delay: 2s;
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.float-item.p4 {
    bottom: 20%;
    left: 10%;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.bg-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(50, 215, 75, 0.08) 0%, rgba(5, 5, 5, 0) 70%);
    top: -200px;
    right: -200px;
    z-index: 1;
    pointer-events: none;
}

/* Cards & Grids */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 50px 40px;
    border-radius: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, var(--primary-dim) 0%, transparent 60%);
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
}

.card:hover {
    border-color: rgba(50, 215, 75, 0.4);
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.card:hover::before {
    opacity: 1;
}

.card-icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--primary-dim);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: 0.5s;
    border: 1px solid rgba(50, 215, 75, 0.2);
}

.card:hover .card-icon-wrap {
    transform: rotate(10deg) scale(1.1);
    background: var(--primary);
    color: #000;
}

.card i {
    font-size: 32px;
    color: var(--primary);
    transition: 0.5s;
}

.card:hover i {
    color: #000;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text);
}

.card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Forms */
input,
textarea,
select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    margin-bottom: 16px;
    transition: 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
}

/* Booking System & Calendar */
#chg-fb-calendar {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 40px;
    color: var(--text);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--primary-dim);
}

.fc .fc-toolbar-title {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-display);
}

.fc .fc-button-primary {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-weight: 700;
    border-radius: 12px;
    padding: 8px 16px;
    transition: 0.3s;
}

.fc .fc-button-primary:hover {
    background: var(--glass-border);
    border-color: var(--primary);
    color: var(--primary);
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
}

.fc .fc-prev-button,
.fc .fc-next-button {
    padding: 8px 12px;
}

.fc .fc-daygrid-day-number {
    color: var(--text);
    padding: 8px;
    font-weight: 600;
}

.fc .fc-col-header-cell-cushion {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.fc td,
.fc th {
    border-color: var(--glass-border) !important;
}

.fc-theme-standard .fc-scrollgrid {
    border-color: var(--glass-border);
}

/* Box Cards */
.chg-fb-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin: 40px auto;
    max-width: 1000px;
    align-items: start;
    /* Don't force stretch if not needed */
}

@media (max-width: 600px) {
    .chg-fb-cards {
        grid-template-columns: 1fr;
    }
}

.chg-fb-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(10px);
}

.chg-fb-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.chg-fb-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.chg-fb-card-img-wrap {
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 80% !important;
    /* Stable vertical-friendly ratio */
    position: relative !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
}

.chg-fb-card-img-wrap img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 100% !important;
    height: 100% !important;
    transform: translate(-50%, -50%) !important;
    object-fit: contain !important;
    padding: 30px;
    /* Scale it down and keep it centered */
    transition: none !important;
    /* No movement */
}

.chg-fb-card-img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chg-fb-card:hover .chg-fb-card-img-wrap img {
    transform: translate(-50%, -50%) !important;
    /* Stay fixed */
}

.chg-fb-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%);
    color: var(--primary);
    font-size: 32px;
}

.chg-fb-card.is-selected {
    border-color: var(--primary);
    background: var(--primary-dim);
}

.chg-fb-card.is-selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
}

.chg-fb-card-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text);
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.chg-fb-card-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.chg-fb-tech-badge {
    background: rgba(50, 215, 75, 0.08);
    border: 1px solid rgba(50, 215, 75, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
}

.chg-fb-tech-badge i {
    margin-top: 2px;
    font-size: 11px;
}

.chg-fb-card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: auto;
}

/* Result Messages */
.chg-fb-result {
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 600;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--glass-border);
}

.chg-fb-result.is-ok {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-dim);
}

.chg-fb-result.is-error {
    color: #ff453a;
    border-color: rgba(255, 69, 58, 0.3);
    background: rgba(255, 69, 58, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    header {
        padding: 20px 0;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 36px !important;
        line-height: 1.1;
        letter-spacing: -0.03em;
    }

    .hero h1 span {
        display: block;
        margin: 10px 0;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        padding: 16px;
    }

    /* Calendar Mobile Fixes */
    #chg-fb-calendar {
        padding: 12px;
        margin-bottom: 25px;
    }

    .fc .fc-toolbar-title {
        font-size: 1.1rem;
    }

    .fc .fc-col-header-cell-cushion {
        font-size: 11px;
    }

    .fc .fc-daygrid-day-number {
        font-size: 13px;
        padding: 4px;
    }

    .fc .fc-button {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* Selected State */
.fc .fc-highlight {
    background: var(--primary-dim) !important;
}

/* Blocked Days (Past & Disabled) - Styled like Holiday blocks */
.fc .fc-day-disabled,
.fc .fc-day-past {
    background: repeating-linear-gradient(45deg,
            rgba(50, 215, 75, 0.03),
            rgba(50, 215, 75, 0.03) 10px,
            rgba(50, 215, 75, 0.06) 10px,
            rgba(50, 215, 75, 0.1) 20px) !important;
    cursor: not-allowed;
}

.fc .fc-day-disabled .fc-daygrid-day-number,
.fc .fc-day-past .fc-daygrid-day-number {
    opacity: 0.3;
    text-decoration: line-through;
}

.price-float-badge {
    position: absolute;
    top: 25%;
    right: 10%;
    z-index: 100;
    background: linear-gradient(135deg, #ff2e63 0%, #ff2e93 100%);
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 0 30px rgba(255, 46, 99, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation: float-price 5s infinite ease-in-out;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    display: flex;
    align-items: baseline;
    gap: 5px;
    pointer-events: auto !important;
}

.price-float-badge .small {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.8;
}

.price-float-badge:hover {
    transform: scale(1.1) !important;
    background: #fff;
    box-shadow: 0 0 50px #fff;
}

@keyframes float-price {

    0%,
    100% {
        transform: translateY(0) rotate(-4deg);
    }

    50% {
        transform: translateY(-25px) rotate(4deg);
    }
}

/* Video Prompt & Modal */
.video-prompt {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--surface);
    border: 1px solid var(--primary);
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(50, 215, 75, 0.1);
    z-index: 9999;
    /* Way up front */
    max-width: 320px;
    transform: translateY(150%);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
}

.video-prompt.show {
    transform: translateY(0);
}

.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
    backdrop-filter: blur(15px);
}

.video-container {
    width: 100%;
    max-width: 1000px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    display: flex;
}

/* Base aspect ratio for desktop (16:9) */
@media (min-width: 769px) {
    .video-container {
        aspect-ratio: 16/9;
    }
}

.video-container video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
}

.close-video {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    z-index: 4000;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.close-video:hover {
    background: var(--primary);
    color: #000;
    transform: rotate(90deg) scale(1.1);
}

@media (max-width: 768px) {
    .video-prompt {
        left: 15px !important;
        right: 15px !important;
        bottom: 80px !important;
        /* Higher up to avoid mobile browser bars */
        max-width: none !important;
        width: auto !important;
        z-index: 9999 !important;
        transform: translateY(200%);
    }

    .video-prompt.show {
        transform: translateY(0) !important;
    }

    .video-container {
        max-width: 95vw;
        border-radius: 12px;
        aspect-ratio: auto;
        height: auto;
    }

    .video-container video {
        max-height: 80vh;
    }

    .close-video {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
    }

    .price-float-badge {
        top: 140px;
        right: 20px;
        left: auto;
        font-size: 16px;
    }

    .price-float-badge .small {
        font-size: 10px;
    }
}