/* The Balloon Attic - Main Styles */

/* CSS Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #0f172a;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* CSS Custom Properties - Design System */
:root {
    /* Color Palette - Based on The Balloon Attic brand colors */
    --color-primary-pink: #f2d5d8;
    --color-secondary-mint: #c5e5d3;
    --color-accent-purple: #b084a6;
    --color-accent-lavender: #d4c5d9;
    --color-soft-peach: #f5c2b8;
    --color-soft-yellow: #f5e6a8;
    --color-light-blue: #b8d5e8;
    --color-cream: #f8f5f0;
    
    /* Text colors */
    --color-text-primary: #5a4b56;
    --color-text-secondary: #7a6b76;
    --color-text-muted: #9a8b96;

    /* Semantic Colors */
    --color-background: var(--color-primary-pink);
    --color-foreground: var(--color-text-primary);
    --color-card: var(--color-cream);
    --color-card-foreground: var(--color-text-primary);
    --color-muted: var(--color-accent-lavender);
    --color-muted-foreground: var(--color-text-secondary);
    --color-accent: var(--color-accent-purple);
    --color-accent-foreground: #ffffff;
    --color-border: var(--color-accent-lavender);

    /* Typography */
    --font-script: 'Tangerine', cursive;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    --spacing-5xl: 8rem;

    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Transitions */
    --transition-fast: 150ms ease-out;
    --transition-normal: 250ms ease-out;
    --transition-slow: 350ms ease-out;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Base Styles */
section {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-background);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
    opacity: 0;
    transform: scale(0.9);
    animation: heroFadeIn 1s ease-out 0.8s forwards;
}

.hero-title {
    font-family: var(--font-script);
    font-size: clamp(3rem, 8vw, 9rem);
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 0.5rem;
    margin-top: 0;
    line-height: 0.9;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 300;
    color: var(--color-muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Attic House Styles - Based on provided snippet */
.attic-house {
    position: relative;
    margin: 0 auto 2rem;
    opacity: 0;
    animation: houseFadeIn 1s ease-out 0.5s forwards;
}

/* Responsive sizing for the drawing */
.attic-svg {
    width: min(320px, 80vw);
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Subtle line style to match the logo vibe */
.stroke { 
    stroke: var(--color-text-primary); 
    stroke-width: 3.25; 
    stroke-linecap: round; 
    stroke-linejoin: round; 
    fill: none; 
}

.fill-glass { 
    fill: var(--color-cream); 
    stroke: var(--color-text-primary); 
    stroke-width: 2.25; 
}

.heart { 
    fill: var(--color-accent-purple); 
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.08)); 
}

/* Idle micro‑animation */
@keyframes heartbeat { 
    0%, 100% { transform: scale(1); } 
    50% { transform: scale(1.07); } 
}

.beat { 
    transform-origin: center; 
    animation: heartbeat 2.6s ease-in-out infinite; 
}

/* Hover accent */
.attic-house:hover .heart { 
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.12)); 
}

@keyframes houseFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0;
    animation: scrollIndicatorFadeIn 1s ease-out 1.5s forwards;
}

.scroll-wheel {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid var(--color-muted-foreground);
    border-radius: 1.25rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem;
}

.scroll-dot {
    width: 0.375rem;
    height: 0.375rem;
    background-color: var(--color-muted-foreground);
    border-radius: 50%;
    animation: scrollDot 2s ease-in-out infinite;
}

/* Gallery Section */
.gallery-section {
    background-color: var(--color-accent-lavender);
    color: var(--color-card-foreground);
}

/* Gallery Section - Enhanced with Single & Grid Views */
.gallery-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
}

/* Gallery Controls */
.gallery-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.grid-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--color-accent-purple);
    border-radius: var(--radius-xl);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    -webkit-tap-highlight-color: transparent;
}

.grid-toggle-btn svg {
    width: 28px;
    height: 28px;
    color: var(--color-accent-purple);
    transition: all 0.3s ease;
}

