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

/* Custom Font Face */
@font-face {
    font-family: 'Austin';
    src: url('AustinHairline-MediumItalic-Trial-BF662b0bb1bbe89.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.osa {
    height: 45px;
    margin: 10px 0;
}

/* Preloader styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: #333;
}

.loading-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
}

.loading-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #ddd;
    border-radius: 50%;
    animation: loading-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #333 transparent transparent transparent;
}

.loading-ring div:nth-child(1) { animation-delay: -0.45s; }
.loading-ring div:nth-child(2) { animation-delay: -0.3s; }
.loading-ring div:nth-child(3) { animation-delay: -0.15s; }

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

.preloader-content h3 {
    font-family: 'Austin', 'Montserrat', sans-serif;
    font-size: 32px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.preloader-content p {
    font-size: 16px;
    margin: 0;
    opacity: 0.8;
}

html, body {
    font-family: 'Georgia', serif;
    overflow: hidden;
    background-color: #000;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    position: relative !important;
}

/* Safari iPhone viewport fixes */
html {
    height: -webkit-fill-available;
}

body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/* Section Styling */
.section {
    height: 100vh;
    height: -webkit-fill-available; /* Safari iPhone fix */
    width: 100vw;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    -webkit-backface-visibility: hidden; /* Safari performance fix */
    backface-visibility: hidden;
}

/* Dynamic viewport height support for modern browsers */
@supports (height: 100dvh) {
    .section {
        height: 100dvh;
    }
}

/* Home section specific alignment */
#home {
    align-items: flex-start;
    padding-top: 10px !important;
}

/* Groom section specific alignment */
#groom {
    align-items: flex-end;
    padding-bottom: 100px;
}

/* Bride section specific alignment */
#bride {
    align-items: flex-end;
    padding-bottom: 100px;
}

/* Invitation section specific alignment */
#invitation {
    align-items: center;
    justify-content: center;
}

/* Mepande section specific alignment */
#mepande {
    align-items: flex-end;
    padding-bottom: 100px;
}

/* Person sections specific alignment */
#person1,
#person2,
#person3,
#person4 {
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 100px;
}

/* Dark gradient overlay for better text readability */

/* Groom section gradient overlay */
#groom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Bride section gradient overlay */
#bride::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Invitation section gradient overlay */
#invitation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 1;
    pointer-events: none;
}

/* Mepande section gradient overlay */
#mepande::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Gallery section gradient overlay */
#gallery::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Person sections gradient overlay */
#person1::after,
#person2::after,
#person3::after,
#person4::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Background Zoom Animation */
@keyframes backgroundZoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 0, 0, 0.4); */
    z-index: 1;
}

.section.active {
    opacity: 1;
    visibility: visible;
}


/* Home section background animation */
#home {
    background-size: cover;
}

.content-home{
    margin-top: 220px;
    text-align: center;
    color: #fff;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('DSC_2596.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: backgroundZoom 20s ease-in-out infinite;
}


/* Groom section background animation */
#groom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('DSC_2629.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: backgroundZoom 25s ease-in-out infinite;
}


/* Bride section background animation */
#bride::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('DSC_2615.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: backgroundZoom 22s ease-in-out infinite;
}

/* Invitation section background animation */
#invitation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('DSC_2546.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: backgroundZoom 18s ease-in-out infinite;
}

/* Mepande section background animation */
#mepande::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('DSC_6467.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: backgroundZoom 24s ease-in-out infinite;
}

/* Gallery section background animation */
#gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/gallery/DSC_2043.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: backgroundZoom 20s ease-in-out infinite;
}

/* Person sections background animation */
#person1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('DSC_6529.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: backgroundZoom 16s ease-in-out infinite;
}

#person2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('DSC_2629.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: backgroundZoom 19s ease-in-out infinite;
}

#person3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('DSC_6515.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: backgroundZoom 21s ease-in-out infinite;
}

#person4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('DSC_6902.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: backgroundZoom 17s ease-in-out infinite;
}

/* Content Styling */
.content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 20px;
    width: 100%;
    max-width: 400px;
}

/* Content Animation Classes */
.slide-right {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease-out;
}

.slide-left {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease-out;
}

