/* Updated color palette */
:root {
    --ivory: #fdf8f3;
    --blush: #fadcd9;
    --dusty-rose: #e8a1a0;
    --sage: #c5d5c5;
    --chocolate: #664c43;
    --gold: #e8c39e;
    --dark-chocolate: #3a2e2a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(92, 77, 71, 0.08);
    --shadow-hover: 0 8px 30px rgba(92, 77, 71, 0.15);
    --border-radius: 16px;
    --romantic-pink: #ffeef0;
    --sunset-orange: #ffb7b0;
    --lavender: #dcd0ff;
    --peach: #f9c5bd;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--ivory);
    color: var(--chocolate);
    line-height: 1.6;
    padding: 15px;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(232, 161, 160, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(197, 213, 197, 0.08) 0%, transparent 50%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle fill="rgba(249,197,189,0.05)" cx="20" cy="20" r="5"/></svg>');
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    will-change: scroll-position;
}

body.keyboard-user *:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    transition: outline 0.2s ease;
}

/* Floral Corner Decorations */
.floral-corner {
    position: fixed;
    width: 150px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.08;
    pointer-events: none;
}

.top-left {
    top: 0;
    left: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23e8a1a0" d="M20,20 C30,10 70,10 80,20 C90,30 90,70 80,80 C70,90 30,90 20,80 C10,70 10,30 20,20 Z"></path></svg>');
}

.top-right {
    top: 0;
    right: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23e8a1a0" d="M80,20 C90,10 90,30 80,20 C70,10 30,10 20,20 C10,30 10,70 20,80 C30,90 70,90 80,80 C90,70 90,30 80,20 Z" transform="rotate(90 50 50)"></path></svg>');
}

.bottom-left {
    bottom: 0;
    left: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23e8a1a0" d="M20,80 C10,70 10,30 20,20 C30,10 70,10 80,20 C90,30 90,70 80,80 C70,90 30,90 20,80 Z"></path></svg>');
}

.bottom-right {
    bottom: 0;
    right: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23e8a1a0" d="M80,80 C90,70 90,30 80,20 C70,10 30,10 20,20 C10,30 10,70 20,80 C30,90 70,90 80,80 Z"></path></svg>');
}

/* Floating Petals */
.floating-petals {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    top: 0;
    left: 0;
}

.petal {
    position: absolute;
    color: var(--dusty-rose);
    font-size: 1.1rem;
    opacity: 0.5;
    animation: floatDown 9s linear infinite;
    will-change: transform, opacity;
}

@keyframes floatDown {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Progress bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1000;
}

.progress-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--dusty-rose));
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 8px rgba(232, 195, 158, 0.4);
    will-change: width;
}

/* Personal Greeting */
.personal-greeting {
    text-align: center;
    background: linear-gradient(135deg, var(--romantic-pink), var(--blush));
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--chocolate);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.personal-greeting:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.personal-greeting::before,
.personal-greeting::after {
    content: '✨';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    animation: twinkle 3s ease-in-out infinite;
}

.personal-greeting::before {
    left: 15px;
}

.personal-greeting::after {
    right: 15px;
    animation-delay: 1.5s;
}

.floating-heart, .floating-sparkle {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.floating-heart {
    animation-delay: 0.5s;
    color: #e8a1a0;
}

.floating-sparkle {
    animation-delay: 1s;
    color: #e8c39e;
}

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

@keyframes twinkle {
    0%, 100% { opacity: 0.4; transform: translateY(-50%) scale(0.9); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.1); }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--blush);
    position: relative;
    transition: var(--transition-slow);
    z-index: 2;
}

header {
    background: linear-gradient(135deg, rgba(253, 248, 243, 0.9) 0%, rgba(252, 236, 229, 0.85) 50%, rgba(255, 238, 240, 0.8) 100%);
    padding: 35px 20px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.floral-header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 10%, rgba(249, 197, 189, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 5%, rgba(220, 208, 255, 0.15) 0%, transparent 25%);
    z-index: 1;
    pointer-events: none;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.header-content {
    position: relative;
    z-index: 2;
}

/* Happy Brides Counter */
.happy-brides-counter {
    background: linear-gradient(45deg, var(--sage), var(--dusty-rose));
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin: 10px 0;
    font-weight: 600;
    box-shadow: var(--shadow);
    animation: gentleBounce 4s ease-in-out infinite;
    transition: var(--transition);
}

.happy-brides-counter:hover {
    transform: scale(1.05);
}

.counter-number {
    font-size: 1.2rem;
    font-weight: 700;
}

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

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--chocolate);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.05);
    position: relative;
    transition: var(--transition);
}

