/* Custom CSS for additional styling */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Desktop background image optimization */
@media (min-width: 769px) {
    .hero-bg {
        background-position: center top !important;
        background-size: cover !important;
    }
}

/* Mobile background image optimization */
@media (max-width: 768px) {
    .hero-bg {
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        min-height: 100vh !important;
    }
}



/* Hide scrollbar completely */
html {
    overflow: -moz-scrollbars-none; /* Firefox */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer and Edge */
}

html::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    display: none; /* Chrome, Safari, and Opera */
}

body {
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer and Edge */
}

body::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    display: none; /* Chrome, Safari, and Opera */
}

/* Universal scrollbar hiding */
*::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    display: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Navigation scroll effects */
.navbar-scrolled {
    background: rgba(33, 86, 68, 0.95) !important; /* Green color with transparency */
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 24px;
    margin: 16px;
}

.navbar-scrolled .nav-link {
    color: white !important;
}

.navbar-scrolled .nav-link:hover {
    color: #215644 !important; /* Green hover */
}

.navbar-scrolled #admin-access-btn {
    color: #215644 !important; /* Green for admin button */
}

.navbar-scrolled #admin-access-btn:hover {
    color: #FFF !important; /* White on hover */
}

.navbar-scrolled .font-playfair {
    color: white !important; /* Logo in white */
}

.navbar-scrolled #guest-welcome,
.navbar-scrolled #logout-btn {
    color: white !important;
}

.navbar-scrolled #logout-btn:hover {
    color: #215644 !important;
}

.navbar-scrolled #mobile-menu-btn {
    color: white !important;
}

/* Navigation styles */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #215644;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero section animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Countdown timer styles */
.countdown-card {
    background: linear-gradient(135deg, #ffffff 0%, #FBF8F3 100%);
    border: 1px solid #215644;
    box-shadow: 0 10px 25px rgba(33, 86, 68, 0.1);
}

/* Gallery hover effects */
.gallery-image {
    transition: all 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Form styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 86, 68, 0.1);
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Loading animation for countdown */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1s ease-in-out infinite;
}

/* Parallax effect for sections */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Mobile menu animation */
.mobile-menu-open {
    transform: translateX(0);
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(135deg, #215644 0%, #1a4a36 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative elements */
.decorative-line {
    position: relative;
}

.decorative-line::before,
.decorative-line::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #215644, transparent);
}

.decorative-line::before {
    left: -120px;
}

.decorative-line::after {
    right: -120px;
}

/* Image overlay effects */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(33, 86, 68, 0.1) 0%,
        rgba(26, 74, 54, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::before {
    opacity: 1;
}

/* Timeline connector */
.timeline-connector {
    position: relative;
}

.timeline-connector::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, #215644 0%, transparent 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .decorative-line::before,
    .decorative-line::after {
        display: none;
    }
    
    .parallax {
        background-attachment: scroll;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gold {
        color: #215644 !important;
    }
    
    .bg-gold {
        background-color: #215644 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #215644;
    outline-offset: 2px;
}

/* Loading states */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Login Modal Styles */
#login-modal {
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#login-modal .bg-white {
    animation: slideUp 0.4s ease-out;
    border: 2px solid #215644;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Input focus effects for login */
#invitation-code:focus {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(33, 86, 68, 0.3);
}

/* Guest info banner styles */
#guest-info-banner {
    background: linear-gradient(135deg, rgba(33, 86, 68, 0.1) 0%, rgba(33, 86, 68, 0.2) 100%);
    border: 1px solid rgba(33, 86, 68, 0.3);
    box-shadow: 0 4px 15px rgba(33, 86, 68, 0.1);
}

/* Login error state */
#login-error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Welcome message animation */
#guest-welcome {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Logout button hover effect */
#logout-btn:hover {
    background-color: rgba(33, 86, 68, 0.1);
    border-radius: 4px;
    padding: 2px 8px;
    transition: all 0.3s ease;
}

/* RSVP form enhancements */
#rsvp-form select:disabled,
#rsvp-form input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Success state animations */
.success-bounce {
    animation: successBounce 0.6s ease-out;
}

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

/* Ticket counter styles */
.ticket-counter {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #215644 0%, #1a4a36 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Mobile responsive for login modal */
@media (max-width: 640px) {
    #login-modal .bg-white {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    #invitation-code {
        font-size: 18px; /* Prevent zoom on iOS */
    }
}

/* Google Forms Integration Styles */
.google-forms-container {
    border-radius: 0.5rem;
    overflow: hidden;
}

.google-forms-container iframe {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.google-forms-container iframe:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .google-forms-container iframe {
        height: 1000px !important;
        min-height: 1000px;
    }
}
