/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide scrollbar */
body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* WebKit */
}

html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

html::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* WebKit */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 50%, #ffe066 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

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

.tulip {
    position: absolute;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.tulip-image {
    width: 40px;
    height: 60px;
    object-fit: contain;
    filter: hue-rotate(0deg) saturate(1.3) brightness(1.1);
    transition: all 0.3s ease;
}

.tulip-1 {
    top: 10%;
    left: 5%;
    animation-delay: -1s;
}

.tulip-2 {
    top: 20%;
    right: 10%;
    animation-delay: -2s;
}

.tulip-3 {
    top: 40%;
    left: 2%;
    animation-delay: -3s;
}

.tulip-4 {
    top: 60%;
    right: 5%;
    animation-delay: -4s;
}

.tulip-5 {
    top: 80%;
    left: 8%;
    animation-delay: -5s;
}

.tulip-6 {
    top: 30%;
    left: 85%;
    animation-delay: -2.5s;
}

.tulip-7 {
    top: 70%;
    left: 75%;
    animation-delay: -1.5s;
}

.tulip-8 {
    top: 90%;
    right: 20%;
    animation-delay: -3.5s;
}

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

/* Garden Border Tulips */
.garden-border {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    display: none; /* Initially hidden until authentication */
}

.garden-side {
    position: absolute;
    height: 100%;
    width: 200px; /* Much larger to accommodate huge tulips */
}

.left-garden {
    left: -200px; /* Move 50% of tulip width off-screen (200px of 400px) */
    background: linear-gradient(to right, 
        rgba(255, 240, 102, 0.1) 0%, 
        rgba(255, 240, 102, 0.05) 50%, 
        transparent 100%);
}

.right-garden {
    right: -200px; /* Move 50% of tulip width off-screen (200px of 400px) */
    background: linear-gradient(to left, 
        rgba(255, 240, 102, 0.1) 0%, 
        rgba(255, 240, 102, 0.05) 50%, 
        transparent 100%);
}

.garden-tulip {
    position: absolute;
    animation: gardenSway 4s ease-in-out infinite;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    left: 40px; /* Adjusted for much larger off-screen positioning */
}

.garden-tulip-image {
    width: 300px; /* Reduced from 400px */
    height: 450px; /* Reduced from 600px */
    object-fit: contain;
    filter: hue-rotate(0deg) saturate(1.3) brightness(1.1);
    transition: all 0.3s ease;
}

.right-garden .garden-tulip {
    right: 40px; /* Adjusted for much larger off-screen positioning */
    left: auto;
}

.depth-tulip {
    opacity: 0.7;
    animation-delay: -1s;
}

.depth-image {
    width: 320px; /* Massively increased - about 8x original */
    height: 480px; /* Massively increased - about 8x original */
    /* filter: hue-rotate(0deg) saturate(1.0) brightness(1.0); */
}

.garden-tulip:nth-child(odd) {
    animation-delay: -0.5s;
}

.garden-tulip:nth-child(even) {
    animation-delay: -1.5s;
}

.garden-tulip:nth-child(3n) {
    animation-delay: -2s;
}

@keyframes gardenSway {
    0%, 100% {
        transform: inherit rotate(-3deg) translateY(0px);
    }
    25% {
        transform: inherit rotate(2deg) translateY(-5px);
    }
    50% {
        transform: inherit rotate(-1deg) translateY(-8px);
    }
    75% {
        transform: inherit rotate(3deg) translateY(-3px);
    }
}

/* Left garden sway animation - starts and maintains 45deg rotation */
.left-garden .garden-tulip {
    animation-name: leftGardenSway;
    transform: rotate(45deg); /* Base rotation */
}

@keyframes leftGardenSway {
    0%, 100% {
        transform: rotate(45deg) rotate(-3deg) translateY(0px);
    }
    25% {
        transform: rotate(45deg) rotate(2deg) translateY(-5px);
    }
    50% {
        transform: rotate(45deg) rotate(-1deg) translateY(-8px);
    }
    75% {
        transform: rotate(45deg) rotate(3deg) translateY(-3px);
    }
}

/* Right garden sway animation - starts and maintains -45deg rotation */
.right-garden .garden-tulip {
    animation-name: rightGardenSway;
    transform: rotate(-45deg); /* Base rotation */
}

@keyframes rightGardenSway {
    0%, 100% {
        transform: rotate(-45deg) rotate(-3deg) translateY(0px);
    }
    25% {
        transform: rotate(-45deg) rotate(2deg) translateY(-5px);
    }
    50% {
        transform: rotate(-45deg) rotate(-1deg) translateY(-8px);
    }
    75% {
        transform: rotate(-45deg) rotate(3deg) translateY(-3px);
    }
}

/* Floating tulip hover effects */
.tulip:hover .tulip-image {
    transform: scale(1.5) rotate(15deg);
    filter: hue-rotate(0deg) saturate(1.5) brightness(1.3) drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
}

/* Heart explosion animation */
.heart {
    position: fixed;
    font-size: 20px;
    pointer-events: none;
    z-index: 1000;
    animation: heartFly 2s ease-out forwards;
}

@keyframes heartFly {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0) translateX(0);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2) translateY(-50px) translateX(var(--randomX, 0px));
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translateY(-150px) translateX(var(--randomX, 0px));
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 60px 20px 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 0 0 50px 50px;
    margin-bottom: 60px;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    color: #d4831c;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: #8b6914;
    font-style: italic;
    font-weight: 300;
}

