:root {
    /* Primary Colors */
    --color-primary: #393831;     /* #013126 Dark green used for text and borders #9b997b*/
    --color-secondary: #DCCFC1;   /* #FFC107 Yellow used for buttons #dfd1c9*/
    --color-accent: #C6C9C2; /* #F7F6CF Used in social gallery section #d1b9b4*/
    
    /* Neutral Colors */
    --color-background: #faf8f6;  /* #fefdf7 Light cream background #faf8f6*/
    /* --color-primary: #333333;   Used for navigation and some text */
    --color-light-gray: #EAEAEA;  /* #f5f5f5 Used in plan backgrounds #f16d64*/
    
    /* Additional Colors */
    --color-white: #fff;          /* Pure white */
}

/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Styles */
body {
    font-family: 'Montserrat', sans-serif; /* Fallback font for body */
    color: var(--color-primary); /* Updated text color: rgb(1, 49, 38) */
    background-color: var(--color-background); /* White background */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* 20px padding on both sides to match line margins */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Menu Divider */
.menu-divider {
    border: 0;
    border-top: 1px solid var(--color-primary); /* Dark gray horizontal lines */
    width: 100%;
    max-width: calc(100% - 40px); /* Subtract 20px margin from both sides */
    margin: 10px auto; /* Center the line with 10px vertical spacing */
    display: block;
}

/* Section Divider */
.section-divider {
    border: 0;
    border-top: 1px solid var(--color-primary);
    width: 100%;
    max-width: calc(100% - 40px); /* Subtract 20px margin from both sides */
    margin: 20px auto; /* Center the line with 20px vertical spacing */
    display: block;
}

/* Header */
header {
    background-color: var(--color-background);
    padding: 15px 0;
}

/* Logo */
.logo a {
    display: flex;
    font-family: 'Azeret Mono', monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    flex-direction: column;
    width: 120px;  /* Fixed width for container */
}

.logo span {
    display: block;
    width: 120px; /* Match parent width */
    text-align: center;
    padding: 1px 0;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Specific letter-spacing for each word to make them appear the same width */
.logo span:nth-child(1) { /* "387" */
    letter-spacing: 7px; /* Adjust this value as needed */
    text-align: center;
}

.logo span:nth-child(2) { /* "Studio" */
    letter-spacing: 10px; /* Adjust this value as needed */
    text-align: center;
}

.logo span:nth-child(3) { /* "Design" */
    letter-spacing: 2px; /* Adjust this value as needed */
    text-align: center;
}


/* Navigation */
nav {
    display: flex;
    align-items: center;
}

nav a {
    font-family: 'Montserrat', sans-serif; /* Fallback for DIN Next */
    font-weight: 300; /* Light weight to mimic DIN Next Light */
    font-size: 16px; /* Specified size */
    line-height: 1.4em; /* Specified line height (22.4px) */
    color: var(--color-primary); /* Dark gray */
    text-decoration: none;
    margin: 0 10px;
    text-transform: none; /* Remove uppercase */
}

/* User Options */
.user-options {
    display: flex;
    align-items: center;
}

.user-options .login-class:not(:last-of-type) {
    margin-right: 10px;
}

.login-class {
    font-family: 'Montserrat', sans-serif; /* Fallback for DIN Next */
    font-size: 16px;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    text-decoration: none;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    text-transform: capitalize;
}

.login-text {
    font-family: 'Montserrat', sans-serif; /* Fallback for DIN Next */
    font-weight: 300; /* Light weight */
    font-size: 16px;
    line-height: 1.4em;
    color: var(--color-primary);
    margin-right: 20px;
    text-transform: none; /* Remove uppercase */
}

.book-class {
    font-family: 'Montserrat', sans-serif; /* Fallback for DIN Next */
    font-weight: 600;
    font-size: 16px;
    background-color: var(--color-primary);
    color: #fff;
    text-decoration: none;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    text-transform: capitalize;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
    margin-right: 20px;
    font-family: 'Montserrat', sans-serif;
}

.current-language {
    font-weight: 300;
    font-size: 16px;
    color: var(--color-primary);
    cursor: pointer;
    padding: 8px 15px;
}

.current-language:after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
}

.language-options {
    display: none;
    position: absolute;
    top: calc(100% - 5px); /* Reduce the gap */
    left: 0;
    background: var(--color-background);
    padding: 5px 0;
    min-width: 100%;
}

/* Add invisible padding to create a seamless hover area */
.language-selector::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px; /* Height of the invisible bridge */
    background: transparent;
}

