/* =========================================
   1. Design System & Variables
   ========================================= */
:root {
    /* Colors - Light Mode (Default) */
    --primary-color: #FFB7C5;
    /* Cherry Blossom Pink */
    --primary-dark: #FF9EAA;
    /* Darker Pink */
    --secondary-color: #E6E6FA;
    /* Lavender */
    --bg-color: #FFF0F5;
    /* Lavender Blush */
    --text-color: #4A4A4A;
    /* Dark Gray */
    --heading-color: #6D597A;
    /* Muted Purple */
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Fonts */
    --font-heading: 'Dancing Script', cursive;
    --font-body: 'Nunito', sans-serif;

    /* Spacing */
    --section-padding: 80px 20px;

    /* Shadows */
    --shadow-soft: 0 10px 30px -10px rgba(255, 183, 197, 0.5);
    --shadow-hover: 0 15px 35px -5px rgba(255, 183, 197, 0.7);

    /* Transitions */
    --transition-smooth: all 0.3s ease-in-out;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-color: #1A1A1A;
    --text-color: #E0E0E0;
    --heading-color: #FFB7C5;
    --white: #2D2D2D;
    --glass-bg: rgba(45, 45, 45, 0.8);
    --glass-border: rgba(255, 183, 197, 0.2);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* =========================================
   2. Reset & Global Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 12px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* =========================================
   3. Particles Background
   ========================================= */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* =========================================
   4. Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    box-shadow: var(--shadow-soft);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links li a {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-dark);
    transition: width 0.3s;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    margin: 5px auto;
    transition: var(--transition-smooth);
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--heading-color);
    margin-left: 20px;
    transition: transform 0.5s ease;
}

#theme-toggle:hover {
    transform: rotate(30deg);
}

/* =========================================
   5. Hero Section
   ========================================= */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFF;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    animation: zoomOut 8s ease-in-out forwards;
}

@keyframes zoomOut {
    from {
        transform: scale(1.2);
    }

    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 183, 197, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 25px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 45px;
    font-weight: 300;
}

.btn {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.scroll-indicator {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.22rem;
    animation: bounce 2s infinite;
}

/* =========================================
   6. About Section
   ========================================= */
.about-section {
    padding: var(--section-padding);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    box-shadow: var(--shadow-soft);
    z-index: 2;
    position: relative;
    border: 8px solid var(--white);
}

.image-decor {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 12px;
    z-index: 1;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: var(--font-heading);
}

.stat-item .label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
}

/* =========================================
   7. Blog Section
   ========================================= */
.blog-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.blog-card {
    background: var(--bg-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    height: 230px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: 0.6s;
}

.blog-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
}

