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

:root {
    --primary-color: #ff9f9f;
    --secondary-color: #ffe5e5;
    --accent-color: #6bb6ff;
    --text-dark: #3d3d3d;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --pink: #ffcccc;
    --peach: #ffd9cc;
    --blue: #b3d9ff;
    --light-blue: #e6f2ff;
    --peach-light: #fff0e6;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #ffe5e5 0%, #ffd9cc 30%, #b3d9ff 70%, #e6f2ff 100%);
    background-size: 400% 400%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    opacity: 1 !important;
    visibility: visible !important;
}

.names {
    margin-bottom: 30px;
}

.bride-name,
.groom-name {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1.5s ease-out, nameFloat 3s ease-in-out infinite;
    display: inline-block;
}

.bride-name {
    animation-delay: 0s;
}

.groom-name {
    animation-delay: 0.3s;
}

@keyframes nameFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.and {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--accent-color);
    margin: 20px 0;
    font-weight: 400;
    animation: pulse 2s infinite, rotate 4s ease-in-out infinite;
    display: inline-block;
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.date {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin: 20px 0;
    font-weight: 500;
    animation: fadeIn 2s ease-out, slideIn 1s ease-out;
}

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

.location {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-top: 10px;
}

.scroll-indicator {
    margin-top: 50px;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.arrow {
    font-size: 2rem;
    color: var(--accent-color);
}

/* Floating Hearts Animation */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-hearts span {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.4;
    bottom: -50px;
    animation: float 15s infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50vh) rotate(180deg) scale(1.2);
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg) scale(1);
        opacity: 0;
    }
}

.floating-hearts span:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.floating-hearts span:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
}

.floating-hearts span:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
}

.floating-hearts span:nth-child(4) {
    left: 70%;
    animation-delay: 6s;
}

.floating-hearts span:nth-child(5) {
    left: 90%;
    animation-delay: 8s;
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    padding: 0 20px 20px;
    box-sizing: border-box;
    animation: fadeInUp 1s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    animation: expandLine 1s ease-out 0.5s both;
}

@keyframes expandLine {
    from { width: 0; }
    to { width: 80px; }
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Story Section */
.story-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--peach-light) 100%);
    padding: 100px 0 80px;
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-text {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    font-style: italic;
    animation: fadeIn 2s ease-out;
    padding: 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.story-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Details Section */
.details-section {
    background: linear-gradient(180deg, var(--light-blue) 0%, var(--secondary-color) 100%);
}

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

.detail-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

.detail-card:nth-child(1) {
    animation-delay: 0.1s;
}

.detail-card:nth-child(2) {
    animation-delay: 0.2s;
}

.detail-card:nth-child(3) {
    animation-delay: 0.3s;
}

.detail-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(107, 182, 255, 0.3);
}

.detail-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: iconBounce 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.detail-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.detail-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 8px 0;
}

.detail-card .time {
    color: var(--primary-color);
    font-weight: 500;
}

/* Location Section */
.location-section {
    background: var(--white);
}

.map-container {
    margin-top: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* QR Code Section */
.qr-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--light-blue) 100%);
}

.qr-container {
    text-align: center;
    margin-top: 40px;
}

.qr-code-wrapper {
    display: inline-block;
    padding: 30px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    animation: qrFloat 3s ease-in-out infinite;
}

@keyframes qrFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.qr-instruction {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Gallery Section */
.gallery-section {
    background: var(--white);
}

.upload-section {
    margin: 40px 0;
}

.upload-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    border: 3px dashed var(--primary-color);
    border-radius: 20px;
    text-align: center;
    background: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: uploadPulse 2s ease-in-out infinite;
}

@keyframes uploadPulse {
    0%, 100% { border-color: var(--primary-color); }
    50% { border-color: var(--accent-color); }
}

.upload-box:hover {
    background: var(--white);
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(107, 182, 255, 0.2);
}

.upload-box.dragover {
    background: var(--pink);
    border-color: var(--accent-color);
    animation: none;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: iconSpin 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes iconSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

.upload-text {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 10px;
}

.upload-hint {
    color: var(--text-light);
    font-size: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

.gallery-item:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 10px 30px rgba(107, 182, 255, 0.3);
    z-index: 10;
}

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

.gallery-item .delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-item .delete-btn:hover {
    background: rgba(255, 0, 0, 0.8);
    color: white;
}

/* Hashtag Section */
.hashtag-section {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--peach-light) 100%);
    padding: 80px 0;
}

.hashtag-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.hashtag-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: iconFloat 3s ease-in-out infinite;
    display: inline-block;
}

.hashtag-text {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 500;
}

.hashtag-display {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(107, 182, 255, 0.3);
    transition: transform 0.3s ease;
}

.hashtag-display:hover {
    transform: scale(1.05);
}

.hashtag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    user-select: all;
    transition: transform 0.3s ease;
    display: inline-block;
}

.hashtag:hover {
    transform: scale(1.05);
}

.hashtag-subtext {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 20px;
    font-style: italic;
}

