/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Parallax Background */
.parallax-bg {
    position: fixed;
    top: -25%;
    left: 0;
    width: 100%;
    height: 150%;
    background-image: url('fort-vittoriosa-grand-harbour.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    will-change: transform;
}

/* Dark overlay that fades out on scroll */
.parallax-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
    pointer-events: none;
    transition: background 0.1s ease-out;
}

/* Content wrapper */
.content {
    position: relative;
    z-index: 1;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out;
}

.decorative-line {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f4a460, #ffd700, #f4a460, transparent);
    margin: 0 auto 20px;
    animation: expandLine 1.5s ease-out;
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 3px;
    animation: fadeIn 1.5s ease-out 0.5s both;
}

/* Ingress Section */
.ingress {
    background: rgba(255, 255, 255, 0.85);
    padding: 80px 0;
}

.lead {
    font-size: 1.3rem;
    line-height: 1.9;
    text-align: center;
    color: #555;
    max-width: 800px;
    margin: 0 auto 1.5em;
}

.lead:last-child {
    margin-bottom: 0;
}

/* Travel Plans Section */
.travel-plans {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.9) 0%, rgba(42, 82, 152, 0.9) 100%);
    padding: 80px 0;
    color: white;
}

.travel-plans h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

.section-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    font-weight: 300;
    opacity: 0.9;
}

/* Dinner Section */
.dinner {
    background: rgba(255, 255, 255, 0.80);
    padding: 80px 0;
}

/* Detail Sections (Lennot & Majoitus) */
.detail-section {
    padding: 80px 0;
}

.detail-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.detail-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.lennot-section {
    background: rgba(255, 255, 255, 0.80);
    color: #333;
}

.majoitus-section {
    background: linear-gradient(135deg, rgba(60, 100, 150, 0.9) 0%, rgba(80, 120, 170, 0.85) 100%);
    color: white;
}

.majoitus-section h2 {
    color: white;
}

/* Useful Links Section */
.useful-links {
    margin-top: 50px;
}

.useful-links h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 25px;
    color: white;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, background 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.link-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.link-text {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.link-desc {
    font-size: 0.85rem;
    opacity: 0.8;
    text-align: center;
}

/* Flight Section Styles */
.flight-journey {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.flight-journey h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #1e3c72;
    border-bottom: 2px solid #1e3c72;
    padding-bottom: 10px;
}

.flight-leg {
    margin-bottom: 20px;
}

.flight-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.lennot-section .info-item {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1e8fa 100%);
}

.lennot-section .info-item .airport {
    font-size: 0.85rem;
    color: #555;
    margin-top: 3px;
}

.layover {
    text-align: center;
    padding: 15px;
    margin: 15px 0;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-radius: 10px;
    font-weight: 500;
    color: #856404;
}

.dinner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.dinner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.dinner-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: scale(1.03);
}

.info-item .icon {
    font-size: 2rem;
}

.info-item strong {
    display: block;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-item p {
    color: #333;
    font-weight: 500;
}

.dinner-message {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dinner-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5a3e36;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(26, 37, 47, 0.9) 100%);
    color: white;
    text-align: center;
    padding: 50px 0;
}

footer p {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.footer-signature {
    font-family: 'Playfair Display', serif;
    font-size: 2rem !important;
    font-style: italic;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 150px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dinner-content {
        grid-template-columns: 1fr;
    }
    
    .dinner-info {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .travel-plans h2,
    .dinner h2 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

/* Scroll indicator */
.hero::after {
    content: '↓';
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: white;
    animation: bounce 2s infinite;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.hero.scrolled::after {
    opacity: 0;
    pointer-events: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}
