/* Wedding Website Styles - Cross-Browser Compatible */

/* CSS Reset and Browser Normalization */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    box-sizing: border-box;
    font-size: 100%;
}

body {
    font-family: "Marney Holland", cursive;
    line-height: 1.6;
    color: #3d3d3d;
    background: #fffdf3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern";
    margin: 0;
    padding: 0;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
}

/* Form elements consistency */
input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Responsive container adjustments */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    will-change: transform;
}

nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo {
    font-family: "Luxurious Script", cursive;
    font-size: clamp(28px, 4vw, 40px);
    color: #53543a;
    font-style: italic;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    max-height: 1200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('venue-background.webp') center center/cover no-repeat;
    background-attachment: fixed;
    will-change: transform;
}

/* Disable fixed background on mobile for better performance and fix mobile background issues */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-background {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 80px 0 40px 0;
    }
    
    .hero-background {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: calc(100vh - 120px);
        width: 100%;
        max-width: 100%;
    }
    
    .hero-title {
        margin-bottom: 10px;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(90, 92, 61, 0.6);
}

.hero-content {
    position: relative;
    text-align: center;
    color: #fffdf3;
    z-index: 2;
    padding: 20px;
    max-width: 90%;
    width: 100%;
}

.hero-title {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 5px;
    will-change: transform;
}

.hero-name {
    font-family: "The Seasons", serif;
    font-size: clamp(40px, 8vw, 100px);
    font-weight: 300;
    letter-spacing: clamp(4px, 1.5vw, 8px);
    display: block;
    margin: -5px 0;
    line-height: 0.9;
}

.hero-and {
    font-family: "Luxurious Script", cursive;
    font-size: clamp(35px, 6vw, 70px);
    display: block;
    margin: -10px 0;
    font-style: italic;
    font-weight: 400;
    line-height: 0.8;
}

.hero-subtitle {
    font-family: "The Seasons", serif;
    font-size: clamp(18px, 3vw, 36px);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    margin-top: 35px;
    font-weight: 300;
    letter-spacing: clamp(3px, 1vw, 6px);
    line-height: 1.2;
}

/* Date Section */
.date-section {
    background: #fdf9f5;
    padding: 100px 20px;
}

.date-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.date-photo-wrapper {
    padding: 15px;
    background: #f9f6f1;
    border: 4px solid #53543a;
    position: relative;
}

.date-photo {
    position: relative;
    border: 3px solid #53543a;
    padding: 20px;
    background: #f9f6f1;
}

.date-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.date-display {
    text-align: center;
    padding: 40px;
}

.wedding-date {
    font-family: "Luxurious Script", cursive;
    font-size: 90px;
    color: #53543a;
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.2;
    font-style: italic;
}

.venue-name {
    font-family: "The Seasons", serif;
    font-size: clamp(20px, 3.5vw, 32px);
    letter-spacing: 3px;
    color: #53543a;
    font-weight: 300;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.date-at {
    font-family: "The Seasons", serif;
    font-size: clamp(20px, 3.5vw, 32px);
    letter-spacing: 3px;
    color: #53543a;
    font-weight: 300;
    margin: 10px 0;
}

/* Our Special Day Section */
.our-special-day {
    position: relative;
    padding: 0;
    min-height: 80vh;
    overflow: hidden;
}

.pool-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('pool-background.webp') center center/cover no-repeat;
}

.pool-background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(83, 84, 58, 0.6);
}

