:root {
    --bg-color: #060913;
    --bg-darker: #03050a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa8624;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --accent-gradient: linear-gradient(135deg, #d4af37 0%, #aa8624 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

a {
    color: #EE212B;
    text-decoration: none;
    font-weight: 600;
    /* Added bold weight */
    transition: opacity 0.3s ease;
}

a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}

.gold {
    color: var(--gold);
}

.gold-text {
    color: var(--gold-light);
}

.gold-link {
    color: #EE212B;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.gold-link:hover {
    opacity: 0.8;
}

.strong {
    font-weight: 600;
}

.dimmed {
    color: var(--text-muted);
}

/* Glow Background Effects */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(13, 25, 48, 0.4) 0%, transparent 50%);
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(6, 9, 19, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.years {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 3px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05);
    /* slightly scaled for entry animation */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

.hero-content {
    max-width: 900px;
}

.greeting {
    font-size: 1.5rem;
    font-weight: 400;
    /* Increased from 300 */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-main);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.highlight-name {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--gold);
    display: block;
    margin-top: 10px;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 1.1;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.9));
    /* Better for background-clip: text */
}

.fade-line {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    color: #e2e8f0;
    /* Brighter than muted for better contrast */
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-main);
    font-weight: 500;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--gold);
    /* Changed from text-muted */
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Sections */
.section {
    padding: 120px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 600;
}

.separator {
    width: 80px;
    height: 3px;
    background: var(--accent-gradient);
    margin-bottom: 40px;
}

.separator.center {
    margin: 0 auto 40px auto;
}

.separator.style-alt {
    width: 40px;
    height: 40px;
    background: transparent;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
    transform: rotate(45deg);
    margin: 20px auto 40px auto;
}

.text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.subtitle-text {
    font-size: 1.3rem;
    margin-bottom: 60px;
    color: var(--text-main);
}

/* Grid & Layout */
.layout-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.drop-cap::first-letter {
    font-family: var(--font-heading);
    font-size: 4rem;
    float: left;
    line-height: 0.8;
    margin-right: 15px;
    color: var(--gold);
}

.highlight-box {
    padding: 30px;
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0;
    color: var(--text-main);
    font-size: 1.15rem;
    font-style: italic;
}

/* Stats */
.stats {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.stat-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.4s ease, background 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.stat-card.gold-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(170, 134, 36, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 15px;
}

.gold-card .stat-number {
    font-size: 3rem;
}

.stat-label {
    font-weight: 500;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Invitation */
.invitation-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #060913;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.card-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-details-tag {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent-gradient);
    color: #000;
    padding: 20px 30px;
    border-top-left-radius: 20px;
    font-weight: 600;
}

.event-details-tag .date {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.card-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* CTA */
.cta-text {
    font-size: 1.4rem;
    margin-bottom: 50px;
    color: var(--text-main);
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    border: none;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

.text-small {
    font-size: 0.9rem;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    background: var(--bg-darker);
}

.flex-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-up {
    animation: fadeUp 1s cubic-bezier(0.5, 0, 0, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 992px) {
    .main-title {
        font-size: 4rem;
    }

    .highlight-name {
        font-size: 2.2rem;
    }

    .layout-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .invitation-card {
        grid-template-columns: 1fr;
    }

    .card-image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .app-header {
        padding: 15px 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .flex-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .gold-card .stat-number {
        font-size: 2.2rem;
    }
}

/* Pre-landing Styles */
.pre-landing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(6, 9, 19, 0.6) 0%, rgba(6, 9, 19, 0.98) 100%), url('assets/premium_navy_gold_bg.png');
    background-size: cover;
    background-position: center;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.pre-landing.hidden {
    opacity: 0;
    visibility: hidden;
}

.pre-landing-box {
    background: rgba(3, 5, 10, 0.9);
    /* Darker */
    border: 1px solid var(--gold);
    /* More solid gold */
    padding: 60px 50px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), inset 0 0 30px rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(20px);
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

#visitor-name-input {
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s ease;
    text-align: center;
}

#visitor-name-input:focus {
    border-color: var(--gold);
}

#visitor-name-input::placeholder {
    color: var(--text-muted);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 5, 10, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-darker);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 50px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(212, 175, 55, 0.05);
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.hidden .modal-content {
    transform: translateY(50px);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--gold);
}

.modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.modal-header h2 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 2.2rem;
}

.modal-body {
    text-align: left;
}

.program-day {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.program-day:last-child {
    border-bottom: none;
}

.program-day h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.program-day ul,
.info-list {
    list-style: none;
    padding-left: 0;
}

.program-day li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-main);
    line-height: 1.6;
}

.program-day li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.program-day .time {
    color: var(--gold-light);
    font-weight: 500;
}

.program-day .bonus {
    color: var(--gold);
    font-style: italic;
}

.program-info {
    background: rgba(212, 175, 55, 0.05);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    margin-top: 20px;
}

.program-info h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.info-list li {
    margin-bottom: 8px;
    color: var(--text-main);
    padding-left: 10px;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
    }

    .modal-header h2 {
        font-size: 1.8rem;
    }

    /* Linktree / Taplink Style Modal */
    .linktree-content {
        max-width: 450px;
        padding: 60px 40px;
        text-align: center;
    }

    .linktree-content .logo {
        font-size: 1.4rem;
    }

    .linktree-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .link-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        padding: 18px 25px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(212, 175, 55, 0.2);
        border-radius: 50px;
        color: var(--text-main);
        font-family: var(--font-body);
        font-weight: 500;
        font-size: 1.05rem;
        text-decoration: none;
        transition: all 0.3s ease;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .link-btn:hover {
        transform: translateY(-3px);
        background: rgba(212, 175, 55, 0.1);
        border-color: var(--gold);
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
        color: var(--gold-light);
    }

    .link-btn svg {
        flex-shrink: 0;
    }

    @media (max-width: 480px) {
        .linktree-content {
            padding: 50px 20px;
        }

        .link-btn {
            font-size: 0.95rem;
            padding: 15px 20px;
        }
    }
}