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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding: 10px;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floating Flowers Animation */
.floating-flowers {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.flower {
    position: absolute;
    font-size: 3rem;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.flower:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.flower:nth-child(2) {
    right: 15%;
    top: 60%;
    animation-delay: 1.5s;
}

.flower:nth-child(3) {
    left: 20%;
    bottom: 20%;
    animation-delay: 3s;
}

.flower:nth-child(4) {
    right: 10%;
    top: 30%;
    animation-delay: 4.5s;
}

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

/* Hide flowers on very small screens to reduce clutter */
@media (max-width: 480px) {
    .floating-flowers {
        opacity: 0.3;
    }

    .flower {
        font-size: 2rem;
    }
}

/* Card Styling */
.card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    text-align: center;
    animation: slideIn 0.8s ease-out;
    z-index: 10;
}

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

.header h1 {
    font-size: 3rem;
    color: #d946a6;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 30px;
}

/* Name Section */
.name-section {
    margin: 30px 0;
}

.mom-name {
    font-size: 2.5rem;
    color: #764ba2;
    font-weight: bold;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

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

.decorative-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d946a6, #764ba2);
    margin: 0 auto;
    border-radius: 2px;
}

/* Carousel Section */
.carousel-section {
    margin: 30px 0;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: #764ba2;
    border: none;
    font-size: 1.5rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 5;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive carousel adjustments */
@media (max-width: 768px) {
    .carousel {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .carousel {
        max-width: 280px;
    }

    .carousel-btn {
        padding: 6px 10px;
        font-size: 1rem;
    }

    .carousel-dots {
        bottom: 8px;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Message Section */
.message-section {
    margin: 30px 0;
}

.message {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    font-style: italic;
}

/* Hearts Container */
.heart-container {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.heart {
    font-size: 2rem;
    animation: heartBeat 1.3s ease-in-out infinite;
}

.heart:nth-child(1) {
    animation-delay: 0s;
}

.heart:nth-child(2) {
    animation-delay: 0.2s;
}

.heart:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
}

/* Buttons */
.button-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, #d946a6, #764ba2);
    color: white;
    box-shadow: 0 5px 15px rgba(217, 70, 166, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 70, 166, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.6);
}

/* Hidden Message */
.hidden-message {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.hidden-message.show {
    max-height: 200px;
}

.hidden-message p {
    color: #555;
    line-height: 1.8;
    margin: 10px 0;
}

/* Footer */
.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    color: #d946a6;
    font-size: 1.2rem;
}

/* Responsive Design */

/* Tablets and large phones (600px and below) */
@media (max-width: 768px) {
    .card {
        padding: 35px 20px;
        margin: 15px;
        max-width: calc(100% - 30px);
    }

    .header h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .mom-name {
        font-size: 2rem;
    }

    .message {
        font-size: 1rem;
    }

    .button-section {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .carousel {
        max-width: 350px;
    }

    .carousel-btn {
        padding: 8px 12px;
        font-size: 1.2rem;
    }

    .heart {
        font-size: 1.5rem;
    }

    .heart-container {
        gap: 10px;
    }

    .footer {
        font-size: 1rem;
    }
}

/* Small phones (480px and below) */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .card {
        padding: 20px 15px;
        margin: 10px;
        max-width: calc(100% - 20px);
        border-radius: 15px;
    }

    .header h1 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .mom-name {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .decorative-line {
        width: 60px;
        height: 2px;
    }

    .carousel-section {
        margin: 20px 0;
    }

    .carousel {
        max-width: 280px;
    }

    .carousel-image {
        border-radius: 10px;
    }

    .carousel-btn {
        padding: 6px 10px;
        font-size: 1rem;
    }

    .message-section {
        margin: 15px 0;
    }

    .message {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .heart {
        font-size: 1.2rem;
    }

    .heart-container {
        margin: 15px 0;
        gap: 8px;
    }

    .button-section {
        flex-direction: column;
        margin: 15px 0;
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 8px 15px;
        font-size: 0.9rem;
        border-radius: 40px;
    }

    .hidden-message {
        padding: 15px;
        margin: 15px 0;
    }

    .hidden-message p {
        font-size: 0.95rem;
        margin: 8px 0;
    }

    .footer {
        margin-top: 15px;
        padding-top: 15px;
        font-size: 0.95rem;
    }

    .flower {
        font-size: 2rem;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Extra small phones (320px and below) */
@media (max-width: 320px) {
    .card {
        padding: 15px 10px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .mom-name {
        font-size: 1.4rem;
    }

    .carousel {
        max-width: 250px;
    }

    .carousel-btn {
        padding: 5px 8px;
        font-size: 0.9rem;
    }

    .btn {
        padding: 7px 12px;
        font-size: 0.85rem;
    }

    .heart {
        font-size: 1rem;
    }
}