.pool-overlay {
    position: absolute;
    top: 60px;
    left: 200px;
    right: 200px;
    bottom: 60px;
    background: rgba(90, 92, 61, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

.our-special-day .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 50px 60px;
    box-sizing: border-box;
}

.special-day-title {
    font-family: "Luxurious Script", cursive;
    font-size: clamp(40px, 5vw, 60px);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
    font-weight: 400;
    color: #fffdf3;
    font-style: italic;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.special-day-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.special-day-content p {
    font-family: "The Seasons", serif;
    font-size: clamp(14px, 1.8vw, 17px);
    line-height: 1.6;
    color: #fffdf3;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.with-love {
    font-family: "The Seasons", serif;
    font-size: clamp(14px, 1.8vw, 17px);
    color: #fffdf3;
    margin-top: 30px;
    margin-bottom: 0px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.couple-signature {
    font-family: "Luxurious Script", cursive !important;
    font-size: clamp(40px, 5vw, 60px) !important;
    color: #fffdf3;
    font-style: italic !important;
    font-weight: 400 !important;
    margin-bottom: 0;
    margin-top: -10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

/* The Day Section */
.the-day-section {
    background: #fffdf3;
    padding: 120px 20px;
    text-align: center;
}

.the-day-title {
    font-family: "The Seasons", serif;
    font-size: clamp(60px, 8vw, 100px);
    font-weight: 300;
    letter-spacing: 8px;
    color: #53543a;
    margin-bottom: 40px;
}

.the-day-subtitle {
    font-family: "Luxurious Script", cursive;
    font-size: clamp(32px, 4vw, 48px);
    color: #3d3d3d;
    font-style: italic;
    font-weight: 400;
    margin: 0;
}

/* Comprehensive Responsive Design */
/* Extra Large Screens */
@media (min-width: 1400px) {
    .hero-name {
        font-size: 120px;
    }
    .hero-and {
        font-size: 85px;
    }
    .hero-subtitle {
        font-size: 42px;
    }
}

/* Large Screens */
@media (max-width: 1200px) {
    .date-photo-grid {
        gap: 60px;
    }
    .pool-overlay {
        left: 150px;
        right: 150px;
    }
}

/* Medium Screens (Tablets) */
@media (max-width: 992px) {
    .date-photo-grid {
        gap: 40px;
    }
    .pool-overlay {
        left: 100px;
        right: 100px;
    }
    .our-special-day .container {
        padding: 40px 50px;
    }
    .wedding-date {
        font-size: 75px;
    }
}

/* Tablets and Small Desktops */
@media (max-width: 768px) {
    .date-photo-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 500px;
        margin: 0 auto;
    }

    .wedding-date {
        font-size: 60px;
    }

    .pool-overlay {
        top: 20px;
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    
    .pool-background {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
    
    .our-special-day {
        min-height: 70vh;
    }
    
    .our-special-day .container {
        padding: 30px 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-subtitle {
        margin-top: 25px;
    }

    nav {
        padding: 12px 0;
    }
}

/* Mobile Devices */
@media (max-width: 576px) {
    * {
        box-sizing: border-box;
    }
    
    html {
        overflow-x: hidden;
        width: 100%;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
        min-width: 320px;
    }
    
    /* Hero Section Mobile Fixes */
    .hero {
        min-height: 100vh;
        height: auto;
        width: 100vw;
        margin: 0;
        padding: 0;
        position: relative;
        overflow: hidden;
    }
    
    .hero-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .hero-content {
        position: relative;
        z-index: 2;
        padding: 120px 20px 80px 20px;
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hero-name {
        font-size: 56px;
        letter-spacing: 3px;
        margin: -3px 0;
        text-align: center;
        width: 100%;
    }
    
    .hero-and {
        font-size: 42px;
        margin: -8px 0;
        text-align: center;
        width: 100%;
    }
    
    .hero-subtitle {
        font-size: 28px;
        letter-spacing: 3px;
        margin-top: 20px;
        text-align: center;
        width: 100%;
    }

    .wedding-date {
        font-size: 64px;
        text-align: center;
        width: 100%;
    }

    .venue-name {
        font-size: 26px;
        letter-spacing: 1px;
        white-space: nowrap;
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }

    .date-at {
        font-size: 26px;
        letter-spacing: 1px;
        text-align: center;
        width: 100%;
    }

    .date-photo-wrapper {
        padding: 10px;
        margin: 0 auto;
        text-align: center;
    }

    .date-photo {
        padding: 15px;
        margin: 0 auto;
    }
    
    /* Date Section Mobile Fixes */
    .date-section {
        padding: 80px 20px;
        width: 100%;
        margin: 0;
        text-align: center;
        background: #fdf9f5;
        overflow-x: hidden;
    }
    
    .date-photo-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 50px;
        max-width: 350px;
        margin: 0 auto;
        width: 100%;
    }
    
    .date-display {
        text-align: center;
        padding: 30px 20px;
        width: 100%;
        margin: 0 auto;
    }

    .wedding-date {
        font-size: 56px;
        text-align: center;
        width: 100%;
        margin-bottom: 20px;
        line-height: 0.9;
    }

    .date-at {
        font-size: 24px;
        letter-spacing: 1px;
        text-align: center;
        width: 100%;
        margin: 15px 0;
    }

    .venue-name {
        font-size: 20px;
        letter-spacing: 1px;
        text-align: center;
        width: 100%;
        margin: 0 auto;
        line-height: 1.3;
        white-space: normal;
        max-width: 300px;
    }

    .date-photo-wrapper {
        padding: 8px;
        margin: 0 auto;
        text-align: center;
        max-width: 280px;
        width: 100%;
    }

    .date-photo {
        padding: 12px;
        margin: 0 auto;
        width: 100%;
    }

    /* Our Special Day Section Mobile Fixes */
    .our-special-day {
        min-height: 100vh;
        padding: 0;
        width: 100%;
        margin: 0;
        position: relative;
        overflow: hidden;
    }
    
    .pool-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    .pool-overlay {
        position: absolute;
        top: 50px;
        left: 25px;
        right: 25px;
        bottom: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .our-special-day .container {
        position: relative;
        z-index: 2;
        padding: 40px 25px;
        width: 100%;
        margin: 0 auto;
        text-align: center;
        max-width: 100%;
        box-sizing: border-box;
    }

    .special-day-title {
        font-size: 42px;
        text-align: center;
        width: 100%;
        margin: 0 auto 30px auto;
        line-height: 1.1;
    }

    .special-day-content {
        max-width: 100%;
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }

    .special-day-content p {
        font-size: 15px;
        line-height: 1.5;
        text-align: center;
        width: 100%;
        margin: 0 auto 18px auto;
    }

    .couple-signature {
        font-size: 36px !important;
        text-align: center;
        width: 100%;
        margin-top: 15px;
        line-height: 1.1;
    }

    .with-love {
        margin-bottom: 5px !important;
    }

    .our-special-day {
        min-height: 100vh;
        padding: 0;
    }

    .pool-background {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        min-height: 100vh;
    }
    
    .pool-overlay {
        top: 30px;
        left: 15px;
        right: 15px;
        bottom: 30px;
    }

    .special-day-content {
        max-width: 100%;
    }

    .special-day-content p {
        font-size: 18px;
        line-height: 1.5;
    }

    .special-day-title {
        font-size: 52px;
    }

    .date-section {
        padding: 60px 15px;
        min-height: auto;
    }
    
    .date-photo-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .date-display {
        text-align: center;
        padding: 20px;
    }

    /* Other Sections Mobile Fixes */
    .the-day-section {
        padding: 80px 20px;
        width: 100%;
        margin: 0;
        text-align: center;
        overflow-x: hidden;
    }
    
    .the-day-title {
        text-align: center;
        width: 100%;
        margin: 0 auto 30px auto;
        font-size: 42px;
        line-height: 1.1;
    }
    
    .the-day-subtitle {
        text-align: center;
        width: 100%;
        margin: 0 auto 40px auto;
        font-size: 32px;
        line-height: 1.4;
        max-width: 300px;
    }

    /* Navigation Mobile */
    nav {
        padding: 15px 0;
        width: 100%;
    }
    
    nav .container {
        width: 100%;
        padding: 0 20px;
    }
    
    .nav-logo {
        font-size: 30px;
        text-align: center;
    }

    /* Container Controls */
    .container {
        width: 100%;
        margin: 0 auto;
        padding: 0 20px;
        max-width: 100%;
        box-sizing: border-box;
    }

}
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .hero-content {
        padding: 15px;
    }
    
    .hero-name {
        font-size: 48px;
        letter-spacing: 2px;
    }
    
    .hero-and {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 24px;
        margin-top: 18px;
    }
    
    .wedding-date {
        font-size: 56px;
    }

    .venue-name {
        font-size: 24px;
        letter-spacing: 0.5px;
    }

    .date-at {
        font-size: 24px;
        letter-spacing: 0.5px;
    }

    .special-day-title {
        font-size: 46px;
    }

    .special-day-content p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .the-day-subtitle {
        font-size: 28px;
    }
    
    .our-special-day .container {
        padding: 20px 25px;
    }

    nav {
        padding: 10px 0;
    }

    .nav-logo {
        font-size: 24px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background {
        background-image: url('venue-background.webp');
    }
    .pool-background {
        background-image: url('pool-background.webp');
    }
}

/* Landscape Phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: auto;
    }
    
    .hero-name {
        font-size: 32px;
    }
    
    .hero-and {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
}