/* ===== VARIABLES ===== */
:root {
    --color-primary: #e1c1d4;
    --color-accent: #8b5e34;
    --color-gold: #d4af37;
    --color-dark: #1a1a1a;
    --color-light: #f8f8f8;
    --color-white: #ffffff;
    --color-overlay: rgba(0, 0, 0, 0.5);
    --font-elegant: 'Playfair Display', serif;
    --font-modern: 'Montserrat', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: var(--font-modern);
    color: var(--color-dark);
    background: var(--color-light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-elegant);
    font-weight: 700;
}

/* ===== HERO SECTION ===== */
#hero {
    position: relative;
    height: 100vh;
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(225, 193, 212, 0.85) 0%,
            rgba(139, 94, 52, 0.75) 100%);
    z-index: 1;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 2rem;
    max-width: 900px;
}

.ornament-top,
.ornament-bottom {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 0 auto 2rem;
    position: relative;
}

.ornament-top::before,
.ornament-top::after,
.ornament-bottom::before,
.ornament-bottom::after {
    content: '◆';
    position: absolute;
    color: var(--color-gold);
    font-size: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
}

.ornament-top::before {
    left: -20px;
}

.ornament-top::after {
    right: -20px;
}

.ornament-bottom {
    margin: 2rem auto 0;
}

.ornament-bottom::before {
    left: -20px;
}

.ornament-bottom::after {
    right: -20px;
}

.pre-title {
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: 2px;
}

.divider {
    width: 100px;
    height: 3px;
    background: var(--color-gold);
    margin: 1.5rem auto;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color-gold);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.divider::before {
    left: -20px;
}

.divider::after {
    right: -20px;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin: 1.5rem 0;
    font-style: italic;
    opacity: 0.95;
    line-height: 1.8;
}

.date {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 6px;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.date i {
    font-size: 1.8rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Scroll Down Indicator */
#scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    cursor: pointer;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.scroll-indicator span {
    width: 2px;
    height: 15px;
    background: var(--color-white);
    animation: scrollDown 1.5s ease-in-out infinite;
}

.scroll-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollDown {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* ===== COUNTDOWN SECTION ===== */
#countdown {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-light) 100%);
    position: relative;
    overflow: hidden;
}

#countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(225, 193, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 94, 52, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.section-subtitle {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 3rem;
    position: relative;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.countdown-item {
    text-align: center;
    min-width: 120px;
}

.countdown-number {
    background: linear-gradient(135deg, var(--color-accent) 0%, #6d4a2a 100%);
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.countdown-number::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;
}

.countdown-item:hover .countdown-number::before {
    left: 100%;
}

.countdown-number span {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-white);
    display: block;
    font-family: var(--font-elegant);
}

.countdown-item label {
    display: block;
    margin-top: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    font-weight: 600;
}

.countdown-separator {
    font-size: 3rem;
    color: var(--color-accent);
    font-weight: 300;
    margin: 0 10px;
}

.event-now {
    font-size: 3rem;
    color: var(--color-accent);
    font-family: var(--font-elegant);
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===== QUOTE SECTION ===== */
#quote {
    padding: 100px 20px;
    background: var(--color-accent);
    position: relative;
    overflow: hidden;
}

#quote::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

.quote-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.quote-icon {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: Georgia, serif;
    line-height: 0.8;
}

.quote-icon.closing {
    transform: rotate(180deg);
    display: inline-block;
}

.quote-text {
    font-size: 1.8rem;
    font-family: var(--font-elegant);
    color: var(--color-white);
    font-style: italic;
    line-height: 1.6;
    margin: 20px 0;
}

/* ===== EVENT DETAILS ===== */
#event-details {
    padding: 100px 20px;
    background: #f4f4f4;
    /* Light Grey to separate from white */
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.title-ornament {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 20px auto;
    position: relative;
}

.title-ornament::before,
.title-ornament::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.title-ornament::before {
    left: 0;
}

.title-ornament::after {
    right: 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-card {
    background: var(--color-white);
    border-radius: 30px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    /* Crucial: allow clicks through overlay */
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: var(--color-accent);
}

.detail-card:hover::before {
    opacity: 0.05;
}

.detail-card.featured {
    background: linear-gradient(135deg, var(--color-accent) 0%, #6d4a2a 100%);
    color: var(--color-white);
    transform: scale(1.05);
}

.detail-card.featured .card-icon-wrapper i,
.detail-card.featured h3,
.detail-card.featured .detail-time,
.detail-card.featured .venue-name {
    color: var(--color-white);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--color-gold);
    color: var(--color-white);
    padding: 5px 40px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    transform: rotate(45deg);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    z-index: 2;
}

.icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    opacity: 0.25;
    /* Increased opacity slightly */
    transition: var(--transition);
    z-index: 1;
}

.detail-card:hover .icon-bg {
    transform: scale(1.2);
    opacity: 0.25;
}

.card-icon-wrapper i {
    font-size: 3.5rem;
    /* Reduced slightly to ensure it fits well */
    color: var(--color-accent) !important;
    /* Force the color */
    position: relative;
    z-index: 10 !important;
    /* Bring to the absolute front */
    transition: var(--transition);
    display: inline-block;
}

.detail-card.featured .card-icon-wrapper i {
    color: var(--color-white) !important;
}

.detail-card:hover .card-icon-wrapper i {
    transform: scale(1.1) rotate(5deg);
}

.detail-card h3 {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.detail-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-gold);
    margin: 15px 0;
}