/* Section titles */
.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    color: #d4831c;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Timeline Section */
.timeline-section {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    margin: 0 20px 60px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, #ffe066, #ffcc00);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
    transform: translateX(-50px) translateY(50px);
}

.timeline-item.left.animate {
    transform: translateX(0) translateY(0);
}

.timeline-item.right {
    left: 50%;
    transform: translateX(50px) translateY(50px);
}

.timeline-item.right.animate {
    transform: translateX(0) translateY(0);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -13px;
    background: #ffe066;
    border: 3px solid #ffcc00;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -13px;
}

.timeline-item::before {
    content: '';
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #fff;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #fff;
}

.timeline-item.right::before {
    left: 30px;
    border: medium solid #fff;
    border-width: 10px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
}

.timeline-content {
    padding: 25px 30px;
    background: white;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #ffe066;
}

.timeline-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.timeline-date {
    font-weight: 600;
    color: #d4831c;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #8b6914;
    margin-bottom: 15px;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.timeline-tulip {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    animation: pulse 2s infinite;

}

.timeline-tulip-image {
    width: 30px;
    height: 45px;
    object-fit: contain;
    filter: hue-rotate(45deg);
    animation: pulse 2s infinite;
}

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

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

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    text-align: center;
    border-radius: 50px 50px 0 0;
    margin-top: 60px;
}

.footer-message {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #d4831c;
    margin-bottom: 20px;
}

.footer-tulips {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-tulips span {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.footer-tulip-image {
    width: 40px;
    height: 60px;
    object-fit: contain;
    filter: hue-rotate(0deg) saturate(1.2) brightness(1.1);
    animation: bounce 2s infinite;
}

.footer-tulips span:nth-child(2) .footer-tulip-image {
    animation-delay: 0.2s;
}

.footer-tulips span:nth-child(3) .footer-tulip-image {
    animation-delay: 0.4s;
}

/* Tulip emoji image styles */
.tulip-emoji-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    animation: pulse 2s infinite;
}

.footer-tulip-emoji {
    width: 32px;
    height: 32px;
    object-fit: contain;
    animation: bounce 2s infinite;
}

.footer-tulip-emoji:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-tulip-emoji:nth-child(3) {
    animation-delay: 0.4s;
}

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

/* Password Protection Overlay */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 50%, #ffe066 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.password-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 2px solid #ffd700;
}

.password-tulip-decoration {
    margin-bottom: 20px;
}

.password-tulip-img {
    width: 60px;
    height: 60px;
    animation: gentle-bounce 2s ease-in-out infinite;
}

.password-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #e6a200;
    margin-bottom: 10px;
    font-weight: 700;
}

.password-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.password-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.password-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #ffd700;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.password-input:focus {
    border-color: #e6a200;
    box-shadow: 0 0 10px rgba(230, 162, 0, 0.3);
}

.password-button {
    padding: 15px 25px;
    background: linear-gradient(135deg, #ffd700, #e6a200);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 162, 0, 0.4);
}

.password-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 10px;
    min-height: 20px;
}

/* Main Content Container */
.main-content {
    position: relative;
    min-height: 100vh;
    z-index: 2;
}

.main-content.hidden {
    display: none;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .timeline-section {
        margin: 0 10px 40px;
        padding: 40px 15px;
    }
    
    .timeline-image {
        height: 180px;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::before {
        left: 60px;
        border: medium solid #fff;
        border-width: 10px 10px 10px 0;
        border-color: transparent #fff transparent transparent;
    }
    
    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 21px;
    }
    
    .timeline-item.right {
        left: 0%;
    }

    /* Mobile garden tulips */
    .garden-side {
        width: 150px; /* Increased for huge mobile tulips */
    }
    
    .left-garden {
        left: -100px; /* Move 50% of mobile tulip width off-screen (100px of 200px) */
    }
    
    .right-garden {
        right: -100px; /* Move 50% of mobile tulip width off-screen (100px of 200px) */
    }
    
    .garden-tulip-image {
        width: 150px; /* Reduced from 200px */
        height: 225px; /* Reduced from 300px */
    }
    
    .depth-image {
        width: 160px; /* Huge for mobile but manageable */
        height: 240px; /* Huge for mobile but manageable */
    }
    
    .tulip-image {
        width: 30px;
        height: 45px;
    }
    
    .timeline-tulip-image {
        width: 25px;
        height: 37px;
    }
    
    .footer-tulip-image {
        width: 30px;
        height: 45px;
    }
    
    /* Hide some tulips on very small screens */
    .garden-tulip:nth-child(n+8) {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .garden-side {
        width: 40px;
    }
    
    .garden-tulip-image {
        width: 28px;
        height: 42px;
    }
    
    .depth-image {
        width: 22px;
        height: 33px;
    }
    
    .tulip-image {
        width: 25px;
        height: 37px;
    }
}
