/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 50%, #a569bd 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 60px 0;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 3s linear infinite;
}

@keyframes sparkle {
    from { transform: translateY(0px); }
    to { transform: translateY(-100px); }
}

.moon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-out;
}

.subtitle {
    font-size: 1.5rem;
    color: #f0f0f0;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Apology Card */
.apology-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideInUp 1s ease-out 0.5s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.heart-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.card-header h2 {
    font-size: 2.5rem;
    color: #8e44ad;
    font-weight: 600;
    margin-bottom: 10px;
}

.apology-text {
    line-height: 1.8;
}

.apology-intro {
    font-size: 1.3rem;
    color: #555;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 500;
}

.apology-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.point {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f4f0f7 0%, #e8d5f2 100%);
    border-radius: 15px;
    border-right: 4px solid #8e44ad;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.point:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(142, 68, 173, 0.2);
}

.point i {
    font-size: 1.5rem;
    color: #8e44ad;
    min-width: 30px;
}

.point p {
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
}

.sincere-message {
    background: linear-gradient(135deg, #f4f0f7 0%, #e8d5f2 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #d2b4de;
    margin-top: 30px;
}

.sincere-message h3 {
    color: #8e44ad;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
}

.sincere-message p {
    font-size: 1.2rem;
    color: #555;
    text-align: center;
    line-height: 1.8;
}

/* Interactive Section */
.interactive-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideInUp 1s ease-out 0.7s both;
}

.forgiveness-request h3 {
    font-size: 2rem;
    color: #8e44ad;
    margin-bottom: 30px;
}

.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

.btn-accept {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-accept:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}

.btn-maybe {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.btn-maybe:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.4);
}

/* Response Messages */
.response-message {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideInUp 0.5s ease-out;
}

.response-message.hidden {
    display: none;
}

.message-content i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #4caf50;
}

.message-content h3 {
    font-size: 2rem;
    color: #8e44ad;
    margin-bottom: 15px;
}

.message-content p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
}

/* Final Message */
.final-message {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideInUp 1s ease-out 0.9s both;
}

.message-box h3 {
    font-size: 2rem;
    color: #8e44ad;
    text-align: center;
    margin-bottom: 20px;
}

.message-box p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 20px;
}

.signature {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.signature p {
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 5px;
}

.signature-name {
    font-weight: 600;
    color: #8e44ad !important;
    font-size: 1.3rem !important;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    animation: fadeInUp 1s ease-out 1.1s both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .apology-card,
    .interactive-section,
    .final-message {
        padding: 20px;
    }
    
    .apology-points {
        grid-template-columns: 1fr;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .point {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .card-header h2 {
        font-size: 2rem;
    }
    
    .apology-intro {
        font-size: 1.1rem;
    }
    
    .sincere-message p,
    .message-box p {
        font-size: 1.1rem;
    }
}

/* Additional Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(142, 68, 173, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(142, 68, 173, 0.7);
}
