/* Wedding Website Styles - Parallax Design */

/* ===== CSS Variables ===== */
:root {
    --teal: #17a2b8;
    --purple: #6f42c1;
    --silver: #c0c0c0;
    --black: #000000;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --success-green: #28a745;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-heavy: 0 8px 16px rgba(0,0,0,0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
    color: var(--purple);
}

/* Mea Culpa Font Class */
.mea-culpa-regular {
    font-family: "Mea Culpa", cursive;
    font-weight: 400;
    font-style: normal;
}

/* ===== Hamburger Menu ===== */
.hamburger-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 35px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-menu span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: var(--white);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hamburger-menu span:nth-child(1) {
    top: 0px;
}

.hamburger-menu span:nth-child(2) {
    top: 10px;
}

.hamburger-menu span:nth-child(3) {
    top: 20px;
}

.hamburger-menu.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-menu.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Dark menu on scroll */
body.scrolled .hamburger-menu span {
    background: var(--purple);
    box-shadow: none;
}

/* ===== Navigation Overlay ===== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100%;
    background: linear-gradient(135deg, var(--purple), var(--teal));
    z-index: 1000;
    transition: left 0.3s ease-in-out;
    display: flex;
    align-items: center;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.nav-overlay.active {
    left: 0;
}

.nav-content {
    width: 100%;
    padding: 2rem;
}

.nav-content ul {
    list-style: none;
}

.nav-content li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.5s forwards;
}

.nav-content li:nth-child(1) { animation-delay: 0.1s; }
.nav-content li:nth-child(2) { animation-delay: 0.15s; }
.nav-content li:nth-child(3) { animation-delay: 0.2s; }
.nav-content li:nth-child(4) { animation-delay: 0.25s; }
.nav-content li:nth-child(5) { animation-delay: 0.3s; }
.nav-content li:nth-child(6) { animation-delay: 0.35s; }

.nav-content a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    padding: 0.5rem 0;
}

.nav-content a:hover {
    color: var(--silver);
    transform: translateX(10px);
}

.nav-content a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.nav-content a:hover::before {
    width: 50%;
}

/* ===== Content Overlay (for menu) ===== */
.content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

/* ===== Content Sections ===== */
.parallax-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -1;
    background: linear-gradient(135deg, var(--teal), var(--purple));
}

.couple-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Adjust to focus on faces */
    opacity: 0.4;
    filter: brightness(0.8);
}

/* ===== Hero Section ===== */
.hero-section {
    text-align: center;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: flex-end; /* Move content to bottom */
    padding-bottom: 3rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    animation: fadeIn 1.5s ease-out;
    /* ... other styles ... */
    /* KEEP THIS GRADIENT - DO NOT CHANGE */
    background: linear-gradient(135deg, #6f42c1, #17a2b8) !important;
    width: 100%;
    padding-bottom: 4rem;
    padding-top: 4rem;
}

.hero-title {
    font-family: "Mea Culpa", cursive;
    font-weight: 700;
    font-style: normal;
    font-size: 4.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
    animation: slideDown 1s ease-out;
    line-height: 1.6;
}

.hero-date {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

/* ===== Countdown Timer ===== */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    min-width: 100px;
    border: 1px solid rgba(255,255,255,0.2);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ===== Hero Actions ===== */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-rsvp-btn {
    background: var(--white);
    color: var(--purple);
    border: 2px solid transparent;
    cursor: pointer;
}

.hero-rsvp-btn:hover {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    transform: translateY(-2px);
}

/* ===== Content Sections ===== */
.content-section {
    padding: 5rem 0;
    position: relative;
}

.content-section.bg-light {
    background-color: var(--light-gray);
}

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

.section-title {
    color: var(--purple);
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out;
}

/* Hide any remaining parallax elements */
.parallax-break,
.parallax-1,
.parallax-2,
.parallax-text {
    display: none !important;
}

/* (Removed parallax break styles) */

/* ===== Cards ===== */
.detail-card,
.menu-card,
.registry-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-heavy);
    transition: transform 0.3s ease;
}

.detail-card-2 {
    text-align: center;
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-heavy);
    transition: transform 0.3s ease;
}

.detail-card:hover,
.detail-card:hover,
.menu-card:hover {
    transform: translateY(-5px);
}

/* Venue name styling */
.venue-name {
    font-size: 1.3rem;
    color: var(--purple);
    margin-bottom: 1rem;
}

.venue-name strong {
    color: var(--purple);
}

.venue-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ===== Menu ===== */
.menu-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.menu-section h4 {
    margin-bottom: 1rem;
}

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