.language-options a {
    display: block;
    padding: 8px 15px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    transition: background-color 0.3s;
    line-height: 1.4em;
}

.language-options a:hover {
    background-color: rgba(0,0,0,0.05);
}

.language-options a.active {
    font-weight: 400;
}

.language-selector:hover .language-options {
    display: block;
}

/* Hero Section */
.hero {
    padding: 100px 0; /* Maintain generous vertical spacing */
    background-color: var(--color-background); /* Revert to the previously working light yellow */
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font: normal normal normal 74px / 1.2em "azeret-mono", 'azeret mono', monospace;
    color: var(--color-primary);
}

.hero .main-headline {
    display: block;
    font-size: 74px;
    line-height: 1.2em;
}

.hero .sub-headline {
    display: block;
    font-size: 36px; /* Proportional size for "at Shella’s Studio" */
    line-height: 1.2em;
    font-weight: 400;
    margin-top: 10px; /* Small gap between headline parts */
}

.hero .subtext {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: var(--color-primary);
    margin: 20px 0 40px 0; /* Match original spacing */
}

.hero .cta-button {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-secondary); /* Lighter green to match the original */
    color: var(--color-primary);
    border: none;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}

/* Image Section */
.image-section {
    height: 400px; /* Fixed height for the background image section */
    background-image: url('hero1.avif');
    background-size: cover;
    background-position: center top; /* Align to top to show more of the top part as you scroll */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Fixed position to create the parallax effect */
    position: relative;
}

/* About Section */
.about-section {
    padding: 60px 0; /* Add padding for spacing */
}

.about-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px; /* Space between image and text */
    position: relative; /* For positioning the vertical line */
}

.image-container {
    flex: 1;
    max-width: 60%; /* Increase image size to 60% of the container */
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.text-container {
    flex: 1;
    max-width: 40%; /* Reduce text container to 40% */
    padding-left: 40px; /* Space from the vertical line */
}

.about-wrapper::before {
    content: '';
    position: absolute;
    left: 60%; /* Position the line at the edge of the image (60% width) */
    top: 0;
    bottom: 0;
    width: 0.3px;
    background-color: var(--color-primary); /* Vertical line color */
    transform: translateX(-50%); /* Center the line between image and text */
}

.text-container h2 {
    font: normal normal normal 32px / 1.4em "azeret-mono", 'azeret mono', monospace;
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.text-container p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--color-primary);
    margin-bottom: 30px;
}

.text-container .learn-more-button {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-secondary); /* Yellow button */
    color: var(--color-primary);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}

/* Teaser Section */
.teaser-section {
    padding: 60px 0; /* Consistent with other sections like .about-section */
    background-color: var(--color-secondary); /* Light green background from the image */
}

.teaser-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px; /* Consistent spacing as in .about-wrapper */
}

.teaser-wrapper .text-container {
    flex: 2; /* Takes up more space than the pricing box */
    max-width: 60%;
}

.teaser-wrapper .pricing-container {
    flex: 1;
    max-width: 35%;
    background-color: var(--color-primary); /* Beige background for the pricing box */
    padding: 30px;
    border-radius: 10px; /* Slightly rounded corners */
    text-align: center;
    position: relative; /* For decorative elements if needed */
}

