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

body {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}

.name {
    position: fixed;
    top: 30px;
    left: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 32px;
    color: #4a7c2c;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.stalk {
    width: 10px;
    height: 80vh;
    background: linear-gradient(
        to top, 
        #1a3d0a 0%, 
        #2d5016 20%, 
        #4a7c2c 40%, 
        #6ba83e 70%, 
        #8bc34a 100%
    );
    border-radius: 5px 5px 0 0;
    position: relative;
    transform-origin: bottom center;
    animation: wind-sway 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    box-shadow: 
        inset -3px 0 6px rgba(0, 0, 0, 0.25),
        3px 0 20px rgba(106, 168, 62, 0.5);
}

/* Growing effect */
@keyframes grow-in {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 80vh;
        opacity: 1;
    }
}

.stalk {
    animation: grow-in 2s ease-out forwards, wind-sway 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) 2s infinite;
}

@media (max-width: 768px) {
    @keyframes grow-in {
        from {
            height: 0;
            opacity: 0;
        }
        to {
            height: 70vh;
            opacity: 1;
        }
    }
}

@media (max-width: 480px) {
    @keyframes grow-in {
        from {
            height: 0;
            opacity: 0;
        }
        to {
            height: 60vh;
            opacity: 1;
        }
    }
}

/* Leaf left side - turned up */
.stalk::before {
    content: '';
    position: absolute;
    top: 25%;
    left: -20px;
    width: 12px;
    height: 50px;
    background: radial-gradient(ellipse at center, #8bc34a, #6ba83e 60%, transparent);
    border-radius: 50% 50% 0 0;
    transform-origin: bottom center;
    animation: flutter-left-up 4s ease-in-out infinite;
    clip-path: ellipse(50% 50% at 50% 50%);
}

/* Leaf right side - turned up */
.stalk::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 12px;
    height: 50px;
    background: radial-gradient(ellipse at center, #8bc34a, #6ba83e 60%, transparent);
    border-radius: 50% 50% 0 0;
    transform-origin: bottom center;
    animation: flutter-right-up 4.5s ease-in-out infinite;
    clip-path: ellipse(50% 50% at 50% 50%);
}

@keyframes wind-sway {
    0%, 100% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(6deg);
    }
    20% {
        transform: rotate(-4deg);
    }
    30% {
        transform: rotate(7deg);
    }
    40% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(8deg);
    }
    60% {
        transform: rotate(-5deg);
    }
    70% {
        transform: rotate(4deg);
    }
    80% {
        transform: rotate(-2deg);
    }
    90% {
        transform: rotate(3deg);
    }
}

@keyframes flutter-left-up {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(-30deg);
        opacity: 0.9;
    }
    25% {
        transform: translateX(-5px) translateY(-10px) rotate(-40deg);
        opacity: 1;
    }
    50% {
        transform: translateX(3px) translateY(-5px) rotate(-25deg);
        opacity: 0.95;
    }
    75% {
        transform: translateX(-7px) translateY(-12px) rotate(-45deg);
        opacity: 1;
    }
}

@keyframes flutter-right-up {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(30deg);
        opacity: 0.9;
    }
    30% {
        transform: translateX(5px) translateY(-8px) rotate(40deg);
        opacity: 1;
    }
    60% {
        transform: translateX(-3px) translateY(-15px) rotate(25deg);
        opacity: 0.95;
    }
    90% {
        transform: translateX(7px) translateY(-6px) rotate(38deg);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .stalk {
        width: 8px;
        height: 70vh;
    }
    
    .stalk::before,
    .stalk::after {
        width: 10px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .stalk {
        width: 6px;
        height: 60vh;
    }
    
    .stalk::before,
    .stalk::after {
        width: 8px;
        height: 30px;
    }
}