.category {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.blog-card h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.date {
    font-size: 0.9rem;
    margin-bottom: 18px;
    opacity: 0.6;
}

.read-more {
    color: var(--primary-dark);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* =========================================
   8. Gallery Section
   ========================================= */
.gallery-section {
    padding: var(--section-padding);
}

.gallery-grid {
    column-count: 3;
    column-gap: 25px;
}

.gallery-item {
    margin-bottom: 25px;
    break-inside: avoid;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    transition: 0.5s;
    width: 100%;
}

.gallery-item:hover img {
    transform: scale(1.08) rotate(1deg);
    filter: brightness(0.9);
}

.gallery-item::before {
    content: '\f004';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3.5rem;
    color: var(--white);
    opacity: 0;
    transition: 0.3s;
    z-index: 10;
}

.gallery-item:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* =========================================
   9. Timeline Section
   ========================================= */
.memories-section {
    padding: var(--section-padding);
    background-color: var(--white);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.timeline-item {
    padding: 20px 50px;
    position: relative;
    width: 50%;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 6px solid var(--primary-dark);
    top: 35px;
    border-radius: 50%;
    z-index: 5;
}

.timeline-item.left::after {
    right: -12px;
}

.timeline-item.right::after {
    left: -12px;
}

.timeline-item .content {
    padding: 25px;
    background: var(--bg-color);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
}

.timeline-item:hover .content {
    transform: scale(1.03);
    background: var(--glass-bg);
}

.timeline-img {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.timeline-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-img img {
    transform: scale(1.1);
}

/* =========================================
   10. Quotes Slider
   ========================================= */
.quotes-section {
    padding: 100px 20px;
    background: linear-gradient(rgba(255, 183, 197, 0.2), rgba(230, 230, 250, 0.2));
}

.quote-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    opacity: 0.6;
}

.quotes-slider {
    position: relative;
    min-height: 200px;
}

.quote-slide {
    display: none;
}

.quote-slide.active {
    display: block;
    animation: fadeInUp 0.8s ease;
}

.quote-slide p {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    margin-bottom: 25px;
    color: var(--heading-color);
}

.quote-slide .author {
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.7;
}

.quote-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #DDD;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary-dark);
    width: 25px;
    border-radius: 10px;
}

/* =========================================
   11. Contact Section
   ========================================= */
.contact-section {
    padding: var(--section-padding);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px;
    border: 2px solid #F0F0F0;
    border-radius: 15px;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: var(--white);
}

/* =========================================
   12. Lightbox
   ========================================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.lightbox.active {
    display: flex;
    pointer-events: all;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    transform: scale(0.8);
    transition: 0.4s;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #FFF;
    font-size: 4rem;
    cursor: pointer;
}

/* =========================================
   13. Footer
   ========================================= */
footer,
[data-theme="dark"] footer {
    background: #232323 !important;
    /* Premium Soft Black */
    color: #ffffff !important;
    padding: 30px 20px !important;
    /* Highly Reduced Padding */
    position: relative;
    overflow: hidden;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-wave {
    display: none !important;
    /* Remove for maximum height reduction */
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    /* Slightly smaller */
    color: var(--primary-color) !important;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 0 4px 10px rgba(255, 183, 197, 0.2);
}

.love-note {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

footer .fas.fa-heart {
    color: #ff4d6d;
    animation: pulse 1.5s infinite;
    margin: 0 5px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    background: var(--primary-color);
    color: var(--white) !important;
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.4;
    letter-spacing: 1px;
    color: #ffffff !important;
}

/* Minimal decorative glows */
footer::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 183, 197, 0.04) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
}

footer::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(230, 230, 250, 0.04) 0%, transparent 70%);
    top: -50px;
    right: -50px;
}

/* =========================================
   Animations
   ========================================= */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -20px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Small Delays */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* =========================================
   Responsive Styles Overhaul
   ========================================= */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 20px;
    }

    .about-text h2 {
        font-size: 3rem;
    }

    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 15px;
    }

    /* Navbar Mobile Fix */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: rgba(255, 240, 245, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
        gap: 25px;
    }

    [data-theme="dark"] .nav-links {
        background: rgba(26, 26, 26, 0.98);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    /* Hero Mobile */
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    /* About Mobile */
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .about-image {
        max-width: 100%;
    }

    .stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 25px;
    }

    /* Timeline Mobile Overhaul */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
        text-align: left !important;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item::after {
        left: 19px !important;
        right: auto !important;
    }

    .timeline-item.left::after {
        right: auto;
    }

    /* Gallery Mobile */
    .gallery-grid {
        column-count: 1;
    }

    /* Contact Mobile */
    .contact-form {
        padding: 30px 20px;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .stat-item .number {
        font-size: 2.2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .quote-slide p {
        font-size: 1.6rem;
    }
}

/* =========================================
   14. Advanced Dynamic Effects
   ========================================= */

/* Parallax Effect Classes */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-img img {
    transition: transform 0.2s ease-out;
}



/* Petal Rain Animation */
.petal {
    position: fixed;
    pointer-events: none;
    z-index: 1001;
    top: -50px;
    font-size: 20px;
    animation: rain linear infinite;
    user-select: none;
}

@keyframes rain {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* Floating Hearts Micro-animation */
.fas.fa-heart.floating {
    position: absolute;
    color: var(--primary-color);
    opacity: 0;
    animation: floatUp 2.5s ease-out forwards;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-150px) scale(2);
        opacity: 0;
    }
}

/* Enhanced Glassmorphism & Effects */
.blog-card,
.content,
.contact-form,
.navbar.scrolled {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.blog-card:hover {
    border-color: var(--primary-color);
}

::selection {
    background: var(--primary-color);
    color: var(--white);
}

/* Hero Text Shine Animation */
.hero-content h1 {
    background: linear-gradient(90deg, #fff, var(--primary-color), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 5s linear infinite;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.about-image img {
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: translate(-10px, -10px);
}