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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #faf9f7;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #e8d5c4 0%, #f5ebe0 50%, #d4a574 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    color: #5c4033;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.hero-content .tagline {
    font-size: 1.5rem;
    color: #7d5a50;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #7d5a50;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #7d5a50;
    border-bottom: 2px solid #7d5a50;
    transform: rotate(45deg);
    margin: 10px auto 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Slideshow Section */
.slideshow-section {
    padding: 80px 20px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.slideshow-section h2 {
    text-align: center;
    font-size: 3rem;
    color: #5c4033;
    margin-bottom: 50px;
}

.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.slideshow {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

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

.slide.active {
    opacity: 1;
}

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

.slide-btn {
    background: rgba(92, 64, 51, 0.8);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-btn:hover {
    background: #5c4033;
    transform: scale(1.1);
}

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e8d5c4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background: #5c4033;
    transform: scale(1.2);
}

.slide-dot:hover {
    background: #d4a574;
}

/* Registry Section */
.registry {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f5ebe0 0%, #faf9f7 100%);
    text-align: center;
}

.registry h2 {
    font-size: 3rem;
    color: #5c4033;
    margin-bottom: 20px;
}

.registry > p {
    font-size: 1.2rem;
    color: #7d5a50;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.registry-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 50px;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-amazon {
    background: linear-gradient(135deg, #ff9900 0%, #ffad33 100%);
    color: #111;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.btn-amazon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.4);
}

.btn-custom {
    background: linear-gradient(135deg, #5c4033 0%, #7d5a50 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(92, 64, 51, 0.3);
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(92, 64, 51, 0.4);
}

.amazon-icon, .gift-icon {
    width: 28px;
    height: 28px;
}

/* RSVP Section */
.rsvp {
    padding: 100px 20px;
    background: #fff;
    text-align: center;
}

.rsvp h2 {
    font-size: 3rem;
    color: #5c4033;
    margin-bottom: 20px;
}

.rsvp > p {
    font-size: 1.2rem;
    color: #7d5a50;
    margin-bottom: 50px;
}

.invitation-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #5c4033;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #e8d5c4;
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #d4a574 0%, #c49567 100%);
    color: #fff;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}

.form-success {
    padding: 40px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.form-success h3 {
    color: #2e7d32;
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-success p {
    color: #4a4a4a;
    font-size: 1.1rem;
}

.hidden {
    display: none;
}

/* Footer */
footer {
    padding: 50px 20px;
    background: #5c4033;
    text-align: center;
    color: #fff;
}

footer p {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

footer .footer-date {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    opacity: 0.7;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .tagline {
        font-size: 1rem;
    }

    .slideshow-section h2,
    .registry h2,
    .rsvp h2 {
        font-size: 2rem;
    }

    .slideshow {
        height: 350px;
    }

    .slideshow-container {
        flex-direction: column;
    }

    .slide-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }

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

/* Admin Page Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.admin-header {
    text-align: center;
    margin-bottom: 50px;
}

.admin-header h1 {
    font-size: 2.5rem;
    color: #5c4033;
    margin-bottom: 10px;
}

.admin-header p {
    color: #7d5a50;
}

.admin-section {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.admin-section h2 {
    color: #5c4033;
    margin-bottom: 25px;
    font-size: 1.5rem;
    border-bottom: 2px solid #e8d5c4;
    padding-bottom: 15px;
}

.item-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: end;
    margin-bottom: 30px;
}

.item-form input {
    padding: 12px 15px;
    border: 2px solid #e8d5c4;
    border-radius: 8px;
    font-size: 1rem;
}

.item-form input:focus {
    outline: none;
    border-color: #d4a574;
}

.btn-add {
    background: #5c4033;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn-add:hover {
    background: #7d5a50;
}

.items-list {
    list-style: none;
}

.item-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #faf9f7;
    border-radius: 10px;
    margin-bottom: 15px;
}

.item-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.item-info {
    flex: 1;
}

.item-info h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
}

.item-info a {
    color: #d4a574;
    font-size: 0.9rem;
    word-break: break-all;
}

.btn-delete {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-delete:hover {
    background: #c0392b;
}

/* Guest List Table */
.guest-table {
    width: 100%;
    border-collapse: collapse;
}

.guest-table th,
.guest-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e8d5c4;
}

.guest-table th {
    background: #5c4033;
    color: #fff;
    font-weight: 600;
}

.guest-table tr:hover {
    background: #faf9f7;
}

.btn-export {
    background: #27ae60;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.btn-export:hover {
    background: #2ecc71;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

/* Registry Page Styles */
.registry-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #faf9f7 0%, #f5ebe0 100%);
}

.registry-header {
    text-align: center;
    padding: 60px 20px 40px;
}

.registry-header h1 {
    font-size: 3rem;
    color: #5c4033;
    margin-bottom: 10px;
}

.registry-header p {
    color: #7d5a50;
    font-size: 1.2rem;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #d4a574;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.registry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.registry-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.registry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.registry-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.registry-item-content {
    padding: 20px;
}

.registry-item h3 {
    color: #5c4033;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.registry-item .btn-buy {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #d4a574 0%, #c49567 100%);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.registry-item .btn-buy:hover {
    transform: translateY(-2px);
}

.empty-registry {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: #999;
}

.empty-registry h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #7d5a50;
}
