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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #efe8cb;
    background: #312d2d url('assets/images/decorations/BG_RSVP_Site.png') center/cover no-repeat fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Black Mango', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Background overlay for better text readability */
.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(49, 45, 45, 0.3);
    z-index: -1;
    pointer-events: none;
}

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


.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Black Mango', serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #efe8cb;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    letter-spacing: -0.02em;
    -webkit-text-stroke: 0.5px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #cdb152;
    margin-bottom: 40px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    -webkit-text-stroke: 0.3px rgba(0,0,0,0.2);
}

.gif-container {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

/* Mobile adjustments for GIF container */
@media (max-width: 768px) {
    .gif-container {
        margin: 20px 0;
        padding: 0 10px;
    }
}

.rsvp-gif {
    max-width: 700px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

/* Mobile responsiveness for GIF */
@media (max-width: 768px) {
    .rsvp-gif {
        max-width: 90vw;
        width: 90vw;
    }
}

@media (max-width: 480px) {
    .rsvp-gif {
        max-width: 95vw;
        width: 95vw;
    }
}

.rsvp-gif:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RSVP Section */
.rsvp-section {
    background: rgba(49, 45, 45, 0.1);
    padding: 40px;
    margin: 40px 0;
    border-radius: 4px;
    border: 2px solid #cdb152;
    backdrop-filter: blur(3px);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-container h2 {
    font-family: 'Black Mango', serif;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #efe8cb;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.form-container > p {
    text-align: center;
    color: #efe8cb;
    margin-bottom: 40px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Form Styles */
.rsvp-form {
    display: grid;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 8px;
    color: #efe8cb;
    font-size: 1rem;
    letter-spacing: 0.01em;
    text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.1);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 2px solid #cdb152;
    border-radius: 2px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    color: #312d2d;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #cdb152;
    background: white;
    box-shadow: 0 0 0 3px rgba(205, 177, 82, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Proxy Section */
.proxy-section {
    background: #312d2d;
    padding: 30px;
    border-radius: 2px;
    margin-top: 20px;
    border-left: 4px solid #cdb152;
}

.proxy-section h3 {
    color: #efe8cb;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.proxy-section p {
    color: #efe8cb;
    margin-bottom: 20px;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #cdb152 0%, #b8a042 100%);
    color: #312d2d;
    border: 2px solid #cdb152;
    padding: 18px 40px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    letter-spacing: 0.02em;
    text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(205, 177, 82, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Messages */
.success-message,
.error-message {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Event Details */
.event-details {
    background: rgba(49, 45, 45, 0.1);
    padding: 40px;
    margin: 40px 0;
    border-radius: 4px;
    border: 2px solid #cdb152;
    backdrop-filter: blur(3px);
}

.event-info {
    max-width: 800px;
    margin: 0 auto;
}

.event-details-text {
    background: rgba(49, 45, 45, 0.8);
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #cdb152;
    text-align: center;
}

.event-details-text h3 {
    font-family: 'Black Mango', serif;
    color: #cdb152;
    font-size: 1.5rem;
    margin: 20px 0 10px 0;
    font-weight: 700;
}

.event-details-text p {
    color: #efe8cb;
    font-size: 1.1rem;
    margin: 8px 0;
    font-weight: 500;
}

.event-details-text p strong {
    color: #cdb152;
    font-weight: 700;
}

.event-info-content {
    margin-bottom: 30px;
}

.event-info-content h3 {
    font-family: 'Black Mango', serif;
    color: #cdb152;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.event-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.event-info-list li {
    color: #efe8cb;
    font-size: 1.1rem;
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(205, 177, 82, 0.3);
    font-weight: 500;
    list-style: none;
    list-style-type: none;
}

.event-info-list li:last-child {
    border-bottom: none;
    font-style: italic;
    color: #cdb152;
}

.calendar-download {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(205, 177, 82, 0.3);
    text-align: center;
}

.calendar-btn {
    background: linear-gradient(135deg, #cdb152 0%, #b8a042 100%);
    color: #312d2d;
    border: 2px solid #cdb152;
    padding: 15px 30px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.calendar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(205, 177, 82, 0.4);
    background: linear-gradient(135deg, #b8a042 0%, #cdb152 100%);
}

.event-details h2 {
    font-family: 'Black Mango', serif;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #efe8cb;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Invite Image Container */
.invite-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.invite-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 3px solid #cdb152;
    transition: all 0.3s ease;
}

.invite-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 45px rgba(0,0,0,0.4);
}




/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .form-container h2 {
        font-size: 2rem;
    }
    
    .invite-container {
        padding: 0 10px;
    }
    
    .invite-image {
        border-radius: 4px;
        border-width: 2px;
    }
    
}

/* GSAP Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
}

/* Loading States */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Sharp Lines and Borders */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced border sharpness */
.form-group input,
.form-group select,
.form-group textarea,
.submit-btn {
    border-width: 2px;
    border-style: solid;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Sharp text rendering */
h1, h2, h3, h4, h5, h6 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #312d2d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cdb152;
    border-radius: 4px;
    border: 1px solid #312d2d;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8a042;
}
    