/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

:root {
    --color-background: #0a0a14; /* Deep dark blue/purple */
    --color-text: #e0e0e0;
    --color-text-muted: #a0a0b0;
    --color-heading: #ffffff;
    --color-primary: #00f0ff; /* Vibrant Cyan */
    --color-secondary: #ff00a0; /* Vibrant Magenta */
    --color-accent: #a0ff00; /* Vibrant Lime (use sparingly) */

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;

    --transition-speed: 0.4s;
    --transition-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-reveal: cubic-bezier(0.645, 0.045, 0.355, 1); /* Ease-out expo */

    --container-width: 1140px;
    --section-padding: 100px 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative; /* Needed for canvas positioning */
}

/* === CANVAS BACKGROUND === */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind everything */
    opacity: 0.4; /* Adjust opacity */
    pointer-events: none; /* Allow clicks to pass through */
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.2;
    margin-bottom: 0.75em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Responsive font size */
    font-weight: 300; /* Lighter weight for modern look */
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(var(--color-primary), 0.3);
}

h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    text-align: center;
    margin-bottom: 1.5em;
    position: relative;
    display: block; /* Use block display for reliable centering with text-align */
    /* Removed left: 50% and transform: translateX(-50%) */
}

/* Underline effect for H2 */
h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0.8;
    transition: width var(--transition-speed) var(--transition-ease);
}

h2:hover::after {
    width: 100px;
}

h3 {
    font-size: 1.5rem;
    color: var(--color-heading);
    margin-bottom: 0.2em;
}

p {
    margin-bottom: 1em;
    font-size: 1rem;
    max-width: 700px; /* Improve readability */
}

.subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--color-text-muted);
    max-width: 650px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-secondary);
}

/* === LAYOUT & SECTIONS === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative; /* For z-index stacking if needed */
    z-index: 1;
}

.content-section {
    padding: var(--section-padding);
    position: relative; /* Ensure content is above canvas */
    z-index: 1;
    background: radial-gradient(circle at 50% 50%, rgba(15, 15, 25, 0.2), transparent 70%); /* Subtle vignette */
}


/* === HERO SECTION === */
#hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Above canvas, below potential foreground */
}

.hero-content {
    position: relative;
    z-index: 2; /* Above potential foreground elements */
    padding: 20px;
    max-width: 800px;
}

/* Optional parallax foreground elements */
.hero-foreground-element {
    /* Style your foreground image/shape here */
    /* position: absolute; width: ...; height: ...; background: ...; z-index: 1; */
}

/* === CALL TO ACTION BUTTON === */
.cta-button {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 14px 35px;
    border-radius: 50px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background-color: transparent;
    position: relative;
    overflow: hidden;
    transition: color var(--transition-speed) var(--transition-ease);
    z-index: 1;
    margin-top: 20px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-speed) var(--transition-ease);
    z-index: -1;
}

.cta-button:hover {
    color: var(--color-background);
}

.cta-button:hover::before {
    transform: scaleX(1);
}

.cta-button.alt {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}
.cta-button.alt:hover {
    color: var(--color-background);
}


/* === INTRODUCTION SECTION === */
#intro {
    text-align: center;
}
#intro p {
     margin-left: auto;
     margin-right: auto;
     color: var(--color-text-muted);
}

/* === REVIEWS SECTION === */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    perspective: 1000px; /* Enable 3D transforms for children */
}

.review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(var(--color-primary), 0.2);
    padding: 30px;
    border-radius: 10px;
    transition: transform var(--transition-speed) var(--transition-ease),
                box-shadow var(--transition-speed) var(--transition-ease),
                background var(--transition-speed) ease;
    overflow: hidden; /* Important for clip-path */
    position: relative;
}

.review-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-3deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(var(--color-primary), 0.5);
}

.avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    float: left;
    margin: 0 20px 10px 0;
    border: 3px solid var(--color-primary);
    filter: grayscale(50%);
    transition: filter var(--transition-speed) ease;
}

.review-card:hover .avatar {
    filter: grayscale(0%);
}

.review-card h3 {
    font-size: 1.3rem;
}
.review-card .title {
    font-family: var(--font-secondary);
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1em;
}

.review-card .snippet {
    color: var(--color-text);
    font-size: 1rem;
    margin-bottom: 0;
    transition: opacity var(--transition-speed) ease;
}

.review-full {
    clear: both;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(var(--color-primary), 0.1);
    /* Clip-path reveal */
    max-height: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: max-height 0.6s var(--transition-ease),
                opacity 0.5s 0.1s var(--transition-ease),
                transform 0.6s var(--transition-ease);
}

.expand-indicator {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
    opacity: 0.5;
}

.review-card:hover .expand-indicator {
    transform: rotate(45deg);
    opacity: 1;
}
.review-card:hover .snippet {
    opacity: 0; /* Hide snippet on hover */
}
.review-card:hover .review-full {
    max-height: 400px; /* Adjust as needed */
    opacity: 1;
    transform: translateY(0);
}

