:root {
    /* Colors */
    --color-bg: #f6f2ef;
    /* Light orange background */
    --color-bg-alt: #EFEBE5;
    /* Slightly darker for contrast */
    --color-text: #192020;
    /* Dark grey cyan website text */
    --color-text-light: #73666e;
    /* Grey cta text (used for secondary text) */
    --color-accent: #c5c0cd;
    /* Pastel gray purple secondary ctas */
    --color-highlight: #F2DBD8;
    /* Keep existing highlight or adjust if needed */
    --color-primary: #ca8db4;
    /* Magenta primary ctas */
    --color-primary-dark: #b07aa0;
    /* Darker variant for hover */
    --color-cta-text: #73666e;
    /* Grey cta text */
    --color-white: #FFFFFF;

    /* Spacing */
    --spacing-unit: 8px;
    --spacing-xs: calc(var(--spacing-unit) * 1);
    /* 8px */
    --spacing-sm: calc(var(--spacing-unit) * 2);
    /* 16px */
    --spacing-md: calc(var(--spacing-unit) * 4);
    /* 32px */
    --spacing-lg: calc(var(--spacing-unit) * 8);
    /* 64px */
    --spacing-xl: calc(var(--spacing-unit) * 12);
    /* 96px */

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

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 3rem;

    /* Borders & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);

    /* Glows */
    --glow-primary: 0 0 20px rgba(202, 141, 180, 0.2);
    --glow-soft: 0 0 30px rgba(255, 255, 255, 0.1);

    /* Transitions */
    --transition-default: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-default: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
    /* Updated to #192020 */
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Interaction Focus Styles */
:focus {
    outline: 2px solid var(--color-highlight);
    outline-offset: 2px;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Utilities */
.text-center {
    text-align: center;
}

.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: block;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-base);
    transition: var(--transition-default);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-cta-text);
    border: 1px solid var(--color-accent);
}

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

.btn-full {
    width: 100%;
}

@media (min-width: 768px) {
    .btn-full {
        width: auto;
    }
}

/* Header/Nav */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--spacing-sm) 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--color-text);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--spacing-xl);
    overflow: hidden;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 50vh;
    /* Takes up top half on mobile */
    opacity: 1;
    z-index: 1;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    padding: var(--spacing-md) 0;
}

@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .hero-image-container {
        position: absolute;
        top: 0;
        right: 0;
        width: 50%;
        height: 100%;
        left: auto;
        clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    }

    .hero-content {
        padding: 0;
    }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.hero p {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-direction: column;
}

@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
    }

    .hero h1 {
        font-size: 4rem;
    }
}

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

/* Gallery Section */
.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.gallery-scroller {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: var(--spacing-sm);
    -ms-overflow-style: none;
    /* Hide scrollbar */
    scrollbar-width: none;
}

.gallery-scroller::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 85%;
    /* Shows part of next card */
    scroll-snap-align: center;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
}

@media (min-width: 768px) {
    .gallery-scroller {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
    }

    .gallery-item {
        flex: none;
    }
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gallery-caption {
    padding: var(--spacing-sm);
    text-align: center;
    font-weight: 500;
    color: var(--color-text-light);
}

/* Testimonials */
.testimonials {
    background-color: var(--color-bg-alt);
}

.testimonial-grid {
    display: grid;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-md);
    z-index: -1;
    box-shadow: 0 0 20px var(--color-highlight);
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::after {
    opacity: 0.5;
}

.quote-icon {
    font-size: 2rem;
    color: var(--color-highlight);
    line-height: 1;
}

.testimonial-text {
    font-size: var(--text-base);
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-top: auto;
}

/* Intake/Booking */
.booking-section {
    max-width: 600px;
    margin: 0 auto;
}

.booking-form {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    position: relative;
}

.booking-form::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, var(--color-highlight) 0%, transparent 70%);
    z-index: -1;
    filter: blur(20px);
    opacity: 0.3;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 500;
}

