/*Rawest font */
/* Custom Brand Font for Program Wala */
@font-face {
    font-family: 'Rawest';
    src: url('fonts/rawest-medium-webfont.woff2') format('woff2'),
    url('fonts/rawest-medium-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap; 
}

/* Class to apply the custom font instantly */
.brand-font {
    font-family: 'Rawest', sans-serif !important;
}
/* --- Global Variables & Resets --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Prevents the sticky navbar from covering the section titles */
}
:root {
    --theme-color: #a91b60;
    --theme-color-hover: #8a154e;
    --accent-gold: #d4af37; /* Adds a royal touch */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    color: #333;
    background-color: #fafafa;
}

h1, h2, h3, h4, h5, h6, .royal-heading {
    font-family: var(--font-heading);
}

/* --- Utilities --- */
.theme-text {
    color: var(--theme-color) !important;
}

.theme-bg {
    background-color: var(--theme-color) !important;
}

.letter-spacing-custom {
    letter-spacing: 2px;
}

/* --- Buttons --- */
.btn-theme {
    background-color: var(--theme-color);
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
}

.btn-theme:hover {
    background-color: var(--theme-color-hover);
    color: #ffffff;
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 15px rgba(169, 27, 96, 0.4);
}

.btn-outline-light:hover {
    color: var(--theme-color);
    background-color: #ffffff;
}

/* --- Navigation --- */
.navbar-brand {
    font-size: 1.8rem;
}

.custom-link {
    color: #555 !important;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.custom-link:hover {
    color: var(--theme-color) !important;
}

/* Underline animation on hover */
.custom-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--theme-color);
    transition: width 0.3s ease;
}

.custom-link:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 90vh;
    /* Placeholder background image - replace with a high-quality wedding/event photo */
    background: url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(169, 27, 96, 0.4) 100%);
    z-index: 1;
}

/* --- Animations (Basic for now) --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-section .container {
    animation: fadeInDown 1s ease-out forwards;
}

/* --- Carousel Adjustments --- */
.hero-section {
    height: 90vh;
    overflow: hidden; 
}

/* Remove the static background from the old hero-section CSS */
.hero-section { background: none; }

.carousel-item img {
    object-fit: cover;
    height: 90vh; 
    width: 100%;
}

.overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.8) 100%);             
     /* rgba(169, 27, 96, 0) */
    pointer-events: none; /* Allows clicking buttons through the overlay */
}

/* --- Service Cards --- */
.service-card {
    border-radius: 15px;
    transition: all 0.4s ease;
    background-color: #ffffff;
    border-bottom: 4px solid transparent !important;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--theme-color) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(169, 27, 96, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.service-card:hover .icon-wrapper {
    background-color: var(--theme-color);
}

.service-card:hover .icon-wrapper h1 {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
/* =========================================
   WHY CHOOSE US SECTION CSS
   ========================================= */

/* Very soft maroon-tinted background so the white boxes pop */
.why-choose-us {
    background-color: #fcf8f9; 
}

.feature-box {
    border-bottom: 4px solid transparent; /* Invisible border by default */
    transition: all 0.4s ease;
}

/* Hover Physics */
.feature-box:hover {
    transform: translateY(-10px); /* Floats up */
    box-shadow: 0 20px 40px rgba(169, 27, 96, 0.1) !important; /* Casts a maroon shadow */
    border-bottom-color: var(--accent-gold); /* The gold underline reveals itself */
}

/* The circle around the icons */
.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(169, 27, 96, 0.05); /* Very faint maroon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

/* When the whole box is hovered, the icon circle fills with solid maroon */
.feature-box:hover .feature-icon {
    background-color: var(--theme-color);
    transform: scale(1.1); /* Icon pops slightly */
}

/* The icon itself turns white when hovered */
.feature-box:hover .feature-icon i {
    color: #ffffff !important;
}

/* --- Footer --- */
.bg-dark-custom {
    background-color: #1a1a1a;
}

.footer-link {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--theme-color) !important;
    transform: translateX(5px); /* Slides the link slightly to the right on hover */
}

/* --- Custom Blockquotes --- */
.custom-blockquote {
    border-left: 4px solid var(--theme-color);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.25rem;
    color: #444;
    background: linear-gradient(to right, rgba(169, 27, 96, 0.08), rgba(255,255,255,0));
    padding: 1.2rem 1.5rem;
    border-radius: 0 10px 10px 0;
    margin-left: 0;
}

/* --- Outline Theme Button --- */
.btn-outline-theme {
    color: var(--theme-color);
    border: 2px solid var(--theme-color);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-theme:hover {
    background-color: var(--theme-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(169, 27, 96, 0.2);
}

/* --- Social Media Icons --- */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--theme-color);
    color: #ffffff !important;
    transform: translateY(-4px); /* Floating effect */
    box-shadow: 0 6px 15px rgba(169, 27, 96, 0.5);
}
/* --- about page --- */

/* --- Page Headers (For About, Contact, etc.) --- */
/* --- Page Headers (Updated for Illustration) --- */
.page-header {
    /* Keep the standard height */
    height: 25vh; 
    margin-bottom: 0;

    /* 1. Set the background color to match the image background seamlessly */
    background-color: #a91b60; /* Or use var(--theme-color) */

    /* 2. Point to your new image file */
    /* IMPORTANT: Replace 'image_1.png' with the actual path to where you saved the image in your VS Code folder */
    /* background-image: url('Maroon\ Background\ White\ Elements.png'); */

    /* 3. Center the illustration */
    background-position: center center;

    /* 4. Ensure it doesn't repeat */
    background-repeat: no-repeat;

    /* 5. THE KEY FIX: Use 'contain' instead of 'cover' */
    /* This ensures the entire illustration fits inside the header without being cropped */
    background-size: contain;
}

/* Optional: Adjust the overlay so the illustration isn't too dark */
.page-header .overlay {
    /* Making it lighter since the base image is already dark maroon */
    background: rgba(0, 0, 0, 0.3); 
}

/* --- About Page Specifics --- */
.story-image {
    object-fit: cover;
    height: 500px;
    width: 100%;
}

.value-box {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.value-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(169, 27, 96, 0.1) !important;
    border-color: rgba(169, 27, 96, 0.2);
}

/* --- Services page --- */
/* --- Royal Reveal Services Cards --- */
.service-reveal-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 380px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Background Image styling */
.service-reveal-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Very smooth zoom */
}

