/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

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

/* === BASE === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #111111;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    display: block;
    height: 3px;
    background: #111111;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* === UTILITIES === */
.badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    color: #888888;
    margin-bottom: 1.2rem;
    background: #fafafa;
}

.badge-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    color: #888888;
    background: #fafafa;
}

.badge-dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #111111;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.7); }
}

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.wall-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* === HEADER / NAV === */
header {
    border-bottom: 1px solid #ebebeb;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 3px;
    z-index: 99;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111111;
    text-decoration: none;
}

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

.nav-link {
    padding: 0.5rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666666;
    text-decoration: none;
    border-radius: 999px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-family: inherit;
}

.nav-link:hover {
    color: #111111;
    background-color: #f5f5f5;
}

.nav-link-primary {
    background-color: #111111;
    color: #ffffff !important;
    border-color: #111111;
}

.nav-link-primary:hover {
    background-color: #333333 !important;
    border-color: #333333;
}

.nav-link-google {
    background-color: #ffffff;
    color: #111111 !important;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link-google:hover {
    background-color: #f9f9f9;
    border-color: #d0d0d0;
}

    /* === USER PROFILE === */
    .user-profile {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 6px 12px;
        border-radius: 999px;
        background: #f5f5f5;
        cursor: pointer;
        transition: all 0.2s ease;
        position: relative;
    }

    .user-profile:hover {
        background: #e9e9e9;
    }

    .profile-picture {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #ddd;
        object-fit: cover;
    }

    .profile-name {
        font-size: 0.875rem;
        font-weight: 500;
        color: #333;
    }

    .profile-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        min-width: 200px;
        display: none;
        z-index: 1000;
        margin-top: 8px;
    }

    .profile-dropdown.active {
        display: block;
    }

    .dropdown-header {
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
    }

    .dropdown-email {
        font-size: 0.75rem;
        color: #999;
        margin-top: 4px;
    }

    .dropdown-menu {
        list-style: none;
        padding: 8px 0;
        margin: 0;
    }

    .dropdown-item {
        padding: 10px 16px;
        color: #333;
        text-decoration: none;
        display: block;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .dropdown-item:hover {
        background: #f5f5f5;
    }

    .dropdown-logout {
        color: #d32f2f;
        border-top: 1px solid #f0f0f0;
    }
}

.subtitle {
    font-size: 0.9rem;
    color: #bbbbbb;
    font-weight: 400;
    letter-spacing: 0.03em;
}

/* === MAIN === */
main {
    padding: 5rem 2rem;
}

/* === HERO === */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 8rem;
}

.hero-text h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-text p {
    font-size: 1rem;
    color: #777777;
    margin-bottom: 2.5rem;
    line-height: 1.85;
}

.cta-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 999px;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background-color: #111111;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: #ffffff;
    color: #111111;
    border: 1.5px solid #e0e0e0;
}

.btn-secondary:hover {
    border-color: #111111;
    transform: translateY(-1px);
}

/* === HERO IMAGE === */
.hero-image {
    background-color: #f8f8f8;
    aspect-ratio: 4/3;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #ebebeb;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(#e4e4e4 1px, transparent 1px),
        linear-gradient(90deg, #e4e4e4 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
}

.hero-image span {
    position: relative;
    z-index: 1;
    font-size: 4rem;
}

.hero-image img {
    position: relative;
    z-index: 1;
    width: 85%;
    height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.08));
}

/* === FEATURE ILLUSTRATION === */
.feature-illustration {
    height: 120px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
}

.feature-illustration img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* === DROP ZONE ILLUSTRATION === */
.drop-zone-illustration {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 1.25rem;
    opacity: 0.9;
}

/* === SECTION LABEL === */
.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    color: #bbbbbb;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-label::before,
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ebebeb;
}

/* === FEATURES === */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 8rem 0;
    padding: 4rem 0;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
}

.feature {
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.25s ease;
    background: #ffffff;
}

.feature:hover {
    border-color: #dddddd;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.feature-icon {
    width: 42px;
    height: 42px;
    background: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}

.feature h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature p {
    color: #aaaaaa;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* === GALLERY PREVIEW === */
.gallery-preview {
    margin-top: 8rem;
    text-align: center;
}

.gallery-preview h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.gallery-preview > p {
    color: #aaaaaa;
    margin-bottom: 3rem;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-item {
    aspect-ratio: 1;
    background: linear-gradient(90deg, #f5f5f5 25%, #ebebeb 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite;
}

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

/* === FOOTER === */
footer {
    border-top: 1px solid #ebebeb;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #cccccc;
    font-size: 0.82rem;
}

footer p {
    margin: 0;
}

footer a {
    color: #666666;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #111111;
}

/* === WALL HEADER === */
.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

header.wall-header {
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

header.wall-header h1 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0;
}

.header-stats {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f5f5f5;
    border: 1px solid #ebebeb;
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
}

.stat-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111111;
}

.stat-label {
    font-size: 0.7rem;
    color: #aaaaaa;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.back-btn {
    background-color: #ffffff;
    border: 1.5px solid #e0e0e0;
    padding: 0.55rem 1.2rem;
    cursor: pointer;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
    color: #666666;
    font-family: inherit;
}

.back-btn:hover {
    border-color: #111111;
    color: #111111;
}

/* === WALL HERO === */
.hero-wall {
    text-align: center;
    margin-bottom: 4rem;
    padding: 4rem 0 3rem;
    border-bottom: 1px solid #ebebeb;
}

.hero-wall h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero-wall p {
    font-size: 1rem;
    color: #888888;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.85;
}

.hero-wall-illustration {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.07));
}