.sparkle {
    position: absolute;
    color: var(--gold);
    font-size: 1rem;
    animation: sparkle 2s linear infinite;
    will-change: opacity, transform;
}

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

.subtitle {
    color: #947c74;
    font-weight: 500;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    max-width: 380px;
    margin: 0 auto;
    transition: var(--transition);
}

/* Motivation Quotes */
.motivation-quotes {
    text-align: center;
    margin: 15px 0;
    min-height: 30px;
    position: relative;
}

.rotating-quote {
    font-style: italic;
    color: var(--chocolate);
    opacity: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.rotating-quote.active {
    opacity: 1;
    position: relative;
    left: auto;
    transform: none;
}

.floral-divider {
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><path fill="%23f7e9e3" d="M0,0 Q50,10 100,0 L100,10 L0,10 Z"/></svg>') center bottom no-repeat;
    background-size: 100% 100%;
    margin-top: -1px;
}

.profile-section {
    text-align: center;
    padding: 0 20px 15px;
    margin-top: -70px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow);
    margin: 0 auto 15px;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><rect fill="%23f7e9e3" width="200" height="200"/></svg>') center/cover;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.profile-img::after {
    content: "View Profile";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(102, 76, 67, 0.9);
    color: white;
    font-size: 0.8rem;
    padding: 6px;
    transform: translateY(100%);
    transition: var(--transition);
    opacity: 0;
}

.profile-img:hover::after {
    transform: translateY(0);
    opacity: 1;
}

.bio {
    font-size: 0.9rem;
    color: #7a6d68;
    max-width: 320px;
    margin: 0 auto;
    transition: var(--transition);
}

/* Wedding Journey Progress */
.wedding-journey {
    background: var(--ivory);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px;
    text-align: center;
    transition: var(--transition);
}

.wedding-journey:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.wedding-journey h4 {
    color: var(--chocolate);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.journey-steps {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    padding: 12px 8px;
    background: var(--blush);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--chocolate);
    transition: var(--transition);
    min-width: 80px;
    cursor: pointer;
}

.step.active {
    background: var(--dusty-rose);
    color: white;
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.step:hover:not(.active) {
    background: var(--sage);
    color: white;
}

/* Search bar */
.search-container {
    padding: 0 20px 10px;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border-radius: 30px;
    border: 1px solid var(--blush);
    background: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--chocolate);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.search-box:focus {
    outline: none;
    border-color: var(--dusty-rose);
    box-shadow: 0 4px 20px rgba(232, 161, 160, 0.2);
    transform: scale(1.02);
}

.search-icon {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dusty-rose);
    cursor: pointer;
    transition: var(--transition);
}

.search-icon:hover {
    color: var(--gold);
    transform: translateY(-50%) scale(1.1);
}

.search-reset {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dusty-rose);
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    background: none;
    border: none;
    font-size: 1rem;
    padding: 5px;
    border-radius: 50%;
}

.search-reset.visible {
    opacity: 1;
}

.search-reset:hover {
    color: var(--gold);
    background: var(--blush);
}

/* Limited Offer */
.limited-offer {
    background: linear-gradient(45deg, var(--sunset-orange), var(--dusty-rose));
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px;
    text-align: center;
    position: relative;
    animation: pulseGlow 3s ease-in-out infinite;
    transition: var(--transition);
    cursor: pointer;
}

.limited-offer:hover {
    transform: scale(1.02);
}

.offer-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.countdown-timer {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 12px;
    letter-spacing: 1px;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 183, 176, 0.3); }
    50% { box-shadow: 0 0 25px rgba(255, 183, 176, 0.6); }
}

/* Wedding Style Quiz */
.wedding-style-quiz {
    background: linear-gradient(135deg, var(--lavender), var(--blush));
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px;
    text-align: center;
    transition: var(--transition);
}

.wedding-style-quiz:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.wedding-style-quiz h3 {
    color: var(--chocolate);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.quiz-btn, .cta-button {
    background: linear-gradient(45deg, var(--dusty-rose), var(--sage));
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
}

.quiz-btn:hover, .cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(102, 76, 67, 0.25);
}

.quiz-btn:disabled, .cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.links-section {
    padding: 10px 20px 20px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    color: var(--gold);
    margin: 25px 0 20px;
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    position: relative;
    display: inline-block;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
}

.section-title:hover {
    color: var(--dark-chocolate);
    transform: scale(1.02);
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.section-title:hover:after {
    width: 80px;
    background: var(--dark-chocolate);
}

.link-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.link-grid.loaded {
    opacity: 1;
    transform: translateY(0);
}

.link-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #f0e6e1;
    border-radius: var(--border-radius);
    padding: 18px;
    text-align: left;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    will-change: transform;
}

