/* Basic Reset & Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Define CSS Variables for Gradient */
:root {
    --color1: #1A2980;
    --color2: #753A88;
    --color3: #CC2B5E;
    --gradient-angle: 45deg; /* Initial angle */
}

body {
    font-family: 'Merriweather', serif; /* Default body font */
    background-color: #121218; /* Base dark color */
    /* Smooth gradient background */
    background-image: linear-gradient(var(--gradient-angle), var(--color1), var(--color2), var(--color3));
    background-size: 200% 200%; /* Larger size for smooth transition */
    background-attachment: fixed; /* Keeps gradient fixed during scroll */
    color: #EAEAEA; /* Light grey text for readability */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    transition: background-position 0.5s ease; /* Smooth bg transition if needed */
}

/* Typography */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif; /* Heading font */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75em;
    line-height: 1.2;
}

h1 {
    font-size: 3rem; /* Responsive size */
    letter-spacing: 1px;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1.5em;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3em;
}

p {
    margin-bottom: 1em;
    font-size: 1rem;
}

.subtitle {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

a {
    color: var(--color3); /* Use an accent color */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* Layout & Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative; /* Needed for pseudo-element overlay */
    background-image: url('placeholder-hero.jpg'); /* REPLACE THIS */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Simple parallax effect */
    padding: 0 20px;
    overflow: hidden; /* Hide potential overflow from parallax */
}

/* Optional: Dark overlay for better text contrast on hero */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 24, 0.6); /* Dark semi-transparent overlay */
    z-index: 1;
}

#hero .container {
    position: relative; /* Ensure content is above the overlay */
    z-index: 2;
}

/* Call to Action Button */
.cta-button {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    background: linear-gradient(90deg, var(--color2), var(--color3));
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.5s ease;
    border: none;
    cursor: pointer;
    background-size: 200% auto; /* For hover effect */
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-position: right center; /* Change gradient direction on hover */
    color: #fff; /* Ensure text color stays */
}

/* Introduction Section */
#intro {
    background-color: rgba(18, 18, 24, 0.7); /* Slightly different bg if needed */
    text-align: center;
}
#intro p {
     max-width: 700px;
     margin-left: auto;
     margin-right: auto;
}


/* Reviews Section */
#reviews {
     background-color: rgba(0, 0, 0, 0.2); /* Subtle difference */
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                background-color 0.3s ease;
    overflow: hidden; /* Crucial for the expansion */
    cursor: default; /* Indicate interactivity */
}

.review-card:hover {
    transform: scale(1.04); /* Slightly larger on hover */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.review-visible {
    /* Styles for the always visible part */
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    float: left;
    margin-right: 15px;
    margin-bottom: 10px; /* Space below avatar */
    border: 2px solid var(--color2);
}

.review-card h3 {
    margin-bottom: 0.1em;
    color: #fff;
}

.review-card .title {
    font-size: 0.9rem;
    color: #bbb;
    font-style: italic;
    margin-bottom: 0.8em;
}

.review-card .snippet {
    font-style: italic;
    color: #ccc;
    margin-bottom: 0; /* No margin below snippet */
}

.review-full {
    max-height: 0; /* Initially hidden */
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.4s 0.1s ease-out, margin-top 0.5s ease-out; /* Smooth transition */
    margin-top: 0; /* Start with no margin */
    clear: both; /* Ensure it clears the floated avatar */
    padding-top: 10px; /* Add space when revealed */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
}

.review-card:hover .review-full {
    max-height: 300px; /* Adjust as needed for content length */
    opacity: 1;
    margin-top: 15px; /* Add margin when revealed */
}

/* Gallery Section */
.gallery-grid {
    /* Basic CSS Masonry */
    column-count: 3; /* Adjust columns for different screen sizes */
    column-gap: 15px;
}

.gallery-item {
    margin-bottom: 15px;
    display: inline-block; /* Important for column layout */
    width: 100%; /* Ensure it fills column */
    position: relative; /* For potential overlays */
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden; /* Ensures image stays within bounds */
    border-radius: 5px;
}

.gallery-item img {
    display: block; /* Remove bottom space */
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    opacity: 0.9;
}

.gallery-item:hover img {
     transform: scale(1.05); /* Subtle zoom on hover */
}

/* Lightbox Styles */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Darker overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top */
    opacity: 0; /* Start hidden */
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s; /* Fade transition */
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

#lightbox img {
    max-width: 90%;
    max-height: 85%;
    display: block;
    border-radius: 5px;
    /* Add animation for pop effect */
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Pop effect */
}

#lightbox.active img {
    transform: scale(1);
}


.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-lightbox:hover {
    transform: scale(1.1);
}

/* Call to Action Section */
#cta {
    background: linear-gradient(var(--gradient-angle), var(--color3), var(--color2)); /* Reverse gradient or different variation */
    text-align: center;
}
#cta h2 {
     color: #fff;
}
#cta p {
     color: #eee;
     max-width: 600px;
     margin-left: auto;
     margin-right: auto;
}
/* Alternate button style if needed */
.cta-button.alt {
     background: rgba(255, 255, 255, 0.1);
     border: 2px solid #fff;
     color: #fff;
}
.cta-button.alt:hover {
     background: #fff;
     color: var(--color2); /* Use one of the gradient colors */
     box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
    background-color: #111; /* Darker footer background */
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .gallery-grid { column-count: 2; }
}

@media (max-width: 768px) {
    #hero { background-attachment: scroll; /* Disable fixed attachment on mobile potentially */ }
    .review-grid { grid-template-columns: 1fr; /* Stack reviews */ }
    .gallery-grid { column-count: 2; } /* Or 1 for smaller mobiles */
    section { padding: 60px 0; }
    h1 { font-size: 2.2rem; }
    .subtitle { font-size: 1rem; }
}

@media (max-width: 576px) {
    .gallery-grid { column-count: 1; } /* Single column gallery */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    .cta-button { padding: 10px 25px; font-size: 0.9rem;}
    .close-lightbox { font-size: 2rem; top: 15px; right: 20px; }
}