﻿/* ==============================================
   Wedding Invitation - Premium CSS Styles
   ============================================== */


/* ==============================================
   Global Styles & CSS Variables
   ============================================== */
:root {
    --primary-color: #d4a574;
    --secondary-color: #f5e6d3;
    --accent-color: #e8d5c4;
    --rose-gold: #d4a574;
    --soft-pink: #fff5f0;
    --lavender: #f8f5ff;
    --white: #ffffff;
    --dark: #333333;
    --light-gray: #fafafa;
    --border-light: #e8e8e8;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Montserrat', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    color: var(--dark);
    overflow-x: hidden;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

/* ==============================================
   Hero Section
   ============================================== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    border-bottom: 1px solid var(--border-light);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

/* ==============================================
   Hero Banner
   ============================================== */
.hero-banner {
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-banner-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.hero-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hero-banner-image:hover img {
    transform: scale(1.02);
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    text-align: center;
    color: var(--dark);
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 20px;
    animation: fadeIn 1.5s ease-out;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1.2s ease-out 0.2s both;
}

.hero-divider {
    width: 150px;
    height: 2px;
    background: var(--rose-gold);
    margin: 30px auto;
    animation: expandWidth 1s ease-out 0.5s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 150px;
    }
}

.hero-date {
    font-size: 1.5rem;
    margin: 30px 0;
    font-weight: 300;
    animation: fadeIn 1.5s ease-out 0.7s both;
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

/* Scroll Down Arrow */
.scroll-down-arrow {
    margin-top: 50px;
    text-align: center;
    animation: bounce 2s ease infinite;
}

.scroll-down-arrow a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--rose-gold);
    border-radius: 50%;
    color: var(--rose-gold);
    font-size: 1.4rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.scroll-down-arrow a:hover {
    background: var(--rose-gold);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(212, 165, 116, 0.4);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-8px);
    }
}

.countdown-item {
    background: var(--white);
    border: 2px solid var(--rose-gold);
    border-radius: 15px;
    padding: 25px 35px;
    min-width: 120px;
    transition: var(--transition-smooth);
    animation: fadeInUp 1s ease-out 1s both;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.countdown-item:hover {
    transform: translateY(-10px);
    background: var(--soft-pink);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

.countdown-value {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    color: var(--rose-gold);
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    display: block;
    color: var(--dark);
    opacity: 0.7;
}

/* ==============================================
   Personal Story Section
   ============================================== */
.story-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 60px;
    color: var(--dark);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--rose-gold);
    border-radius: 2px;
}

.story-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.story-icon {
    font-size: 3rem;
    color: var(--rose-gold);
    margin-bottom: 20px;
}

.story-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.story-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    font-weight: 300;
}

/* Story with Image Layout */
.story-with-image {
    margin: 60px 0;
}

.story-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    transition: var(--transition-smooth);
}

.story-image-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.story-image {
    width: 100%;
    height: auto;
    display: block;
}

.story-content {
    padding: 30px;
}

.story-content .story-icon {
    font-size: 2.5rem;
    color: var(--rose-gold);
    margin-bottom: 20px;
    display: block;
}

.story-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    font-weight: 300;
}

/* ==============================================
   Photo Gallery Section
   ============================================== */
.gallery-section {
    padding: 100px 0;
    background: var(--white);
}

.gallery-carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.gallery-carousel .carousel-item img {
    height: 700px;
    object-fit: cover;
    width: 100%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(212, 165, 116, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.5);
}

/* ==============================================
   Photo Grid Section
   ============================================== */
.photo-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.photo-grid-item img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-grid-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

/* ==============================================
   Event Details Section
   ============================================== */

.event-section {
    padding: 100px 0;
    background: var(--white);
}

.event-section .row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
}

.event-section .row>[class*="col"] {
    display: flex;
    flex: 0 0 25%;
    max-width: 25%;
    padding: 10px;
}

.event-card {
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 40px 25px;
    color: var(--dark);
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(212, 165, 116, 0.2);
    border-color: var(--rose-gold);
}

.event-card i {
    font-size: 4rem;
    margin-bottom: 25px;
    color: var(--rose-gold);
}

.event-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.event-card p {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 300;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    margin-top: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* ==============================================
   RSVP Form Section
   ============================================== */
.rsvp-section {
    padding: 100px 0;
    background: var(--light-gray);
    position: relative;
}

.rsvp-form {
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    margin: 0 auto;
}

.form-floating {
    margin-bottom: 25px;
}

.form-control {
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 15px;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: var(--white);
}

.form-control:focus {
    border-color: #f5576c;
    box-shadow: 0 0 0 0.2rem rgba(245, 87, 108, 0.25);
    background: var(--white);
}

.btn-rsvp {
    background: var(--rose-gold);
    border: none;
    color: var(--white);
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
    width: 100%;
    min-height: 56px;
    /* Touch-friendly */
    cursor: pointer;
}

.btn-rsvp:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 165, 116, 0.4);
    background: #c89565;
    color: var(--white);
}

/* ==============================================
   Social Media Section
   ============================================== */
.social-section {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.social-link {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid var(--rose-gold);
    color: var(--rose-gold);
    font-size: 1.8rem;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.social-link:hover {
    transform: translateY(-10px) rotate(360deg);
    background: var(--rose-gold);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

/* ==============================================
   Footer
   ============================================== */
.wedding-footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.wedding-footer p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
}

/* ==============================================
   Scroll Animations & Parallax
   ============================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Sections */
.parallax-section {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth transitions on all interactive elements */
.story-card,
.event-card,
.photo-grid-item,
.countdown-item {
    will-change: transform;
}

/* ==============================================
   Responsive Design
   ============================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .countdown {
        gap: 15px;
    }

    .countdown-item {
        padding: 20px 25px;
        min-width: 100px;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .story-card,
    .event-card,
    .rsvp-form {
        padding: 30px;
    }

    .event-section .row>[class*="col"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .gallery-carousel .carousel-item img {
        height: 400px;
    }

    /* Hero banner responsive */
    .hero-banner-image {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .countdown-item {
        min-width: 80px;
        padding: 15px 20px;
    }

    .countdown-value {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    /* Hero banner mobile */
    .hero-banner-image {
        height: 250px;
    }
}