@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,600;1,6..96,400&family=Inter:wght@300;400&family=Pinyon+Script&family=VT323&display=swap');

:root {
    --bg-color: #0a0a0a;
    --text-main: #e0e0e0;
    --text-dim: #888;
    --font-serif: 'Bodoni Moda', serif;
    --font-hand: 'Pinyon Script', cursive;
    --font-vhs: 'VT323', monospace;
    --noise-opacity: 0.08;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
}

html, body { 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
    width: 100%;
    max-width: 100vw;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-serif);
}

.vhs-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9999;
    background-color: #202020;
    opacity: var(--noise-opacity);
}

.camcorder-ui {
    position: fixed; top: 20px; left: 20px; z-index: 1000;
    font-family: var(--font-vhs); color: #fff; font-size: 24px;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
    display: flex; flex-direction: column; gap: 5px;
    mix-blend-mode: exclusion;
}

.rec-dot {
    display: inline-block; width: 12px; height: 12px;
    background-color: red; border-radius: 50%; margin-right: 8px;
    animation: blink 2s infinite;
}

/* --- ANIMACJE --- */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.reveal {
    opacity: 0; filter: blur(10px); transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1; filter: blur(0); transform: translateY(0);
}

h1, h2, h3 {
    font-weight: 400; text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: 20px;
}

h1 { 
    font-size: clamp(2rem, 8vw, 6rem); 
    line-height: 1.1; 
    word-wrap: break-word;
}

.handwritten {
    font-family: var(--font-hand); text-transform: none;
    font-size: 1.5em; color: #d4af37; display: block; margin-bottom: 20px;
}

p {
    font-family: 'Inter', sans-serif; font-weight: 300;
    line-height: 1.6; font-size: 15px; color: #bbb;
}

a {
    color: inherit; text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3); transition: 0.3s;
}

a:hover {
    color: #fff; border-color: #fff; text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

section { padding: 80px 10%; position: relative; overflow: hidden; }

.section-line {
    width: 80px; height: 1px; background: #333; margin: 40px auto;
}

/* --- BANNER --- */
#banner {
    height: 100vh; display: flex; justify-content: center;
    align-items: center; text-align: center; background-color: #000;
    position: relative; overflow: hidden; padding: 0 15px;
}

.banner-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('./img/banner2.jpg'); 
    background-size: cover; background-position: center;
    opacity: 0.4; filter: grayscale(100%) contrast(1.1);
    animation: zoomSlow 20s infinite alternate;
}

@keyframes zoomSlow {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.banner-content { z-index: 2; position: relative; width: 100%; }
.banner-content p {
    font-family: var(--font-vhs); font-size: 18px;
    letter-spacing: 3px; color: white; text-transform: uppercase;
}

/* --- ABOUT US --- */
.about-wrapper {
    display: grid; 
    grid-template-columns: 1fr 1fr;
    gap: 40px; 
    align-items: center;
}

.about-img-container { 
    position: relative; 
    overflow: hidden; 
    max-width: 100%;
}

/* --- ZAPROSZENIE --- */
.invitation-card {
    border: 1px solid #333; padding: 50px; text-align: center;
    background: rgba(20,20,20,0.5); backdrop-filter: blur(5px);
    width: 100%;
}

.places {
    display: flex; justify-content: space-around; margin-top: 40px;
    flex-wrap: wrap; gap: 30px;
}

.places p{
    margin-bottom: 10px;
}

/* --- COUNTDOWN --- */
.countdown-box {
    display: flex; justify-content: center; gap: 20px;
    margin-top: 30px; font-family: var(--font-vhs);
    flex-wrap: wrap;
}
.cd-item { text-align: center; min-width: 60px; }
.cd-item span {
    font-size: 40px; display: block; color: #fff;
    text-shadow: 2px 2px 0px #333;
}
.cd-item label { font-size: 12px; color: #666; text-transform: uppercase; }

/* --- TIMELINE --- */
.timeline {
    max-width: 600px; margin: 0 auto; position: relative;
    padding-left: 20px; border-left: 1px solid #333;
}

.timeline-item {
    position: relative; margin-bottom: 40px; padding-left: 20px;
    display: flex; flex-direction: column; 
}

.timeline-item::before {
    content: ''; position: absolute; left: -25px; top: 5px;
    width: 9px; height: 9px; background: #fff; border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.timeline-item span:nth-child(1) {
    font-family: var(--font-vhs);
    font-size: 18px;
    margin-bottom: 5px;
    display: block;
    color: #888;
}

.timeline-item span:nth-child(2) {
    font-family: var(--font-serif);
    font-size: 20px;
    color: #fff;
}

/* --- MENU --- */
.menu-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.menu-section {
    margin-bottom: 40px;
}

.menu-section h3 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    display: inline-block;
    width: 100%;
}

.menu-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 20px;
}

