/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #fafafa;
    overflow-x: hidden;
    font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.script-font {
    font-family: 'Beautifully Delicious Script', cursive;
    font-weight: 400;
    font-style: normal;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f6f3 0%, #f0ede7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    max-width: 500px;
}

.loading-text h1 {
    font-size: 3.5rem;
    color: #8b7355;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.loading-text p {
    font-size: 1.4rem;
    color: #a0958a;
    margin-bottom: 3rem;
    font-style: italic;
    font-weight: 300;
}

.loading-bar {
    width: 250px;
    height: 3px;
    background-color: #e8e4e0;
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #8b7355 0%, #c4a484 50%, #8b7355 100%);
    width: 0%;
    animation: loadingProgress 3s ease-in-out forwards;
    position: relative;
}

.loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Main Content */
.main-content {
    opacity: 1;
    transition: opacity 0.8s ease-in;
}

.main-content.hidden {
    opacity: 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)), 
                url('hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.4) 0%, rgba(196, 164, 132, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
    animation: heroFadeIn 1.5s ease-out;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 0.2rem;
    letter-spacing: 3px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    position: relative;
    opacity: 0.95;
}

.hero-title:first-of-type {
    margin-bottom: 0.3rem;
    margin-left: -2rem;
    animation: slideInLeft 1.2s ease-out 0.5s both;
}

.hero-title:last-of-type {
    margin-left: 2rem;
    animation: slideInRight 1.2s ease-out 0.8s both;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 0.95;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 0.95;
        transform: translateX(0);
    }
}

.hero-ampersand {
    font-size: 3rem;
    font-family: 'Beautifully Delicious Script', cursive;
    margin: 1rem 0;
    color: #f0ede7;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    transform: rotate(-3deg);
    display: inline-block;
    position: relative;
    animation: fadeInScale 1.5s ease-out 1.1s both;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: rotate(-3deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: rotate(-3deg) scale(1);
    }
}

.hero-ampersand::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    right: -20px;
    height: 1px;
    background: rgba(240, 237, 231, 0.3);
    transform: translateY(-50%);
}

.hero-ampersand::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    right: -20px;
    height: 1px;
    background: rgba(240, 237, 231, 0.3);
    transform: translateY(-50%);
}

.hero-date {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.85;
    animation: fadeInUp 1.2s ease-out 1.4s both;
}

