:root {
    --mint-green-light: #C1F0D8;
    --mint-green-dark: #8FD9B6;
    --orange-soft: #d0c3d1;
    --orange-accent: #c1a7c3;
    --text-color: #4A4A4A;
    --white: #FFFFFF;
    --bg-gradient-1: rgb(134, 110, 161);
    --bg-gradient-2: #e0dcda;
    --font-primary: 'Cairo', sans-serif;
    --font-secondary: 'Amiri', serif;
    --font-english: 'Roboto', sans-serif;
}

.en-text {
    font-family: var(--font-english) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--bg-gradient-1), var(--bg-gradient-2));
    min-height: 100vh;
    color: var(--text-color);
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Opening Screen --- */
.screen {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.screen.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.card-container {
    position: relative;
    text-align: center;
    padding: 20px;
}

.card-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.8s ease, box-shadow 0.3s ease, opacity 0.8s ease, filter 0.8s ease;
}

.card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.cover-image {
    width: 100%;
    max-width: 350px;
    /* Scaled down for mobile view initially */
    height: auto;
    display: block;
    border-radius: 15px;
}

.instruction-text {
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--white);
    animation: fadeInOut 2s infinite;
    font-weight: bold;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Opening Animation Class */
.opening-animate {
    transform: scale(1.1) rotateY(10deg);
    opacity: 0;
}

/* --- Main Content --- */
#main-content {
    padding: 40px 20px;
    justify-content: flex-start;
    opacity: 0;
    animation: fadeInPage 1s ease forwards;
}

@keyframes fadeInPage {
    to {
        opacity: 1;
    }
}

.content-container {
    width: 100%;
    max-width: 600px;
    background: #e5e2de;
    /* Glassmorphism effect */
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
}

.content-container.transparent {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.verse-text {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    color: var(--orange-soft);
    text-align: center;
    margin: 20px 0;
    line-height: 1.8;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.photo-frame {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.section-title {
    font-family: var(--font-secondary);
    color: var(--orange-accent);
    font-size: 2rem;
    margin-bottom: 15px;
}

.location-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.location-box > * {
    width: 100%;
    max-width: 400px;
}

.location-box > p {
    max-width: 100%;
    text-align: center;
}

.hotel-name {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.hotel-sub {
    font-weight: 300;
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
}

.map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--orange-accent), var(--orange-soft));
    color: var(--white);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 400px;
    flex-wrap: wrap;
}

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

/* Calendar Dropdown */
.calendar-dropdown {
    position: relative;
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.calendar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--orange-accent), var(--orange-soft));
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-family: var(--font-primary);
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

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

.dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-menu.show {
    display: flex;
}

.calendar-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.calendar-option:last-child {
    border-bottom: none;
}

.calendar-option:hover:not(.disabled) {
    background-color: #f5f5f5;
}

.calendar-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-option.disabled:hover {
    background-color: transparent;
}

.calendar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--white);
    font-weight: bold;
    font-size: 1.1rem;
}

.calendar-icon.google {
    background: #4285F4;
}

.calendar-icon.outlook {
    background: #0078D4;
}

.calendar-icon.yahoo {
    background: #7C2AE8;
}

.calendar-icon.apple {
    background: #555;
}

/* Share Dropdown */
.share-dropdown {
    position: relative;
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--orange-accent), var(--orange-soft));
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-family: var(--font-primary);
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

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

.share-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.share-btn-icon svg {
    width: 20px;
    height: 20px;
}

.calendar-icon svg {
    width: 18px;
    height: 18px;
}

.calendar-icon.share-copy {
    background: #546E7A;
}

.calendar-icon.share-whatsapp {
    background: #25D366;
    color: var(--white);
}

.footer-msg {
    margin-top: 40px;
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    /* color: var(--mint-green-dark); */
    font-weight: bold;
    line-height: 1.6;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .content-container {
        padding: 20px 15px;
    }

    .map-btn,
    .calendar-btn,
    .share-btn {
        font-size: clamp(0.78rem, 4vw, 0.95rem);
        padding: 10px 14px;
        gap: 7px;
    }

    .hotel-name {
        font-size: clamp(0.9rem, 4.5vw, 1.2rem);
    }

    .calendar-option {
        font-size: clamp(0.78rem, 3.8vw, 0.95rem);
        padding: 10px 12px;
    }

    .calendar-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .share-btn-icon svg {
        width: 17px;
        height: 17px;
    }

    .footer-msg {
        font-size: clamp(1rem, 5vw, 1.3rem);
    }
}