/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ===== COLOR VARIABLES ===== */
:root {
    /* Creme White Color Scheme */
    --primary-cream: #FDFCF7;
    --secondary-cream: #F7F5F0;
    --accent-cream: #F0EDE6;
    --warm-beige: #E8E3D8;
    --soft-taupe: #D4CFC4;
    --dark-taupe: #B8B2A7;
    --charcoal: #2C2C2C;
    --soft-black: #1A1A1A;
    --gold-accent: #C9A961;
    --warm-gold: #B8964A;
    --text-primary: #2C2C2C;
    --text-secondary: #5A5A5A;
    --text-light: #8A8A8A;

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-max-width: 1400px;
    --border-radius: 8px;

    /* Shadows */
    --shadow-light: 0 2px 20px rgba(44, 44, 44, 0.08);
    --shadow-medium: 0 8px 40px rgba(44, 44, 44, 0.12);
    --shadow-heavy: 0 20px 60px rgba(44, 44, 44, 0.15);
}

/* ===== TYPOGRAPHY ===== */
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-cream);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-accent), var(--warm-gold));
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== NAVIGATION ===== */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 252, 247, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--accent-cream);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary-cream);
    border-right: 1px solid var(--accent-cream);
    z-index: 1100;
    transition: left 0.3s ease;
    padding: 2rem 0;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid var(--accent-cream);
    margin-bottom: 2rem;
}

.mobile-menu-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-serif);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--gold-accent);
    background: var(--accent-cream);
    border-left-color: var(--gold-accent);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Mobile toggle animation */
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--section-padding);
    padding-left: 2rem;
    padding-right: 2rem;
    background: linear-gradient(135deg, var(--primary-cream) 0%, var(--secondary-cream) 100%);
}

.hero-content {
    padding-right: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--gold-accent), var(--warm-gold));
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.hero-image {
    position: relative;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-cream), var(--warm-beige));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(201, 169, 97, 0.1) 100%);
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: var(--gold-accent);
    transform: scale(1.2);
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: var(--section-padding);
    background: var(--secondary-cream);
}

.gallery-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--soft-taupe);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: var(--gold-accent);
    border-color: var(--gold-accent);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: var(--primary-cream);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.gallery-item-image {
    width: 100%;
    height: 300px;
    background: var(--accent-cream);
    position: relative;
    overflow: hidden;
}

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

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

.gallery-item-info {
    padding: 1.5rem;
}

.gallery-item-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.gallery-item-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.gallery-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
    color: var(--text-light);
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--accent-cream);
    border-top: 3px solid var(--gold-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== DOWNLOADS SECTION ===== */
.downloads-section {
    padding: var(--section-padding);
    background: white;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.download-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.download-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--gold-accent);
}

