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

@font-face {
    font-family: 'Phosphate';
    src: url('/assets/fonts/Phosphate.woff2') format('woff2'),
         url('/assets/fonts/Phosphate.woff') format('woff'),
         url('/assets/fonts/Phosphate.ttf') format('truetype');
    font-display: swap;
}

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

body {
    background-color: #FFFAF1;
    font-family: 'Inter', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

a:link,
a:visited,
a:hover,
a:active {
    color: inherit;
}

ul a{
    color: #FA6107;
    font-weight: bold;
}

ul li {
    margin-left: 24px;
    margin-bottom: 12px;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 20px;
    color: white;
    background-color: rgb(0,0,0,0.25);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar.dark {
    color: black;
    background-color: rgb(255,255,255,0.25);
}

.nav-content {
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.logo {
    font-weight: bold;
    margin-right: 48px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.active {
    color: #FA6107 !important;
    font-weight: bold !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
}

.video-container {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

#myVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.hero-text h1 {
    font-family: 'Phosphate', sans-serif;
    font-size: 96px;
    color: #ffffff;
    white-space: pre-line;
}

/* Main Content */
main {
    padding: 0 40px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.welcome-section {
    padding: 100px 0;
    text-align: center;
}

.countdown-text {
    font-size: 24px;
    line-height: 1.5;
}

.lineup-section h2 {
    font-family: 'Phosphate', sans-serif;
    font-size: 64px;
    margin-bottom: 40px;
    text-align: center;
}

.tiles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
}

.tile {
    width: 360px;
    height: 360px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tile:hover img {
    opacity: 0.5;
}

.tile-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-family: 'Phosphate', sans-serif;
    font-size: 48px;
    text-align: center;
    z-index: 1;
}

.contact-section {
    padding: 100px 0;
    text-align: center;
}

.contact-section p {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
}

/* Warum Page Styles */
.warum-page {
    background-color: #0F0F0F;
    color: white;
    font-family: 'Inter', sans-serif;
}

.warum-hero {
    padding: 84px 40px 0 40px; /* 64px + 20px navbar padding */
    position: relative;
    z-index: 1;
}

/* Add background container */
.warum-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(to bottom, 
        rgba(15,15,15,0) 70%, 
        rgba(15,15,15,1) 100%),
        url('https://res.cloudinary.com/dxznerft3/image/upload/v1739791267/wedding-david/warum_background.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.warum-hero-content {
    text-align: left;
}

.warum-hero-content h1 {
    font-size: 80px;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.warum-subtitle {
    font-size: 40px;
    margin-bottom: 40px;
    max-width: 50%;
}
/* Add new warum-story styles */
.warum-story {
    padding: 0 40px;
    position: relative;
    z-index: 1;
    margin-left: 50%;
    width: 50%;
    font-size: 24px;
}

.warum-story p {
    margin-bottom: 20px;
}


.warum-content {
    padding: 0 40px 40px 40px;
    position: relative;
    z-index: 1;
}

.warum-text-buttons {
    display: flex;
    padding-top: 240px;
    gap: 40px;
}

.warum-text {
    flex: 0 0 50%;
    font-size: 24px;
}

.warum-text p {
    margin-bottom: 20px;
}

.warum-buttons {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.warum-bottom-image {
    width: 100%;
    margin-top: 240px;
}

/* Program Page Styles */
.program-page {
    background-color: #FFFAF1;
}

.program-section {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

.program-section.text-right {
    flex-direction: row;
}

.program-section.text-left {
    flex-direction: row-reverse;
}

.program-text {
    flex: 0 0 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 20px;
}

.program-image {
    flex: 0 0 50%;
    position: relative;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.program-day {
    font-family: 'Phosphate', sans-serif;
    font-size: 64px;
    margin-bottom: 0;
}

.program-date {
    font-size: 16px;
    margin-bottom: 48px;
}

.program-schedule {
    margin-bottom: 24px;
    font-size: 20px;
    line-height: 2;
}

.program-schedule strong {
    font-weight: bold;
}

.program-directions {
    display: flex;
    align-items: center;
    color: black;
    font-weight: bold;
    font-size: 20px;
}

@media (max-width: 1024px) {
    .program-section {
        flex-direction: column;
        min-height: auto;
    }
    
    .program-text,
    .program-image {
        flex: 0 0 100%;
    }
    
    .program-image {
        height: 50vh;
    }
}

/* Shared Styles */
.orange-link {
    color: #FA6107 !important;
    font-weight: bold;
}

.direction-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

.direction-icon path {
    fill: currentColor;
}

.button-orange {
    padding: 12px 24px;
    background-color: #FA6107;
    color: #ffffff;
    border-radius: 8px;
    text-align: center;
    display: flex;
    gap: 8px;
}


.warum-button {
    font-size: 24px;

}

.button-black a {
    display: inline-flex;
    align-items: center;
    background-color: black;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    transition: opacity 0.2s;
}

.button-black:hover {
    opacity: 0.9;
}

.button-black .direction-icon path {
    fill: white;
}

.button-black.inverted {
    filter: invert(1);
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Phosphate', sans-serif;
    font-size: 120px;
    color: white;
    text-align: center;
    white-space: nowrap;
}

.villa-title {
    padding: 64px 0;
    text-align: center;
}

.villa-title h2 {
    font-family: 'Phosphate', sans-serif;
    font-size: 80px;
    margin: 0;
}

.content-section {
    display: flex;
    margin: 0 auto;
    gap: 40px;
    font-size: 20px;
}

.text-content {
    flex: 1;
    padding: 40px;
    max-width: 50%;
}

.text-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.image-content {
    flex: 1;
    max-width: 50%;
}

.image-content img {
    width: 100%;
    height: auto;
}

.anfahrt-page {
    background-color: black;
    color: white;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

.anfahrt-content {
    width: 65%; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
}

.anfahrt-text {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    display: flex;
    flex-direction: column;
    padding: 128px 40px 64px 40px;
    gap: 24px;
}

.anfahrt-content h1 {
    font-family: 'Phosphate', sans-serif;
    font-size: 64px;
}

.anfahrt-content ul {
    padding: 0;
}

.anfahrt-content ul li {
    margin: 0px 0px 24px 24px;
}

.anfahrt-content ul li span {
    font-size: 14px;
}

.anfahrt-images {
    width: 35%;
    display: flex;
    flex-direction: column;
}

.anfahrt-images img {
    width: 100%;
} 

.maps-image {
    width: 100%;
}

.unterkunft-page {
    background-color: #FFFAF1;
}

.unterkunft-page .navbar {
    color: black;
}

.unterkunft-title {
    font-family: 'Phosphate', sans-serif;
    font-size: 80px;
    margin-bottom: 24px;
}

.unterkunft-text {
    font-size: 24px;
    margin-bottom: 24px;
}

.unterkunft-bold {
    font-weight: bold;
    margin-bottom: 16px;
}

.dresscode-page {
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: black;
    background-image: url('https://res.cloudinary.com/dxznerft3/image/upload/v1739355357/wedding-david/dresscode_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dresscode-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dresscode-mobile-image {
    display: none;
    width: 100%;
    max-width: 500px;
    margin-top: 2rem;
}

.text-box {
    background-color: rgba(0, 0, 0, 1);
    color: white;
    padding: 20px;
    max-width: 600px;
    text-align: center;
}

.dresscode-title {
    font-family: 'Phosphate', sans-serif;
    font-size: 64px;
    margin-bottom: 16px;
}

.dresscode-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
}

.dresscode-text {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    line-height: 1.5;
}

.faq-page {
    background-color: #FFFAF1;
}

.faq-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 100px 40px 40px 40px;
}

.faq-title {
    font-family: 'Phosphate', sans-serif;
    font-size: 80px;
    margin-bottom: 48px;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.faq-item p {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    margin: 6px 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* When menu is open, always show black bars */
.hamburger.active .bar {
    background-color: black;
}

/* For dark navbars (white text), keep white bars when menu is closed */
.navbar:not(.dark) .hamburger:not(.active) .bar {
    background-color: white;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* General Mobile Styles */
    main {
        padding: 0 12px;
    }

    .navbar {
        padding: 20px 12px;
    }

    .hamburger {
        display: block;
    }

    .nav-content {
        justify-content: space-between;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 80px 20px;
        transition: right 0.3s ease-in-out;
        align-items: center;
        gap: 32px;
    }

    .nav-links.active {
        right: 0;
    }

    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* When menu is open, change navbar background */
    .navbar.menu-open {
        background-color: rgba(255, 255, 255, 0.95);
        color: black;
    }

    /* Adjust link colors in mobile menu */
    .nav-links a {
        color: black;
        font-size: 24px;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    /* Index Page Mobile Styles */
    .lineup-section h2 {
        font-size: 48px
    }

    .tiles-container {
        gap: 20px;
        padding: 0 12px;
    }

    .tile {
        width: calc(50% - 10px);
        height: calc(50% - 10px);
    }

    .tile-content {
        font-size: 24px;
    }

    /* Program Page Mobile Styles */

    .program-section {
        flex-direction: column;
    }

    .program-day {
        padding-top: 24px;
    }

    .program-section.text-right,
    .program-section.text-left {
        flex-direction: column;
    }

    .program-date {
        margin-bottom: 12px;
    }

    .program-text {
        padding: 24px 12px;
        font-size: 16px;
    }

    .program-text p {
        margin-bottom: 12px;
    }

    .program-image {
        position: relative;
        height: 300px;  /* Set a fixed height for mobile */
    }

    .program-image img {
        position: relative;  /* Change from absolute to relative */
        height: 100%;
    }

    .program-day {
        font-size: 48px;
    }

    .program-schedule {
        font-size: 16px;
    }

    /* Location Page Mobile Styles */
    .hero-title {
        font-size: 48px;
        width: 90%; /* Ensure text doesn't overflow on small screens */
        white-space: normal; /* Allow text to wrap on mobile */
    }

    .villa-title {
        padding: 32px 0;
    }

    .villa-title h2 {
        font-size: 48px;
    }

    .content-section {
        flex-direction: column;
        gap: 20px;
    }

    .text-content {
        padding: 0px 20px;
        font-size: 16px;
        max-width: 100%;
    }

    .image-content {
        max-width: 100%;
        
    }

    .mobile-hero {
        height: 100vh;
        object-position: center; /* Ensure image is centered on mobile */
    }

    /* Warum Page Mobile Styles */
    .warum-hero {
        padding: 84px 12px 0 12px;
    }

    .warum-hero-content h1 {
        font-size: 48px;
    }

    .warum-subtitle {
        font-size: 24px;
        max-width: 100%;
    }

    .warum-content {
        padding: 0 12px 12px 12px;
    }

    .warum-text {
        font-size: 16px;
    }

    .warum-button {
        font-size: 18px;
    }

    /* Anfahrt Page Mobile Styles */
    .anfahrt-page {
        flex-direction: column;
    }

    .anfahrt-content,
    .anfahrt-images {
        width: 100%;
    }

    .anfahrt-text {
        padding: 84px 12px 32px 12px;
        font-size: 18px;
    }

    .anfahrt-content h1 {
        font-size: 48px;
    }

    /* Unterkunft Page Mobile Styles */
    .unterkunft-title {
        font-size: 48px;
    }

    .unterkunft-text {
        font-size: 18px;
    }

    /* Dresscode Page Mobile Styles */
    .dresscode-container {
        background: black;
        padding-top: 84px;
        overflow: scroll;
        justify-content: flex-start;
    }

    .text-box {
        background: black;
        width: 100%;
    }

    .dresscode-mobile-image {
        display: block;
    }

    .dresscode-title {
        font-size: 48px;
    }

    .dresscode-subtitle,
    .dresscode-text {
        font-size: 18px;
    }

    /* FAQ Page Mobile Styles */
    .faq-container {
        padding: 100px 12px 12px 12px;
    }

    .faq-title {
        font-size: 48px;
    }

    .faq-item h3 {
        font-size: 20px;
    }

    .faq-item p {
        font-size: 16px;
    }

    /* Navigation Mobile Styles */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 80px 20px;
        transition: right 0.3s ease-in-out;
        align-items: center;
        gap: 32px;
    }

    .warum-text-buttons {
        flex-direction: column;
        padding-top: 120px; /* Reduced from 240px for mobile */
        gap: 32px;
    }

    .warum-text {
        flex: 1;
        width: 100%;
    }

    .warum-buttons {
        flex: 1;
        width: 100%;
    }

    .warum-bottom-image {
        margin-top: 64px; /* Reduced from 240px for mobile */
        max-width: 100%; /* Make image slightly smaller on mobile */
        display: block; /* Center the image */
        margin-left: auto;
        margin-right: auto;
    }

    .warum-background {
        background-image: linear-gradient(to bottom, 
            rgba(0,0,0,0) 70%, 
            rgba(0,0,0,1) 100%),
            url('https://res.cloudinary.com/dxznerft3/image/upload/v1739375279/wedding-david/warum_mobile.png');
    }

    /* Add mobile styles for warum-story */
    .warum-story {
        margin-left: 0;
        width: 100%;
        padding: 0 12px;
        font-size: 16px;
    }
}