@import url('https://fonts.googleapis.com/css2?family=Inria+Serif:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&display=swap');

@font-face {
    font-family: 'BirdCharms';
    src: url('../assets/BirdCharmsScript-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-image: url('../assets/background-texture.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #8b6f47;
    line-height: 1.6;
    min-height: 100vh;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #3E788E;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

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

/* Navigation */
.navigation {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px 20px 30px;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item {
    text-decoration: none;
    color: #3E788E;
    font-size: 24px;
    letter-spacing: 1px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
    font-family: 'Inria Serif', serif;
}

.nav-item:hover {
    color: #2897b7;
}

.nav-item.active {
    border-bottom: 2px solid #3E788E;
    font-weight: 600;
    position: relative;
}

.nav-item.active::before {
    content: "✹";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #3E788E;
    font-size: 20px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px 80px;
    position: relative;
    overflow: hidden;
}

.decorative-elements {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -30px;
    height: 345px;
}

.header-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.header-image {
    height: 345px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.main-title {
    font-family: 'BirdCharms', cursive;
    font-size: 80px;
    color: #b9976f;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: normal;
}

.subtitle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 0 auto 40px;
    padding: 0 50px;
    flex-wrap: wrap;
}

.subtitle-text {
    display: flex;
    justify-content: center;
    align-items: center;
}

.subtitle-line {
    font-family: 'Inria Serif', serif;
    font-size: 36px;
    letter-spacing: 2px;
    line-height: 20px;
    text-transform: uppercase;
    color: #b9976f;
    text-align: center;
}

.subtitle-part {
    font-family: 'Inria Serif', serif;
    font-size: 28px;
    letter-spacing: 2px;
    line-height: 20px;
    text-transform: uppercase;
    color: #b9976f;
    text-align: center;
}

.ibiza {
    color: #d55f37;
}

.chelsea-hiram-2-3 {
    width: 62px;
    height: 74px;
    object-fit: cover;
}

.sun-divider {
    width: 50px;
    height: 60px;
    object-fit: contain;
}

/* Events Timeline */
.events-timeline {
    width: 100%;
    margin: 0;
    padding: 0;
}

.optional-events {
    text-align: center;
    margin-bottom: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

.optional-events h2 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    letter-spacing: 1.5px;
    color: #D55F37;
    margin-bottom: 10px;
    font-weight: 500;
}

.optional-events h3 {
    width: 100%;
    height: 65px;
    position: relative;
    font-size: 28px;
    letter-spacing: 1px;
    line-height: 35px;
    text-transform: uppercase;
    font-family: 'Inria Serif', serif;
    color: #b9976f;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-weight: 400;
}

.wedding-events-title {
    width: 100%;
    height: 65px;
    position: relative;
    font-size: 28px;
    letter-spacing: 1px;
    line-height: 35px;
    text-transform: uppercase;
    font-family: 'Inria Serif', serif;
    color: #b9976f;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.optional-events .description {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 1px;
    color: #111111;
    margin-bottom: 40px;
    width: 100%;
    max-width: none;
}

.description {
    font-size: 14px;
    line-height: 1.8;
    color: #8b6f47;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Weekend Events Container */
.weekend-events-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.weekend-events-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1;
    max-width: 600px;
    text-align: center;
}

.weekend-event {
    text-align: center;
    margin-bottom: 20px;
}

.side-image {
    flex-shrink: 0;
    width: 120px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
}

.side-img {
    width: 100px;
    height: auto;
}

.weekend-event .event-date,
.weekend-event .event-details h4 {
    font-family: 'Inria Serif', serif;
    font-size: 20px;
    font-weight: 600;
    color: #D55F37 !important;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.event-description {
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #111111;
    line-height: 28px;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.event-link {
    color: #111111;
    text-decoration: underline;
}

.event-link:hover {
    color: #D55F37;
}

.event-note {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #111111;
    line-height: 24px;
    letter-spacing: 0.5px;
    font-style: italic;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.event-icon {
    flex-shrink: 0;
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-img {
    width: 50px;
    height: auto;
}

.sun-icon {
    width: 48px;
    height: 48px;
}

.event-details h4 {
    font-size: 12px;
    color: #8b6f47;
    margin-bottom: 5px;
    letter-spacing: 1px;
    font-weight: 500;
}

.event-title {
    font-size: 14px;
    color: #8b6f47;
    font-weight: 600;
    margin-bottom: 3px;
}

.event-time {
    font-size: 12px;
    color: #a0845a;
}

/* Main Events Timeline */
.main-events {
    position: relative;
    margin-top: 100px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 100%;
    display: none;
    justify-content: center;
    z-index: 1;
}

.timeline-dots {
    width: 60px;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.event-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}

.welcome-drinks {
    text-align: center;
}

.event-main.welcome-drinks .event-icon {
    width: 180px;
    height: 180px;
}

.event-main.welcome-drinks .icon-img {
    width: 180px;
}

.wedding-day {
    text-align: center;
}

.recovery {
    text-align: center;
}

.event-main.recovery .event-icon {
    width: 180px;
    height: 180px;
}

.event-main.recovery .icon-img {
    width: 180px;
}

.event-main .event-icon {
    position: static;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
}

.event-main .icon-img {
    width: 120px;
    height: auto;
}

.event-main h3 {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 1.2px;
    color: #D55F37;
    margin-bottom: 8px;
    font-weight: 500;
}

.event-main h2 {
    font-family: 'Inria Serif', serif;
    font-size: 22px;
    color: #B9976F;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.event-main .event-time {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #111111;
    margin-bottom: 15px;
    font-weight: 500;
}

.event-main .description {
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #111111;
    margin-bottom: 20px;
    max-width: 280px;
}

.location-details {
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    color: #111111;
    line-height: 1.6;
}

.location-details p {
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    color: #111111;
    margin-bottom: 2px;
}

.location-details p:first-child,
.location-details p:nth-child(2) {
    text-decoration: underline;
}

.recovery .location-details p:nth-child(2) {
    text-decoration: none;
}

/* Timeline Connector */
.timeline-connector {
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        #d4a574 0,
        #d4a574 10px,
        transparent 10px,
        transparent 20px
    );
    margin: 40px 0;
}

/* Section Divider */
.section-divider {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.divider-dots {
    width: 300px;
    height: auto;
    opacity: 0.7;
}

/* Footer */
.footer {
    margin-top: 120px;
    padding: 60px 20px 40px;
    text-align: center;
}

.footer-divider {
    display: flex;
    justify-content: center;
    margin: 0 auto 40px;
}

.footer-divider-dots {
    width: 300px;
    height: auto;
    opacity: 0.7;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-script-image {
    display: none;
}

.footer-dots {
    width: 480px;
    height: auto;
    max-width: 90%;
}

.footer-script {
    font-family: 'BirdCharms', cursive;
    font-size: 48px;
    color: #b9976f;
    line-height: 1;
    margin: -20px 0;
}

.c-initial {
    letter-spacing: -10px;
}

.h-initial {
    letter-spacing: 0;
}

.footer-details {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-details .date,
.footer-details .location {
    font-family: 'Inria Serif', serif;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #b9976f;
    margin: 0;
}

/* Small text styling */
.small-text {
    font-size: 11px;
    color: #a0845a;
    font-style: italic;
    margin-bottom: 5px;
}

.location {
    font-size: 11px;
    color: #a0845a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        flex-direction: column;
        gap: 0;
        padding: 80px 20px 20px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .navigation.active {
        right: 0;
    }

    .nav-item {
        font-size: 18px;
        padding: 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(62, 120, 142, 0.1);
    }

    .nav-item.active::before {
        top: 50%;
        left: 20px;
        transform: translateY(-50%);
    }
    
    .hero-section {
        padding: 80px 20px 40px;
        background: linear-gradient(to bottom, rgba(231, 182, 143, 0.4) 0%, rgba(231, 182, 143, 0.15) 50%, transparent 100%);
    }

    .decorative-elements {
        height: 288px;
        margin-bottom: 30px;
    }

    .header-image {
        height: 288px;
        width: auto;
    }

    .main-title {
        font-size: 56px;
        margin-top: -75px;
        margin-bottom: 30px;
    }

    .subtitle-container {
        flex-direction: column;
        gap: 5px;
        padding: 0 20px;
        text-align: center;
    }

    .subtitle-text {
        width: 100%;
        text-align: center;
    }

    .subtitle-part {
        font-size: 16px;
    }

    .sun-divider {
        width: 35px;
        height: 42px;
        order: 3;
        margin-top: 15px;
    }
    
    .event-main .event-details {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }
    
    .event-main .description {
        max-width: 250px;
    }
    
    .timeline-line {
        display: none;
    }
    
    .event-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .event-main .event-icon {
        position: static;
        transform: none;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .subtitle-container {
        gap: 10px;
    }

    .sun-divider {
        width: 30px;
        height: 36px;
    }
    
    .a-celebration-spanning {
        position: static;
        width: auto;
        height: auto;
        font-size: 24px;
        text-align: center;
    }
    
    .multiple-days-in-container {
        position: static;
        width: auto;
        height: auto;
        font-size: 24px;
        text-align: center;
    }
    
    .chelsea-hiram-2-3 {
        position: static;
        width: 45px;
        height: 54px;
    }
    
    .weekend-events-container {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 20px;
    }
    
    .side-image {
        display: none;
    }
    
    .weekend-events-list {
        max-width: 100%;
    }
    
    .description {
        font-size: 13px;
    }
    
    .event-main h2 {
        font-size: 18px;
    }

    .footer-script {
        font-size: 48px;
        letter-spacing: -10px;
    }

    .footer-details {
        flex-direction: row;
        gap: 20px;
    }

    .footer-details .date,
    .footer-details .location {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .footer-script {
        font-size: 48px;
        letter-spacing: -10px;
    }

    .footer-details {
        flex-direction: row;
        gap: 20px;
    }

    .footer-details .date,
    .footer-details .location {
        font-size: 18px;
    }
}