.link-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-card:hover::after {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(102, 76, 67, 0.2);
    border-color: var(--dusty-rose);
}

.link-card:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.link-icon {
    width: 48px;
    height: 48px;
    background: var(--blush);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: var(--chocolate);
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.link-card:hover .link-icon {
    background: var(--dusty-rose);
    color: white;
    transform: scale(1.1) rotate(3deg);
}

.link-text {
    flex: 1;
    padding-right: 10px;
}

.link-title {
    font-weight: 600;
    color: var(--chocolate);
    margin-bottom: 6px;
    font-size: 1.05rem;
    transition: var(--transition-fast);
}

.link-card:hover .link-title {
    color: var(--dark-chocolate);
}

.link-desc {
    color: #8a7e79;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
    transition: var(--transition-fast);
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: white;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.link-card:hover .badge {
    transform: scale(1.05) rotate(-2deg);
}

.free-badge {
    background: var(--sage);
}

.affiliate-badge {
   background: #8a6bc9;
   font-size: 0.7rem;
   padding: 4px 10px;
}

.price-badge {
   background: var(--chocolate);
}

/* Filter buttons */
.filter-container {
   display: flex;
   justify-content: center;
   gap: 12px;
   margin: 20px 0;
   flex-wrap: wrap;
}

.filter-btn {
   background: var(--blush);
   border: none;
   border-radius: 25px;
   padding: 8px 18px;
   font-size: 0.85rem;
   font-weight: 500;
   color: var(--chocolate);
   cursor: pointer;
   transition: var(--transition);
   position: relative;
   overflow: hidden;
   box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-btn:focus {
   outline: 2px solid var(--gold);
   outline-offset: 2px;
}

.filter-btn.active, .filter-btn:hover {
   background: var(--dusty-rose);
   color: white;
   transform: scale(1.05);
   box-shadow: var(--shadow);
}

/* Recent Activity Feed */
.recent-activity {
   background: var(--ivory);
   padding: 20px;
   border-radius: var(--border-radius);
   margin: 20px;
   transition: var(--transition);
}

.recent-activity:hover {
   transform: translateY(-2px);
   box-shadow: var(--shadow);
}

.activity-item {
   display: flex;
   align-items: center;
   padding: 10px 0;
   font-size: 0.9rem;
   color: var(--chocolate);
   transition: var(--transition-fast);
}

.activity-item:hover {
   transform: translateX(5px);
}

.activity-dot {
   width: 8px;
   height: 8px;
   background: var(--sage);
   border-radius: 50%;
   margin-right: 12px;
   animation: pulse 3s ease-in-out infinite;
   flex-shrink: 0;
}

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

/* Testimonial Carousel */
.testimonial-carousel {
   background: var(--romantic-pink);
   padding: 25px;
   border-radius: var(--border-radius);
   margin: 20px;
   text-align: center;
   position: relative;
   overflow: hidden;
   min-height: 120px;
   transition: var(--transition);
}

.testimonial-carousel:hover {
   transform: translateY(-2px);
   box-shadow: var(--shadow);
}

.testimonial {
   opacity: 0;
   transform: translateX(30px);
   transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
   position: absolute;
   width: calc(100% - 50px);
   left: 25px;
   top: 25px;
}

.testimonial.active {
   opacity: 1;
   transform: translateX(0);
   position: relative;
   left: auto;
   top: auto;
   width: auto;
}

.stars {
   font-size: 1.3rem;
   margin-bottom: 12px;
   color: var(--gold);
   text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.testimonial p {
   margin-bottom: 10px;
   font-style: italic;
   line-height: 1.6;
}

.bride-name {
   font-style: italic;
   color: var(--chocolate);
   font-size: 0.9rem;
   opacity: 0.8;
}

footer {
   padding: 35px 20px;
   background: #fdfbfa;
   text-align: center;
   margin-top: 10px;
   position: relative;
   transition: var(--transition);
}

.footer-top {
   position: absolute;
   top: -20px;
   left: 0;
   width: 100%;
   height: 20px;
   background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><path fill="%23fdfbfa" d="M0,10 Q50,0 100,10 L100,10 L0,10 Z"/></svg>') center top no-repeat;
   background-size: 100% 100%;
}

.social-title {
   color: var(--chocolate);
   font-weight: 500;
   margin-bottom: 20px;
   font-size: 1.1rem;
}

.social-icons {
   display: flex;
   justify-content: center;
   gap: 15px;
   margin-bottom: 30px;
}

.social-icon {
   width: 50px;
   height: 50px;
   background: var(--blush);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--chocolate);
   font-size: 1.4rem;
   transition: var(--transition);
   text-decoration: none;
   position: relative;
   overflow: hidden;
   box-shadow: var(--shadow);
}

.social-icon::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: var(--dusty-rose);
   transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   z-index: -1;
}

.social-icon:hover::before {
   left: 0;
}

.social-icon:hover {
   color: white;
   transform: translateY(-5px) scale(1.1);
   box-shadow: var(--shadow-hover);
}

.copyright {
   color: #a09894;
   font-size: 0.85rem;
   margin-top: 20px;
   transition: var(--transition-fast);
}

/* Back to top button */
.back-to-top {
   position: fixed;
   bottom: 25px;
   right: 25px;
   width: 50px;
   height: 50px;
   background: var(--gold);
   color: white;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   opacity: 0;
   visibility: hidden;
   transition: var(--transition);
   z-index: 999;
   box-shadow: var(--shadow);
   border: none;
   font-size: 1.1rem;
}

.back-to-top:focus {
   outline: 2px solid white;
   outline-offset: 2px;
}

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

.back-to-top:hover {
   transform: translateY(-3px) scale(1.1);
   background: var(--chocolate);
   box-shadow: var(--shadow-hover);
}

/* Modal Improvements */
.modal {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(102, 76, 67, 0.95);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 2000;
   opacity: 0;
   visibility: hidden;
   transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   backdrop-filter: blur(8px);
}

.modal.show {
   opacity: 1;
   visibility: visible;
}

.modal-content {
   background: white;
   border-radius: var(--border-radius);
   width: 90%;
   max-width: 550px;
   padding: 0;
   position: relative;
   transform: translateY(30px) scale(0.9);
   transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   max-height: 90vh;
   overflow: hidden;
   box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal.show .modal-content {
   transform: translateY(0) scale(1);
}

/* Profile Modal Specific Styles */
.profile-header {
   background: linear-gradient(135deg, var(--romantic-pink), var(--blush));
   padding: 30px 30px 20px;
   text-align: center;
   position: relative;
}

.modal-image {
   width: 100px;
   height: 100px;
   border-radius: 50%;
   margin: 0 auto 15px;
   object-fit: cover;
   border: 4px solid white;
   box-shadow: var(--shadow);
}

.modal-title {
   font-family: 'Playfair Display', serif;
   color: var(--chocolate);
   margin-bottom: 5px;
   font-size: 1.8rem;
}

.title-subtitle {
   color: var(--sage);
   font-size: 0.9rem;
   font-weight: 500;
   margin-bottom: 0;
}

.profile-content {
   padding: 25px 30px 30px;
   overflow-y: auto;
   max-height: calc(90vh - 200px);
}

.profile-content p {
   margin-bottom: 18px;
   line-height: 1.7;
   color: var(--chocolate);
}

.expertise-section {
   background: var(--ivory);
   padding: 20px;
   border-radius: 12px;
   margin: 20px 0;
}

.expertise-section h4 {
   color: var(--chocolate);
   margin-bottom: 12px;
   font-family: 'Playfair Display', serif;
}

.expertise-section ul {
   list-style: none;
   padding: 0;
}

.expertise-section li {
   padding: 6px 0;
   color: var(--chocolate);
   transition: var(--transition-fast);
}

.expertise-section li:hover {
   transform: translateX(5px);
   color: var(--dark-chocolate);
}

.personal-touch {
   background: var(--blush);
   padding: 18px;
   border-radius: 12px;
   margin: 20px 0;
   border-left: 4px solid var(--dusty-rose);
}

.cta-section {
   text-align: center;
   padding-top: 20px;
   border-top: 1px solid var(--blush);
}

.contact-info {
   margin-top: 15px;
   font-size: 0.85rem;
   color: var(--sage);
   font-style: italic;
}

.close-modal {
   position: absolute;
   top: 15px;
   right: 15px;
   font-size: 1.4rem;
   cursor: pointer;
   color: var(--chocolate);
   transition: var(--transition);
   background: rgba(255,255,255,0.9);
   border: none;
   width: 35px;
   height: 35px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 50%;
   backdrop-filter: blur(10px);
   z-index: 10;
}

.close-modal:hover {
   color: var(--gold);
   transform: rotate(90deg) scale(1.1);
   background: white;
   box-shadow: var(--shadow);
}

.close-modal:focus {
   outline: 2px solid var(--gold);
   outline-offset: 2px;
}

/* Quiz Modal */
.quiz-modal .modal-content {
   max-width: 650px;
}

.quiz-modal .modal-content {
   padding: 30px;
}

.quiz-question {
   margin: 20px 0;
}

.quiz-question h3 {
   color: var(--chocolate);
   margin-bottom: 20px;
   text-align: center;
}

.quiz-options {
   display: grid;
   gap: 12px;
   margin: 20px 0;
}

.quiz-option {
   padding: 15px 20px;
   border: 2px solid var(--blush);
   border-radius: var(--border-radius);
   background: white;
   cursor: pointer;
   transition: var(--transition);
   text-align: left;
   position: relative;
   overflow: hidden;
}

.quiz-option:hover {
   background: var(--blush);
   transform: translateX(5px);
   border-color: var(--dusty-rose);
}

.quiz-option.selected {
   background: var(--dusty-rose);
   color: white;
   border-color: var(--dusty-rose);
   transform: scale(1.02);
}

.quiz-result {
   text-align: center;
   padding: 25px;
   background: var(--romantic-pink);
   border-radius: var(--border-radius);
   margin: 20px 0;
}

.quiz-result h3 {
   color: var(--chocolate);
   margin-bottom: 15px;
   font-family: 'Playfair Display', serif;
}

/* No results message */
.no-results {
   text-align: center;
   padding: 50px 20px;
   display: none;
   opacity: 0;
   transform: translateY(20px);
   transition: var(--transition-slow);
}

.no-results.show {
   display: block;
   opacity: 1;
   transform: translateY(0);
}

.no-results i {
   font-size: 3.5rem;
   color: var(--dusty-rose);
   margin-bottom: 20px;
   animation: brokenHeart 3s ease-in-out infinite;
}

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

.no-results h3 {
   color: var(--chocolate);
   margin-bottom: 10px;
   font-family: 'Playfair Display', serif;
}

/* Scroll Reveal Animation */
.reveal-on-scroll {
   opacity: 0;
   transform: translateY(40px);
   transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
   opacity: 1;
   transform: translateY(0);
}

/* Loading Animation */
.loading, .fa-spinner {
   display: inline-block;
   animation: spin 1s linear infinite;
}

@keyframes spin {
   to { transform: rotate(360deg); }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
   body {
       padding: 8px;
   }

   h1 {
       font-size: 1.8rem;
   }
   
   .subtitle {
       font-size: 0.9rem;
   }
   
   .profile-img {
       width: 100px;
       height: 100px;
   }
   
   .link-card {
       padding: 16px;
   }
   
   .link-icon {
       width: 42px;
       height: 42px;
       font-size: 1.2rem;
   }
   
   .back-to-top {
       bottom: 20px;
       right: 20px;
       width: 45px;
       height: 45px;
   }

   .journey-steps {
       flex-direction: column;
       gap: 10px;
   }

   .step {
       min-width: auto;
       padding: 10px 15px;
   }

   .limited-offer, .wedding-style-quiz {
       margin: 15px 8px;
       padding: 18px;
   }

   .modal-content {
       width: 95%;
       margin: 10px;
   }

   .profile-content {
       padding: 20px;
   }

   .social-icons {
       gap: 12px;
   }

   .social-icon {
       width: 45px;
       height: 45px;
       font-size: 1.2rem;
   }
}

/* Tablet Optimizations */
@media (min-width: 768px) {
   .link-grid {
       grid-template-columns: repeat(2, 1fr);
   }
   
   .container {
       max-width: 750px;
   }

   .filter-container {
       gap: 15px;
   }

   .filter-btn {
       padding: 10px 20px;
       font-size: 0.9rem;
   }
}

/* Large Screen Optimizations */
@media (min-width: 1200px) {
   .container {
       max-width: 900px;
   }

   .link-grid {
       grid-template-columns: repeat(3, 1fr);
       gap: 20px;
   }

   .link-card {
       padding: 20px;
   }

   .profile-img {
       width: 130px;
       height: 130px;
   }
}

/* Animation Performance */
@media (prefers-reduced-motion: reduce) {
   *,
   *::before,
   *::after {
       animation-duration: 0.01ms !important;
       animation-iteration-count: 1 !important;
       transition-duration: 0.01ms !important;
   }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
   :root {
       --chocolate: #000;
       --dusty-rose: #8b0000;
       --sage: #006400;
       --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
   }
}

/* Error Message */
.error-message {
   text-align: center;
   padding: 40px;
   color: #d9534f;
   background: rgba(217, 83, 79, 0.1);
   border-radius: var(--border-radius);
   border: 1px solid rgba(217, 83, 79, 0.2);
}

.error-message i {
   font-size: 3rem;
   margin-bottom: 20px;
   display: block;
}

/* Enhanced animations for staggered loading */
.link-card {
   animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

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

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