.slide-bottom {
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.8s ease-out;
}

.slide-right.animate,
.slide-left.animate,
.slide-bottom.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-bottom.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Home Section Styling */
.main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px !important;
    font-weight: normal;
    margin-bottom: 0px;
    letter-spacing: 2px;
}

.couple-names {
    text-align: center;
}

.couple-names h2 {
    font-family: "Playfair Display", serif !important;
    font-size: 50px !important;
    font-weight: normal;
    color: #fff;
    z-index: 9;
}

.ampersands {
    font-size: 2rem;
    font-style: italic;
    margin-top: -25px !important;
    margin-bottom: -25px !important;
    color: #AE906E;
    z-index: 99 !important;
}

.date {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px !important;
    margin-top: 10px;
    font-weight: 300;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1000;
}

.scroll-arrow {
    font-size: 2rem;
    animation: bounce 2s infinite;
    color: #AE906E;
}

.scroll-indicator p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    margin-top: 5px;
    opacity: 0.8;
    font-weight: 300;
}

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

/* Profile Card Styling */
.content-profile {
    z-index: 9;
}

.profile-card {
    background: transparent;
    /* padding: 30px 25px; */
    text-align: center;
}

.section-title {
    font-family: "Playfair Display", serif !important;
    font-size: 16px !important;
    margin-bottom: 10px;
    color: #fff;
    font-weight: normal;
    letter-spacing: 1px;
}

.profile-info .name {
    font-family: "Playfair Display", serif;
    color: #fff;
    font-style: italic;
    font-size: 1.8rem;
    font-weight: normal;
    margin-bottom: 15px;
}

.description {
    font-family: "Playfair Display", serif;
    font-size: 12px !important;
    margin-bottom: 5px;
    color: #fff;
    font-weight: normal;
    letter-spacing: 1px;
}

.parents {
    font-family: "Playfair Display", serif;
    color: #fff;
    font-style: italic;
    font-size: 12px !important;
    font-weight: normal;
    margin-bottom: 15px;
}

.social-media p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #AE906E;
    font-weight: 500;
}

/* Invitation & Ceremony Text Styling */
.invitation-text,
.ceremony-text {
    text-align: left;
    padding: 0 40px;
    color: #fff;
    padding-bottom: 10px;
}

.invitation-desc,
.ceremony-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 300;
    font-style: italic;
}

.invitation-details,
.ceremony-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.detail-item {
    border-left: 3px solid #AE906E;
    padding-left: 15px;
}

.detail-title {
    font-family: 'Austin', 'Georgia', serif;
    font-size: 1.1rem;
    font-weight: normal;
    color: #AE906E;
    margin-bottom: 5px;
}

.detail-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.9;
}

/* Photo Gallery Styling */
.photo-gallery {
    position: fixed;
    bottom: 100px;
    left: 0;
    display: flex;
    gap: 20px;
    z-index: 2;
    animation: slideLeftToRight 20s linear infinite;
    pointer-events: none;
    width: 200%;
}

.photo-card {
    width: 180px;
    height: 180px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    flex-shrink: 0;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-card:hover img {
    transform: scale(1.1);
}

/* Different timing for each section */
#person1 .photo-gallery {
    animation: slideLeftToRight 15s linear infinite;
}

#person2 .photo-gallery {
    animation: slideLeftToRight 18s linear infinite reverse;
}

#person3 .photo-gallery {
    animation: slideLeftToRight 20s linear infinite;
}

#person4 .photo-gallery {
    animation: slideLeftToRight 16s linear infinite reverse;
}

/* Gallery Animation - True infinite loop */
@keyframes slideLeftToRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Person Name Styling */
.person-name {
    text-align: center;
    color: #fff;
    margin-bottom: 220px;
}

.person-name h2 {
    font-size: 20px !important;
    font-style: italic;
    font-weight: 600;
    color: white;
}

.person-name p {
    font-size: 14px !important;
}

/* Hide content during preloader */
body:not(.loaded) .pre-opening,
body:not(.loaded) .section,
body:not(.loaded) .floating-nav,
body:not(.loaded) .music-btn {
    display: none !important;
}

