/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-yellow: #FFC423;
    --primary-pink: #5D2A78;
    --primary-orange: #E58828;
    
    /* Dark Background */
    --dark-bg: #0a0a0a;
    --dark-secondary: #1a1a1a;
    --dark-tertiary: #2a2a2a;
    
    /* Text Colors */
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --text-dark: #000000;
    
    /* Typography */
    --font-serif: 'Universal Serif', serif;
    --font-sans: 'Playpen Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #000000;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-family: var(--font-sans);
}

ul, ol {
    font-family: var(--font-sans);
}

li {
    font-family: var(--font-sans);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-yellow));
    color: var(--text-light);
    border-color: var(--primary-orange);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(229, 136, 40, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--primary-pink);
}

.btn-secondary:hover {
    background: var(--primary-pink);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #000000;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
}

.navbar.scrolled .nav-container {
    min-height: 80px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 120px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.nav-logo .logo-img {
    height: 120px;
    width: auto;
    transition: var(--transition);
}

.nav-logo .icon-logo {
    display: none;
    opacity: 0;
}

.navbar.scrolled .nav-logo .full-logo {
    display: none;
    opacity: 0;
}

.navbar.scrolled .nav-logo .icon-logo {
    display: block;
    opacity: 1;
    height: 60px;
}

.nav-logo .logo-img:hover {
    transform: scale(1.05);
}

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo-link:hover {
    transform: scale(1.02);
}

.nav-logo h2 {
    font-family: var(--font-serif);
    color: var(--primary-yellow);
    margin: 0;
    font-size: 2rem;
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
}

.navbar.scrolled .nav-logo h2 {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px var(--primary-pink), 0 0 20px var(--primary-pink);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-yellow);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 180px 0 80px;
    position: relative;
    overflow: hidden;
    background: var(--primary-orange);
    width: 95%;
    margin: 2rem auto;
}

.hero-masonry-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 10px;
    gap: 8px;
    padding: 20px;
    z-index: 1;
}

.masonry-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    background: var(--dark-secondary);
}

.masonry-item:nth-child(1) { grid-row: span 32; }
.masonry-item:nth-child(2) { grid-row: span 38; }
.masonry-item:nth-child(3) { grid-row: span 35; }
.masonry-item:nth-child(4) { grid-row: span 40; }
.masonry-item:nth-child(5) { grid-row: span 33; }
.masonry-item:nth-child(6) { grid-row: span 37; }
.masonry-item:nth-child(7) { grid-row: span 34; }
.masonry-item:nth-child(8) { grid-row: span 39; }
.masonry-item:nth-child(9) { grid-row: span 36; }
.masonry-item:nth-child(10) { grid-row: span 32; }
.masonry-item:nth-child(11) { grid-row: span 38; }
.masonry-item:nth-child(12) { grid-row: span 35; }
.masonry-item:nth-child(13) { grid-row: span 40; }
.masonry-item:nth-child(14) { grid-row: span 33; }
.masonry-item:nth-child(15) { grid-row: span 37; }
.masonry-item:nth-child(16) { grid-row: span 34; }
.masonry-item:nth-child(17) { grid-row: span 39; }
.masonry-item:nth-child(18) { grid-row: span 36; }
.masonry-item:nth-child(19) { grid-row: span 32; }
.masonry-item:nth-child(20) { grid-row: span 38; }
.masonry-item:nth-child(21) { grid-row: span 35; }
.masonry-item:nth-child(22) { grid-row: span 33; }



.masonry-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.masonry-item:nth-child(even) {
    animation-delay: 0.2s;
}

.masonry-item:nth-child(3n) {
    animation-delay: 0.3s;
}

.masonry-item:nth-child(4n) {
    animation-delay: 0.4s;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.2s ease;
}

.masonry-item:hover img {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(10, 10, 10, 0.4) 0%, 
        rgba(10, 10, 10, 0.2) 40%, 
        transparent 70%);
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 3;
    position: relative;
    padding: 40px;
    background: rgba(10, 10, 10, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--primary-orange);
    width: 95%;
    margin: 2rem auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.about-text p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text .btn {
    display: block;
    margin: 0 auto;
    width: fit-content;
    background: var(--dark-bg);
    color: var(--text-light);
    border-color: var(--primary-pink);
}

