* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #d4a574;
    --color-secondary: #8b7355;
    --color-accent: #e8c9a0;
    --color-dark: #2c2416;
    --color-light: #faf8f5;
    --color-white: #ffffff;
    --color-overlay: rgba(44, 36, 22, 0.5);

    --font-family: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

body {
    font-family: var(--font-family);
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Video Hero Section */
.video-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Added custom styling for video controls to make them more visible and elegant */
#heroVideo::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(44, 36, 22, 0.8), transparent);
}

#heroVideo::-webkit-media-controls-play-button,
#heroVideo::-webkit-media-controls-volume-slider,
#heroVideo::-webkit-media-controls-mute-button,
#heroVideo::-webkit-media-controls-timeline {
    filter: brightness(1.2);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(44, 36, 22, 0.3), rgba(44, 36, 22, 0.6));
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-text {
    text-align: center;
    color: var(--color-white);
    animation: fadeInUp 1.5s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.couple-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.name {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.heart {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--color-accent);
    animation: heartbeat 2s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0.95;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* Replaced scroll arrow with location icon */
.location-icon {
    width: 48px;
    height: 48px;
    color: var(--color-white);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Added unmute button styling for video sound control */
.unmute-button {
    position: absolute;
    bottom: 100px;
    right: 30px;
    z-index: 10;
    background: rgba(212, 165, 116, 0.95);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.unmute-button:hover {
    background: rgba(212, 165, 116, 1);
    transform: scale(1.05);
}

.unmute-button.muted {
    background: rgba(139, 115, 85, 0.95);
}

.unmute-button.muted:hover {
    background: rgba(139, 115, 85, 1);
}

.sound-icon {
    width: 24px;
    height: 24px;
    color: var(--color-white);
    flex-shrink: 0;
}

.unmute-text {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(212, 165, 116, 0.4);
    }

    50% {
        box-shadow: 0 8px 32px rgba(212, 165, 116, 0.8);
    }
}

/* Countdown Section */
.countdown-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-white) 100%);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    text-align: center;
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
}

.countdown-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--color-secondary);
    margin-bottom: var(--spacing-lg);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.time-box {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    min-width: 100px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.time-value {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.time-label {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--color-secondary);
    margin-top: var(--spacing-xs);
}

.time-separator {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-primary);
    font-weight: 700;
}

.wedding-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: var(--color-white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    max-width: 600px;
    margin: 0 auto;
}

.calendar-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.wedding-date span {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-dark);
    font-weight: 500;
}

/* Gallery Section */
.gallery-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 3 / 4;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 36, 22, 0.8), transparent);
    padding: var(--spacing-md);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-caption {
    color: var(--color-white);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 500;
}

/* Location Section */
.location-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-white) 100%);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.info-text h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--color-dark);
    margin-bottom: var(--spacing-xs);
}

.info-text p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--color-secondary);
    line-height: 1.6;
}

.navigation-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.nav-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.nav-button:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
    background: var(--color-secondary);
}

.nav-button.waze {
    background: #33ccff;
}

.nav-button.waze:hover {
    background: #00b8e6;
}

.nav-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-text {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.9;
}

.footer-hearts {
    display: flex;
    gap: var(--spacing-sm);
}

.heart-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    animation: heartbeat 2s ease-in-out infinite;
}

.heart-icon:nth-child(2) {
    animation-delay: 0.3s;
}

.heart-icon:nth-child(3) {
    animation-delay: 0.6s;
}

.footer-names {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--color-accent);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .location-content {
        grid-template-columns: 1fr 1fr;
    }

    .time-separator {
        display: block;
    }
}

@media (max-width: 767px) {
    .time-separator {
        display: none;
    }

    .time-box {
        min-width: 80px;
        padding: var(--spacing-sm);
    }

    .gallery-item-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .couple-names {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    /* Hide unmute button after interaction on mobile */
    .unmute-button {
        bottom: 80px;
        right: 20px;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .unmute-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .countdown-timer {
        gap: var(--spacing-xs);
    }

    .time-box {
        min-width: 70px;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}