.grid-toggle-btn:hover {
    background: var(--color-accent-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.grid-toggle-btn:hover svg {
    color: white;
    transform: scale(1.1);
}

.grid-toggle-btn:active {
    transform: translateY(0) scale(0.98);
}

@media (max-width: 768px) {
    .grid-toggle-btn {
        max-width: 100%;
        padding: 0.875rem;
    }
    
    .grid-toggle-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Grid Modal */
.grid-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    overflow-y: auto;
    opacity: 0;
    -webkit-transition: background-color 0.4s ease, opacity 0.4s ease;
    transition: background-color 0.4s ease, opacity 0.4s ease;
    /* Safari: Apply blur immediately to avoid transition bugs */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.grid-modal.active {
    display: flex;
    -webkit-box-align: start;
    align-items: flex-start;
    -webkit-box-pack: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.grid-modal.visible {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.85);
}

.grid-modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    background: var(--color-cream);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    padding-top: 3.5rem;
    box-shadow: var(--shadow-2xl);
    -webkit-transform: scale(0.9) translateY(30px);
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-modal.visible .grid-modal-content {
    -webkit-transform: scale(1) translateY(0);
    transform: scale(1) translateY(0);
    opacity: 1;
}

.grid-modal.closing .grid-modal-content {
    -webkit-transform: scale(0.9) translateY(30px);
    transform: scale(0.9) translateY(30px);
    opacity: 0;
}

.grid-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(176, 132, 166, 0.1);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-accent-purple);
    -webkit-tap-highlight-color: transparent;
    z-index: 10;
}

.grid-modal-close:hover {
    background: var(--color-accent-purple);
    color: white;
    transform: scale(1.1);
}

.grid-modal-close:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .grid-modal.active {
        padding: 2rem 1rem;
    }
    
    .grid-modal-content {
        padding: 1.5rem;
        padding-top: 3rem;
        border-radius: var(--radius-xl);
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .grid-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .grid-modal.active {
        padding: 2.5rem 1rem;
    }
    
    .grid-modal-content {
        max-height: 80vh;
        padding: 1rem;
        padding-top: 2.5rem;
    }
}

/* Legacy view-toggle-btn styles - DEPRECATED */
.view-toggle-btn {
    display: none;
}

/* Single Image View */
.single-view {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.single-view.transitioning {
    opacity: 0;
}

.single-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.single-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 700px;
    position: relative;
}

.single-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 500px;
    height: 70vh;
    max-height: 700px;
}

.single-image-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    position: relative;
    /* Safari-friendly sizing */
    max-width: 100%;
    max-height: 100%;
}