.story-illustration {
    width: 260px;
    height: auto;
    display: block;
    margin: 2.5rem auto 0;
    opacity: 0.9;
}

.preview-success-illustration {
    width: 140px;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
}

/* === WALL GRID === */
.wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(90deg, #f5f5f5 25%, #ebebeb 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-item:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    animation-play-state: paused;
}

.photo-placeholder {
    font-size: 1.8rem;
    color: #d0d0d0;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.photo-item:hover .photo-placeholder {
    color: #aaaaaa;
    transform: scale(1.1);
}

.photo-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0.85rem 0.85rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: white;
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.25s ease;
    letter-spacing: 0.02em;
}

.photo-item:hover .photo-meta {
    opacity: 1;
}

/* === WALL UPLOAD SECTION === */
.upload-section {
    text-align: center;
    padding: 4rem 2rem;
    border: 1.5px dashed #d8d8d8;
    border-radius: 16px;
    margin: 3rem 0;
    transition: all 0.3s ease;
    background: #fafafa;
}

.upload-section:hover {
    border-color: #999999;
    background-color: #f5f5f5;
}

.upload-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.upload-section p {
    color: #aaaaaa;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.upload-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: block;
}

.upload-btn {
    background-color: #111111;
    color: #ffffff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.upload-btn:hover {
    background-color: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === MOTIVATION SECTION === */
.motivation-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid #ebebeb;
}

.motivation-section h3 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.motivation-quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.quote-block {
    padding: 2rem;
    background-color: #fafafa;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    position: relative;
    transition: all 0.25s ease;
}

.quote-block:hover {
    border-color: #cccccc;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.quote-block::before {
    content: '\201C';
    position: absolute;
    top: 0.4rem;
    left: 1.4rem;
    font-size: 3.5rem;
    color: #e5e5e5;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
}

.quote {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #666666;
    font-weight: 400;
    font-style: italic;
    padding-top: 1.5rem;
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #aaaaaa;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #888888;
}

