:root {
    --bg-light: #edede9;
    --bg-cream: #f5ebe0;
    --accent-tan: #d6ccc2;
    --accent-sepia: #e3d5ca;
    --accent-bold: #d5bdaf;
    --text-dark: #3a322b;
    --text-muted: #6b5e52;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, var(--bg-cream) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, var(--accent-tan) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Noise texture effect - optimized */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.02;
    z-index: 9999;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)"/%3E%3C/svg%3E');
}

/* Typography styles */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.pre-title {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-bold);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.accent-text {
    font-style: italic;
    color: var(--accent-bold);
    background: linear-gradient(120deg, var(--accent-bold), var(--accent-tan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 1000;
}

.glass-nav {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 8px 32px 0 rgba(107, 94, 82, 0.1);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--text-dark);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-bold);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15vh 10% 5vh;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-desc {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.hero-image-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-orb {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--accent-sepia) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

.hero-img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-bold);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(213, 189, 175, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(213, 189, 175, 0.4);
}

.btn-secondary {
    border: 1px solid var(--accent-bold);
    color: var(--accent-bold);
}

.btn-secondary:hover {
    background: var(--accent-bold);
    color: var(--white);
    transform: translateY(-5px);
}

.full-width {
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
}

/* Wish Wall Section */
.gallery-preview {
    padding: 10vh 10%;
    background: var(--bg-light);
    text-align: center;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.preview-item {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    background: var(--glass);
    border: 1px solid var(--glass-border);
}

.preview-item:hover {
    transform: translateY(-5px);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-cta,
.view-all-wishes {
    text-align: center;
    margin-top: 2.5rem;
}

/* Carousel Logic - Unused but kept for reference if needed elsewhere */
/* (Removed for performance) */

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

.wish-wall {
    padding: 10vh 10%;
    background-color: var(--bg-cream);
}

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

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.wish-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.wish-form-card {
    padding: 2.5rem;
    position: sticky;
    top: 120px;
}

.wish-form-card h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

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

input,
textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--accent-tan);
    background: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    border-color: var(--accent-bold);
}

textarea {
    height: 120px;
    resize: none;
    margin-bottom: 0.5rem;
}

.emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.emoji-btn {
    cursor: pointer;
    font-size: 1.4rem;
    transition: transform 0.2s ease, filter 0.2s ease;
    user-select: none;
}

.emoji-btn:hover {
    transform: scale(1.3);
    filter: drop-shadow(0 0 5px var(--accent-bold));
}


.wishes-display {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wish-card {
    padding: 2rem;
}

.wish-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--accent-sepia);
    padding-bottom: 0.5rem;
}

.wish-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.wish-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
    font-style: italic;
}

.file-label {
    display: block;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    border: 1px dashed var(--accent-bold);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.file-label:hover {
    background: rgba(213, 189, 175, 0.1);
    border-style: solid;
}

.file-label input[type="file"] {
    display: none;
}

.wish-media {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.wish-image,
.wish-video {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.wish-video {
    background: #000;
}

.wish-reply {
    margin-top: 1.5rem;
    padding: 1.2rem;
    border-left: 4px solid var(--accent-bold);
    background: rgba(213, 189, 175, 0.1);
    border-radius: 0 15px 15px 0;
}

.reply-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.reply-text {
    font-style: italic;
    color: var(--text-dark);
}


/* Gallery / Bento Grid */
.gallery {
    padding: 10vh 10%;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 300px;
    gap: 1.5rem;
}

.bento-item {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.4s ease;
}

.bento-item:hover {
    transform: scale(1.02);
    z-index: 10;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-1 {
    grid-row: span 2;
}

.item-3 {
    grid-column: span 2;
}

.item-5 {
    grid-row: span 2;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}


/* Footer */
footer {
    padding: 3rem;
    background: var(--bg-cream);
    color: var(--text-muted);
    border-top: 1px solid var(--accent-sepia);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.visitor-stats {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--glass);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    font-weight: 600;
}

.stats-icon {
    font-size: 1.2rem;
}

.stats-count {
    color: var(--accent-bold);
    font-size: 1.25rem;
    font-weight: 800;
}

.stats-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Responsive Improvements */
@media (max-width: 968px) {
    header {
        padding: 1rem 3%;
    }

    .glass-nav {
        padding: 0.6rem 1.2rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-links a {
        margin-left: 1rem;
        font-size: 0.8rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 12vh 5% 5vh;
        gap: 2rem;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
    }

    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .btn {
        padding: 0.8rem 1.8rem;
    }

    .gallery-preview {
        padding: 8vh 5%;
    }

    .wish-wall {
        padding: 8vh 5%;
    }

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

    .section-header h2 {
        font-size: 2.2rem;
    }

    .wish-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .wish-form-card {
        padding: 1.5rem;
        position: static;
    }

    .wish-card {
        padding: 1.5rem;
    }

    .hero-img {
        transform: rotate(0);
        max-width: 90%;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .item-5 {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: flex;
        gap: 0.5rem;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 0.75rem;
    }

    h1 {
        font-size: 2.5rem;
    }

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