.venue-name {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin: 15px 0 25px;
    font-weight: 500;
}

.btn-elegant {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.btn-elegant:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 94, 52, 0.3);
}

.btn-elegant.primary {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

.btn-elegant.primary:hover {
    background: var(--color-white);
    color: var(--color-accent);
    border-color: var(--color-white);
}

.party-features {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.party-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    padding: 8px 16px;
    background: var(--color-light);
    border-radius: 20px;
    color: var(--color-accent);
}

/* ===== DRESS CODE (Elegant Brown) ===== */
#dress-code {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #5d3a1a 100%);
    /* Elegant Brown */
    color: var(--color-white);
    position: relative;
}

#dress-code::before {
    content: '';
    /* Texture overlay */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--color-gold) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
    pointer-events: none;
}

.dress-code-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 30px;
    background: rgba(255, 255, 255, 0.05);
    /* Glass dark effect */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dress-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(139, 94, 52, 0.3);
}

.dress-icon i {
    font-size: 3rem;
    color: var(--color-white);
}

.dress-code-content h3 {
    font-size: 2rem;
    color: var(--color-white);
    /* White text for dark mode */
    margin-bottom: 10px;
}

.dress-code-content p {
    font-size: 1.5rem;
    color: var(--color-gold);
    font-weight: 600;
    margin: 20px 0;
}

.dress-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.dress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dress-item i {
    font-size: 3rem;
    color: var(--color-white);
    /* White for visibility on dark brown */
}

.dress-item span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    /* Light text */
    font-weight: 500;
}

/* ===== RSVP SECTION ===== */
#rsvp {
    padding: 100px 20px;
    background: var(--color-white);
    position: relative;
    z-index: 1;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 20px auto 0;
}

.rsvp-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.elegant-form {
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-white) 100%);
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
}

.form-row {
    display: grid;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 10px;
    font-size: 1rem;
}

.form-group i {
    color: var(--color-gold);
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--color-white);
    font-family: var(--font-modern);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(139, 94, 52, 0.1);
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: #888;
    font-size: 0.85rem;
}

.btn-submit {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #6d4a2a 100%);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    letter-spacing: 1px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(139, 94, 52, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 94, 52, 0.4);
}

.btn-icon {
    font-size: 1.5rem;
}