/* The Overlay that holds the text */
.reveal-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Starts as a gentle dark gradient at the bottom so the title is readable */
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem 2rem;
    transition: all 0.5s ease;
}

/* The description text (Hidden by default) */
.reveal-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.reveal-overlay h3 {
    margin-bottom: 0;
    font-size: 1.8rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    transition: transform 0.4s ease;
}

/* --- The Hover Action --- */

/* 1. Zoom the image slightly */
.service-reveal-card:hover img {
    transform: scale(1.1);
}

/* 2. Fill the background with your maroon theme color */
.service-reveal-card:hover .reveal-overlay {
    background: rgba(169, 27, 96, 0.92); /* Your #a91b60 color with slight transparency */
    justify-content: center; /* Centers the text vertically */
}

/* 3. Slide the title up slightly */
.service-reveal-card:hover h3 {
    transform: translateY(-15px);
    text-shadow: none;
}

/* 4. Reveal the description and button */
.service-reveal-card:hover .reveal-content {
    max-height: 200px; /* Expands the container */
    opacity: 1; /* Makes it visible */
    transform: translateY(0); /* Slides it into place */
    margin-top: 10px;
}

/* teams.html is here */
/* =========================================
   OUR ARTISTS / TEAM PAGE CSS
   ========================================= */

/* Central Heading Underline Accent */
.heading-underline {
    height: 3px;
    width: 80px;
    background-color: var(--accent-gold); /* Uses the gold variable we set in Step 1! */
    border-radius: 2px;
}

/* --- The Team Card Container --- */
.team-card {
    perspective: 1000px; /* Gives a 3D feel to the hover */
    cursor: default;
}

.team-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px; /* Nice tall portrait photos */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
    background-color: #000;
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: opacity 0.5s ease, transform 0.6s ease;
}

/* --- The Floating Effect --- */
.float-hover:hover .team-image-wrapper {
    transform: translateY(-15px) scale(1.02); /* Floats up and slightly forward */
    box-shadow: 0 25px 50px rgba(169, 27, 96, 0.3); /* Maroon glow under the image */
}

/* --- Typewriter Text Overlay --- */
.typewriter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(169, 27, 96, 0.90); /* Very strong maroon overlay */
    padding: 2.5rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center; /* Centers the text vertically */
}

/* Make overlay visible on hover */
.float-hover:hover .typewriter-overlay {
    opacity: 1;
    visibility: visible;
}

.float-hover:hover img {
    opacity: 0.3; /* Dims the image behind the text */
    transform: scale(1.1); /* Slow zoom while text types */
}

/* The actual text container being typed into */
.typing-text {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.8;
    font-family: var(--font-body);
    font-weight: 400;
    margin: 0;
}

/* Blinking Cursor Effect */
.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--accent-gold); /* Gold cursor */
    font-weight: bold;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


