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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff6b9d 0%, #c06c84 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 600px;
    animation: slideIn 0.8s ease-out;
}

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

.card {
    background: white;
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

/* Heart Animation Background */
.hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 40px;
    animation: float 4s ease-in-out infinite;
    opacity: 0.15;
}

.heart:nth-child(1) {
    left: 5%;
    top: -60px;
    animation-delay: 0s;
}

.heart:nth-child(2) {
    left: 25%;
    top: -60px;
    animation-delay: 0.7s;
}

.heart:nth-child(3) {
    left: 65%;
    top: -60px;
    animation-delay: 1.4s;
}

.heart:nth-child(4) {
    left: 85%;
    top: -60px;
    animation-delay: 2.1s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(600px) rotate(360deg);
        opacity: 0;
    }
}

/* Content */
.content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.message {
    margin-bottom: 40px;
}

.title {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #ff6b9d, #c06c84);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: 800;
    animation: pulse 2.5s infinite;
}

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

.subtitle {
    font-size: 1.3rem;
    color: #c06c84;
    font-weight: 500;
    margin-bottom: 5px;
}

/* Time Section */
.time-section {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(192, 108, 132, 0.1));
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 107, 157, 0.2);
}

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

.thailand-time {
    font-size: 2.2rem;
    font-family: 'Courier New', monospace;
    color: #ff6b9d;
    font-weight: 700;
    letter-spacing: 2px;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 107, 157, 0.6);
    }
}

/* Countdown Section */
.countdown-section {
    margin-bottom: 30px;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.countdown-item {
    background: linear-gradient(135deg, #ff6b9d, #c06c84);
    padding: 20px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
    animation: slideInItem 0.6s ease-out forwards;
    opacity: 0;
}

.countdown-item:nth-child(1) {
    animation-delay: 0.1s;
}

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

.countdown-item:nth-child(3) {
    animation-delay: 0.3s;
}

.countdown-item:nth-child(4) {
    animation-delay: 0.4s;
}

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

.countdown-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
}

/* Target Date */
.target-date {
    font-size: 1rem;
    color: #c06c84;
    margin-bottom: 20px;
    font-weight: 600;
}

.target-date span {
    color: #ff6b9d;
    font-weight: 700;
}

/* Love Message */
.love-message {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(192, 108, 132, 0.15));
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #ff6b9d;
}

.love-message p {
    font-size: 1.2rem;
    color: #c06c84;
    font-weight: 600;
    animation: fadeInText 1s ease-out 0.5s forwards;
    opacity: 0;
}

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

/* Responsive Design */
@media (max-width: 600px) {
    .card {
        padding: 35px 25px;
        border-radius: 20px;
    }

    .title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .thailand-time {
        font-size: 1.6rem;
    }

    .countdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    .time-section {
        padding: 15px;
        margin-bottom: 25px;
    }

    body {
        padding: 15px;
    }

    .message {
        margin-bottom: 30px;
    }
}

@media (max-width: 400px) {
    .card {
        padding: 25px 15px;
    }

    .title {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .thailand-time {
        font-size: 1.4rem;
    }

    .countdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .countdown-item {
        padding: 15px;
    }

    .countdown-value {
        font-size: 1.6rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .love-message p {
        font-size: 1rem;
    }

    .target-date {
        font-size: 0.9rem;
    }
}

/* Landscape Mode */
@media (max-height: 700px) and (orientation: landscape) {
    .card {
        padding: 30px 40px;
    }

    .title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .message {
        margin-bottom: 20px;
    }

    .countdown-section {
        margin-bottom: 15px;
    }
}

/* Animation for numbers that change */
.number-change {
    animation: numberFlip 0.5s ease-in-out;
}

@keyframes numberFlip {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}
