@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --bg-dark: #0a050d;
    --bg-gradient: linear-gradient(135deg, #0a050d 0%, #1a0b16 100%);
    --accent: #ff6b81;
    --accent-light: #ff8e9e;
    --gold: #d4af37;
    --text-main: #ffffff;
    --text-muted: #e0e0e0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', serif;
}

/* Glassmorphism Utility */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 20px;
    background: url('romantic_midnight_background.png') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 5, 13, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff, #ffc0cb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.countdown {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.countdown-item {
    background: rgba(255, 107, 129, 0.15);
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid var(--accent);
    min-width: 80px;
}

.countdown-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Traits Section */
.section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--accent);
}

.traits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.trait-card {
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease;
}

.trait-card:hover {
    transform: translateY(-10px);
}

.trait-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.trait-card h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.trait-list {
    list-style: none;
}

.trait-list li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

/* Timeline Fix & Improvement */
.timeline-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden; /* Prevent horizontal scroll */
    padding: 60px 20px;
}

.timeline {
    position: relative;
    width: 100%;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--accent), var(--accent), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(255, 107, 129, 0.4);
    z-index: 1;
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
    display: flex;
    justify-content: flex-start; /* Default for .left in RTL */
}

.timeline-item.right {
    justify-content: flex-end;
}

.timeline-content {
    width: 45%;
    padding: 30px;
    position: relative;
    border: 1px solid rgba(255, 107, 129, 0.2);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

/* Markers */
.timeline-item::after {
    content: '❤';
    position: absolute;
    width: 40px;
    height: 40px;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    background: var(--bg-dark);
    border: 2px solid var(--accent);
    border-radius: 50%;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    font-size: 1rem;
    box-shadow: 0 0 15px var(--accent);
}

.timeline-content:hover {
    border-color: var(--accent);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 107, 129, 0.3);
}

.timeline-date {
    color: var(--accent);
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Explore Buttons & Section Footer */
.section-footer {
    text-align: center;
    margin-top: 50px;
}

.btn-explore {
    display: inline-block;
    padding: 12px 35px;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-explore::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: 0.3s;
    z-index: -1;
}

.btn-explore:hover {
    color: white;
    box-shadow: 0 0 20px var(--accent);
}

.btn-explore:hover::before {
    left: 0;
}

/* Dream Board */
.dream-board {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.dream-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

input[type="text"] {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: 30px;
    color: white;
    width: 60%;
    outline: none;
}

.btn-add {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-add:hover {
    background: var(--accent-light);
    box-shadow: 0 0 15px var(--accent);
}

.dreams-display {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.dream-tag {
    background: rgba(255, 107, 129, 0.1);
    border: 1px solid var(--accent);
    padding: 8px 20px;
    border-radius: 20px;
    animation: fadeIn 0.5s ease-out;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    border-radius: 15px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Coupons */
.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.coupon {
    padding: 30px;
    border: 2px dashed var(--accent);
    position: relative;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
}

.coupon::before, .coupon::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.coupon::before { left: -25px; }
.coupon::after { right: -25px; }

.coupon h3 {
    color: var(--accent);
    margin-bottom: 10px;
}

.coupon-valid {
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::after {
        left: 20px;
        transform: none;
    }
    .timeline-item {
        justify-content: flex-start !important;
        padding-right: 0;
        padding-left: 50px;
        margin-bottom: 40px;
    }
    .timeline-content {
        width: 100%;
        text-align: right;
    }
    .timeline-item::after {
        left: 20px;
        transform: translateX(-50%);
    }
    .countdown {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .countdown-item {
        padding: 10px;
        min-width: 70px;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .btn-explore {
        width: 100%;
        padding: 12px 20px;
    }
}