.teaser-headline {
    font-family: 'Montserrat', sans-serif;
    font-size: 64px; /* Large, bold headline */
    font-weight: 700; /* Bolder for emphasis */
    line-height: 1.1em;
    color: var(--color-primary);
    text-transform: uppercase; /* Matches the style in the image */
    margin-bottom: 20px;
}

.teaser-subheading {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600; /* Bold for emphasis */
    color: var(--color-primary);
    margin-bottom: 20px;
}

.teaser-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 300; /* Light weight consistent with other sections */
    color: var(--color-primary);
    line-height: 1.6em;
}

.pricing-title {
    font-family: 'Azeret Mono', monospace;
    font-size: 24px;
    font-weight: 400;
    color: var(--color-background);
    line-height: 1.4em;
    margin-bottom: 10px;
}

.pricing-price {
    font-family: 'Azeret Mono', monospace;
    font-size: 48px; /* Large price, consistent with .plan .price */
    font-weight: 700;
    color: var(--color-background);
    margin: 10px 0;
}

.pricing-details {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--color-background);
    margin-bottom: 20px;
}

.buy-now-button {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    text-decoration: none;
    font-weight: 600;
    background-color: var(--color-secondary); /* Dark green background */
    color: var(--color-primary); /* White text */
    border: none;
    padding: 10px 30px;
    border-radius: 25px; /* Consistent with other buttons */
    cursor: pointer;
    text-transform: capitalize;
}

/* Classes Section */
.classes-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

.classes-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.classes-wrapper .text-container {
    flex: 1;
    max-width: 50%;
    padding-right: 40px; /* Space from the image */
}

.classes-wrapper .image-container {
    flex: 1;
    max-width: 50%;
}

.classes-wrapper .image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.classes-wrapper .text-container h2 {
    font-family: 'Azeret Mono', monospace;
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: 30px;
}

.class-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.class-list li {
    font: normal normal normal 28px / 1.4em "Azeret Mono", "azeret mono", monospace;
    color: var(--color-primary);
    padding: 10px 0;
}

.class-divider {
    border: 0;
    border-top: 1px solid var(--color-primary);
    margin: 0;
}

.classes-wrapper .text-container .book-class-button {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border: none;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}

/* Plans Section */
.plans-section {
    padding: 60px 0;
    background-color: var(--color-background);
    text-align: center;
}

/* Override the container's flex display for the plans section */
.plans-section .container {
    display: block; /* Override the flex display to stack elements vertically */
    text-align: center;
}

.plans-section h2 {
    font-family: 'Azeret Mono', monospace;
    font-size: 32px;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.plans-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
}

.plan {
    flex: 1;
    max-width: 400px;
    background-color: var(--color-light-gray);
    border: 1px solid var(--color-primary);
    padding: 20px;
    position: relative;
    text-align: center;
}

.best-value-label {
    position: absolute;
    top: -10px;
    left: 20px;
    background-color: var(--color-primary);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    text-transform: uppercase;
}

.plan h3 {
    font-family: 'Azeret Mono', monospace;
    font-size: 24px;
    color: var(--color-primary);
    margin: 10px 0;
}

.plan .price {
    font-family: 'Azeret Mono', monospace;
    font-size: 48px;
    color: var(--color-primary);
    margin: 10px 0;
}