/* RSVP Section */
.rsvp-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--secondary-color) 100%);
    padding: 60px 0;
}

.rsvp-form {
    max-width: 500px;
    margin: 30px auto 0;
    padding: 0 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group .hidden {
    display: none;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
    background: var(--white);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(107, 182, 255, 0.1);
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233d3d3d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(107, 182, 255, 0.5);
}

.submit-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Parents Section */
.parents-section {
    background: linear-gradient(180deg, var(--light-blue) 0%, var(--white) 100%);
    padding: 80px 0;
}

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

.parents-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.parents-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(107, 182, 255, 0.3);
}

.parents-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.parent-name {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 12px 0;
    line-height: 1.6;
}

.parent-name strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.footer-text {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-names {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-date {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 25px;
}

.footer-message {
    font-size: 1.1rem;
    color: var(--white);
    margin: 25px auto;
    max-width: 600px;
    line-height: 1.6;
    font-style: italic;
}

.footer-sharing {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sharing-text {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.sharing-names {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .bride-name,
    .groom-name {
        font-size: 2.5rem;
    }

    .and {
        font-size: 2rem;
    }

    .date {
        font-size: 1.4rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .upload-box {
        padding: 40px 20px;
    }

    .rsvp-section {
        padding: 50px 0;
    }

    .rsvp-form {
        max-width: 100%;
        margin: 25px auto 0;
        padding: 0 15px;
    }

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

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .submit-btn {
        padding: 14px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .save-date-container {
        flex-direction: column;
        gap: 20px;
    }

    .date-card-divider {
        width: 100%;
        padding: 10px 0;
    }

    .divider-heart {
        font-size: 2rem;
        transform: rotate(90deg);
    }
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    text-align: center;
    max-width: 600px;
    display: none;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(107, 182, 255, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.back-to-top span {
    display: block;
    line-height: 1;
}

/* Save the Date Cards */
.save-date-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.date-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    flex: 0 0 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.date-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.date-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 50px rgba(107, 182, 255, 0.3);
}

.date-card.betrothal {
    border-color: rgba(255, 182, 193, 0.5);
}

.date-card.wedding {
    border-color: rgba(107, 182, 255, 0.5);
}

.date-card-header {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 600;
}

.date-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.date-card-date .day {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.date-card-date .month {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 3px;
    margin-top: 5px;
}

.date-card-year {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 10px;
}

.date-card-time {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.date-card-location {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.4;
    word-wrap: break-word;
    max-width: 100%;
}

.date-card-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-heart {
    font-size: 2.5rem;
    animation: heartBeat 2s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

/* Love Quote Section */
.quote-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--light-blue) 100%);
    padding: 140px 20px;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    overflow: visible;
    min-height: auto;
}

.quote-section .container {
    padding: 0 20px;
}

.quote-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

.quote-box::before,
.quote-box::after {
    content: '"';
    font-size: 8rem;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.quote-box::before {
    top: 20px;
    left: 30px;
}

.quote-box::after {
    bottom: 20px;
    right: 30px;
    transform: rotate(180deg);
}

.quote-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.quote-text {
    font-size: 1.8rem;
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    padding: 0 10px;
    word-wrap: break-word;
}

.quote-author {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Timeline Section */
.timeline-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--light-blue) 100%);
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.timeline {
    max-width: 800px;
    margin: 50px auto;
    position: relative;
    padding: 40px 0;
    z-index: 1;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    animation: fadeInLeft 0.8s ease-out;
    animation-fill-mode: both;
    min-height: 120px;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    animation: fadeInRight 0.8s ease-out;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: 25px 30px;
    border-radius: 15px;
    margin: 0 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(107, 182, 255, 0.3);
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Guest Book Section */
.guestbook-section {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--white) 100%);
}

.guestbook-form {
    max-width: 600px;
    margin: 40px auto;
}

.guestbook-messages {
    max-width: 800px;
    margin: 50px auto 0;
    display: grid;
    gap: 20px;
}

.guestbook-message {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.5s ease-out;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.guestbook-message:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(107, 182, 255, 0.2);
}

.guestbook-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.guestbook-message-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.guestbook-message-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.guestbook-message-text {
    color: var(--text-light);
    line-height: 1.6;
    font-style: italic;
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Parallax Effect */
.hero {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
        margin-bottom: 40px;
        min-height: 100px;
    }
    
    .timeline-icon {
        position: absolute;
        left: 0;
    }
    
    .timeline-content {
        margin: 0;
        padding: 20px 25px;
    }
    
    .countdown {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 15px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }

    .hashtag-content {
        padding: 30px 20px;
    }

    .hashtag-icon {
        font-size: 3rem;
    }

    .hashtag-text {
        font-size: 1.1rem;
    }

    .hashtag {
        font-size: 1.5rem;
    }

    .hashtag-subtext {
        font-size: 0.9rem;
    }

    .parents-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
    }

    .parents-card {
        padding: 30px 20px;
    }

    .parents-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .parent-name {
        font-size: 1rem;
    }

    .footer-message {
        font-size: 1rem;
        margin: 20px 15px;
    }

    .footer-sharing {
        margin-top: 20px;
        padding-top: 20px;
    }

    .sharing-text {
        font-size: 0.9rem;
    }

    .sharing-names {
        font-size: 1rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hashtag-content {
        padding: 25px 15px;
    }

    .hashtag-icon {
        font-size: 2.5rem;
    }

    .hashtag-text {
        font-size: 1rem;
    }

    .hashtag {
        font-size: 1.2rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 1.1rem;
    }

    .parents-card {
        padding: 25px 18px;
    }

    .parents-title {
        font-size: 1.3rem;
    }

    .parent-name {
        font-size: 0.95rem;
    }

    .footer-message {
        font-size: 0.95rem;
    }

    .sharing-text {
        font-size: 0.85rem;
    }

    .sharing-names {
        font-size: 0.95rem;
    }

    .date-card {
        padding: 25px 30px;
        min-width: 180px;
    }

    .date-card-date .day {
        font-size: 3rem;
    }

    .divider-heart {
        font-size: 1.8rem;
    }

    .rsvp-section {
        padding: 40px 0;
    }

    .rsvp-form {
        padding: 0 10px;
    }

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

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .submit-btn {
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* Mobile-specific improvements for iOS and Android */
@media (max-width: 768px) {
    /* Prevent text size adjustment on iOS */
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Better touch targets */
    button,
    .share-btn,
    .submit-btn,
    input[type="submit"] {
        min-height: 44px; /* iOS recommended touch target */
        min-width: 44px;
    }

    /* Prevent zoom on input focus (iOS) */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Improve scrolling on mobile */
    body {
        -webkit-overflow-scrolling: touch;
    }

    /* Better container padding */
    .container {
        padding: 0 15px;
    }

    /* Hero section mobile adjustments */
    .hero {
        min-height: 100vh;
        min-height: -webkit-fill-available; /* iOS Safari fix */
        padding: 20px 0;
    }

    .hero-content {
        padding: 0 15px;
    }

    /* Section padding adjustments */
    .quote-section {
        padding: 120px 15px;
        margin-bottom: 0;
        overflow: visible;
        min-height: auto;
    }

    .quote-section .container {
        padding: 0 10px;
    }

    .story-section {
        padding: 80px 0 60px;
        margin-top: 0;
    }

    .timeline-section,
    .rsvp-section {
        padding: 50px 0;
    }

    .quote-box {
        padding: 40px 25px;
        margin: 0 auto;
        max-width: calc(100% - 30px);
    }

    .quote-text {
        font-size: 1.1rem;
        line-height: 1.6;
        padding: 0 5px;
    }

    .quote-box::before {
        top: 10px;
        left: 15px;
        font-size: 5rem;
    }

    .quote-box::after {
        bottom: 10px;
        right: 15px;
        font-size: 5rem;
    }

    /* Story text mobile */
    .story-text {
        font-size: 1rem;
        padding: 20px;
        line-height: 1.6;
    }

    /* Countdown mobile */
    .countdown-container {
        margin: 30px 0;
    }

    .countdown-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .countdown-item {
        min-width: 70px;
        padding: 15px 18px;
    }

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

    .countdown-label {
        font-size: 0.75rem;
    }

    /* Share buttons mobile */
    .share-buttons {
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    /* Save date cards mobile */
    .save-date-container {
        margin: 30px 0;
        gap: 15px;
    }

    .date-card {
        padding: 20px 25px;
        width: 240px;
        min-width: 240px;
        max-width: 240px;
        flex: 0 0 240px;
    }

    .date-card-date .day {
        font-size: 3rem;
    }

    .date-card-header {
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    /* Extra small devices */
    .bride-name,
    .groom-name {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .rsvp-form {
        padding: 0 8px;
    }

    .countdown-item {
        min-width: 60px;
        padding: 12px 15px;
    }

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

/* Animated Background Particles */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* Countdown Timer */
.countdown-container {
    margin: 40px 0;
    text-align: center;
}

.countdown-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 8px;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Share Buttons Section */
.share-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin-bottom: 0;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.share-btn svg {
    width: 24px;
    height: 24px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.share-btn:active {
    transform: translateY(-1px);
}

.share-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5fcc 100%);
}

.share-twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.share-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.share-copy {
    background: linear-gradient(135deg, #6b6b6b 0%, #4a4a4a 100%);
}

.share-btn.copied {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

/* Enhanced Parallax */
.hero {
    position: relative;
    z-index: 1;
}

.quote-section,
.story-section {
    position: relative;
    z-index: 1;
}

/* Mobile Responsive for New Features */
@media (max-width: 768px) {
    .countdown {
        gap: 15px;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 15px 20px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
    
    .share-buttons {
        gap: 15px;
    }
    
    .share-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .share-btn svg {
        width: 20px;
        height: 20px;
    }
}