/* ===== CONFIRMATION ===== */
.confirmation-success {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 60px 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.confirmation-success.hidden {
    display: none;
}

.success-animation {
    margin-bottom: 30px;
}

.checkmark-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease-out;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.checkmark {
    width: 40px;
    height: 70px;
    border: solid var(--color-white);
    border-width: 0 6px 6px 0;
    transform: rotate(45deg);
    animation: checkmark 0.5s ease-out 0.3s;
    animation-fill-mode: both;
}

@keyframes checkmark {
    0% {
        height: 0;
    }

    100% {
        height: 70px;
    }
}

.confirmation-success h2 {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.confirmation-success>p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.qr-container {
    background: var(--color-white);
    padding: 20px;
    /* Reduced padding for mobile */
    border-radius: 20px;
    display: inline-block;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    max-width: 100%;
    /* Ensure it doesn't overflow */
    box-sizing: border-box;
    /* Include padding in width */
}

#qrcode {
    margin: 0 auto;
    max-width: 100%;
}

#qrcode img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Remove bottom space */
}

.qr-instruction {
    margin-top: 20px;
    font-weight: 600;
    color: var(--color-accent);
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-download,
.btn-whatsapp {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-download {
    background: linear-gradient(135deg, var(--color-accent) 0%, #6d4a2a 100%);
    color: var(--color-white);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 94, 52, 0.4);
}



/* ===== INSTAGRAM ===== */
#instagram {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-content {
    text-align: center;
    color: var(--color-white);
}

.instagram-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.instagram-content h3 i {
    font-size: 2.5rem;
}

.instagram-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hashtag {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-elegant);
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.2);
    padding: 20px 40px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .countdown-container {
        gap: 10px;
    }

    .countdown-item {
        min-width: 80px;
    }

    .countdown-number {
        padding: 15px 10px;
    }

    .countdown-number span {
        font-size: 2.5rem;
    }

    .countdown-separator {
        font-size: 2rem;
        margin: 0 5px;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .detail-card.featured {
        transform: scale(1);
    }

    .elegant-form {
        padding: 30px 20px;
    }

    .dress-code-content {
        padding: 30px 15px;
        /* Reduce padding on mobile */
    }

    .dress-details {
        gap: 20px;
        flex-wrap: wrap;
        /* Allow wrapping */
    }

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

    .quote-text {
        font-size: 1.3rem;
    }

    .hashtag {
        font-size: 1.8rem;
        padding: 15px 30px;
    }
}

@media (min-width: 769px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row:first-child {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== GALLERY SECTION ===== */
#gallery {
    background: var(--color-light);
    position: relative;
    z-index: 10;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    /* Optional: nice shadow to separate sections */
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.gallery-column {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px;
}

.center-content {
    width: 150px;
    height: 150px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-strong);
    border: 3px solid var(--color-accent);
}

.center-content i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.center-content span {
    font-family: var(--font-elegant);
    font-size: 1.2rem;
    color: var(--color-accent);
    font-weight: 700;
}

.photo-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 1/1;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.photo-card::after {
    content: '\F437';
    /* Bootstrap Icon: instagram */
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2.5rem;
    color: white;
    z-index: 2;
    transition: all 0.3s ease;
    opacity: 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.photo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.photo-card:hover::before {
    opacity: 1;
}

.photo-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.photo-card:hover img {
    transform: scale(1.1);
}

.click-instruction {
    margin-top: 15px;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        flex-direction: column;
    }

    .gallery-column {
        width: 100%;
    }
}

/* ===== GIFT REGISTRY SECTION ===== */
#gifts {
    padding: 80px 20px;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    /* Soft pink gradient */
    text-align: center;
}

.gift-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 50px 30px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(233, 30, 99, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: visible;
}

