* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff1493;
    --secondary-color: #ff69b4;
    --accent-color: #ffd700;
    --dark-bg: #1a0033;
    --light-text: #ffffff;
    --text-color: #333333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a0033 0%, #2d0052 50%, #1a0033 100%);
    color: var(--light-text);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== ANIMATED HEARTS BACKGROUND ===== */
.hearts-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.heart-float {
    position: absolute;
    font-size: 2rem;
    opacity: 0.4;
    animation: float 8s infinite ease-in;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 0, 51, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    padding: 1rem 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    margin-top: 60px;
    background: radial-gradient(ellipse at center, rgba(255, 20, 147, 0.1) 0%, transparent 70%);
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.title {
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    line-height: 1.2;
}

.title span {
    display: inline-block;
}

.fade-in-1 {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInLeft 1.5s ease;
}

.fade-in-2 {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInRight 1.5s ease;
}

.heart {
    display: inline-block;
    font-size: 3rem;
    margin: 0 1.5rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.subtitle {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    animation: fadeIn 2s ease;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 20, 147, 0.6);
}

.cta-button:hover::before {
    left: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeInUp 2s ease infinite;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(45, 0, 82, 0.5) 0%, rgba(26, 0, 51, 0.8) 100%);
    position: relative;
    z-index: 10;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 1rem auto 0;
    border-radius: 10px;
}

.story-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.story-card {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1) 0%, rgba(255, 105, 180, 0.1) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 20, 147, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    animation: slideUp 0.8s ease;
}

.story-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: spin 3s linear infinite;
}

.story-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.story-card p {
    line-height: 1.7;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== GALLERY SECTION ===== */
.gallery {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.8) 0%, rgba(45, 0, 82, 0.5) 100%);
    position: relative;
    z-index: 10;
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.6s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay p {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

/* ===== MESSAGES SECTION ===== */
.messages {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(45, 0, 82, 0.5) 0%, rgba(26, 0, 51, 0.8) 100%);
    position: relative;
    z-index: 10;
}

.messages-container {
    max-width: 1000px;
    margin: 3rem auto;
    display: grid;
    gap: 2rem;
}

.message-card {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.15) 0%, rgba(255, 105, 180, 0.15) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    animation: slideIn 0.8s ease;
    transition: all 0.3s ease;
}

.message-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.2);
}

.message-card.from-chahrazad {
    border-left-color: var(--accent-color);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.sender {
    color: var(--accent-color);
}

.to {
    color: var(--primary-color);
}

.message-card p {
    line-height: 1.8;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    text-align: justify;
}

.quotes-container {
    max-width: 900px;
    margin: 4rem auto;
    display: grid;
    gap: 2rem;
}

.quote-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 105, 180, 0.1) 100%);
    padding: 2rem;
    border-radius: 10px;
    border-top: 3px solid var(--accent-color);
    text-align: center;
    animation: fadeIn 1s ease;
    transition: all 0.3s ease;
}

.quote-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.quote-card p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--accent-color);
    line-height: 1.8;
}

/* ===== SURPRISE SECTION ===== */
.surprise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.surprise.hidden {
    display: none;
}

.surprise-content {
    position: relative;
    width: 90%;
    max-width: 600px;
}

.close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
}

.close-btn:hover {
    background: var(--secondary-color);
    transform: rotate(90deg);
}

.surprise-card {
    background: linear-gradient(135deg, #1a0033 0%, #2d0052 100%);
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(255, 20, 147, 0.4);
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.surprise-card h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.prediction-result {
    background: rgba(255, 20, 147, 0.1);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.8;
    border: 2px solid rgba(255, 20, 147, 0.3);
}

.prediction-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.3);
}

.prediction-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.5);
}

.prediction-btn:active {
    transform: translateY(0);
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
    border-top: 2px solid var(--primary-color);
}

.footer p {
    margin: 0.5rem 0;
    color: var(--light-text);
    font-size: 1rem;
}

.footer-hearts {
    margin-top: 1rem;
    font-size: 1.5rem;
    letter-spacing: 1rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }

    .heart {
        font-size: 2rem;
        margin: 0 0.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .story-content {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .message-card {
        padding: 1.5rem;
    }

    .message-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .quote-card p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .nav-links {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
