/* Ensure fonts are applied consistently */
body {
    font-family: 'Poppins', sans-serif;
    color: #4A2E2C;
    background-size: cover;
    background-attachment: fixed;
    margin: 0; /* Remove default margin */
}

/* Background overlay for main content only */
.overlay {
    position: relative;
}

.overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15); /* Slightly lighter overlay */
    border-radius: 12px;
    z-index: -1;
}

/* Header & Navigation Refinements */
header {
    background: rgba(248, 240, 227, 0.89) !important; /* More transparent */
    backdrop-filter: blur(8px); /* Frosted glass effect */
    border-bottom: 1px solid rgba(212, 163, 115, 0.2); /* Subtle gold border */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header:hover {
    background: rgba(248, 240, 227, 0.95) !important;
}

/* Title refinement */
header h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    font-weight: 600; /* Slightly bolder */
}

header h1 span:first-child {
    letter-spacing: 1.8px;
}

header h1 span:last-child {
    letter-spacing: 1.2px;
    font-weight: 500;
}

/* Elegant Professional Navigation Bar */
nav {
    background: rgba(248, 240, 227, 0.92) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(212, 163, 115, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 0 !important;
}

nav a {
    padding: 12px 24px;
    margin: 0 4px;
    font-weight: 600;
    color: #3A1F1E !important;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 4px;
    position: relative;
    font-size: 0.95em;
    letter-spacing: 0.3px;
}

nav a:hover {
    background: rgba(212, 163, 115, 0.15) !important;
    color: #2A1B1A !important;
    transform: none;
    box-shadow: none;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: rgba(212, 163, 115, 0);
    transition: all 0.3s ease;
}

nav a:hover::after {
    background: rgba(212, 163, 115, 0.5);
    bottom: 6px;
}

nav a.active {
    font-weight: 650;
    color: #2A1B1A !important;
}

nav a.active::after {
    background: rgba(212, 163, 115, 0.8);
    bottom: 6px;
}
/* Icons refinement */
header img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

header a:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        backdrop-filter: blur(4px);
    }
    
    nav {
        padding: 4px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    nav a {
        padding: 6px 14px;
        font-size: 0.9rem;
    }
    
    header h1 span:first-child {
        font-size: 1.8rem;
    }
    
    header h1 span:last-child {
        font-size: 1.1rem;
    }
}

/* Section headings */
h1, h2 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 1.2px;
    color: #2A1B1A; /* Darker for better contrast */
}

/* Decorative touch for list items */
section ul li {
    position: relative;
    padding-left: 24px;
}

section ul li:before {
    content: '✿';
    position: absolute;
    left: 0;
    color: #d4a373;
    font-size: 14px;
    top: 2px; /* Align with text */
}

/* Footer */
footer {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

input[type="file"] {
    color: #4A2E2C !important; /* Dark brown to match the theme */
}

footer:hover {
    opacity: 1;
}

/* Button/Link Styling (for forms and standalone buttons) */
form button,
a.button-like {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    background-color: #d4a373;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    display: inline-block;
    transition: background-color 0.3s ease;
}

form button:hover,
a.button-like:hover {
    background-color: #c98f5a; /* Darker gold on hover */
}

/* Form Styling */
form label {
    font-family: 'Poppins', sans-serif;
    color: #4A2E2C;
    margin-bottom: 0.5rem;
}

form select,
form textarea,
form input[type="text"] {
    font-family: 'Poppins', sans-serif;
    color: #4A2E2C;
    border-color: #d4a373;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form select:focus,
form textarea:focus,
form input[type="text"]:focus {
    border-color: #d4a373;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.3);
}

/* Adjust grid for couple layout */
.grid-cols-2 select,
.grid-cols-2 textarea {
    width: 100%;
}

/* Placeholder styling */
textarea::placeholder,
form input[type="text"]::placeholder {
    color: #8B6F47; /* Muted brown */
    font-style: italic;
}

/* Ensure button links are fully opaque and readable */
a.button-link {
    display: inline-block;
    background-color: #d4a373 !important; /* Gold background */
    color: #ffffff !important; /* White text, full opacity */
    opacity: 1 !important; /* Override any inherited opacity */
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem; /* text-sm */
    line-height: 1.25rem;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none !important; /* Remove underline */
}

a.button-link:hover {
    background-color: #c98f5a !important; /* Darker gold on hover */
    color: #ffffff !important;
}


/* Responsive adjustments */
@media (max-width: 640px) {
    header h1 {
        font-size: 1.5rem; /* Smaller header on mobile to prevent wrapping */
        letter-spacing: 1px; /* Tighter spacing */
    }

    nav {
        padding: 2px 6px; /* Tighter padding */
    }

    nav a {
        padding: 4px 8px; /* Smaller buttons */
        font-size: 0.875rem; /* 14px for mobile */
    }

    .overlay {
        padding: 1.5rem; /* Less padding on mobile */
    }

    h2 {
        font-size: 2.25rem; /* Smaller headings */
    }
}

/* Style for the countdown */
#countdown {
    font-size: 3rem; /* Adjust the size of the countdown */
    color: #1a1919; /* Change the countdown text color to black for visibility */
  }
  
/* Make it responsive for mobile */
@media (max-width: 768px) {
#countdown {
    font-size: 2rem; /* Adjust countdown size on mobile */
}

.countdown-text {
    font-size: 1rem; /* Make the text below smaller */
}
}

/* Additional styling for the countdown text below */
.countdown-text {
font-size: 1.25rem; /* Default size for larger screens */
color: #555; /* Lighter color for the text below */
}
  

/* Fix gray overlay on countdown */
#countdown.overlay::before {
    background: transparent !important;
}

/* Optional: If countdown doesn’t need overlay at all */
#countdown::before {
    display: none !important;
}
/* Ensure images maintain aspect ratio */
.object-cover {
    object-fit: cover;
}

/* Smooth transitions for hover effects */
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Hide scrollbar */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Toggle Switch Styles */
input:checked ~ .dot {
    transform: translateX(100%);
}

input:checked ~ .block {
    background-color: #d4a373;
}