.menu-item > span:first-child {
    font-family: var(--font-serif);
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

.menu-item .dots {
    flex-grow: 1;
    border-bottom: 1px dotted #444;
    margin: 0 15px;
    position: relative;
    top: -5px;
}

.menu-item .desc {
    width: 100%;
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}

/* --- WISHES --- */
.wishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.wish {
    border: 1px solid #333;
    padding: 25px 15px;
    background: rgba(255,255,255,0.02);
    text-align: center;
    transition: 0.3s;
}

.wish h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #d4af37;
}

.wish p {
    font-size: 13px;
    color: #ccc;
}

/* --- RSVP --- */
.rsvp-section {
    text-align: center;
    padding-bottom: 100px;
}

.rsvp-btn {
    background: transparent; color: #fff; border: 1px solid #fff;
    padding: 12px 30px; font-family: var(--font-serif); font-size: 16px;
    letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
    transition: 0.4s; margin-top: 20px; display: inline-block;
    width: 100%; max-width: 300px; text-align: center;
}

.rsvp-btn:hover {
    background: #fff; color: #000; box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.rsvp-phones {
    margin-top: 30px;
    font-family: var(--font-vhs);
    opacity: 0.8;
}

.rsvp-phones p {
    font-family: var(--font-vhs); 
    font-size: 18px;
    margin: 10px 0;
    color: #fff;
}

/* --- PHOTO UPLOAD --- */
.photo-upload {
    margin: 40px 0;
    text-align: center;
}

.photo-upload p {
    font-family: var(--font-vhs);
    font-size: 1rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.photo-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff !important;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.4s;
}

.photo-button::before {
    content: 'REC';
    position: absolute;
    top: -20px;
    font-family: var(--font-vhs);
    font-size: 12px;
    color: #ff0000;
    letter-spacing: 1px;
    animation: blink 1.5s step-end infinite;
}

@media (max-width: 768px) {
    section { padding: 50px 20px; }
    
    .camcorder-ui {
        top: 15px; left: 15px; font-size: 16px; 
    }

    h1 { font-size: 2.5rem; letter-spacing: 0.05em; }
    .handwritten { font-size: 1.5rem; }

    .about-wrapper { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .about-text { order: 1; }
    .about-img-container { order: 2; }

    .places { flex-direction: column; gap: 30px; }
    .invitation-card { padding: 30px 15px; }
    .invitation-card p { font-size: 14px !important; }

    .countdown-box { gap: 10px; }
    .cd-item span { font-size: 28px; }

    .timeline { margin-left: 10px; padding-left: 15px; border-left: 1px solid #444; }
    .timeline-item { padding-left: 15px; margin-bottom: 30px; }
    .timeline-item::before { left: -20px; width: 8px; height: 8px; top: 6px; }
    .timeline-item span:last-child { font-size: 1.1rem; }

    .menu-item { flex-direction: column; align-items: center; text-align: center; margin-bottom: 25px; }
    .menu-item .dots { display: none; }
    .menu-item .desc { margin-top: 6px; }

    .wishes-grid { grid-template-columns: 1fr; gap: 15px; }
    .wish { padding: 20px 15px; }

    .rsvp-btn { width: 100%; max-width: none; padding: 12px 0; font-size: 14px; }
    .rsvp-phones p { font-size: 1rem; display: flex; flex-direction: column; gap: 5px; }
}

@media (max-width: 380px) {
    section { padding: 40px 15px; }
    h1 { font-size: 2.2rem; }
    .handwritten { font-size: 1.3rem; }
        .camcorder-ui { font-size: 12px; top: 10px; left: 10px; }
  .invitation-card { padding: 25px 10px; }
    .cd-item span { font-size: 24px; }
    .timeline-item span:last-child { font-size: 1rem; }
}