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

:root {
    --primary-color: #8B7355;
    --accent-color: #D4AF37;
    --light-bg: #F9F7F4;
    --text-dark: #333;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
}

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

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

/* Nawigacja */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.navbar a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    background-attachment: fixed !important;
}

/* Osobne zdjęcie dla mobile (pionowe) */
@media (max-width: 768px) {
    .hero {
        background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../zdjecia_para/hero-mobile.jpg') !important;
        background-position: center 15% !important;
        background-attachment: scroll !important;
        background-size: cover !important;
        /* Fix dla iOS Safari */
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    /* Dodatkowe ustawienie dla iOS */
    .hero::before {
        background: linear-gradient(135deg, rgba(139, 115, 85, 0.3) 0%, rgba(212, 175, 55, 0.3) 100%);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.3) 0%, rgba(212, 175, 55, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

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

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.hero-content .date {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 3px;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Countdown */
.countdown {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    min-width: 100px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Sekcje */
.section {
    padding: 5rem 0;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #8B7355;
}

.bg-light {
    background-color: #F9F7F4;
}

/* Para Młoda */
.couple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.person {
    text-align: center;
}

.person img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid #D4AF37;
}

.person h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #8B7355;
}

.love-story {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.love-story h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #8B7355;
}

/* Szczegóły wydarzenia */
.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.event-details img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.details h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #8B7355;
}

.details p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

/* Galeria przy opisach miejsc */
.venue-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.venue-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.venue-gallery img:hover {
    transform: scale(1.03);
}

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

.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Formularz RSVP */
.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.rsvp-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #8B7355;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    margin-top: 1rem;
}

.btn:hover {
    background: #D4AF37;
}

.center {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.qr-section {
    margin-bottom: 2rem;
}

.qr-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    margin: 1rem auto;
    display: block;
}

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(212, 175, 55, 0.6);
    }
}

/* Responsywność */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Lepsze pozycjonowanie zdjęcia na telefonie */
    .hero {
        background-position: 50% 35% !important;
        background-size: cover !important;
    }
    
    .hero-content .date {
        font-size: 1.3rem;
    }
    
    .hero-content .subtitle {
        font-size: 1rem;
    }
    
    /* Countdown na mobile */
    .countdown {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 1rem 1rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .navbar .container {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    
    .navbar a {
        padding: 0.3rem 0;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    /* Floating button na mobile */
    .floating-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem;
    }
    
    /* Galeria na mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .venue-gallery {
        grid-template-columns: 1fr;
    }
    
    /* Przyciski na mobile */
    .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
        text-align: center;
    }
}

/* Harmonogram */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: #D4AF37;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-time {
    flex: 0 0 100px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #8B7355;
    padding: 1rem;
    text-align: center;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin: 0 2rem;
    position: relative;
}

.timeline-content h3 {
    color: #8B7355;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.timeline-content p {
    margin: 0.3rem 0;
    color: #666;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #D4AF37;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Lokalizacja */
.location-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #666;
}

/* Menu Weselne */
.menu-intro,
.drinkbar-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    color: #666;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.menu-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-5px);
}

.menu-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.menu-time {
    text-align: center;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 100%;
}

.menu-list {
    list-style: none;
    padding: 0;
}

.menu-list li {
    padding: 0.5rem 0;
    color: #555;
    font-size: 1.05rem;
    border-bottom: 1px solid #f0f0f0;
}

.menu-list li:last-child {
    border-bottom: none;
}

.menu-list li:before {
    content: "✓ ";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.menu-list li.vege {
    color: #2d7a2d;
    font-weight: 500;
}

.menu-legend {
    text-align: center;
    background: #f0f8f0;
    padding: 1rem 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid #2d7a2d;
}

.menu-legend p {
    color: #2d7a2d;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

/* Drink Bar */
.drinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.drink-category {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.highlight-category {
    background: linear-gradient(135deg, #f9f7f4 0%, #fff 100%);
    border: 2px solid var(--accent-color);
    transform: scale(1.02);
}

.drink-category h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.drink-list {
    list-style: none;
    padding: 0;
}

.drink-list li {
    padding: 0.5rem 0;
    color: #555;
    font-size: 1.05rem;
}

.drink-list li:before {
    content: "🍸 ";
    margin-right: 0.5rem;
}

.drinkbar-note {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.drinkbar-note strong {
    font-size: 1.3rem;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.location-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.location-card h3 {
    color: #8B7355;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.location-card p {
    margin-bottom: 1rem;
    color: #666;
}

.map-container {
    margin: 1.5rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.directions {
    background: #F9F7F4;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.directions h4 {
    color: #8B7355;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.directions p {
    margin: 0.5rem 0;
    color: #555;
    line-height: 1.8;
}

.route-info {
    background: linear-gradient(135deg, #8B7355 0%, #D4AF37 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.route-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.route-info p {
    font-size: 1.1rem;
    margin: 0.8rem 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 50px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
    }
    
    .timeline-time {
        flex: 0 0 80px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        margin: 0 1rem 0 1.5rem;
    }
    
    .timeline-item::after {
        left: 50px;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar .container {
        font-size: 0.9rem;
        gap: 0.5rem;
    }
}
