@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;600&display=swap');

:root {
    --primary: #006D5B;
    --secondary: #D4AF37;
    --accent: #FF6F61;
    --bg-light: #F8FBF8;
    --text-dark: #1A2E2A;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://upload.wikimedia.org/wikipedia/commons/f/ff/Rice_terraces_in_Sapa%2C_Vietnam.jpg') no-repeat center center;
    background-origin: border-box;
    background-size: cover;
    background-attachment: fixed; /* Parallax effect */
    color: white;
    margin-bottom: 50px;
    border-radius: 0 0 50px 50px;
    animation: fadeIn 1.5s ease;
}

.hero h1 {
    font-size: 4rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 10px;
}

/* Sections */
section {
    margin: 80px 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.timeline-item:nth-child(even) {
    transform: translateY(30px) scale(0.95) translateX(30px);
}
.timeline-item:nth-child(even).visible {
    transform: translateY(0) scale(1) translateX(0);
}

/* Glass Cards */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 40px;
}

/* Table / Timeline Style */
.itinerary-day {
    position: relative;
    padding-left: 30px;
}

.itinerary-day::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 0;
    width: 2px;
    background: var(--primary);
    opacity: 0.3;
}

.day-header {
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 25px;
    font-size: 1.5rem;
}


.item-time {
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    text-align: right;
}

.item-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.item-content:hover {
    transform: translateX(10px);
}

.item-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.item-content ul {
    margin-left: 20px;
    margin-top: 10px;
}

.item-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-top: 20px;
    display: block;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-image:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Modal Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Reminders */
.reminders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.reminder-item {
    background: #FFF5F5;
    border-left: 5px solid var(--accent);
    padding: 20px;
    border-radius: 10px;
}

/* PDF Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 150px;
    height: 50px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0,109,91,0.3);
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Print Styles */
@media print {
    .fab, .hero {
        display: none;
    }
    body {
        background: white;
    }
    .container {
        max-width: 100%;
        padding: 0;
    }
    .glass-card {
        box-shadow: none;
        border: none;
        backdrop-filter: none;
        padding: 0;
    }
    .item-content {
        box-shadow: none;
        border: 1px solid #eee;
    }
    section {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .item-time {
        text-align: left;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}