/* Loading state with shimmer animation */
.single-image-item.loading {
    width: 500px;
    max-width: 90%;
    height: 400px;
    background: linear-gradient(
        90deg,
        var(--color-card) 25%,
        var(--color-accent-lavender) 50%,
        var(--color-card) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    -webkit-animation: shimmer 1.5s infinite;
}

.single-image-item.loaded {
    width: auto;
    height: auto;
}

.single-image-item.loading img {
    opacity: 0;
}

.single-image-item.loaded img {
    opacity: 1;
    animation: fadeInImage 0.5s ease-out;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@-webkit-keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes fadeInImage {
    from { opacity: 0; -webkit-transform: scale(0.98); transform: scale(0.98); }
    to { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
}

@-webkit-keyframes fadeInImage {
    from { opacity: 0; -webkit-transform: scale(0.98); transform: scale(0.98); }
    to { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
}

.single-image-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.single-image-item:active {
    transform: scale(0.98);
}

.single-image-item img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 70vh;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    object-fit: contain;
    transition: opacity 0.4s ease;
    border-radius: var(--radius-2xl);
}

@media (max-width: 768px) {
    .single-wrapper {
        gap: 1rem;
    }
    
    .single-viewport {
        max-width: calc(100vw - 120px);
    }
    
    .single-image-item {
        max-width: 90vw;
    }
    
    .single-image-item.loading {
        width: 90vw;
        max-width: 400px;
        height: 350px;
    }
    
    .single-image-container {
        min-height: 350px;
        height: 50vh;
        max-height: 500px;
    }
    
    .single-image-item img {
        max-height: 50vh;
    }
}

@media (max-width: 480px) {
    .single-wrapper {
        gap: 0.5rem;
    }
    
    .single-viewport {
        max-width: calc(100vw - 80px);
    }
    
    .single-image-item {
        max-width: 95vw;
    }
    
    .single-image-item.loading {
        width: 85vw;
        max-width: 320px;
        height: 300px;
    }
    
    .single-image-container {
        min-height: 280px;
        height: 45vh;
        max-height: 400px;
    }
    
    .single-image-item img {
        max-height: 45vh;
        border-radius: var(--radius-lg);
    }
}

/* Grid View (inside modal) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.grid-item {
    background-color: var(--color-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    position: relative;
    /* Safari-compatible aspect ratio using padding-bottom fallback */
    aspect-ratio: 3/4;
}

/* Fallback for Safari versions that don't support aspect-ratio well */
@supports not (aspect-ratio: 3/4) {
    .grid-item {
        height: 0;
        padding-bottom: 133.33%; /* 4/3 ratio */
    }
    
    .grid-item img {
        position: absolute;
        top: 0;
        left: 0;
    }
}

/* Loading state for grid items */
.grid-item.loading {
    background: linear-gradient(
        90deg,
        var(--color-card) 25%,
        var(--color-accent-lavender) 50%,
        var(--color-card) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.grid-item.loading img {
    opacity: 0;
}

.grid-item.loaded img {
    opacity: 1;
}

.grid-item.visible {
    -webkit-animation: gridItemFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation: gridItemFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.grid-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.grid-item:active {
    transform: translateY(-2px) scale(0.98);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    transition: transform 0.3s ease, opacity 0.4s ease;
    /* Ensure image fills container in Safari */
    min-height: 100%;
    min-width: 100%;
}

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

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }
    
    .grid-item {
        border-radius: var(--radius-md);
    }
}

/* Legacy gallery wrapper - kept for backward compatibility */
.gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Legacy gallery styles - DEPRECATED (now using single/grid views) */
/*
.gallery-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    touch-action: pan-y pinch-zoom;
    width: calc(4 * 200px + 3 * 16px);
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    width: calc(7 * (200px + 16px));
    position: relative;
}

.gallery-track:active {
    cursor: grabbing;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    width: 200px;
    height: 356px;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .gallery-item {
        width: 160px;
        height: 284px;
    }
    
    .gallery-wrapper {
        gap: 0.5rem;
    }
    
    .gallery-track {
        gap: 12px;
        width: calc(7 * (160px + 12px));
    }
    
    .gallery-viewport {
        width: calc(4 * 160px + 3 * 12px);
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 140px;
        height: 249px;
    }
    
    .gallery-viewport {
        width: calc(3 * 140px + 2 * 12px);
    }
    
    .gallery-track {
        width: calc(7 * (140px + 12px));
    }
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-2xl);
}
*/

/* Legacy gallery-item styles - DEPRECATED */
/*
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.gallery-item:hover img {
    transform: scale(1.1);
}
*/

/* Gallery Navigation */
.gallery-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    color: var(--color-foreground);
    z-index: 10;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-nav:active {
    transform: scale(0.95);
}

.gallery-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.gallery-nav:disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-nav svg {
        width: 20px;
        height: 20px;
    }
}

/* Gallery Indicators */
.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.gallery-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(176, 132, 166, 0.3);
    cursor: pointer;
    transition: all var(--transition-normal);
    -webkit-tap-highlight-color: transparent;
}

.gallery-indicator.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

.gallery-indicator:hover {
    background: rgba(176, 132, 166, 0.6);
}

/* Gallery Loading */
.gallery-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 356px;
    color: var(--color-muted-foreground);
    font-style: italic;
}

@media (max-width: 768px) {
    .gallery-loading {
        min-width: 160px;
        height: 284px;
    }
}

@media (max-width: 480px) {
    .gallery-loading {
        min-width: 140px;
        height: 249px;
    }
}

/* About Section */
.about-section {
    background-color: var(--color-accent-lavender);
    color: var(--color-foreground);
}

.about-card {
    background-color: var(--color-card);
    color: var(--color-card-foreground);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    text-align: center;
    font-weight: 400;
}

/* Contact Section */
.contact-section {
    background-color: var(--color-accent-purple);
    color: #ffffff;
}

.contact-card {
    background-color: var(--color-cream);
    color: var(--color-foreground);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-text {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    text-align: center;
    font-weight: 400;
}

.instagram-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--color-accent);
    color: var(--color-accent-foreground);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.125rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.instagram-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-xl);
    background-color: #8b6a85;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 4rem;
    }
}

.section-title {
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: inherit;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--color-muted-foreground);
    font-weight: 400;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background-color: var(--color-cream);
    border-top: 1px solid var(--color-border);
}

.footer-text {
    text-align: center;
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
    font-family: var(--font-sans);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 1rem;
    }
    
    .about-card,
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .instagram-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .attic-svg {
        width: min(280px, 85vw);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .balloons-container,
    .scroll-indicator {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}