.plan .billing {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.plan .description {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.plan .select-button {
    font-family: 'Montserrat', sans-serif; /* Fallback for DIN Next */
    font-weight: 600;
    font-size: 16px;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    text-transform: capitalize;
}

.plan .features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan .features-list li {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--color-primary);
    padding: 5px 0;
}
/* Testimonials Section */
.testimonials-section {
    text-align: center;
}

.testimonials-section h2 {
    font-family: 'Azeret Mono', monospace;
    font-size: 32px;
    font-weight: 400;
    color: var(--color-primary);
    margin: 10px 0;
}

.testimonials-section .container {
    display: block; /* Override the flex display to avoid interference */
    text-align: center; /* Ensure content is centered */
}

.testimonials-content {
    display: flex;
    justify-content: center; /* Center the testimonials */
    gap: 20px;
    margin: 10px 0;
    position: relative;
    max-width: 960px; /* Slightly narrower than the 1200px container to match typical designs */
    margin-left: auto;
    margin-right: auto;
}

.testimonial {
    flex: 1;
    max-width: 300px;
    padding: 10px;
    text-align: center;
    position: relative; /* For positioning the vertical line */
}

/* Add vertical line between testimonials, except for the last one */
.testimonial:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px; /* Half of the gap (20px / 2) to center the line between testimonials */
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--color-primary); /* Match the color used elsewhere in the site */
}

.star-icon {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px; /* Keeping the font size to ensure the asterisk looks proportional */
    line-height: 27px; /* Center the asterisk vertically within the 27x27 box */
    text-align: center; /* Center the asterisk horizontally */
    color: var(--color-primary);
    margin: 0 auto 5px auto; /* Center the block and add spacing below */
}

.testimonial .quote {
    font: normal normal normal 16px / 1.7em 'Questrial', sans-serif;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.testimonial .author {
    font: normal normal normal 16px / 1.4em 'Azeret Mono', 'azeret mono', monospace;
    color: var(--color-primary);
}

/* Social Gallery Section */
.social-gallery-section {
    padding: 60px 0; /* Consistent vertical padding */
}

.social-gallery-section .container {
    background-color: var(--color-accent); /* Light yellow background matching the site */
    display: block; /* Override flex to simplify layout */
    text-align: center;
    padding: 20px;
}

.social-heading {
    font-family: 'Azeret Mono', monospace;
    font-size: 32px;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 40px; /* Space between heading and images */
}

.social-icons {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: inherit;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-secondary);  /* Replace with your desired hover color */
}

.gallery-content {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between images */
    position: relative; /* For positioning images */
    max-width: 960px;
    margin: 0 auto;
}

.gallery-item {
    flex: 1;
    max-width: 300px; /* Approximate width based on image proportions */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Staggered positioning for visual interest */
.gallery-item:nth-child(1) {
    transform: translateY(20px); /* Slightly lower */
}

.gallery-item:nth-child(2) {
    transform: translateY(-20px); /* Slightly higher */
}

.gallery-item:nth-child(3) {
    transform: translateY(0); /* Neutral position */
}

/* Footer */
footer {
    background-color: var(--color-primary);
}

/* Footer Columns Layout */
.footer-columns {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    grid-template-columns: 1fr 1fr 1fr 1.5fr; /* Makes last column 1.5x wider */
    background-color: var(--color-primary); /* Restore original background color from your site */
}

/* General Column Styling */
.column {
    flex: 1;
    max-width: 20%; /* First three columns */
    text-align: left; /* Default alignment for first three columns */
    position: relative; /* For positioning the vertical line */
}

/* Specific Styling for "Get in Touch" Column */
.column.get-in-touch {
    flex: 1.5;
    max-width: 80%; /* Wider for the form */
    padding-left: 100px; /* Add space from the left to create balance */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

/* Vertical Line Before "Get in Touch" */
.column.get-in-touch::before {
    content: '';
    position: absolute;
    left: 0; /* Align with the left edge of the column */
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--color-background);
    z-index: 1; /* Ensure it’s above other content */
}

/* Add a container div around your images */
.store-badges-container {
    display: flex;
    flex-direction: column;  /* Stack items vertically */
    gap: 5px;  /* Controls space between images */
    align-items: center;
}

.store-badge {
    display: block;
}


/* Form Styling */
.column.get-in-touch form {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    max-width: 400px;
    margin: 0 auto;
}

input:focus,
textarea:focus {
    outline: dotted 1px var(--color-background);
}

.column.get-in-touch form .form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.column.get-in-touch form input,
.column.get-in-touch form textarea {
    width: 100%;
    margin: 10px 0;
    border: none;
    border-bottom: 2px solid var(--color-background);
    background-color: transparent;
    padding: 10px;
    font-size: 14px;
    color: var(--color-background);
}

.column.get-in-touch form input::placeholder,
.column.get-in-touch form textarea::placeholder {
    color: #999;
}

.column.get-in-touch form textarea {
    min-height: 100px;
    resize: vertical;
}

.column.get-in-touch form button {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 20px;
}

/* Additional Footer Styling */
.column h3 {
    font: normal normal normal 22px / 1.4em 'Azeret Mono', monospace;
    color: var(--color-background);
    margin-bottom: 20px;
}

.column p, .column ul {
    color: var(--color-background);
    font-size: 14px;
    font-weight: 400;
}

.column ul {
    list-style: none;
    padding: 0;
}

.column ul li {
    margin: 10px 0;
}

.column a {
    color: var(--color-background);
    text-decoration: none;
}

.column a:hover {
    text-decoration: underline;
}

.footer-divider {
    border: 0;
    border-top: 1px solid var(--color-background);
    margin: 20px 0;
}

/* Contact form */
.form-message {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-message.success {
    background-color: rgba(0, 128, 0, 0.1);
    border: 1px solid green;
    color: green;
}

.form-message.error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid red;
    color: red;
}

/* Schedule Hero Section */
.schedule-hero {
    padding: 100px 0;
    background-color: var(--color-background);
    text-align: center; /* Center align all content */
}

.schedule-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align flex items */
}