.hero-location {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 4rem;
    color: #f0ede7;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 1.2s ease-out 1.6s both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 0.85;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-arrow {
    border-color: white;
    transform: rotate(45deg) scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Wedding Details Section */
.wedding-details {
    padding: 8rem 0;
    background-color: #fafafa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    color: #8b7355;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #8b7355, #c4a484);
}

.section-subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: #a0958a;
    margin-bottom: 6rem;
    font-style: italic;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Folders - Accordion Style */
.folders-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.folder {
    background: white;
    border: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(139, 115, 85, 0.1);
    margin-bottom: -40px;
    z-index: 1;
    transform: translateY(0);
}

.folder:nth-child(1) {
    z-index: 5;
}

.folder:nth-child(2) {
    z-index: 4;
}

.folder:nth-child(3) {
    z-index: 3;
}

.folder:nth-child(4) {
    z-index: 2;
}

.folder:nth-child(5) {
    z-index: 1;
}

.folder-accommodation {
    background: linear-gradient(135deg, #f8f6f3 0%, #f5f2ed 100%);
}

.folder-travel {
    background: linear-gradient(135deg, #f3f1ee 0%, #f0ede7 100%);
}

.folder-agenda {
    background: linear-gradient(135deg, #f0ede7 0%, #ede8e0 100%);
}

.folder-contact {
    background: linear-gradient(135deg, #ede8e0 0%, #e8e4e0 100%);
}

.folder-additional {
    background: linear-gradient(135deg, #e8e4e0 0%, #e0dcd7 100%);
}

.folder:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(139, 115, 85, 0.15);
    z-index: 10 !important;
}

.folder.active {
    transform: translateY(-20px);
    box-shadow: 0 20px 50px rgba(139, 115, 85, 0.2);
    z-index: 10 !important;
    margin-bottom: 0;
}

.folder-header {
    display: flex;
    align-items: center;
    padding: 2.5rem 2rem;
    cursor: pointer;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
    position: relative;
    min-height: 80px;
}

.folder-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 115, 85, 0.05);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.folder-header:hover::before {
    opacity: 1;
}

.folder-header:hover {
    padding-left: 2.8rem;
}

.folder.active .folder-header {
    background: rgba(139, 115, 85, 0.08);
    border-bottom: 1px solid rgba(139, 115, 85, 0.2);
}

.folder-icon {
    margin-right: 1.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b7355;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.folder-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.folder:hover .folder-icon {
    color: #6b5b47;
    transform: scale(1.1);
}

.folder-title {
    flex: 1;
    font-size: 1.3rem;
    color: #8b7355;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.folder-arrow {
    font-size: 1.8rem;
    color: #c4a484;
    transition: all 0.3s ease;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

.folder.active .folder-arrow {
    transform: rotate(90deg);
    color: #8b7355;
}

.folder-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 0 0 20px 20px;
}

.folder.active .folder-content {
    max-height: 1500px;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.folder-text {
    padding: 3rem 2rem;
    color: #2c2c2c;
    font-size: 1.1rem;
    line-height: 1.8;
}

.folder-text h4 {
    color: #8b7355;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.folder-text h4:first-child {
    margin-top: 0;
}

.folder-text h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 1px;
    background: #c4a484;
}

.folder-text p {
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.folder-text ul {
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.folder-text li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    font-weight: 300;
    position: relative;
}

.folder-text li::marker {
    color: #c4a484;
}

.folder-text strong {
    color: #8b7355;
    font-weight: 500;
}

/* RSVP Section */
.rsvp-section {
    text-align: center;
    margin-top: 6rem;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, #f8f6f3 0%, #f0ede7 100%);
    border-radius: 20px;
    border: 1px solid rgba(139, 115, 85, 0.1);
    position: relative;
    overflow: hidden;
}

.rsvp-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rsvp-section h3 {
    font-size: 2.5rem;
    color: #8b7355;
    margin-bottom: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.rsvp-section p {
    font-size: 1.2rem;
    color: #a0958a;
    margin-bottom: 3rem;
    font-style: italic;
    position: relative;
    z-index: 2;
}

.rsvp-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #8b7355 0%, #c4a484 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.3);
    text-transform: uppercase;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.rsvp-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.rsvp-button:hover::before {
    left: 100%;
}

.rsvp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 115, 85, 0.4);
    background: linear-gradient(135deg, #9d8263 0%, #d4b492 100%);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #f0ede7;
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .hero-title:first-of-type {
        margin-left: -1.5rem;
    }
    
    .hero-title:last-of-type {
        margin-left: 1.5rem;
    }
    
    .hero-ampersand {
        font-size: 2.2rem;
    }
    
    .hero-date {
        font-size: 1.3rem;
    }
    
    .hero-location {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
    
    .folder {
        border-radius: 15px;
        margin-bottom: -30px;
    }
    
    .folder.active {
        margin-bottom: 0;
    }
    
    .folder-header {
        padding: 2rem 1.5rem;
    }
    
    .folder-title {
        font-size: 1.1rem;
    }
    
    .folder-text {
        padding: 2rem 1.5rem;
        font-size: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .loading-text h1 {
        font-size: 2.5rem;
    }
    
    .loading-text p {
        font-size: 1.1rem;
    }
    
    .rsvp-section {
        padding: 3rem 2rem;
    }
    
    .rsvp-button {
        padding: 1rem 2.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .hero-title:first-of-type {
        margin-left: -1rem;
    }
    
    .hero-title:last-of-type {
        margin-left: 1rem;
    }
    
    .hero-ampersand {
        font-size: 1.8rem;
    }
    
    .hero-date {
        font-size: 1.1rem;
    }
    
    .hero-location {
        font-size: 0.9rem;
    }
    
    .folder-header {
        padding: 1.5rem 1rem;
    }
    
    .folder-text {
        padding: 1.5rem 1rem;
    }
    
    .rsvp-section {
        padding: 2rem 1rem;
    }
    
    .rsvp-button {
        padding: 0.9rem 2rem;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}