.about-text .btn:hover {
    background: var(--primary-pink);
    color: var(--text-light);
    transform: translateY(-2px);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Gallery Section */
.gallery {
    padding: var(--section-padding);
    background: var(--primary-orange);
    width: 95%;
    margin: 2rem auto;
}

.gallery h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.gallery .section-subtitle {
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.gallery-featured {
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: var(--dark-bg);
    padding: 20px;
}

.gallery-link {
    display: block;
    position: relative;
    text-decoration: none;
    transition: var(--transition);
}

.gallery-link:hover {
    transform: scale(1.02);
}

.gallery-link img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-link:hover .gallery-overlay {
    opacity: 1;
}

.gallery-text {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    padding: 2rem;
    border: 2px solid var(--primary-yellow);
    border-radius: 10px;
    background: rgba(10, 10, 10, 0.8);
}

.gallery-cta {
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-cta .btn {
    background: var(--dark-bg);
    color: var(--text-light);
    border-color: var(--primary-pink);
}

.gallery-cta .btn:hover {
    background: var(--primary-pink);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(93, 42, 120, 0.3);
}

/* Classes Section */
.classes {
    padding: var(--section-padding);
    background: var(--dark-bg);
    width: 95%;
    margin: 2rem auto;
}

.classes h2 {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.classes .section-subtitle {
    color: var(--text-light);
}

.contact .section-subtitle {
    color: var(--text-light);
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.class-card {
    background: var(--dark-tertiary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.class-image {
    height: 200px;
    overflow: hidden;
}

.class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.class-card:hover .class-image img {
    transform: scale(1.1);
}

.class-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.class-content h3 {
    color: var(--primary-yellow);
    margin-bottom: 0.5rem;
}

.class-date {
    color: var(--primary-pink);
    font-weight: 600;
    margin-bottom: 1rem;
}

.class-details {
    list-style: none;
    margin: 1rem 0;
}

.class-details li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
    font-family: var(--font-sans);
}

.class-details li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
}

.class-content .btn {
    margin-top: auto;
    align-self: center;
}

.class-content p {
    color: var(--text-light);
}

.classes-cta {
    text-align: center;
    margin-top: 3rem;
}

.classes-cta p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Calendar Styles */
.calendar-container {
    background: var(--dark-secondary);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0 3rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 600;
}

.calendar-nav {
    background: var(--primary-orange);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover {
    background: var(--primary-yellow);
    transform: scale(1.1);
}

.calendar-nav:active {
    transform: scale(0.95);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--dark-tertiary);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day-header {
    background: var(--primary-pink);
    color: var(--text-light);
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-sans);
}

.calendar-day {
    background: var(--dark-bg);
    min-height: 80px;
    padding: 0.5rem;
    border: 1px solid var(--dark-tertiary);
    position: relative;
    transition: var(--transition);
}

.calendar-day:hover {
    background: var(--dark-tertiary);
}

.calendar-day.other-month {
    background: var(--dark-secondary);
    color: var(--text-muted);
    opacity: 0.6;
}

.calendar-day.today {
    background: rgba(255, 196, 35, 0.1);
    border: 2px solid var(--primary-yellow);
}

.calendar-day-number {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.calendar-day.other-month .calendar-day-number {
    color: var(--text-muted);
}

.calendar-class {
    background: var(--primary-orange);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-class:hover {
    background: var(--primary-yellow);
    color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.calendar-class:visited {
    color: white;
}

.calendar-class:visited:hover {
    color: var(--text-dark);
}

/* Class card highlight effect for anchor linking */
.classes-page-card.highlighted {
    box-shadow: 0 0 20px rgba(255, 196, 35, 0.5) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.calendar-day.multiple-classes .calendar-class {
    font-size: 0.7rem;
    padding: 0.15rem 0.3rem;
}

.calendar-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.classes-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.classes-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-yellow);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--dark-bg);
    width: 95%;
    margin: 2rem auto;
}

.contact h2 {
    text-align: center;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    color: var(--primary-yellow);
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    color: var(--primary-pink);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
}

.contact-form {
    background: var(--primary-orange);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--dark-secondary);
    border-radius: 10px;
    background: var(--dark-secondary);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 196, 35, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* MailChimp Form Specific Styles */
.required-asterisk {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 0.25rem;
}

.checkbox-group {
    margin-bottom: 1.5rem;
}

.mc-field-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.mc-field-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    margin-top: 0.25rem;
    accent-color: var(--primary-yellow);
}

.mc-field-group label {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-dark);
    cursor: pointer;
}

.mc-field-group label:hover {
    color: var(--primary-pink);
}

/* MailChimp form validation styles */
.mc-field-group input[type="checkbox"]:required:invalid {
    border-color: #e74c3c;
}

.mc-field-group input[type="checkbox"]:required:valid {
    border-color: var(--primary-yellow);
}

/* Clear div styling */
.clear {
    clear: both;
    margin-top: 1rem;
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
}

.form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Button Loading State */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

/* Form Validation States */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #e74c3c;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #27ae60;
}

/* Focus states for better accessibility */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 196, 35, 0.1);
}

/* Footer */
.footer {
    background: #000000;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-orange);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.footer-bottom p {
    color: var(--text-light);
}

/* Mobile Menu */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 120px; /* Smaller padding for mobile header */
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 160px 0 60px;
    }
    
    .hero-masonry-bg {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        grid-auto-rows: 8px;
        gap: 6px;
        padding: 15px;
    }
    
    .masonry-item:nth-child(1) { grid-row: span 28; }
    .masonry-item:nth-child(2) { grid-row: span 32; }
    .masonry-item:nth-child(3) { grid-row: span 30; }
    .masonry-item:nth-child(4) { grid-row: span 34; }
    .masonry-item:nth-child(5) { grid-row: span 29; }
    .masonry-item:nth-child(6) { grid-row: span 31; }
    .masonry-item:nth-child(7) { grid-row: span 28; }
    .masonry-item:nth-child(8) { grid-row: span 33; }
    .masonry-item:nth-child(9) { grid-row: span 30; }
    .masonry-item:nth-child(10) { grid-row: span 28; }
    .masonry-item:nth-child(11) { grid-row: span 32; }
    .masonry-item:nth-child(12) { grid-row: span 30; }
    .masonry-item:nth-child(13) { grid-row: span 34; }
    .masonry-item:nth-child(14) { grid-row: span 29; }
    .masonry-item:nth-child(15) { grid-row: span 31; }
    .masonry-item:nth-child(16) { grid-row: span 28; }
    .masonry-item:nth-child(17) { grid-row: span 33; }
    .masonry-item:nth-child(18) { grid-row: span 30; }
    .masonry-item:nth-child(19) { grid-row: span 28; }
    .masonry-item:nth-child(20) { grid-row: span 32; }
    .masonry-item:nth-child(21) { grid-row: span 30; }
    .masonry-item:nth-child(22) { grid-row: span 29; }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    /* About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Contact Section Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* General Mobile Adjustments */
    .nav-logo .logo-img {
        height: 90px;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Mobile Border Frame Adjustments */
    .hero,
    .about,
    .gallery,
    .classes,
    .contact {
        width: 98%;
        margin: 1rem auto;
    }
    
    .gallery-featured {
        margin: 0 15px 2rem;
    }
    
    .gallery-link img {
        height: auto;
        max-height: 300px;
    }
    
    .gallery-text {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
    
    .gallery-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .classes-grid {
        grid-template-columns: 1fr;
    }
    
    .classes-page-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .classes-page-details {
        grid-template-columns: 1fr;
    }
    
    .classes-hero {
        padding: 10rem 0 3rem;
    }
    
    .classes-hero h1 {
        font-size: 2.5rem;
    }
    
    /* Calendar Mobile Styles */
    .calendar-container {
        padding: 1rem;
        margin: 1rem 0 2rem 0;
    }
    
    .calendar-title {
        font-size: 1.5rem;
    }
    
    .calendar-nav {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 0.3rem;
    }
    
    .calendar-day-number {
        font-size: 0.8rem;
    }
    
    .calendar-class {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }
    
    .calendar-day.multiple-classes .calendar-class {
        font-size: 0.6rem;
        padding: 0.1rem 0.2rem;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    html {
        scroll-padding-top: 100px; /* Even smaller padding for very small screens */
    }
    
    /* Extra small screen border adjustments */
    .hero,
    .about,
    .gallery,
    .classes,
    .contact {
        width: 96%;
        margin: 0.5rem auto;
    }
    
    .calendar-container {
        padding: 0.75rem;
        margin: 0.75rem 0 1.5rem 0;
    }
    
    .calendar-title {
        font-size: 1.3rem;
    }
    
    .calendar-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .calendar-day {
        min-height: 50px;
        padding: 0.25rem;
    }
    
    .calendar-day-number {
        font-size: 0.75rem;
    }
    
    .calendar-class {
        font-size: 0.6rem;
        padding: 0.1rem 0.25rem;
        margin-bottom: 0.1rem;
    }
    
    .calendar-day.multiple-classes .calendar-class {
        font-size: 0.55rem;
        padding: 0.08rem 0.15rem;
    }
    
    .calendar-day-header {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .calendar-container {
        margin: 1rem 0 2rem 0;
    }
    
    .calendar-day {
        min-height: 45px;
    }
    
    .calendar-class {
        font-size: 0.6rem;
        padding: 0.1rem 0.2rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .calendar-nav {
        min-width: 44px;
        min-height: 44px;
    }
    
    .calendar-class {
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .calendar-day {
        min-height: 60px;
    }
    
    .calendar-class:active {
        transform: scale(0.95);
        background: var(--primary-yellow);
        color: var(--text-dark);
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .calendar-class {
        font-weight: 500;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    .calendar-nav:focus {
        outline: 3px solid var(--primary-yellow);
        outline-offset: 2px;
    }
    
    .calendar-class:focus {
        outline: 2px solid var(--primary-yellow);
        outline-offset: 1px;
    }
}

/* Tablet Adjustments */
@media (max-width: 1024px) {
    .hero {
        padding: 160px 0 60px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
    
    /* Tablet border adjustments */
    .hero,
    .about,
    .gallery,
    .classes,
    .contact {
        width: 97%;
        margin: 1.5rem auto;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px; /* Account for fixed header height */
}

/* Loading animation for images */
.gallery-item img,
.hero-image img,
.about-image img,
.class-image img {
    opacity: 0;
    animation: fadeIn 0.6s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Hover effects for interactive elements */
.nav-menu a,
.btn,
.gallery-item,
.class-card,
.contact-form {
    transition: var(--transition);
}

/* Focus states for accessibility */
.btn:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

/* Gallery Page Styles */
.gallery-header {
    padding: 200px 0 40px;
    background: var(--dark-secondary);
    text-align: center;
}

.gallery-header h1 {
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.gallery-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.full-gallery {
    padding: var(--section-padding);
    background: var(--primary-orange);
}

.gallery-masonry {
    column-count: 3;
    column-gap: 20px;
    padding: 20px 0;
}

.gallery-masonry .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    cursor: pointer;
    break-inside: avoid;
    margin-bottom: 20px;
    display: block;
}

.gallery-masonry .gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-masonry .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.gallery-masonry .gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox Styles */
.lightbox {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.hidden {
    display: none;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-lightbox:hover {
    color: var(--primary-yellow);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-btn {
    background: var(--primary-yellow);
    color: var(--text-dark);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.lightbox-btn:hover {
    background: var(--primary-orange);
    transform: scale(1.1);
}

/* Mobile Gallery Styles */
@media (max-width: 768px) {
    .gallery-masonry {
        column-count: 2;
        column-gap: 15px;
    }
    
    .gallery-masonry .gallery-item {
        margin-bottom: 15px;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-nav {
        padding: 0 10px;
    }
    
    .lightbox-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .gallery-masonry {
        column-count: 1;
        column-gap: 10px;
    }
    
    .gallery-masonry .gallery-item {
        margin-bottom: 10px;
    }
}

/* About Owner Page Specific Styles */
.about-owner {
    padding: 80px 0;
    background: var(--primary-orange);
}

.owner-intro {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.owner-photo {
    margin-bottom: 0;
}

.owner-image {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    object-fit: contain;
    object-position: center;
    border: 4px solid var(--primary-pink);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: var(--dark-secondary);
}

.owner-name {
    text-align: left;
}

.owner-name h2 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.owner-title {
    color: var(--primary-pink);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0;
}

.about-owner h2 {
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.about-owner p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.studio-story {
    padding: 80px 0;
    background: var(--dark-bg);
}

.studio-story h2 {
    color: var(--primary-yellow);
    margin-bottom: 2rem;
}

.studio-story p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.philosophy {
    padding: 80px 0;
    background: var(--primary-orange);
}

.philosophy h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.philosophy-item {
    background: var(--dark-secondary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.philosophy-item h3 {
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.philosophy-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.cta-section {
    padding: 20px 0 80px 0;
    background: var(--dark-bg);
    text-align: center;
}

.cta-section h2 {
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-info {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--dark-secondary);
    border-radius: 10px;
    border: 2px solid var(--primary-pink);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-info strong {
    color: var(--primary-yellow);
}

/* Classes Page Styles */
.classes-hero {
    background: linear-gradient(135deg, rgba(229, 136, 40, 0.8), rgba(255, 196, 35, 0.6));
    padding: 12rem 0 4rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.classes-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('gallery/studio_inside.webp') center/cover;
    opacity: 0.3;
    z-index: -1;
}

.classes-hero h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.classes-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.classes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.classes-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.classes-page-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.classes-page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.classes-page-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.classes-page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.classes-page-card:hover .classes-page-image img {
    transform: scale(1.05);
}

.classes-page-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.classes-page-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #E58828;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.classes-page-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.classes-page-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.classes-page-detail {
    display: flex;
    flex-direction: column;
}

.classes-page-detail-label {
    font-weight: 600;
    color: #E58828;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.classes-page-detail-value {
    color: #333;
    font-size: 0.95rem;
}

.classes-page-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #E58828;
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
}

.classes-page-booking {
    text-align: center;
    margin-top: auto;
    padding-top: 1.5rem;
}

.classes-page-booking-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #E58828, #FFC423);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.classes-page-booking-button:hover {
    background: linear-gradient(135deg, #FFC423, #E58828);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 136, 40, 0.3);
}

.classes-page-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    font-size: 1.1rem;
}

.classes-page-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #E58828;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

.classes-page-error {
    text-align: center;
    padding: 4rem 2rem;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 2rem 0;
}

.classes-page-back-to-home {
    text-align: center;
    margin: 3rem 0;
}

.classes-page-back-to-home a {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #E58828;
    text-decoration: none;
    border: 2px solid #E58828;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.classes-page-back-to-home a:hover {
    background: #E58828;
    color: white;
}

/* Studio Gallery Section */
.studio-gallery {
    padding: 80px 0 7px 0;
    background: var(--dark-bg);
}

.studio-gallery-content {
    text-align: center;
}

.studio-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.studio-photo-left,
.studio-photo-right {
    flex: 0 0 400px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.studio-photo-left:hover,
.studio-photo-right:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.studio-text-center {
    flex: 1;
    text-align: center;
}

.studio-text-center h2 {
    color: var(--primary-yellow);
    font-size: 1.4rem;
    font-style: italic;
    margin: 0;
    line-height: 1.4;
}

.studio-painting-below {
    max-width: 400px;
    margin: 0 auto 0.5rem auto;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.studio-painting-below:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.studio-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    transition: var(--transition);
}

.studio-photo-left:hover .studio-image,
.studio-photo-right:hover .studio-image,
.studio-painting-below:hover .studio-image {
    transform: scale(1.05);
}

/* Classes fallback notice */
.classes-fallback-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid var(--primary-yellow);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.classes-fallback-notice p {
    margin: 0;
    color: var(--primary-yellow);
    font-style: italic;
}

/* Utility classes for inline styles */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.classes-view-all {
    text-align: center;
    margin: 2rem 0;
}
/* Honeypot field - hidden from real users, visible to bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* ============================================
   Shop Page
   ============================================ */

.shop-section {
    padding: var(--section-padding);
    min-height: 50vh;
}

.shop-loading,
.shop-error,
.shop-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.shop-error a,
.shop-empty a {
    color: var(--primary-yellow);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.shop-card {
    background: var(--dark-tertiary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.shop-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--dark-secondary);
}

.shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-card:hover .shop-card-image img {
    transform: scale(1.05);
}

.shop-card-no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.shop-sold-out-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.shop-card.sold-out:hover {
    transform: none;
}

.shop-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.shop-card-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.shop-card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
    flex-grow: 1;
}

.shop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shop-card-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-yellow);
}

.shop-buy-btn {
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1rem;
}

.shop-buy-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.shop-sold-out-badge {
    background: var(--dark-secondary);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.shop-notice {
    margin-top: 30px;
    text-align: center;
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

@media (max-width: 480px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .shop-card-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* Classes fallback message (shown only if the class list can't load) */
.classes-fallback {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.classes-fallback a {
    color: var(--primary-yellow);
}

/* Ensure fallback text is readable on the dark classes section */
.classes .classes-fallback p {
    color: var(--text-muted);
}
