/* Base Variables */
:root {
    --primary-color: #ff4757;
    --secondary-color: #ffa502;
    --text-dark: #2f3542;
    --text-light: #f1f2f6;
    --bg-warm: #fff9f0;
    --letter-bg: #fffdf9;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

/* Floating Messages */
.floating-text {
    position: fixed;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
    transition: opacity 1s ease-in-out;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0.8); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-100px) scale(1.1); opacity: 0; }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    background: url('assets/sunrise.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.mandana-overlay {
    position: absolute;
    inset: 0;
    /* Simulate pattern via css gradients or just a faint radial gradient for focus */
    background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.4) 120%);
    z-index: 2;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 3;
    animation: fadeIn 2s ease-out;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #ffdb8b;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    display: block;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main Content */
main {
    position: relative;
    z-index: 10;
    background-color: var(--bg-warm);
    padding-bottom: 80px;
}

/* Letter Section */
.letter-section {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.letter-container {
    background-color: var(--letter-bg);
    max-width: 600px;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05), inset 0 0 100px rgba(255, 230, 200, 0.2);
    position: relative;
    border: 1px solid rgba(200, 160, 100, 0.2);
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g fill="%23f0e0c0" fill-opacity="0.2" fill-rule="evenodd"><circle cx="10" cy="10" r="2"/></g></svg>');
}

.wax-seal {
    position: absolute;
    top: -20px;
    right: 40px;
    font-size: 3rem;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.2));
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.letter-greeting {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.letter-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4a4a4a;
}

.letter-body p {
    margin-bottom: 1.5rem;
}

.tech-easter-egg {
    font-family: 'Courier New', Courier, monospace;
    background-color: rgba(255, 71, 87, 0.05);
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1rem;
    border-radius: 4px;
}

/* Journey Section */
.journey-section {
    padding: 40px 20px;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.journey-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.location-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    width: 250px;
}

.img-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.location-card:hover .img-wrapper img {
    transform: scale(1.05);
}

.location-label {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--text-dark);
}

.journey-path {
    flex-grow: 1;
    min-width: 150px;
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
}

.path-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    position: relative;
    border-radius: 2px;
}

.animated-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px var(--primary-color);
    animation: moveDot 3s linear infinite;
}

@keyframes moveDot {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Interactions */
.interaction-section {
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.primary-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), #ff6b81);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(255, 71, 87, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(255, 71, 87, 0.4);
}

.primary-btn:active {
    transform: translateY(1px);
}

.icon {
    font-size: 1.5rem;
}

/* Flying Heart Animation */
.flying-heart {
    position: fixed;
    font-size: 2.5rem;
    pointer-events: none;
    z-index: 9999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .letter-container { padding: 40px 25px; }
    .journey-container { flex-direction: column; }
    .journey-path { width: 4px; height: 100px; min-width: auto; }
    .path-line { width: 2px; height: 100%; background: linear-gradient(180deg, var(--secondary-color), var(--primary-color)); }
    
    @keyframes moveDot {
        0% { top: 0; left: -5px; opacity: 0; }
        10% { opacity: 1; left: -5px; }
        90% { opacity: 1; left: -5px; }
        100% { top: 100%; left: -5px; opacity: 0; }
    }

    .animated-dot {
        top: 0;
        left: -5px;
        transform: none;
    }
}