/* Download Item Header */
.download-item-icon {
    background: linear-gradient(135deg, var(--gold-accent), var(--warm-gold));
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-item-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.file-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.file-type {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Download Item Content */
.download-item-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.download-item-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-family: var(--font-display);
}

.download-item-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.download-item-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.download-item-category {
    background: var(--accent-cream);
    color: var(--charcoal);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.download-item-size {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.download-item-price {
    margin-bottom: 1rem;
}

.price-free {
    color: #22c55e;
    font-weight: 600;
    font-size: 1.1rem;
}

.price-premium {
    color: var(--gold-accent);
    font-weight: 600;
    font-size: 1.1rem;
}

.price-custom {
    color: var(--charcoal);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Download Actions */
.download-item-actions {
    padding: 0 1.5rem 1.5rem;
}

.download-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--gold-accent), var(--warm-gold));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
    background: linear-gradient(135deg, var(--warm-gold), var(--gold-accent));
}

.download-btn:active {
    transform: translateY(0);
}

/* Premium and Custom Price Buttons */
.download-btn[data-price="premium"] {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.download-btn[data-price="premium"]:hover {
    background: linear-gradient(135deg, #a855f7, #8b5cf6);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.download-btn[data-price="custom"] {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.download-btn[data-price="custom"]:hover {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Old download thumbnail styles removed - now using icon-based design */

.download-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-content {
    padding: 1.5rem;
}

.download-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.download-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.download-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.download-size {
    font-size: 0.875rem;
    color: var(--text-light);
}

.download-price {
    font-weight: 600;
    color: var(--gold-accent);
    font-size: 1.1rem;
}

.download-price.free {
    color: var(--success);
}

.download-actions {
    display: flex;
    gap: 0.75rem;
}

.download-btn {
    flex: 1;
    background: var(--gold-accent);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.3);
}

.download-btn.secondary {
    background: transparent;
    color: var(--gold-accent);
    border: 2px solid var(--gold-accent);
}

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

.download-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.category-btn:hover,
.category-btn.active {
    background: var(--gold-accent);
    border-color: var(--gold-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.downloads-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
    color: var(--text-light);
}

/* Downloads Responsive */
@media (max-width: 768px) {
    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .download-item {
        margin: 0;
        border-radius: 12px;
    }

    .download-item-icon {
        padding: 1.5rem;
    }

    .file-icon {
        font-size: 2.5rem;
    }

    .download-item-info {
        padding: 1rem;
    }

    .download-item-actions {
        padding: 0 1rem 1rem;
    }

    .download-item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .download-categories {
        gap: 0.5rem;
    }
}

/* ===== YOUTUBE EMBEDS ===== */
.youtube-embed {
    margin: 1rem 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* YouTube embeds in modal descriptions */
.modal-description .youtube-embed {
    margin: 1.5rem 0;
}

/* YouTube embeds in download descriptions */
.download-description .youtube-embed {
    margin: 1rem 0;
    padding-bottom: 45%; /* Smaller aspect ratio for cards */
}

/* YouTube embeds in gallery descriptions */
.gallery-item-description .youtube-embed {
    margin: 1rem 0;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: var(--section-padding);
    background: var(--primary-cream);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
}

.about-text .section-title::after {
    left: 0;
    transform: none;
}

.about-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-accent);
    font-family: var(--font-serif);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.about-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-cream), var(--warm-beige));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: var(--section-padding);
    background: var(--secondary-cream);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.contact-form {
    background: var(--primary-cream);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--accent-cream);
    border-radius: var(--border-radius);
    background: var(--primary-cream);
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gold-accent), var(--warm-gold));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===== SPAM PROTECTION ===== */
.spam-protection {
    background: var(--accent-cream);
    border: 1px solid var(--warm-gold);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.spam-protection .form-label {
    color: var(--charcoal);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.math-captcha {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.math-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 2px solid var(--gold-accent);
    min-width: 120px;
    text-align: center;
}

.math-captcha input[type="number"] {
    max-width: 100px;
    padding: 0.75rem;
    border: 2px solid var(--gold-accent);
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    background: white;
}

.math-captcha input[type="number"]:focus {
    outline: none;
    border-color: var(--warm-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
}

@media (max-width: 768px) {
    .math-captcha {
        flex-direction: column;
        align-items: stretch;
    }

    .math-question {
        text-align: center;
    }

    .math-captcha input[type="number"] {
        max-width: none;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--charcoal);
    color: var(--accent-cream);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--gold-accent);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--accent-cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-accent);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-link {
    color: var(--accent-cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--gold-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--soft-taupe);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== GALLERY MODAL ===== */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--primary-cream);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow-heavy);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-image-container {
    flex: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--charcoal);
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-prev {
    left: 1rem;
}

.modal-next {
    right: 1rem;
}

.modal-info {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
}

.modal-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.modal-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-category,
.modal-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.modal-category {
    background: var(--accent-cream);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        padding-right: 0;
    }

    .about-content,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-content {
        flex-direction: column;
        max-height: 95vh;
    }

    .modal-image-container {
        flex: none;
        height: 60vh;
    }

    .modal-info {
        flex: none;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .gallery-categories {
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===== LOADING STATES ===== */
.image-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
    padding: 5rem 0;
    background: var(--background);
}

.reviews-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    position: relative;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: 500;
    color: var(--text-primary);
}

.review-rating {
    display: flex;
    gap: 0.2rem;
}

.star-filled {
    color: var(--gold-accent);
}

.star-empty {
    color: var(--text-light);
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Add Review Form */
.add-review-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    height: fit-content;
}

.add-review-section h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.review-form .form-group {
    margin-bottom: 1.5rem;
}

.review-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.review-form input,
.review-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--background);
}