.schedule-hero h1 {
    font: normal normal normal 74px/1.2em "azeret-mono", 'azeret mono', monospace;
    color: var(--color-primary);
    text-align: center;
}

.schedule-hero .main-headline {
    display: block;
    font-size: 74px;
    line-height: 1.2em;
}

.schedule-hero .sub-headline {
    display: block;
    font-size: 36px;
    line-height: 1.2em;
    font-weight: 400;
    margin-top: 10px;
}

.schedule-hero .subtext {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: var(--color-primary);
    margin: 20px 0;
    text-align: center;
}

/* Terms & Conditions Section */
.policy-section {
    padding: 100px 0;
    background-color: var(--color-background);
}

.policy-section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.policy-section h1 {
    font: normal normal normal 74px/1.2em "azeret-mono", 'azeret mono', monospace;
    color: var(--color-primary);
    margin-bottom: 30px;
    text-align: center;
}

.policy-section .sub-headline {
    display: block;
    font-size: 36px;
    line-height: 1.2em;
    font-weight: 400;
}

.policy-section h3 {
    font-family: "azeret-mono", 'azeret mono', monospace;
    font-size: 18px;
    color: var(--color-primary);
    margin: 40px 0 20px 0;
}

.policy-section .subtext {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: var(--color-primary);
    margin: 20px 0;
    line-height: 1.6;
}

.policy-section ul.subtext {
    list-style-type: disc;
    padding-left: 20px;
}

.policy-section ul.subtext li {
    margin-bottom: 10px;
}

.policy-section a {
    color: var(--color-primary);
    text-decoration: underline;
}

.schedule-hero .cta-button {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    margin-top: 20px;
}

/* Animation for text appearing from bottom */
@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px); /* Start 50px below */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* End at original position */
    }
}

/* Class to trigger the animation */
.animate-in {
    animation: slideUpFadeIn 0.8s ease-out forwards; /* 0.8s duration, ease-out timing */
}

/* Initial state for text elements in specified sections */
.hero-content h1,
.hero-content .subtext,
.text-container h2,
.text-container p,
.classes-wrapper .text-container h2,
.class-list li,
.testimonials-section h2,
.testimonial .quote,
.testimonial .author 
.teaser-section h2,
.teaser-section h3,
.pricing-container p,
.pricing-container h3,
.teaser-section p,
.teaser-section .cta-button {
    opacity: 0; /* Start invisible */
    transform: translateY(50px); /* Start 50px below */
    transition: opacity 0.2s ease-out, transform 0.2s ease-out; /* Fallback for smoothness */
}