/* === GALLERY SECTION (using Isotope) === */
.gallery-grid {
    margin: 0 auto; /* Isotope handles layout */
    opacity: 0; /* Initially hidden for reveal */
    transition: opacity 0.8s ease;
}
.gallery-grid.loaded {
    opacity: 1;
}

.gallery-item {
    width: calc(33.333% - 20px); /* Adjust based on desired columns and gap */
    margin: 10px; /* Isotope uses margin for gaps */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 5px;
    background-color: #1a1a2a; /* Placeholder bg */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform var(--transition-speed) var(--transition-ease),
                box-shadow var(--transition-speed) var(--transition-ease);
}
/* Example sizing classes for Isotope */
.gallery-item.wide { width: calc(66.666% - 20px); }
.gallery-item.tall { /* Maybe adjust inner img if needed, Isotope handles height */ }

.gallery-item:hover {
     transform: scale(1.03);
     box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}


.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform var(--transition-speed) var(--transition-ease),
                filter var(--transition-speed) ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8) contrast(1.1);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--color-background), 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed) var(--transition-ease);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay span {
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(10px);
    transition: transform var(--transition-speed) var(--transition-ease);
}

.gallery-item:hover .gallery-item-overlay span {
    transform: translateY(0);
}

/* === LIGHTBOX === */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 20, 0.95); /* Darker, less transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility 0s linear var(--transition-speed);
    backdrop-filter: blur(5px); /* Optional: Blur background */
    -webkit-backdrop-filter: blur(5px);
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition-speed) ease;
}

#lightbox figure {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    margin: 0; /* Reset figure margin */
}

#lightbox-img {
    display: block;
    max-width: 100%;
    max-height: calc(85vh - 60px); /* Account for caption */
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease 0.1s, transform 0.5s var(--transition-ease) 0.1s;
    border-radius: 5px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

#lightbox.active #lightbox-img {
    opacity: 1;
    transform: scale(1);
}

#lightbox-caption {
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.5s ease 0.2s;
}

#lightbox.active #lightbox-caption {
    opacity: 1;
}

.close-lightbox, .prev-lightbox, .next-lightbox {
    position: absolute;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 1001; /* Above image */
    padding: 10px; /* Increase clickable area */
}
.close-lightbox:hover, .prev-lightbox:hover, .next-lightbox:hover {
    color: #fff;
    transform: scale(1.1);
}

.close-lightbox { top: 15px; right: 15px; }
.prev-lightbox { top: 50%; left: 15px; transform: translateY(-50%); font-size: 2rem; }
.next-lightbox { top: 50%; right: 15px; transform: translateY(-50%); font-size: 2rem; }

/* Hide nav buttons if only one image */
.lightbox-single .prev-lightbox,
.lightbox-single .next-lightbox {
    display: none;
}


/* === CALL TO ACTION SECTION === */
#cta {
     background: linear-gradient(rgba(var(--color-background), 0.8), rgba(var(--color-background), 0.9)),
                 url('site_images/placeholder-cta-bg.jpg') no-repeat center center / cover; /* Add a subtle texture/bg image */
    text-align: center;
}
#cta h2 { color: var(--color-heading); }
#cta p { color: var(--color-text); max-width: 600px; margin-left: auto; margin-right: auto; }


/* === FOOTER === */
footer {
    padding: 40px 0;
    text-align: -webkit-center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    background-color: #05050d; /* Even darker */
    border-top: 1px solid rgba(var(--color-primary), 0.1);
    position: relative;
    z-index: 1;
}

/* === SCROLL REVEAL ANIMATIONS (Initial States) === */
[data-scroll-reveal] {
    opacity: 0;
    transition: opacity 0.8s var(--transition-reveal), transform 0.8s var(--transition-reveal);
}
[data-scroll-reveal*="fade-up"] { transform: translateY(40px); }
[data-scroll-reveal*="fade-in"] { /* No transform needed */ }
[data-scroll-reveal*="scale-in"] { transform: scale(0.9); }
/* Add more variations as needed */

/* Active state applied by JS */
[data-scroll-reveal].is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    :root { --section-padding: 80px 0; }
    .gallery-item { width: calc(50% - 20px); }
    .gallery-item.wide { width: calc(100% - 20px); } /* Wide items take full width */
}

@media (max-width: 768px) {
    h1 { font-size: clamp(2rem, 8vw, 3rem); }
    h2 { font-size: clamp(1.8rem, 6vw, 2.2rem); }
    .review-grid { grid-template-columns: 1fr; gap: 30px; }
    .review-card:hover { transform: translateY(-5px) rotateX(0deg) rotateY(0deg); /* Simplify 3D on mobile */ }
    #lightbox-img { max-height: calc(80vh - 50px); }
    .prev-lightbox, .next-lightbox { font-size: 1.8rem; }
    .close-lightbox { font-size: 2rem; }
}

@media (max-width: 576px) {
    :root { --section-padding: 60px 0; }
    .gallery-item { width: calc(100% - 20px); } /* Single column gallery */
    .cta-button { padding: 12px 28px; font-size: 0.8rem; }
    .subtitle { font-size: 1rem; }
}