.form-input {
    padding: 12px;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* Instagram */
.instagram-section {
    text-align: center;
}

.insta-handle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

@media (min-width: 768px) {
    .insta-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.insta-item {
    aspect-ratio: 1;
    background-color: var(--color-accent);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.insta-item:hover img {
    transform: scale(1.05);
}

/* Footer & Final CTA */
.footer-cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-sm);
}

.footer-cta h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-btn {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.footer-btn:hover {
    background-color: var(--color-highlight);
    color: var(--color-primary);
}

.copyright {
    background-color: #1a1a1a;
    color: #666;
    text-align: center;
    padding: var(--spacing-md);
    font-size: var(--text-xs);
}

/* Animation utilities */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Services Section */
.services-section {
    background-color: var(--color-bg-alt);
    position: relative;
    z-index: 5;
    padding: var(--spacing-xl) 0;
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.services-intro h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.services-intro p {
    font-size: var(--text-lg);
    color: var(--color-text-light);
}

.services-grid {
    display: grid;
    gap: var(--spacing-md);
}

@media (min-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
}

.service-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--color-bg-alt);
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: radial-gradient(circle at center, var(--color-primary), transparent);
    opacity: 0;
    z-index: -1;
    filter: blur(40px);
    transition: opacity 0.4s ease;
}

.service-card:hover::after {
    opacity: 0.15;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-accent);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-item {
    margin-bottom: var(--spacing-md);
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-primary);
}

.service-item p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.service-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: var(--color-bg-alt);
    color: var(--color-text-light);
    margin-top: 6px;
    font-weight: 600;
}

/* Updated Gallery for Before/After */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.gallery-grid .gallery-item {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition-default);
}

.gallery-grid .gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    object-fit: contain;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-md);
    }
}

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

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* 3D Sparkle Particles Layer */
.sparkle-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(202, 141, 180, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: sparkleFloat 4s ease-in-out infinite;
}

.sparkle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(202, 141, 180, 0.6), transparent);
    transform: translate(-50%, -50%);
}

.sparkle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 12px;
    background: linear-gradient(180deg, transparent, rgba(202, 141, 180, 0.6), transparent);
    transform: translate(-50%, -50%);
}

@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.2);
    }
}

.sparkle-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(202, 141, 180, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Magic dust trail effect */
.magic-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

/* Clean geometric sparkle */
.sparkle-diamond {
    position: absolute;
    width: 6px;
    height: 6px;
    background: transparent;
    opacity: 0;
    transform: rotate(45deg);
    animation: diamondPulse 3s ease-in-out infinite;
}

.sparkle-diamond::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(202, 141, 180, 0.5);
}

@keyframes diamondPulse {

    0%,
    100% {
        opacity: 0;
        transform: rotate(45deg) scale(0.5);
    }

    50% {
        opacity: 0.8;
        transform: rotate(45deg) scale(1);
    }
}

/* Floating line particles */
.sparkle-line {
    position: absolute;
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 192, 205, 0.6), transparent);
    opacity: 0;
    animation: lineFloat 5s ease-in-out infinite;
}

@keyframes lineFloat {
    0% {
        opacity: 0;
        transform: translateX(-20px) rotate(15deg);
    }

    30% {
        opacity: 0.6;
    }

    70% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateX(20px) rotate(-15deg);
    }
}

/* Shooting Stars */
.shooting-star {
    position: absolute;
    width: 150px;
    height: 2px;
    background: linear-gradient(-45deg, var(--color-primary), transparent);
    border-radius: 999px;
    filter: drop-shadow(0 0 6px var(--color-primary));
    animation: tail 3000ms ease-in-out infinite, shooting 3000ms ease-in-out infinite;
    opacity: 0;
}

.shooting-star::before,
.shooting-star::after {
    content: '';
    position: absolute;
    top: calc(50% - 1px);
    right: 0;
    height: 2px;
    background: linear-gradient(-45deg, transparent, var(--color-primary), transparent);
    transform: translateX(50%) rotateZ(45deg);
    border-radius: 100%;
    animation: shining 3000ms ease-in-out infinite;
}

.shooting-star::after {
    transform: translateX(50%) rotateZ(-45deg);
}

@keyframes tail {
    0% {
        width: 0;
    }

    30% {
        width: 150px;
    }

    100% {
        width: 0;
    }
}

@keyframes shining {
    0% {
        width: 0;
    }

    50% {
        width: 30px;
    }

    100% {
        width: 0;
    }
}

@keyframes shooting {
    0% {
        transform: translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateX(600px) translateY(400px) scale(1.5);
        opacity: 0;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .sparkle-layer {
        display: none;
    }
}