/* === LOADING === */
.scroll-sentinel {
    height: 1px;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    padding: 3rem 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-container.active {
    opacity: 1;
    visibility: visible;
}

.loading-container p {
    margin-top: 1rem;
    color: #cccccc;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.loader {
    width: 32px;
    height: 32px;
    border: 2px solid #f0f0f0;
    border-top: 2px solid #111111;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 0.7s linear infinite;
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* === UPLOAD PAGE === */
.upload-page-container {
    max-width: 540px;
    margin: 0 auto;
    padding: 3rem 2rem;
    animation: fadeInUp 0.4s ease;
}

.upload-page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.upload-page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.upload-page-header p {
    font-size: 0.9rem;
    color: #aaaaaa;
    line-height: 1.6;
}

.upload-form {
    margin-bottom: 2rem;
}

.drop-zone {
    border: 1.5px dashed #d0d0d0;
    border-radius: 16px;
    padding: 3.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background-color: #fafafa;
}

.drop-zone.active {
    border-color: #111111;
    background-color: #f5f5f5;
    border-style: solid;
}

.drop-zone:hover {
    border-color: #999999;
    background-color: #f5f5f5;
}

.drop-zone-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.drop-zone-text h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #111111;
    letter-spacing: -0.01em;
}

.drop-zone-text p {
    color: #bbbbbb;
    font-size: 0.85rem;
    margin: 0;
}

.file-input {
    display: none;
}

.upload-button {
    background-color: #111111;
    color: #ffffff;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 1rem;
    letter-spacing: 0.01em;
}

.upload-button:hover:not(:disabled) {
    background-color: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.upload-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.upload-status {
    text-align: center;
    padding: 0.85rem 1rem;
    margin-top: 1rem;
    border-radius: 10px;
    display: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.upload-status.show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.upload-status.loading {
    background-color: #f5f5f5;
    color: #888888;
}

.upload-status.success {
    background-color: #f5f5f5;
    color: #111111;
}

.upload-status.error {
    background-color: #fff3f3;
    color: #cc0000;
    border: 1px solid #ffdada;
}

.preview-container {
    margin-top: 3rem;
    text-align: center;
    display: none;
    animation: fadeInUp 0.4s ease;
}

.preview-container.show {
    display: block;
}

.preview-container h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.preview-image {
    max-width: 100%;
    max-height: 380px;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.preview-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.preview-actions button {
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-upload-again {
    background-color: #111111;
    color: #ffffff;
}

.btn-upload-again:hover {
    background-color: #333333;
    transform: translateY(-1px);
}

.btn-view-wall {
    background-color: #ffffff;
    color: #111111;
    border: 1.5px solid #e0e0e0 !important;
}

.btn-view-wall:hover {
    border-color: #111111 !important;
    transform: translateY(-1px);
}

.file-name {
    color: #aaaaaa;
    font-size: 0.82rem;
    margin-top: 0.75rem;
    text-align: center;
}

.image-url {
    word-break: break-all;
    background-color: #f5f5f5;
    border: 1px solid #ebebeb;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.78rem;
    color: #aaaaaa;
    margin-top: 1rem;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Consolas', monospace;
    text-align: left;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .wall-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .motivation-quotes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }

    main { padding: 2.5rem 1rem; }

    .container {
        padding: 0;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .hero-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-image {
        min-height: 300px;
        aspect-ratio: auto;
    }

    .hero-image img {
        width: 90%;
        height: 90%;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
        margin: 3rem 0;
    }

    .feature {
        text-align: left;
    }

    .feature h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .feature p {
        font-size: 0.9rem;
        color: #666;
    }

    .feature-illustration {
        height: 80px;
        margin-bottom: 1rem;
    }

    .gallery-preview {
        margin: 3rem 0;
    }

    .gallery-preview h2 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin: 1.5rem 0;
    }

    .gallery-item {
        aspect-ratio: 1;
        background: linear-gradient(135deg, #f5f5f5, #ebebeb);
        border-radius: 8px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.75rem 1.5rem;
    }

    header.wall-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1.25rem 1.5rem;
    }

    .header-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .header-stats {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .wall-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .hero-wall h2 { font-size: 2rem; }
    .hero-wall p { font-size: 0.95rem; }

    .motivation-quotes {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quote-block { padding: 1.5rem; }

    footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 2rem;
        font-size: 0.85rem;
    }

    .nav { 
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-logo {
        font-size: 1.1rem;
        flex-basis: 100%;
    }

    .nav-links { 
        gap: 0.25rem;
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.6rem; }
    .hero-text h2 { font-size: 1.5rem; }

    main { padding: 1.5rem 0.75rem; }

    .container {
        padding: 0;
    }

    .hero {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .hero-image {
        display: none;
    }

    .hero-text h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        line-height: 1.6;
    }

    .cta-buttons {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.8rem;
    }

    .features {
        gap: 1.5rem;
        padding: 1.5rem 0;
        margin: 2rem 0;
    }

    .feature {
        padding: 0;
    }

    .feature h3 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
    }

    .feature p {
        font-size: 0.85rem;
    }

    .feature-illustration {
        height: 70px;
        margin-bottom: 0.75rem;
    }

    .gallery-preview {
        margin: 2rem 0 1rem 0;
    }

    .gallery-preview h2 {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }

    .gallery-preview > p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
        margin-bottom: 1rem;
    }

    .gallery-item {
        aspect-ratio: 1;
        border-radius: 6px;
    }

    .gallery-grid + .btn {
        width: 100%;
        justify-content: center;
    }

    .wall-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
    }

    .upload-page-container { padding: 1.5rem 0.75rem; }
    .upload-page-header h1 { font-size: 1.5rem; }
    .upload-page-header p { font-size: 0.9rem; }
    .drop-zone { padding: 2rem 0.75rem; }

    .preview-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .preview-actions button { 
        width: 100%;
        font-size: 0.85rem;
    }

    /* Mobile navigation improvements */
    .nav {
        padding: 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-logo {
        font-size: 1rem;
        flex-basis: 100%;
        margin-bottom: 0.25rem;
    }

    .nav-links {
        gap: 0.2rem;
        flex-basis: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .nav-link {
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
    }

    .nav-link-primary {
        padding: 0.35rem 0.8rem;
        font-size: 0.7rem;
    }

    header.wall-header .header-content h1 {
        font-size: 1.3rem;
    }

    .header-stats {
        display: flex;
        gap: 0.5rem;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }

    .stat {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .stat-number {
        font-weight: 600;
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.6rem;
        color: #999;
    }

    .back-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .wall-container {
        padding: 1.5rem 0.75rem;
    }

    .photo-meta {
        font-size: 0.7rem;
    }

    .upload-section {
        padding: 1.5rem 1rem;
    }

    .upload-section h3 {
        font-size: 1.2rem;
    }

    .upload-section p {
        font-size: 0.88rem;
    }

    footer {
        padding: 1.5rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }
}

/* Extra small devices (< 360px) */
@media (max-width: 360px) {
    main { padding: 2rem 0.75rem; }
    .wall-container { padding: 1.5rem 0.75rem; }
    .wall-grid { gap: 0.3rem; }
    .gallery-grid { gap: 0.3rem; }
    h1 { font-size: 1.5rem; }
    .nav-link { padding: 0.4rem 0.6rem; font-size: 0.75rem; }
}
