/* Hero Message Section */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400;1,500;1,700;1,900&display=swap');

.hero-message-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE8F0 50%, #E8F4FF 100%);
    position: relative;
    overflow: hidden;
}

.hero-message-section::before,
.hero-message-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
}

.hero-message-section::before {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, #FFB6C1, transparent);
    animation: float 8s ease-in-out infinite;
}

.hero-message-section::after {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, #87CEEB, transparent);
    animation: float 8s ease-in-out infinite 4s;
}

/* Message Card */
.message-card {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 30px;
    padding: 60px 50px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 20px 80px rgba(0, 0, 0, 0.05);
    position: relative;
    animation: fadeInUp 1s ease-out;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.message-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #FFB6C1, #87CEEB, #FFD700, #FFB6C1);
    border-radius: 30px;
    z-index: -1;
    opacity: 0.3;
    animation: gradientRotate 6s linear infinite;
}

@keyframes gradientRotate {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Message Header */
.message-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.header-decoration-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, #FFB6C1, transparent);
    position: relative;
}

.header-decoration-line::before {
    content: '✨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.8);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.message-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #d63384;
    text-align: center;
    margin: 0;
    white-space: nowrap;
    background: linear-gradient(135deg, #d63384, #6366f1, #d63384);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

/* Message Content */
.message-content {
    margin-bottom: 40px;
}

.message-paragraph {
    font-size: 1.25rem;
    line-height: 2;
    color: #333;
    margin-bottom: 25px;
    text-align: justify;
    text-indent: 2em;
    position: relative;
    padding-left: 10px;
}

.message-paragraph:first-child::before {
    content: '"';
    position: absolute;
    left: -20px;
    top: -10px;
    font-size: 4rem;
    color: #FFB6C1;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.message-paragraph:last-child::after {
    content: '"';
    position: absolute;
    right: -10px;
    bottom: -30px;
    font-size: 4rem;
    color: #FFB6C1;
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* Message Signature */
.message-signature {
    text-align: right;
    margin-top: 30px;
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

.signature-class {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d63384;
    margin-top: 10px;
    font-style: normal;
}

/* Decorative Elements */
.message-decoration {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.message-decoration.flower-left {
    top: 30px;
    left: 30px;
    animation-delay: 0s;
}

.message-decoration.flower-right {
    top: 30px;
    right: 30px;
    animation-delay: 2s;
}

.message-decoration.heart {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }

    25% {
        transform: translateX(-50%) scale(1.2);
    }

    50% {
        transform: translateX(-50%) scale(1);
    }

    75% {
        transform: translateX(-50%) scale(1.1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-message-section {
        padding: 60px 0;
    }

    .message-card {
        padding: 40px 30px;
        border-radius: 20px;
    }

    .message-title {
        font-size: 2rem;
        white-space: normal;
        line-height: 1.4;
    }

    .message-paragraph {
        font-size: 1.2rem;
        line-height: 1.9;
        text-indent: 1.5em;
    }

    .message-signature {
        font-size: 1.2rem;
        line-height: 1.6;
    }

    .signature-class {
        font-size: 1.4rem;
        line-height: 1.5;
    }

    .message-decoration {
        font-size: 2rem;
    }

    .message-decoration.flower-left,
    .message-decoration.flower-right {
        top: 20px;
    }

    .message-decoration.flower-left {
        left: 20px;
    }

    .message-decoration.flower-right {
        right: 20px;
    }

    .header-decoration-line {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-message-section {
        padding: 40px 0;
    }

    .message-card {
        padding: 35px 25px;
        border-radius: 15px;
    }

    .message-title {
        font-size: 1.75rem;
        line-height: 1.4;
    }

    .message-paragraph {
        font-size: 1.15rem;
        line-height: 1.85;
        text-indent: 1em;
        margin-bottom: 20px;
    }

    .message-paragraph:first-child::before,
    .message-paragraph:last-child::after {
        font-size: 3rem;
    }

    .message-signature {
        font-size: 1.15rem;
        line-height: 1.6;
    }

    .signature-class {
        font-size: 1.35rem;
        line-height: 1.5;
    }

    .message-decoration {
        font-size: 1.5rem;
    }

    .message-decoration.flower-left,
    .message-decoration.flower-right {
        top: 15px;
    }

    .message-decoration.flower-left {
        left: 15px;
    }

    .message-decoration.flower-right {
        right: 15px;
    }
}