:root {
    --bg-primary: #FDFCF8;
    --bg-secondary: #F5F0E6;
    --text-primary: #2D2D2D;
    --text-secondary: #6B6B6B;
    --accent: #D4C9B0;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.2);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --spacing-container: 1200px;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--bg-secondary) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

@keyframes float {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 50px) scale(1.1);
    }
}

h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    /* Refined kerning for premium feel */
}

.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 100px 0;
}

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

ul {
    list-style: none;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a:not(.btn-primary):hover {
    opacity: 0.6;
}

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

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

/* Buttons */
.btn-primary {
    background-color: var(--text-primary);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    border: 1px solid var(--text-primary);
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--white);
}

.btn-outline {
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--white);
    transform: translateY(-2px);
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
}

.hero .container {
    width: 100%;
    /* Prevents the container from shrinking and centering in flexbox */
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    /* Increased to accommodate longer lines */
}

.hero-content>* {
    margin-left: 0;
    padding-left: 0;
}

.hero h1 {
    font-size: 5.5rem;
    /* Slightly larger */
    line-height: 1.0;
    /* even tighter */
    margin-bottom: 30px;
    letter-spacing: -0.04em;
    /* Ultra-luxury tight kerning */
    transition: transform 0.2s ease-out;
    /* For parallax smoothness */
}

.hero h1 .accent {
    font-style: italic;
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    z-index: 1;
    background-color: var(--bg-primary);
    overflow: hidden;
    /* ULTRA-SOFT MASK: Now tightly constrained to the edges (20%) so the center stays 100% сочный */
    -webkit-mask-image:
        linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 0.2) 2%, rgba(0, 0, 0, 0.5) 8%, black 20%),
        linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.2) 2%, rgba(0, 0, 0, 0.5) 8%, black 20%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    mask-image:
        linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 0.2) 2%, rgba(0, 0, 0, 0.5) 8%, black 20%),
        linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.2) 2%, rgba(0, 0, 0, 0.5) 8%, black 20%);
}

.hero-bg::after {
    display: none;
    /* Removed the white fog layers */
}

/* Subtler cinematic overlays */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.04;
    /* Reduced to minimum */
    pointer-events: none;
    z-index: 8;
}

.light-leak {
    display: none;
    /* Removing to avoid 'too white' feel */
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_img.jpg');
    background-size: cover;
    background-position: center;
    transition: transform 10s ease-out;
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.6;
    z-index: 10;
}

.scroll-indicator .mouse {
    width: 20px;
    height: 32px;
    border: 1px solid var(--text-primary);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator .mouse::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: var(--text-primary);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Cinematic Overlays */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.08;
    /* Subtly higher for first screen */
    pointer-events: none;
    z-index: 8;
}

.light-leak {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 20% 30%, rgba(212, 201, 176, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 240, 230, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
}

/* Magnetic Button Base */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
}

/* About Section */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.features {
    margin-top: 40px;
}

.features li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
}

.about-media {
    position: relative;
}

.about-slider {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.slide .placeholder-img {
    height: 100%;
    border-radius: 0;
    /* Reset border radius for nested img */
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    transition: var(--transition-smooth);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

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

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.dot.active {
    width: 24px;
    background: var(--white);
    border-radius: 4px;
}

.placeholder-img {
    background-color: var(--bg-secondary);
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gallery - Vertical Pinterest Style */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.gallery-item {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    height: 350px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--bg-secondary);
}

.gallery-item.vertical {
    height: 520px;
}

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

.gallery-item video,
.gallery-item .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 1;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 5;
}

.video-item.is-playing .video-overlay {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

/* Info Cards in Gallery */
.gallery-item.info-card {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.info-card h3 {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
}

.info-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 250px;
    line-height: 1.6;
}

.info-card .tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: -5px;
}

.btn-sm {
    padding: 12px 24px;
    font-size: 0.8rem;
    border-radius: 30px;
}

.text-card {
    background: var(--bg-secondary) !important;
}



/* Classes Section */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.class-card {
    background: var(--white);
    border-radius: 40px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(188, 178, 164, 0.15);
}

.class-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.class-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 70%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.class-video.loaded {
    opacity: 1;
}

.class-content {
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.class-content h3 {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.class-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

.class-features {
    list-style: none;
    margin-bottom: 30px;
    margin-top: auto;
}

.class-btn {
    text-align: center;
    width: 100%;
}

.class-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.class-features li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--accent);
    margin-top: 2px;
}

.class-features li:last-child {
    margin-bottom: 0;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.pricing-card {
    background: var(--white);
    padding: 55px 30px 40px;
    border-radius: 40px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    border: 1px solid var(--accent);
    box-shadow: 0 20px 40px rgba(188, 178, 164, 0.15);
    background: var(--bg-secondary);
}

.popular-badge {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    white-space: nowrap;
}

.pricing-header h3 {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 15px;
}

.price {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 25px;
}

.price span {
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.pricing-features li:last-child {
    border-bottom: none;
}

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

.pricing-card.popular .btn-primary:hover {
    background-color: #7a6f5e;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}


/* Booking Section */
.momence-widget-wrap {
    width: 100%;
    margin: 50px auto 0;
}

.booking-card {
    background-color: var(--bg-secondary);
    padding: 80px;
    border-radius: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.booking-form {
    margin-top: 40px;
    display: grid;
    gap: 20px;
}

.form-group input {
    width: 100%;
    padding: 18px 30px;
    border-radius: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group select {
    width: 100%;
    padding: 18px 30px;
    border-radius: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--white) url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 30px center;
    background-size: 16px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 50px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
}

.full-width {
    width: 100%;
}

.form-footer {
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--bg-secondary);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

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

/* Reveal Animations */
.reveal,
.reveal-delay,
.reveal-delay-2,
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay {
    transition-delay: 0.2s;
}

.reveal-delay-2 {
    transition-delay: 0.4s;
}

/* Responsive Layouts */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }

    .hero-bg {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    section {
        padding: 80px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        padding: 40px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-family: var(--font-heading);
    }

    .nav-links .btn-primary {
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
    }

    .hero {
        padding-top: 140px;
        text-align: center;
        height: auto;
        min-height: 100vh;
        flex-direction: column;
    }

    .hero-content {
        padding: 0;
        margin: 0;
        max-width: none;
    }

    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-bg {
        position: relative;
        width: calc(100% - 48px);
        margin: 50px auto 0;
        height: 500px;
        /* Match About slider */
        border-radius: 40px;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
        justify-content: center;
    }

    .hero-btns a {
        width: 100%;
        max-width: 280px;
    }

    .light-leak {
        display: none !important;
    }

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

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

    .gallery-grid .gallery-item:nth-child(1) {
        order: 1;
    }

    /* Video 1 */
    .gallery-grid .gallery-item:nth-child(2) {
        order: 4;
    }

    /* Instagram Card */
    .gallery-grid .gallery-item:nth-child(3) {
        order: 2;
    }

    /* Lifestyle Card */
    .gallery-grid .gallery-item:nth-child(4) {
        order: 3;
    }

    /* Video 2 */

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

    .booking-card {
        padding: 50px 30px;
        border-radius: 40px;
    }

    .flex-between {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .blob {
        width: 300px;
        height: 300px;
        filter: blur(50px);
    }
}