/* Ensure animated elements are ready to animate when .animate-in is added */
.hero-content.animate-in h1,
.hero-content.animate-in .subtext,
.text-container.animate-in h2,
.text-container.animate-in h3,
.text-container.animate-in p,
.classes-wrapper .text-container.animate-in h2,
.classes-wrapper .text-container.animate-in .class-list li,
.testimonials-section.animate-in h2,
.testimonial.animate-in .quote,
.testimonial.animate-in .author 
.teaser-section.animate-in h2,
.teaser-section.animate-in h3,
.pricing-container.animate-in p,
.pricing-container.animate-in h3,
.teaser-section.animate-in p,
.teaser-section.animate-in .cta-button {
    opacity: 1;
    transform: translateY(0);
    animation: slideUpFadeIn 0.8s ease-out forwards;
}

/* Initial state for testimonial elements */
.testimonial .quote,
.testimonial .author {
    opacity: 0; /* Start invisible */
    transform: translateY(50px); /* Start 50px below */
    transition: opacity 0.2s ease-out, transform 0.2s ease-out; /* Fallback */
}

/* Apply animation when the parent .testimonial has .animate-in */
.testimonial.animate-in .quote,
.testimonial.animate-in .author {
    opacity: 1;
    transform: translateY(0);
    animation: slideUpFadeIn 0.8s ease-out forwards;
}