/* After loaded, only show pre-opening initially */
body.loaded .section,
body.loaded .floating-nav,
body.loaded .music-btn {
    display: none !important;
}

body.loaded .pre-opening {
    display: flex !important;
}

/* Show sections only after invitation is opened */
body.loaded.invitation-opened .section {
    display: flex !important;
}

body.loaded.invitation-opened .floating-nav {
    display: flex !important;
}

body.loaded.invitation-opened .music-btn {
    display: block !important;
}

body.loaded.invitation-opened .pre-opening {
    display: flex !important;
}

/* Pre Opening Screen - Photo Background */
.pre-opening {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: -webkit-fill-available; /* Safari iPhone fix */
    background: url('DSC_2163.jpg') center/cover no-repeat;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch; /* Safari smooth scrolling */
}

/* Dynamic viewport height for pre-opening */
@supports (height: 100dvh) {
    .pre-opening {
        height: 100dvh;
    }
}

.pre-opening::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.pre-opening-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    text-align: center;
}

.pre-opening-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: center;
}

.pre-opening-bottom {
    flex-shrink: 0;
}

.invitation-header h1 {
    font-family: 'Austin', 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: white;
    margin: 0 0 20px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.couple-names-preview {
    margin: 20px 0;
}

.name-preview {
    font-family: "Playfair Display", serif;
    font-size: 48px;
    color: #fff;
    font-weight: 400;
    display: block;
    margin: 8px 0;
    letter-spacing: 1px;
}

.ampersand-preview {
    font-size: 1.8rem;
    color: white;
    font-style: italic;
    margin: 15px 0;
    display: block;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.invitation-details-preview {
    margin: 10px 0;
}

.invitation-header {
    margin-top: 100px;
}

.date-preview {
    font-family: 'Austin', 'Montserrat', sans-serif;
    font-size: 1rem;
    color: white;
    margin: 0;
    font-weight: 100;
    letter-spacing: 2px;
}

.guest-name {
    margin: 0 0 30px 0;
    text-align: center;
}

.guest-name p {
    font-size: 0.9rem;
    color: white;
    margin: 0 0 8px 0;
    font-style: italic;
}

.guest-name h3 {
    font-size: 30px;
    color: #000;
    margin: 0;
    font-family: 'Austin', 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: capitalize;
}

.opening-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.open-btn {
    background: #AE906E;
    border: 2px solid #AE906E;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 10px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.open-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 208, 63, 0.5);
    background: linear-gradient(135deg, #f1c40f, #e67e22);
}

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

.btn-icon {
    font-size: 1.1rem;
    animation: gentlePulse 2s infinite;
}

.music-controls {
    display: flex;
    justify-content: center;
}

.music-btn-pre {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.85rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.music-btn-pre:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #AE906E;
}

.music-btn-pre.muted {
    opacity: 0.4;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes brownGradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pre-opening.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-out;
    transform: translateY(-20px);
}

/* Gallery section styles */
.gallery-container {
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: flex-end;
    padding-bottom: 120px;
    gap: 30px;
}

.gallery-container .section-title {
    text-align: center;
    margin-bottom: 20px;
    z-index: 10;
    position: relative;
}

.gallery-stack {
    display: flex;
    gap: 25px;
    width: max-content;
    height: 280px;
}

.gallery-stack-left {
    animation: scrollLeft 60s linear infinite;
}

.gallery-stack-right {
    animation: scrollRight 55s linear infinite;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    width: 280px;
    height: 280px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f0f0f0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.gallery-stack:hover {
    animation-play-state: paused;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

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

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

@media (max-width: 1024px) {
    .gallery-item {
        width: 220px;
        height: 220px;
    }
    
    .gallery-stack {
        gap: 20px;
        height: 220px;
    }
    
    .gallery-container {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        width: 180px;
        height: 180px;
    }
    
    .gallery-stack {
        gap: 15px;
        height: 180px;
    }
    
    .gallery-container {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 140px;
        height: 140px;
    }
    
    .gallery-stack {
        gap: 12px;
        height: 140px;
    }
    
    .gallery-container {
        gap: 15px;
    }
}

/* Invitation Location Button - New CSS */
.invitation-location-btn {
    display: block;
    background: #AE906E;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 12px;
    margin: 15px auto 0;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    width: fit-content;
}

.invitation-location-btn:hover {
    background: #9A7A58;
    transform: translateY(-1px);
}

.invitation-location-btn:active {
    transform: translateY(0px);
}

@media (max-width: 768px) {
    .invitation-location-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Scrollable Section Override */
.scrollable-section {
    height: 100vh !important;
    height: -webkit-fill-available !important; /* Safari iPhone fix */
    overflow-y: auto !important;
    align-items: flex-start !important;
    padding-top: 40px !important;
    -webkit-overflow-scrolling: touch !important; /* Safari smooth scrolling */
}

/* Dynamic viewport height for scrollable sections */
@supports (height: 100dvh) {
    .scrollable-section {
        height: 100dvh !important;
    }
}

/* Comment Section Styling */
.comment-section {
    background: #AE906E;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* Safari iPhone fix */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Safari smooth scrolling */
}

/* Dynamic viewport height for comment section */
@supports (min-height: 100dvh) {
    .comment-section {
        min-height: 100dvh;
    }
}

.comment-section::before {
    display: none !important;
}

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

.comment-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.comment-header {
    text-align: center;
    margin-bottom: 40px;
}

.comment-title {
    font-family: 'Austin', 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.comment-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0 0 20px 0;
}

.comment-divider {
    width: 80px;
    height: 3px;
    background: #AE906E;
    margin: 0 auto;
    border-radius: 2px;
}

.comment-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Form Styling */
.comment-form {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8eaed;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #AE906E;
}

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

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #2c3e50;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e8eaed;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: inline-block;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #AE906E;
    background: #AE906E;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.submit-btn {
    width: 100%;
    background: #AE906E;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #9A7A58;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(174, 144, 110, 0.4);
}

.submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Comments Display */
.comments-display-section {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: 600px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Safari smooth scrolling */
}

.comments-display-title {
    font-family: 'Austin', 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Limit visible comments and add scroll behavior */
.comments-list-container {
    max-height: 320px; /* Show approximately 4 comments */
    overflow-y: auto;
    padding-right: 10px;
    -webkit-overflow-scrolling: touch; /* Safari smooth scrolling */
    scrollbar-width: thin;
    scrollbar-color: #AE906E #f0f0f0;
}

/* Custom scrollbar for webkit browsers */
.comments-list-container::-webkit-scrollbar {
    width: 6px;
}

.comments-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.comments-list-container::-webkit-scrollbar-thumb {
    background: #AE906E;
    border-radius: 3px;
}

.comments-list-container::-webkit-scrollbar-thumb:hover {
    background: #9A7A58;
}

.comment-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #AE906E;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comment-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.comment-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 10px;
}

.comment-attendance {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    display: inline-block;
}

.comment-attendance.hadir {
    background: #d4edda;
    color: #155724;
}

.comment-attendance.tidak_hadir {
    background: #f8d7da;
    color: #721c24;
}

/* Thank You Section Styling */
.thank-you-section {
    margin-top: 50px;
    margin-bottom: 60px;
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: 2px solid rgba(174, 144, 110, 0.3);
}

.thank-you-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.thank-you-image {
    text-align: center;
}

.couple-thank-you-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(174, 144, 110, 0.3);
}

.thank-you-text {
    text-align: center;
}

.thank-you-title {
    font-family: 'Austin', 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.thank-you-message {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #34495e;
    line-height: 1.8;
    margin: 0 0 30px 0;
    font-style: italic;
}

.thank-you-signature {
    margin-top: 20px;
}

.couple-signature {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    color: #AE906E;
    font-style: italic;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 968px) {
    .comment-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .comment-content {
        padding: 40px 30px;
    }
    
    .comment-title {
        font-size: 2rem;
    }
    
    .thank-you-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .couple-thank-you-img {
        height: 500px;
    }
    
    .thank-you-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .comment-section {
        padding: 40px 15px;
    }
    
    .comment-content {
        padding: 30px 20px;
    }
    
    .comment-title {
        font-size: 1.8rem;
    }
    
    .comment-form,
    .comments-display-section {
        padding: 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .thank-you-section {
        margin-top: 30px;
        padding-top: 30px;
    }
    
    .couple-thank-you-img {
        height: 400px;
    }
    
    .thank-you-title {
        font-size: 1.6rem;
    }
    
    .thank-you-message {
        font-size: 1rem;
    }
    
    .couple-signature {
        font-size: 1.5rem;
    }
}


/* New Location Section Styling */
.new-location-style {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    min-height: -webkit-fill-available; /* Safari iPhone fix */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Dynamic viewport height for location section */
@supports (min-height: 100dvh) {
    .new-location-style {
        min-height: 100dvh;
    }
}

/* Remove blocking overlay for location section */
.new-location-style::before {
    display: none !important;
}

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

.new-location-content {
    background: transparent;
    border-radius: 25px;
    padding: 50px 40px;
    position: relative;
    z-index: 2;
}

.new-location-header {
    text-align: center;
    margin-bottom: 40px;
}

.new-location-title {
    font-family: 'Austin', 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.new-location-divider {
    width: 80px;
    height: 3px;
    background: #AE906E;
    margin: 0 auto;
    border-radius: 2px;
}

.new-location-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.new-venue-info {
    text-align: center;
}

.new-venue-name {
    font-family: 'Austin', 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.new-venue-address {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.new-location-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.new-maps-btn, .new-copy-btn {
    padding: 12px 25px;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.new-maps-btn {
    background: #AE906E;
    color: white;
}

.new-maps-btn:hover {
    background: #9A7A58;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(174, 144, 110, 0.4);
}

.new-copy-btn {
    background: transparent;
    color: #AE906E;
    border: 2px solid #AE906E;
}

.new-copy-btn:hover {
    background: #AE906E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(174, 144, 110, 0.3);
}

.new-map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.new-map-iframe {
    width: 100%;
    height: 350px;
    border: 0;
    display: block;
}

@media (max-width: 968px) {
    .new-location-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .new-location-content {
        padding: 40px 30px;
    }
    
    .new-location-title {
        font-size: 2rem;
    }
    
    .new-venue-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .new-location-style {
        padding: 20px 15px;
    }
    
    .new-location-content {
        padding: 30px 20px;
    }
    
    .new-location-title {
        font-size: 1.8rem;
    }
    
    .new-venue-name {
        font-size: 1.3rem;
    }
    
    .new-venue-address {
        font-size: 1rem;
    }
    
    .new-location-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .new-maps-btn, .new-copy-btn {
        width: 200px;
    }
    
    .new-map-iframe {
        height: 250px;
    }
}

/* Location Section Background */
.location-gradient {
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #1a1a2e);
    background-size: 400% 400%;
    animation: gradientMove 8s ease-in-out infinite;
}

.location-gradient .section-title {
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.location-gradient .location-text .address {
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Location Section Styling */
.location-info {
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
}

.location-details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.location-text .venue-name {
    font-size: 1.8rem;
    color: #AE906E;
    font-family: 'Austin', 'Montserrat', sans-serif;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.location-text .address {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.location-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.map-btn, .copy-btn {
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.map-btn {
    background: linear-gradient(135deg, #AE906E, #f1c40f);
    color: #2c3e50;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.map-btn:hover, .copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.map-btn:hover {
    background: linear-gradient(135deg, #f1c40f, #e67e22);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(244, 208, 63, 0.8);
}

.map-container iframe {
    border-radius: 15px;
}

/* Mobile adjustments for pre-opening */
@media (max-width: 480px) {
    .pre-opening-content {
        width: 95%;
        max-width: 350px;
        padding: 0;
    }
    
    .pre-opening-card {
        padding: 1.5rem;
        max-height: 95vh;
        width: 100%;
        margin: 0;
    }
    
    .couple-names-preview {
        gap: 0.2rem;
    }
    
    .name-preview {
        font-size: 48px;
    }
}

@media (min-width: 768px) {
    .location-details {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }
    
    .location-text {
        flex: 1;
        text-align: left;
    }
    
    .map-container {
        flex: 1;
        max-width: 400px;
    }
    
    .location-actions {
        justify-content: flex-start;
    }
}

/* Music Button */
.music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(244, 208, 63, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.music-btn:hover {
    background: rgba(244, 208, 63, 1);
    transform: scale(1.1);
}

.music-btn.muted {
    background: rgba(150, 150, 150, 0.9);
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.floating-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Navigation Buttons */
.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-btn:hover:not(:disabled) {
    background: rgba(244, 208, 63, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(244, 208, 63, 0.2);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn svg {
    transition: transform 0.2s ease;
}

.nav-btn:hover:not(:disabled) svg {
    transform: scale(1.1);
}

/* Navigation Dots */
.nav-dots {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dot:hover {
    background: rgba(244, 208, 63, 0.6);
    transform: scale(1.2);
}

.dot.active {
    background: #AE906E;
    width: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(244, 208, 63, 0.5);
}

/* Animation for floating nav */
.floating-nav {
    animation: slideUp 0.6s ease-out 0.5s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .couple-names h2 {
        font-size: 1.8rem;
    }
    
    .ampersand {
        font-size: 2.5rem;
    }
    
    .date {
        font-size: 1.1rem;
    }
    
    .profile-info .name {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .content {
        padding: 15px;
    }
    
    .profile-card {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.3rem;
    }
    
    .couple-names h2 {
        font-size: 1.6rem;
    }
    
    .ampersand {
        font-size: 2rem;
    }
    
    .profile-info .name {
        font-size: 1.3rem;
    }
    
    .content {
        max-width: 350px;
        padding: 80px;
    }
    
    #home {
        padding-top: 60px;
    }
    
    /* Mobile groom section adjustment */
    #groom {
        padding-bottom: 80px;
    }
    
    /* Mobile bride section adjustment */
    #bride {
        padding-bottom: 80px;
    }
    
    /* Mobile mepande section adjustment */
    #mepande {
        padding-bottom: 80px;
    }
    
    /* Mobile person sections adjustment */
    #person1,
    #person2,
    #person3,
    #person4 {
        padding-bottom: 80px;
    }
    
    .person-name h2 {
        font-size: 2rem;
    }
    
    /* Mobile photo gallery adjustments */
    .photo-card {
        width: 120px;
        height: 120px;
        border-radius: 10px;
        border-width: 2px;
    }
    
    .photo-gallery {
        gap: 15px;
        bottom: 150px;
    }
    
    /* Mobile scroll indicator adjustment */
    .scroll-indicator {
        bottom: 80px;
    }
    
    .floating-nav {
        bottom: 20px;
        gap: 15px;
        padding: 12px 20px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .nav-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .floating-nav {
        bottom: 15px;
        gap: 10px;
        padding: 10px 15px;
        max-width: 90vw;
        flex-wrap: nowrap;
    }
    
    .nav-btn {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .nav-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .nav-dots {
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .dot {
        width: 6px;
        height: 6px;
        flex-shrink: 0;
    }
}

/* Safari iPhone specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (orientation: portrait) {
    /* Fix for Safari iPhone viewport issues */
    .section,
    .pre-opening,
    .scrollable-section {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    /* Fix text rendering on Safari iPhone */
    body, .content, .profile-info {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Fix for Safari iPhone scrolling */
    .pre-opening,
    .scrollable-section,
    .comment-section {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
}

/* Safari iPhone landscape fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (orientation: landscape) {
    .section {
        height: 100vh;
        height: -webkit-fill-available;
    }
    
    @supports (height: 100dvh) {
        .section {
            height: 100dvh;
        }
    }
}

/* Specific iPhone device targeting */
@media only screen 
  and (device-width: 390px) 
  and (device-height: 844px) 
  and (-webkit-device-pixel-ratio: 3) {
    /* iPhone 12/13/14 Pro specific fixes */
    .floating-nav {
        bottom: max(20px, env(safe-area-inset-bottom));
    }
    
    .pre-opening {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

@media only screen 
  and (device-width: 375px) 
  and (device-height: 812px) 
  and (-webkit-device-pixel-ratio: 3) {
    /* iPhone X/XS/11 Pro specific fixes */
    .floating-nav {
        bottom: max(20px, env(safe-area-inset-bottom));
    }
    
    .pre-opening {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}