/* Base Styles */
:root {
    /* Modern, refined color palette */
    --primary-color: #ffeef5;
    --secondary-color: #f0e6ff;
    --accent-color: #ff6b9c;
    --accent-secondary: #9d65c9;
    --text-color: #2d2d2d;
    --light-text: #ffffff;
    --dark-text: #1a1a1a;
    --tulip-pink: #ff4d8d;
    --tulip-stem: #5caa2f;
    --gradient-primary: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 3D Environment Setup */
.container {
    width: 100%;
    position: relative;
    z-index: 2;
    perspective: 2000px;
    transform-style: preserve-3d;
}

.hero {
    transform-style: preserve-3d;
}

.tulip-container {
    transform-style: preserve-3d;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQ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ppIhA1/mSZ/RxjFDrJC5xifFjJpY2Xl5zXdguFqYyTR1zSp1Y9p+tktDYYSNflcxI0iyO4TPBdlRcpeqjK/piF5bklq77VSEaA+z8qmJTFzIWiitbnzR794USKBUaT0NTEsVjZqLaFVqJoPN9ODG70IPbfBHKK+/q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==');
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark-text);
    letter-spacing: -0.02em;
}

.title {
    transform-style: preserve-3d;
    position: relative;
    font-size: clamp(5rem, 18vw, 12rem);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.3;
    transform: translateZ(-10px);
    filter: blur(8px);
}

.title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 2.5rem;
    color: var(--dark-text);
    opacity: 0.8;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.message {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto 3.5rem;
    color: var(--dark-text);
    position: relative;
}

.message::before, .message::after {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
}

.message::before {
    top: -20px;
    left: -20px;
}

.message::after {
    bottom: -40px;
    right: -20px;
}

/* Badge */
.badge {
    transform-style: preserve-3d;
    position: relative;
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 2rem;
    box-shadow: 
        0 5px 15px rgba(255, 77, 141, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    transform: translateZ(20px);
    transition: var(--transition-smooth);
}

.badge:hover {
    transform: translateZ(30px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(255, 77, 141, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 0.6);
}

/* Divider */
.divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 1.5rem auto 2.5rem;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

/* Enhanced Content Box */
.content {
    transform-style: preserve-3d;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
    padding: 3.5rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1)
    );
    border-radius: 31px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content:hover {
    transform: translateY(-10px) translateZ(20px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 0 30px rgba(255, 255, 255, 0.6);
}

.content:hover::before {
    opacity: 1;
}

.scroll-indicator {
    transform-style: preserve-3d;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    transform: translateZ(10px);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.arrow {
    transform: translateZ(15px) rotate(45deg);
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* Tribute Section */
.tribute {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem;
    position: relative;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
}

.tribute-content {
    max-width: 800px;
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 2;
}

.tribute h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    color: var(--dark-text);
    position: relative;
    display: inline-block;
}

.tribute-text {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.8;
    margin-bottom: 1.8rem;
    color: var(--text-color);
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-top: 3.5rem;
    color: var(--accent-color);
    position: relative;
}

.signature::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    opacity: 0.5;
}

.tribute-content img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
    transition: var(--transition-smooth);
}

.tribute-content img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Enhanced Tulip Field */
.tulip-field {
    transform-style: preserve-3d;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 1;
    background-image: 
        linear-gradient(to top, 
            rgba(255, 77, 141, 0.2), 
            transparent
        ),
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 70%
        );
    transform: translateZ(-50px);
}

/* Qualities Section */
.qualities {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    position: relative;
}

.qualities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,105,180,0.05) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--dark-text);
}

.qualities-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    width: 100%;
    max-width: 1200px;
}

.quality-card {
    transform-style: preserve-3d;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.quality-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.quality-card:hover::after {
    opacity: 1;
}

.quality-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.quality-icon {
    transform-style: preserve-3d;
    transform: translateZ(20px);
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.1), rgba(157, 101, 201, 0.1));
    box-shadow: 0 10px 20px rgba(255, 77, 141, 0.1);
}

.quality-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    color: var(--accent-color);
}

.quality-card p {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Footer */
footer {
    padding: 3rem 2rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    position: relative;
    border-top: 1px solid rgba(255, 77, 141, 0.1);
}

footer p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.heart-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    animation: pulse 1.5s infinite;
}

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

.tulip-small {
    width: 40px;
    height: 40px;
    margin: 1rem auto 0;
    transition: transform 0.3s ease;
}

.tulip-small:hover {
    transform: scale(1.2) rotate(5deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .qualities-container {
        flex-direction: column;
        align-items: center;
    }
    
    .quality-card {
        width: 100%;
    }

    .content {
        padding: 2rem;
    }

    .tribute-content {
        padding: 2rem;
    }

    .message::before, .message::after {
        display: none;
    }

    .badge {
        transform: translateZ(10px);
    }
    
    .quality-icon {
        transform: translateZ(10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tulip,
    .content,
    .badge,
    .quality-card {
        transform: none !important;
        transition: opacity 0.3s ease;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced Tulip Styles */
.tulip {
    position: absolute;
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(255, 77, 141, 0.2));
    transform-style: preserve-3d;
    will-change: transform;
}

.tulip:hover {
    opacity: 1;
    transform: scale(1.05) translateZ(20px);
    filter: drop-shadow(0 10px 25px rgba(255, 77, 141, 0.3));
}

/* Parallax Effect */
.parallax {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
} 