/* =========================================
    CONTACT PAGE CSS
   ========================================= */

/* Contact Cards */
.contact-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(169, 27, 96, 0.1) !important;
    border-color: rgba(169, 27, 96, 0.2);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: rgba(169, 27, 96, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-card:hover .icon-circle {
    background-color: var(--theme-color);
}

.contact-card:hover .icon-circle i {
    color: #ffffff !important;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Custom Form Inputs */
.custom-input {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.custom-input:focus {
    background-color: #ffffff;
    border-color: var(--theme-color);
    box-shadow: 0 0 0 0.25rem rgba(169, 27, 96, 0.25); /* Maroon glow on focus */
}

textarea.custom-input {
    resize: vertical;
}

/* Vendor CTA Background */
.bg-theme {
    background-color: var(--theme-color) !important;
}

/*  popular searches */
/* Popular Searches Slider Styles */
.popular-searches-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 15px 5px 30px 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.popular-searches-track::-webkit-scrollbar {
    display: none; 
}

.popular-card {
    min-width: 130px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.popular-card:hover {
    transform: translateY(-8px);
}

/* Circular Image Wrapper */
.popular-icon-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 12px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 3px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden; /* This keeps the images perfectly round */
    background-color: #eee;
}

.popular-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents the images from stretching */
}

.popular-card:hover .popular-icon-wrapper {
    border-color: #8e1a53;
    box-shadow: 0 8px 20px rgba(142, 26, 83, 0.3);
}



/* Premium Textured AI Button */
.ai-floating-btn {
    /* The Pearl Base Color */
    background-color: #fdfbfb;
    
    /* The Subtle "Linen/Mesh" Texture Pattern in your Theme Color (3% opacity) */
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%238e1a53' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    
    border: 1px solid rgba(142, 26, 83, 0.15) !important;
    box-shadow: 0 8px 25px rgba(142, 26, 83, 0.12) !important;
    transition: all 0.3s ease;
    z-index: 1050;
    
    /* Keeps the button pulsing, but with a softer maroon glow */
    animation: aiPulse 2.5s infinite;
}

.ai-floating-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 30px rgba(142, 26, 83, 0.2) !important;
    border-color: #8e1a53 !important;
}

/* Updated softer pulse animation */
@keyframes aiPulse {
    0% { box-shadow: 0 0 0 0 rgba(142, 26, 83, 0.3); }
    70% { box-shadow: 0 0 0 15px rgba(142, 26, 83, 0); }
    100% { box-shadow: 0 0 0 0 rgba(142, 26, 83, 0); }
}

/* AI Avatar Floating Animation */
@keyframes levitate {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.ai-avatar-container {
    animation: levitate 3s ease-in-out infinite;
}

/* AI Scanning Ring */
@keyframes scanRing {
    0% { box-shadow: 0 0 0 0 #a91b60; }
    70% { box-shadow: 0 0 0 20px rgba(255, 218, 121, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 218, 121, 0); }
}

.ai-avatar-ring {
    animation: scanRing 2.5s infinite;
    border: 3px solid #a91b60 !important; /* Gold border */
}
/* Premium Text Box Focus */
#aiPrompt {
    transition: all 0.3s ease;
}

#aiPrompt:focus {
    box-shadow: 0 0 20px rgba(142, 26, 83, 0.15) !important;
    border: 1px solid #8e1a53 !important;
    outline: none;
    transform: translateY(-2px);
}

/* AI Prompt Suggestion Pills */
.ai-suggestion-pill {
    font-size: 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ai-suggestion-pill:hover {
    background-color: #8e1a53;
    color: #ffffff;
    border-color: #8e1a53;
    transform: translateY(-2px);
}


/* ! --- Midnight Maroon AI Theme --- */

/* 1. Shifting Dark Maroon Background */
.universe-modal-bg {
    /* Very dark near-black to deep maroon */
    background: linear-gradient(-45deg, #0d0206, #2a0818, #4d0e2d, #1a0510);
    background-size: 400% 400%;
    animation: galaxyShift 12s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes galaxyShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. Floating Maroon Stardust Orbs */
.stardust {
    position: absolute;
    border-radius: 50%;
    /* Soft maroon/pink glow instead of gold */
    background: radial-gradient(circle, rgba(216, 27, 96, 0.25) 0%, rgba(216, 27, 96, 0) 70%);
    animation: floatOrb 6s infinite ease-in-out alternate;
    pointer-events: none;
    z-index: 0;
}

.star-1 { width: 150px; height: 150px; top: -20px; left: -20px; animation-delay: 0s; }
.star-2 { width: 100px; height: 100px; bottom: 30%; right: -10px; animation-delay: 2s; }
.star-3 { width: 200px; height: 200px; bottom: -50px; left: 20%; animation-delay: 4s; }

@keyframes floatOrb {
    0% { transform: translateY(0px) scale(0.8); opacity: 0.3; }
    100% { transform: translateY(-30px) scale(1.2); opacity: 0.8; }
}

/* 3. Glassmorphism Text Box (Maroon Focus) */
.glass-input {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(216, 27, 96, 0.2) !important;
    color: #fff !important;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #d81b60 !important; /* Bright maroon/pink border */
    box-shadow: 0 0 20px rgba(216, 27, 96, 0.3) !important; /* Maroon glow */
}

/* 4. Suggestion Pills */
.ai-suggestion-pill-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.ai-suggestion-pill-dark:hover {
    background: #8e1a53; /* Fills with theme color on hover */
    color: #ffffff;
    border-color: #d81b60;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(142, 26, 83, 0.4);
}
/* 5. Premium Glass Header */
.glass-header {
    background: rgba(13, 2, 6, 0.4) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(216, 27, 96, 0.2) !important;
    border-top-left-radius: 1rem; /* Matches the rounded corners of your modal */
    border-top-right-radius: 1rem;
}
/* Gallery page */

/* =========================================
    GALLERY & PORTFOLIO SECTION CSS
   ========================================= */

/* --- Gallery Filter Buttons --- */
.btn-filter {
    border-radius: 50px !important; 
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* --- Gallery Grid Layout --- */
.gallery-item {
    transition: all 0.3s ease-in-out;
    opacity: 1;
    transform: scale(1);
}

/* --- Interactive Gallery Cards --- */
.gallery-item .masonry-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    /* min-height: 300px; <--- REMOVED TO FIX WHITE GAP */
    background-color: #ffffff; /* Forms the clean background for the text */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* 1. The whole card scales up on hover */
.gallery-item .masonry-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(169, 27, 96, 0.2) !important;
    z-index: 2; /* Keeps the hovered card above the others */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

/* 2. The image slides UP by 80px on hover */
.gallery-item .masonry-item:hover img {
    transform: translateY(-80px);
}

/* 3. The Info Block styling */
.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Matches the image shift */
    padding: 1rem;
    background-color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 3px solid var(--theme-color);
    
    /* Starts hidden below the card */
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

/* 4. The Info Block slides UP into the blank space */
.gallery-item .masonry-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h5 {
    margin: 0;
    font-family: var(--font-heading);
    color: var(--theme-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.gallery-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/*!New add for gallery*/

/* =========================================
ROYAL WEDDING GALLERY (PINTEREST STYLE)
   ========================================= */

/* 1. Main Gallery Columns */
#gallery-container {
    column-count: 3;
    column-gap: 1.5rem;
}

/* Tablet & Mobile Screens ke liye */
@media (max-width: 991px) {
    #gallery-container { column-count: 2; }
}
@media (max-width: 767px) {
    #gallery-container { column-count: 1; }
}

/* 2. Photo Wrapper (Kati hui photo ko rokne ke liye) */
.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    page-break-inside: avoid;
}

/* 3. Safed Dabba (WHITE SPACE FIX YAHAN HAI) */
.masonry-item {
    display: inline-block; /* Dabbe ko zabardasti lamba hone se rokega */
    width: 100%;
    height: max-content !important; /* Dabba sirf photo jitna bada rahega */
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* Premium shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect: Mouse aane pe card thoda upar uthega */
.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

/* 4. Asli Image ki fitting */
.masonry-item img {
    display: block;
    width: 100%;
    height: auto !important; /* Photo ko original shape me rakhega */
    margin: 0;
    padding: 0;
    border: none;
}

/* 5. Niche likha hua Text */

/* <--- REMOVED display: block; from .gallery-info HERE TO FIX WHITE GAP ---> */

.gallery-info h5 {
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.gallery-info p {
    margin-bottom: 0; /* Text ke niche ka extra gap khatam */
    font-size: 0.9rem;
    color: #666;
}

/* Tablet & Mobile Screens */
@media (max-width: 991px) {
    #gallery-container { column-count: 2; }
}
@media (max-width: 767px) {
    /* Changed from 1 to 2 columns */
    #gallery-container { 
        column-count: 2; 
        column-gap: 1rem; /* Slightly smaller gap for small screens */
    }
}

.press {
    color: #a91b60;
    display: inline-block;
    transition: all 0.3s ease;
}

.press:active {
    color: blue;
    transform: scale(0.95);
}
/* =========================================
   MOBILE FIX: SHRINK GALLERY TEXT TO PREVENT OVERLAP
   ========================================= */
@media (max-width: 767px) {
    /* 1. Reduce padding to give the text more breathing room */
    .gallery-info {
        padding: 0.5rem; 
    }

    /* 2. Shrink the "Work by-" paragraph */
    .gallery-info p {
        font-size: 0.7rem; 
        letter-spacing: 0.5px;
        line-height: 1.2;
        margin-bottom: 3px;
    }

    /* 3. Shrink the "Click here to book" heading */
    .gallery-info h5 {
        font-size: 0.85rem; 
        line-height: 1.2;
    }

    /* 4. Ensure the link wraps cleanly without breaking */
    .gallery-info h5 a {
        font-size: 0.8rem;
        display: block; 
        white-space: normal;
    }
}

/* ? gate */
/*  =========================================
    REALISTIC GRAND ENTRANCE (TEXT + WHITE FLOWER)
    ========================================= */

/* --- Main Container --- */
#wedding-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    background-color: transparent; /* No black screen delay */
}

/* --- The Velvet Gates --- */
.gate {
    width: 50%;
    height: 100%;
    /* Rich, realistic velvet texture gradient */
    background: radial-gradient(circle at center, #8e1544 0%, #5a0c2a 60%, #300313 100%);
    position: absolute;
    top: 0;
    transition: transform 2.5s cubic-bezier(0.4, 0, 0.2, 1); /* Heavy, smooth opening */
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5), 0 0 30px rgba(0,0,0,0.8);
}

/* Metallic Gold Borders */
.gate-left {
    left: 0;
    border-right: 8px solid;
    border-image: linear-gradient(to bottom, #b38728, #fdf5a6, #b38728) 1;
}

.gate-right {
    right: 0;
    border-left: 8px solid;
    border-image: linear-gradient(to bottom, #b38728, #fdf5a6, #b38728) 1;
}

/* Animation Triggers */
.gate-left.open { transform: translateX(-100%); }
.gate-right.open { transform: translateX(100%); }

/* --- "PROGRAM WALA" Golden Text --- */
/* --- "PROGRAM WALA" Golden Text --- */
.gate-text {
    position: absolute;
    top: 50%;
    left: 50%; 
    transform: translate(-50%, -50%);
    
    /* ---> THIS IS THE CHANGED LINE <--- */
    font-family: 'Rawest', sans-serif; 
    
    font-size: 3.5rem; 
    font-weight: normal; /* Changed to normal since your @font-face is normal */
    letter-spacing: 5px;
    margin: 0;
    z-index: 5;
    
    /* Metallic Gold Text Effect */
    background: linear-gradient(to bottom, #fdf5a6 0%, #b38728 50%, #fdf5a6 100%);
    -webkit-background-clip: text;
    background-clip: text; 
    -webkit-text-fill-color: transparent;
    color: transparent; 
    filter: drop-shadow(0px 8px 15px rgba(0,0,0,0.8));
}

/* --- Splitting White Lotus Flower --- */
.flower-half {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    z-index: 20;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6)); /* 3D Glow */
}

.flower-half svg {
    width: 100%;
    height: 100%;
}

/* Clip-path cuts the flower exactly in half so it doesn't overlap */
.left-half {
    right: -100px; 
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); 
}

.right-half {
    left: -100px; 
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%); 
}

/* --- The Celebration Balloons --- */
.balloon {
    position: absolute;
    bottom: -150px;
    width: 40px;
    height: 50px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    opacity: 0.95;
    animation: floatUp ease-in forwards;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.2), inset 5px 5px 10px rgba(255,255,255,0.4);
}

.balloon::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 1px;
    height: 20px;
    background-color: rgba(0,0,0,0.2);
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-60vh) rotate(5deg); }
    100% { transform: translateY(-120vh) rotate(-5deg); }
}

/* --- Mobile Screen Adjustments --- */
/* --- Mobile Screen Adjustments --- */
@media (max-width: 767px) {
    /* 1. Shrink the text and tighten spacing so "PROGRAM" fits */
    .gate-text { 
        font-size: 1.1rem; 
        letter-spacing: 2px; 
    }
    
    /* 2. Pull the text away from the center flower */
    .left-text { left: 40%; }  /* Shifts PROGRAM slightly left */
    .right-text { left: 60%; } /* Shifts WALA slightly right */

    /* 3. Shrink the flower just a tiny bit more to make room */
    .flower-half { width: 110px; height: 110px; }
    .left-half { right: -55px; }
    .right-half { left: -55px; }
}

/* Extra safety for very small phones (like iPhone SE) */
@media (max-width: 380px) {
    .gate-text { font-size: 0.95rem; }
}