/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ff3f6c 0%, #ff6b9d 100%);
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    animation: fadeInDown 1s ease-out;
}

.header p {
    font-size: 1.4rem;
    color: white;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Message Box */
.message-box {
    background: white;
    border-radius: 25px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(255, 63, 108, 0.4);
    margin: 0 auto;
    max-width: 700px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.message-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.message-box:hover::before {
    left: 100%;
}

.message-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(255, 63, 108, 0.5);
}

/* Message Content */
.message-content {
    font-size: 1.2rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.main-message {
    font-size: 2rem;
    font-weight: 700;
    color: #ff3f6c;
    margin: 0;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(255, 63, 108, 0.1);
    animation: fadeInScale 1s ease-out 0.6s both;
    position: relative;
}

.main-message::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff3f6c, #ff6b9d);
    border-radius: 2px;
    animation: expandWidth 1s ease-out 1s both;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

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

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

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2.8rem;
        letter-spacing: 1px;
    }
    
    .header p {
        font-size: 1.2rem;
    }
    
    .message-box {
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .main-message {
        font-size: 1.6rem;
    }
    
    .main-message::after {
        width: 40px;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2.2rem;
    }
    
    .header p {
        font-size: 1.1rem;
    }
    
    .message-box {
        padding: 30px 20px;
    }
    
    .main-message {
        font-size: 1.4rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 63, 108, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 63, 108, 0.8);
}