.review-form input:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 0.25rem;
    margin: 0.5rem 0;
}

.star {
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star:hover,
.star.selected {
    color: var(--gold-accent);
    transform: scale(1.1);
}

.submit-button {
    background: var(--gold-accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

.submit-button:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.3);
}

/* Reviews Loading */
.reviews-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reviews-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FOOTER LEGAL LINKS ===== */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--gold-accent);
}

.legal-separator {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ===== LEGAL MODALS ===== */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.legal-modal.active {
    display: flex;
}

.legal-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.legal-content {
    padding: 2rem;
}

.legal-content h3 {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 2rem 0 1rem 0;
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem 0;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-content a {
    color: var(--gold-accent);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Mobile Responsive for Legal */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .legal-modal {
        padding: 1rem;
    }

    .legal-content {
        padding: 1.5rem;
    }

    .legal-modal-content {
        max-height: 90vh;
    }
}

/* ===== FLICKR SECTION ===== */
.flickr-section {
    padding: 5rem 0;
    background: white;
}

.flickr-content {
    margin-top: 3rem;
}

.flickr-header {
    margin-bottom: 3rem;
}

.flickr-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--background);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-accent), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.profile-info p {
    color: var(--text-secondary);
    margin: 0;
}

.follow-btn {
    background: linear-gradient(135deg, #FF0084, #FF006E);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 132, 0.3);
}

.flickr-grid {
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Album Card Styles */
.flickr-album-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid var(--border);
}

.flickr-album-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.album-cover {
    position: relative;
    overflow: hidden;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.flickr-album-card:hover .album-cover img {
    transform: scale(1.1);
}

.album-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.flickr-album-card:hover .album-cover-image {
    transform: scale(1.05);
}

.album-cover-gradient {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-cover-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-icon {
    font-size: 4rem;
    opacity: 0.3;
    position: absolute;
    z-index: 1;
    transition: all 0.3s ease;
}

.flickr-album-card:hover .album-icon {
    opacity: 0.6;
    transform: scale(1.1);
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flickr-album-card:hover .album-overlay {
    opacity: 1;
}

.album-play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--charcoal);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.flickr-album-card:hover .album-play-icon {
    transform: scale(1);
}

.album-info {
    padding: 1.5rem;
}

.album-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.album-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

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

.album-link {
    color: var(--gold-accent);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.flickr-album-card:hover .album-link {
    color: var(--warm-gold);
}

.flickr-photo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--background);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.flickr-photo:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.flickr-photo img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.flickr-photo:hover img {
    transform: scale(1.05);
}

.flickr-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.flickr-photo:hover .flickr-photo-overlay {
    transform: translateY(0);
}

.flickr-photo-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.flickr-photo-views {
    font-size: 0.8rem;
    opacity: 0.8;
}

.flickr-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
    color: var(--text-secondary);
}

.flickr-footer {
    text-align: center;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-accent);
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 2rem;
    border: 2px solid var(--gold-accent);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: var(--gold-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.3);
}

/* Flickr Responsive */
@media (max-width: 768px) {
    .flickr-profile {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .flickr-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .flickr-photo img {
        height: 200px;
    }

    /* Album card responsive styles */
    .flickr-album-card {
        margin-bottom: 1rem;
    }

    .album-cover {
        height: 220px;
    }

    .album-info {
        padding: 1rem;
    }

    .album-title {
        font-size: 1.1rem;
    }

    .album-play-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold-accent), var(--warm-gold));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--warm-gold), var(--gold-accent));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
}

.scroll-icon {
    line-height: 1;
    display: block;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}