:root {
    --gold: #d4af37;
    --gold-light: #f9f1d7;
    --gold-bright: #ffdf00;
    --pink-accent: #ffb6c1;
    --text-color: #4a4a4a;
    --background-color: #fdfaf1;
    --header-font: 'Pinyon Script', cursive;
    --mono-font: 'Fira Code', monospace;
    --sans-font: 'Inter', sans-serif;
}

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

body {
    background-color: var(--background-color);
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--sans-font);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: 80px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    padding: 40px 0;
    z-index: 100;
    position: fixed;
    height: 100vh;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    gap: 30px;
}

.nav-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: sepia(1) saturate(0.5);
}

.nav-item:hover, .nav-item.active {
    background: rgba(212, 175, 55, 0.1);
    filter: none;
}

.nav-item .icon {
    font-size: 20px;
}

.spacer { flex-grow: 1; }

/* Main Container */
.container {
    flex-grow: 1;
    margin-left: 80px;
    padding: 60px 40px;
    max-width: 1200px;
    margin-right: auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    text-align: center;
    margin-bottom: 60px;
}

.main-title {
    font-family: var(--header-font);
    font-size: 84px;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 5px;
    line-height: 1;
}

.sub-headline {
    font-family: var(--mono-font);
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
    margin-bottom: 80px;
}

.portrait-container {
    flex: 0 0 400px;
    display: flex;
    justify-content: center;
}

.frame-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
}

.baroque-frame {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    pointer-events: none;
}

.portrait-clip {
    width: 240px;
    height: 240px;
    position: absolute;
    top: 55px;
    left: 55px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 5;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Timeline */
.timeline-container {
    flex-grow: 1;
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='50%25' y='50%25' font-family='Arial' font-size='10' fill='rgba(212, 175, 55, 0.05)' text-anchor='middle' dominant-baseline='middle'%3E15%3C/text%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.ribbon-wrapper {
    width: 100%;
    position: relative;
}

.ribbon-background {
    height: 12px;
    background: #c5a028; /* Matte Gold */
    border-radius: 6px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    overflow: visible;
    border: none;
}

.node {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--gold-bright);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-bright), 0 0 20px var(--gold);
    z-index: 5;
    border: 2px solid white;
}

.ribbon-text-15 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--header-font);
    text-shadow: 0 0 10px rgba(255,255,255,1);
    z-index: 2;
}

.data-streams {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        rgba(255, 255, 255, 0.1) 20px,
        rgba(255, 255, 255, 0.4) 30px,
        rgba(255, 255, 255, 0.1) 40px
    );
    animation: flow 4s linear infinite;
    mask-image: linear-gradient(to bottom, transparent, black, transparent);
}

@keyframes flow {
    from { background-position: 0 0; }
    to { background-position: 400px 0; }
}

.milestone {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    top: 6px; /* Anchor below the bar */
}

.milestone-label {
    font-family: var(--mono-font);
    font-size: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 4px;
    min-width: 160px;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.connector {
    width: 2px;
    height: 60px; /* Descriptive vertical line */
    background: var(--gold);
    margin: 0;
}

.connector.top {
    height: 20px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 40px;
    width: 100%;
}

.info-card {
    padding: 20px;
}

.info-card h3 {
    font-family: var(--sans-font);
    font-weight: 300;
    font-size: 22px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.madrina-card { text-align: center; }

.madrina-icons {
    max-width: 180px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.requirements-card h3 span {
    font-family: var(--mono-font);
    font-size: 14px;
    color: var(--gold);
}

.req-list {
    list-style: none;
    font-family: var(--mono-font);
    font-size: 14px;
}

.req-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px dotted rgba(212, 175, 55, 0.3);
    padding-bottom: 5px;
}

.check {
    color: var(--gold);
    font-weight: bold;
}

.map-card {
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-frame {
    border: 8px solid white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 200px;
    height: 150px;
    overflow: hidden;
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTA */
.cta-container {
    grid-column: 2 / 3;
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.rsvp-button {
    background: linear-gradient(135deg, var(--gold) 0%, var(--pink-accent) 100%);
    color: #4b360b;
    text-decoration: none;
    padding: 20px 40px;
    font-family: var(--header-font);
    font-size: 32px;
    border-radius: 0;
    clip-path: polygon(15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%, 0% 50%);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    position: relative;
    border: 2px solid white;
}

.rsvp-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 182, 193, 0.7);
}

.rsvp-button::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid var(--gold);
    clip-path: polygon(15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%, 0% 50%);
    opacity: 0.5;
}

/* Footer */
.footer {
    width: 100%;
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    font-family: var(--mono-font);
    font-size: 12px;
    color: rgba(0,0,0,0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cta-container {
        grid-column: 1 / 3;
    }
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .sidebar { width: 60px; }
    .container { margin-left: 60px; padding: 20px; }
    .main-title { font-size: 60px; }
    .info-grid { grid-template-columns: 1fr; }
    .cta-container { grid-column: 1 / 2; }
}