.menu-items li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.menu-items li:last-child {
    border-bottom: none;
}

.menu-note {
    margin-top: 2rem;
    text-align: center;
    color: var(--purple);
    font-style: italic;
}

/* ===== Registry ===== */
.registry-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.05), rgba(23, 162, 184, 0.05));
}

.registry-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Shipping Address Section */
.shipping-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--silver);
}

.shipping-info h3 {
    color: var(--purple);
    margin-bottom: 1rem;
}

.shipping-info address {
    font-style: normal;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--teal);
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* ===== Hotels ===== */
.hotels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.hotel-card {
    background: var(--white);
    border: 2px solid var(--silver);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.hotel-card:hover {
    border-color: var(--teal);
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.hotel-card h3 {
    color: var(--purple);
    margin-bottom: 1.5rem;
}

.hotel-info p {
    margin: 0.75rem 0;
}

.hotel-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--teal);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hotel-link:hover {
    color: var(--purple);
    transform: translateX(5px);
}

/* ===== Forms ===== */
.advice-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto 3rem;
    box-shadow: var(--shadow);
}

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

label {
    display: block;
    color: var(--purple);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--silver);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

/* Prevent horizontal resize on textareas */
textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 300px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--teal);
}

input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* ===== Buttons ===== */
.btn {
    background: var(--purple);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow);
}

.btn:hover {
    background: var(--teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.calendar-btn {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.calendar-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.view-all-btn {
    display: block;
    margin: 2rem auto 0;
    background: var(--teal);
}

.view-all-btn:hover {
    background: var(--purple);
}

/* ===== Advice Cards ===== */
.advice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advice-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--purple);
    transition: all 0.3s ease;
}

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

.advice-card.hidden {
    display: none;
}

.advice-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.advice-author {
    text-align: right;
    color: var(--teal);
    font-weight: bold;
}

/* ===== Modal (RSVP) ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 2% auto;
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.close {
    color: var(--silver);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--purple);
}

.rsvp-form {
    margin-top: 2rem;
}

/* ===== Messages ===== */
.success-message {
    background: var(--success-green);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: none;
    text-align: center;
}

/* ===== Footer ===== */
footer {
    background: var(--purple);
    color: var(--white);
    text-align: center;
    padding: 3rem;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.text-purple {
    color: var(--purple);
}

.text-teal {
    color: var(--teal);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Admin Section ===== */
.admin-modal {
    max-width: 900px;
}

.admin-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--purple);
    margin-bottom: 0.5rem;
}

.rsvp-list {
    margin-top: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.rsvp-item {
    background: var(--light-gray);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--teal);
}

.rsvp-item h4 {
    color: var(--purple);
    margin-bottom: 0.5rem;
}

.rsvp-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.rsvp-detail {
    font-size: 0.9rem;
}

.rsvp-detail strong {
    color: var(--purple);
}

/* ===== Advice Management ===== */
.advice-management {
    margin-top: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.advice-admin-item {
    background: var(--light-gray);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--purple);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.advice-admin-content {
    flex: 1;
    margin-right: 1rem;
}

.advice-admin-text {
    font-style: italic;
    color: #555;
    margin-bottom: 0.5rem;
}

.advice-admin-author {
    color: var(--teal);
    font-size: 0.9rem;
}

.toggle-advice-btn {
    background: var(--teal);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.toggle-advice-btn:hover {
    background: var(--purple);
}

.toggle-advice-btn.hidden-advice {
    background: var(--silver);
}

/* ===== Media Queries ===== */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    /* Navigation */
    .nav-overlay {
        width: 280px;
        left: -280px;
    }

    .nav-content {
        padding: 1.5rem;
    }

    .nav-content a {
        font-size: 1.25rem;
    }

    /* Parallax text - hiding any remaining instances */
    .parallax-text {
        display: none !important;
    }

    /* Hero */
    .hero-date {
        font-size: 1.5rem;
    }

    /* Countdown */
    .countdown {
        gap: 1rem;
    }

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

    .countdown-number {
        font-size: 2rem;
    }

    /* Grid adjustments */
    .venue-info,
    .menu-columns,
    .hotels-grid {
        grid-template-columns: 1fr;
    }

    /* Parallax text */
    .parallax-text h3 {
        font-size: 2rem;
    }

    /* Hero actions */
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn,
    .calendar-btn {
        width: 250px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Further mobile optimizations */
    .container {
        padding: 0 1rem;
    }

    .detail-card,
    .menu-card,
    .advice-form {
        padding: 1.5rem;
    }

    .advice-cards {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 2rem;
        margin: 5% auto;
    }
}