.gift-icon {
    width: 80px;
    height: 80px;
    background: #e91e63;
    /* Liverpool Pink-ish */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -80px auto 30px;
    /* Pull up to sit on edge */
    font-size: 2.5rem;
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.3);
    border: 4px solid white;
}

#gifts .gift-content {
    margin-top: 40px;
    /* compensate for pulled up icon */
}

.gift-content h3 {
    font-size: 2.5rem;
    color: #e91e63;
    margin-bottom: 20px;
    font-family: var(--font-elegant);
}

.gift-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.liverpool-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: #e91e63;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.3);
}

.liverpool-btn:hover {
    background: #c2185b;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(233, 30, 99, 0.4);
}

.gift-note {
    margin-top: 20px !important;
    font-size: 0.9rem !important;
    color: #888 !important;
}

/* ===== MOBILE FIXES ===== */
@media (hover: none) and (pointer: coarse) {

    /* Fix for iOS scroll jitter with fixed background */
    #hero {
        background-attachment: scroll !important;
    }
}

/* ===== INSTAGRAM MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Dark backdrop */
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.insta-card {
    background: var(--color-white);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    /* iOS style radius */
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .insta-card {
    transform: scale(1);
}

.insta-header {
    padding: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #efefef;
    position: relative;
}

.insta-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    padding: 2px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    /* Insta gradient ring */
}

.insta-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid white;
    /* White gap */
}

.insta-user {
    display: flex;
    flex-direction: column;
}

.insta-user .username {
    font-weight: 600;
    font-size: 0.95rem;
    color: #262626;
}

.insta-user .location {
    font-size: 0.75rem;
    color: #8e8e8e;
}

.insta-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #262626;
    cursor: pointer;
    line-height: 1;
}

.insta-image-container {
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 60vh;
    /* Limit height to prevent overflow on mobile */
    overflow: hidden;
}

.insta-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Show full image */
}

.insta-actions {
    padding: 15px;
}

.action-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #262626;
}

.action-icons .liked {
    color: #ed4956;
    /* Insta heart red */
    animation: likePulse 0.3s ease-out;
}

@keyframes likePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.insta-likes {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #262626;
}

.insta-caption {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #262626;
}

/* Improve cursor on gallery items */
.photo-card {
    cursor: pointer;
}

/* ===== MUSIC PLAYER ===== */
.spotify-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(40, 40, 40, 0.9);
    /* Spotify Dark */
    backdrop-filter: blur(10px);
    padding: 10px 20px 10px 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    transform: translateY(100px);
    /* Initially hidden/down */
    opacity: 0;
}

.spotify-player.playing {
    transform: translateY(0);
    opacity: 1;
}

.player-cover {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 2px solid #1db954;
    /* Spotify Green */
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: spin 4s linear infinite;
    animation-play-state: paused;
}

.spotify-player.playing .player-cover img {
    animation-play-state: running;
}

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

.player-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.track-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

.artist-name {
    font-size: 0.7rem;
    color: #b3b3b3;
}

.player-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
    margin-left: 10px;
}

.bar {
    width: 3px;
    background: #1db954;
    border-radius: 3px;
    animation: sound 1s ease-in-out infinite;
}

.bar:nth-child(1) {
    animation-duration: 0.8s;
    height: 40%;
}

.bar:nth-child(2) {
    animation-duration: 1.1s;
    height: 70%;
}

.bar:nth-child(3) {
    animation-duration: 0.9s;
    height: 50%;
}

.bar:nth-child(4) {
    animation-duration: 1.2s;
    height: 60%;
}

@keyframes sound {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.5);
    }
}

/* Mobile adjust */
@media (max-width: 480px) {
    .spotify-player {
        bottom: 10px;
        right: 50%;
        transform: translateX(50%) translateY(100px);
        width: 90%;
        justify-content: center;
        /* Center content */
        gap: 15px;
        /* Increase gap slightly for better spacing */
    }

    .spotify-player.playing {
        transform: translateX(50%) translateY(0);
    }
}