/* Wedding Website Custom Styles */

/* Custom Font Imports */
@font-face {
    font-family: 'UTM Wedding';
    src: url('../fonts/UTM-Wedding-KT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'UVF Chops';
    src: url('../fonts/UVF-Chops-Normal.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HLT BicKham';
    src: url('../fonts/HLT-BicKhamScriptPro_Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem; /* 64px, equal to nav height */
    overflow-x: hidden;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: #FFF8F0; /* Main cream background */
    color: #5D4037; /* Dark brown text color */
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Font Classes */
.font-dancing {
    font-family: 'Dancing Script', cursive;
}

.font-imperial {
    font-family: 'Imperial Script', cursive, serif;
}

.font-utm-wedding {
    font-family: 'UTM Wedding', cursive, serif;
}

.font-uvf-chops {
    font-family: 'UVF Chops', cursive, serif;
}

.font-bickham {
    font-family: 'HLT BicKham', cursive, serif;
}
/* Color Theme */
.bg-cream-dark {
    background-color: #F8EFE4;
}

.bg-cream-light {
    background-color: #FFF8F0;
}

.text-accent {
    color: #A38560; /* Gold-like accent color */
}

.border-accent {
    border-color: #A38560;
}

/* Button Styles */
.btn-accent {
    background-color: #A38560;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.btn-accent:hover:not(:disabled) {
    background-color: #8a6d4d;
    transform: scale(1.05);
}

.btn-accent:disabled {
    background-color: #bfa88c;
    cursor: not-allowed;
}

/* Animation for scroll */
.reveal {
    position: relative;
    transform: translateY(100px);
    opacity: 0;
    transition: 1.5s all ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* Reveal from Left */
.reveal-left {
    position: relative;
    transform: translateX(-100px);
    opacity: 0;
    transition: 1.5s all ease;
}

.reveal-left.active {
    transform: translateX(0);
    opacity: 1;
}

/* Reveal from Right */
.reveal-right {
    position: relative;
    transform: translateX(100px);
    opacity: 0;
    transition: 1.5s all ease;
}

.reveal-right.active {
    transform: translateX(0);
    opacity: 1;
}

/* Reveal with Scale */
.reveal-scale {
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: 1.5s all ease;
}

.reveal-scale.active {
    transform: scale(1);
    opacity: 1;
}

/* Background image styling */
.hero-bg {
    background-image: url('/images/1V4A7989.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* Apply parallax effect only on larger screens */
@media (min-width: 1024px) {
    .hero-bg {
        background-attachment: fixed;
        background-position: center;
    }
}

/* Tooltip Styles */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    right: 50%;
    transform: translateX(50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    pointer-events: none;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 115%;
    right: 50%;
    transform: translateX(50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Spinner Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner-animate {
    animation: spin 1s linear infinite;
}

/* Snowflakes Animation */
.snowflake {
    position: fixed;
    top: -10px;
    z-index: 10;
    user-select: none;
    cursor: default;
    animation: snowfall linear infinite;
    pointer-events: none;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.9), 
                 0 0 6px rgba(255, 255, 255, 0.6);
}

@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.9;
    }
    25% {
        transform: translateY(25vh) translateX(10px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) translateX(-10px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(75vh) translateX(10px) rotate(270deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) translateX(0) rotate(360deg);
        opacity: 0.2;
    }
}

/* Hero Section Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Animation Classes */
.hero-title {
    animation: slideDown 1s ease-out forwards;
}

.hero-bride {
    animation: slideInLeft 1s ease-out 0.5s forwards;
    opacity: 0;
}

.hero-ampersand {
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

.hero-groom {
    animation: slideInRight 1s ease-out 0.5s forwards;
    opacity: 0;
}

/* Parents Name Animation - Both Mobile and Desktop (2 rows, slide in from sides) */
.parents-left {
    animation: slideInLeft 1s ease-out forwards;
    opacity: 0;
}

.parents-right {
    animation: slideInRight 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* Bride and Groom Names Animation */
.bride-name {
    animation: slideInLeft 1s ease-out 0.5s forwards;
    opacity: 0;
}

.groom-name {
    animation: slideInRight 1s ease-out 0.5s forwards;
    opacity: 0;
}

/* Ring Icon Fade In Animation */
.ring-icon {
    animation: fadeIn 1.5s ease-out 1s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Lightbox Styles */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 50;
    touch-action: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
}

#lightbox.active {
    display: flex !important;
}

#lightbox-image {
    max-width: 90%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

#lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    z-index: 10;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 5px 10px;
}

#lightbox-close:hover {
    color: #A38560;
}

@media (min-width: 640px) {
    #lightbox-image {
        max-width: 85%;
        max-height: 85%;
    }
    
    #lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 3rem;
    }
}