/* Ensure the h2 in testimonials-section animates separately if needed */
.testimonials-section h2 {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.testimonials-section.animate-in h2 {
    opacity: 1;
    transform: translateY(0);
    animation: slideUpFadeIn 0.8s ease-out forwards;
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero h1 .main-headline {
        font-size: 60px;
    }
    .hero h1 .sub-headline {
        font-size: 30px;
    }
    .image-container,
    .text-container,
    .classes-wrapper .image-container,
    .classes-wrapper .text-container {
        max-width: 100%; /* Full width on tablets */
    }

    .image-section {
        height: 300px;
        background-attachment: scroll; /* Remove fixed attachment for better mobile performance */
    }

    .about-wrapper::before,
    .column.get-in-touch::before {
        display: none; /* Remove vertical lines on smaller screens */
    }
    .column {
        max-width: 45%; /* Two columns per row */
    }
    .column.get-in-touch {
        max-width: 100%;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .hero h1 .main-headline {
        font-size: 36px;
    }
    .hero h1 .sub-headline {
        font-size: 18px;
    }
    .hero .cta-button,
    .text-container .learn-more-button,
    .classes-wrapper .text-container .book-class-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    .image-section {
        height: 200px;
    }

    .teaser-headline {
        font-size: 36px;
    }

    .teaser-subheading {
        font-size: 18px;
    }

    .buy-now-button {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* Hamburger Icon */
.hamburger {
    display: none; /* Hidden by default on larger screens */
    font-size: 30px;
    color: var(--color-primary);
    cursor: pointer;
    padding: 5px;
}

/* Close Button */
.close-menu {
    display: none; /* Hidden by default on desktop */
    font-size: 30px;
    color: var(--color-primary);
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Media Queries */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%; /* Full viewport height */
        background-color: var(--color-background);
        z-index: 1000;
    }

    nav.active {
        display: grid; /* Show and center when active */
        place-items: center; /* Center vertically and horizontally */
        grid-template-rows: 1fr; /* Single row for centering */
    }

    .menu-items {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center horizontally */
        justify-content: center; /* Center vertically within its space */
        width: 100%;
        height: 100%; /* Ensure it fills the grid cell */
        padding: 40px 0; /* Add padding to avoid edge overlap */
    }

    nav a {
        display: block;
        margin: 20px 0;
        font-size: 24px;
        color: var(--color-primary);
        text-align: center;
    }

    .separator {
        display: none; /* Hide separators in mobile */
    }

    .close-menu {
        display: block; /* Show close button */
    }

    .user-options {
        display: none;
    }

    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .image-section {
        height: 200px;
        background-position: center center;
        background-attachment: scroll;
        /* Ensure the image scales properly */
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
    }

    /* Hide menu dividers when nav is active */
    nav.active ~ .menu-divider,
    .menu-divider:has(+ header nav.active) {
        display: none;
    }

    /* About Section */
    .about-wrapper {
        flex-direction: column; /* Stack items vertically */
        gap: 20px; /* Adjust spacing between text and image */
    }
    
    .image-container,
    .text-container {
        max-width: 100%; /* Ensure both take full width */
        padding: 0; /* Remove padding to avoid extra spacing */
    }
    
    .text-container {
        order: 1; /* Text appears first */
    }
    
    .image-container {
        order: 2; /* Image appears second (below text) */
    }
    
    .about-wrapper::before {
        display: none; /* Ensure vertical line stays hidden */
    }

    /* Teaser Section */
    .teaser-wrapper {
        flex-direction: column; /* Stack text and pricing vertically */
        gap: 30px;
    }

    .teaser-wrapper .text-container,
    .teaser-wrapper .pricing-container {
        max-width: 100%; /* Full width on smaller screens */
    }

    .teaser-headline {
        font-size: 48px; /* Smaller headline for mobile */
    }

    .teaser-subheading {
        font-size: 20px;
    }

    .teaser-description {
        font-size: 14px;
    }

    .pricing-title {
        font-size: 20px;
    }

    .pricing-price {
        font-size: 36px;
    }

    /* Classes Section */
    .classes-wrapper {
        flex-direction: column; /* Stack text and image vertically */
        gap: 20px; /* Space between text and image */
    }
    .classes-wrapper .text-container,
    .classes-wrapper .image-container {
        max-width: 100%; /* Full width for both */
        padding: 0; /* Remove padding */
    }
    .classes-wrapper .text-container {
        order: 1; /* Text first */
    }
    .classes-wrapper .image-container {
        order: 2; /* Image below text */
    }

    /* Testimonials Section */
    .testimonials-content {
        flex-direction: column; /* Stack testimonials vertically */
        gap: 30px; /* Increase gap for better spacing */
        max-width: 100%; /* Full width */
    }
    .testimonial {
        max-width: 100%; /* Each testimonial takes full width */
        padding: 20px; /* Add padding for better spacing */
    }
    .testimonial:not(:last-child)::after {
        display: none; /* Remove vertical lines between testimonials */
    }

    /* Footer Columns */
    .footer-columns {
        flex-direction: column; /* Stack columns vertically */
        gap: 30px; /* Space between columns */
        padding: 20px; /* Adjust padding */
    }
    .column {
        max-width: 100%; /* Each column takes full width */
        text-align: left; /* Keep text aligned left */
    }
    .column.get-in-touch {
        max-width: 100%; /* Full width for the form column */
        padding-left: 0; /* Remove extra padding */
    }
    .column.get-in-touch::before {
        display: none; /* Remove vertical line */
    }
    .column.get-in-touch form .form-row {
        flex-direction: column; /* Stack form inputs vertically */
        gap: 10px; /* Space between inputs */
    }

    /* Plans Section */
    .plans-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .plan {
        max-width: 100%;
    }

    .best-value-label {
        left: 10px;
    }

     /* Schedule Section */
    .schedule-hero h1 .main-headline {
        font-size: 48px;
    }
    
    .schedule-hero h1 .sub-headline {
        font-size: 24px;
    }
    
    .schedule-hero .subtext {
        font-size: 16px;
    }
}