@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,600&family=Montserrat:wght@300;400;700&display=swap');

:root {
    --gold: #b8860b;
    --dark: #1a1a1a;
    --white: #ffffff;
    --soft-bg: #f8f9fa;
    --border: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; background: var(--white); color: var(--dark); overflow-x: hidden; scroll-behavior: smooth; }

/* --- Navigation --- */
header {
    position: fixed; top: 0; width: 100%; padding: 15px 5%;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(15px);
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; border-bottom: 1px solid var(--border);
}
.main-logo {
    height: 50px; /* PC par height */
    width: auto;
    object-fit: contain;
    transition: 0.3s;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: bold;
    color: var(--dark);
    letter-spacing: 1px;
}
.nav-links { display: flex; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

.menu-btn { display: none; cursor: pointer; font-size: 24px; }

/* --- Hero Section --- */
.hero {
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    /* Gradient overlay aur image */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/home/wedding2.jpg') no-repeat;
    background-position: center center;
    background-size: cover; /* PC par full cover */
    text-align: center; 
    color: white; 
    padding: 0 20px;
    transition: all 0.3s ease;
}
.hero h1 { font-size: clamp(2.2rem, 8vw, 5.5rem); font-family: 'Cormorant Garamond', serif; line-height: 1.1; }
.typed-text { font-style: italic; color: var(--gold); }

/* --- Section Headers & Watermarks --- */
/* Optimized Section Header */
.section-header { 
    text-align: center; 
    margin-bottom: 50px; /* Thoda zyada gap titles ke niche */
    position: relative; 
    width: 100%; 
    padding: 0 15px; 
}

section {
    padding: 80px 0 !important; /* Top-Bottom gap kam kiya gaya hai */
    width: 100%;
    overflow: hidden;
}

.container {
    max-width: 1200px; /* Sabhi section ki width yahan se control hogi */
    margin: 0 auto;    /* Center alignment */
    padding: 0 20px;   /* Mobile sides gap */
    width: 100%;
    box-sizing: border-box;
}

/* Mobile ke liye padding adjust karein */

.section-header h2 { 
    font-family: 'Cormorant Garamond', serif; 
    font-size: clamp(2.5rem, 6vw, 4rem); /* Size thoda badhaya gaya hai */
    font-weight: 600;
    color: var(--dark);
    position: relative; 
    z-index: 2; 
    margin-top: 10px;
    letter-spacing: 1px;
}

/* Gold Accent line under title */
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 15px auto 0;
}

.section-header .watermark {
    position: absolute; 
    top: -20px; /* Thoda upar move kiya */
    left: 50%; 
    transform: translateX(-50%);
    font-size: clamp(4rem, 15vw, 9rem); /* Watermark bada kiya */
    font-weight: 800; 
    opacity: 0.03; /* Bilkul halka takki professional lage */
    text-transform: uppercase; 
    white-space: nowrap; 
    width: 100%; 
    z-index: 1;
    letter-spacing: 10px;
}

#about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    font-weight: 300;
}
/* --- Services Grid (3-3-2 Logic) --- */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(6, 1fr); 
    gap: 25px; 
    padding: 0; /* Purana 0 5% hata diya */
    width: 100%;
}
.s-card { 
    grid-column: span 2; 
    border: 1px solid var(--border); 
    padding: 15px; 
    transition: 0.4s; 
    background: white;
}
.s-card img { width: 100%; height: clamp(250px, 30vh, 350px); object-fit: cover; margin-bottom: 15px; }
.s-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; text-align: center; margin-bottom: 15px; min-height: 50px; }

.s-btn-group { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-s { padding: 10px 16px; font-size: 10px; text-decoration: none; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.btn-gold { background: var(--gold); color: white; border: 1px solid var(--gold); }
.btn-outline { border: 1px solid var(--dark); color: var(--dark); }

/* --- Why Choose Us (4-3 Logic) --- */
.why-flex-container {
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    padding: 0; /* Purana 0 5% hata diya */
    width: 100%;
}
.why-card-custom {
    background: #fff; border: 1px solid var(--border); padding: 35px 20px;
    text-align: center; transition: 0.4s; display: flex; flex-direction: column; align-items: center;
    flex: 1 1 calc(25% - 20px); /* Desktop default 4 per row */
}
.why-card-custom i { font-size: 32px; color: var(--gold); margin-bottom: 15px; }
.why-card-custom h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why-card-custom p { font-size: 13px; color: #666; }

/* --- Horizontal Premium Footer --- */
.premium-footer {
    background: #ffffff;
    padding: 20px 8%; /* Padding kam kar di taaki kam jagah ghere */
    border-top: 1px solid #eeeeee;
}

.footer-flex-container {
    display: flex;
    justify-content: space-between; /* Left aur Right mein divide karega */
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.copyright-text p, .designer-text p {
    font-size: 13px;
    color: #666;
    margin: 0; /* Extra gaps khatam */
}

.copyright-text strong {
    color: var(--dark);
}

.designer-text a {
    color: var(--gold);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.designer-text a:hover {
    text-decoration: underline;
}



/* --- Contact Section Styles --- */
.contact-section {
    padding: 100px 8%;
    background: #1a1a1a;
    color: white;
    overflow: hidden;
}

.contact-container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
}

.contact-map-box, .contact-info {
    flex: 1;
    min-width: 320px; /* Mobile par width 100% lene ke liye */
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 2px solid rgba(184, 134, 11, 0.3);
    margin-top: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    color: var(--gold);
    margin-right: 20px;
    font-size: 20px;
    margin-top: 5px;
}

.info-item p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.social-links-contact {
    display: flex;
    gap: 25px;
    margin-top: 30px;
}

.social-links-contact a {
    color: white;
    font-size: 24px;
    transition: 0.3s ease;
}

.social-links-contact a:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

/* --- Mobile Responsive Fix --- */


/* --- Core Portfolio Styling --- */
.header-spacer { height: 100px; width: 100%; }

.portfolio-page-header {
    padding-top: 40px !important;
    margin-bottom: 40px;
    text-align: center;
}

/* --- Premium Bento Gallery (Restored & Polished) --- */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 240px;
    grid-auto-flow: dense;
    gap: 15px;
    padding: 20px 8% 100px; /* Safe padding for bottom buttons */
    background: #fff;
    position: relative;
    z-index: 5;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

/* Original Grid Logic */
.gallery-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; } 
.gallery-item:nth-child(5n+2) { grid-column: span 1; grid-row: span 2; } 
.gallery-item:nth-child(5n+4) { grid-column: span 2; grid-row: span 1; } 

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1);
    opacity: 0.9;
}

.gallery-item:hover img { transform: scale(1.1); opacity: 1; }

.premium-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.4s;
}
.premium-overlay span {
    border: 1px solid #fff; padding: 8px 20px; color: #fff;
    text-transform: uppercase; font-size: 10px; letter-spacing: 2px;
    backdrop-filter: blur(5px);
}
.gallery-item:hover .premium-overlay { opacity: 1; }

/* --- Sticky Buttons Glassmorphism Fix --- */
.sticky-actions {
    position: fixed; 
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%); 
    display: flex; 
    gap: 12px; 
    z-index: 9999;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 25px; 
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer detection behavior */
.sticky-actions.at-footer { 
    bottom: 120px; /* Footer se safe distance */
    transform: translateX(-50%) scale(0.95);
    opacity: 0.8;
}

.action-btn { 
    color: white; text-decoration: none; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; gap: 10px; text-transform: uppercase;
}
.btn-wa:hover { color: #25D366; }
.btn-call:hover { color: var(--gold); }


.masonry-gallery {
    column-count: 4;
    column-gap: 20px;
    padding: 0; /* Purana padding hata diya */
    width: 100%;
}

.masonry-item {
    position: relative;
    margin-bottom: 20px;
    break-inside: avoid;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.masonry-item img {
    width: 100%;
    display: block;
    height: auto;
    border-radius: 10px;
}

.masonry-item:hover {
    transform: translateY(-5px);
}

.masonry-item .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(184, 156, 102, 0.4); /* Gold Overlay */
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s;
    color: white; font-size: 1.5rem;
}

.masonry-item:hover .overlay {
    opacity: 1;
}

/* Lightbox Styling */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center; justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: 3px solid var(--gold);
}

.close-lightbox {
    position: absolute;
    top: 30px; right: 40px;
    color: white; font-size: 40px; cursor: pointer;
}

/* Contact Section Title Fix */
.contact-section .section-header h2 {
    color: var(--white); /* Title white ho jayega */
}

.contact-section .section-header .watermark {
    color: var(--white);
    opacity: 0.1; /* Black par halka white watermark zyada premium lagta hai */
}

.contact-section .section-header h2::after {
    background: var(--gold); /* Gold line ko barkarar rakha hai */
}


/* ================================================================
   MOBILE & TABLET FULL RESPONSIVITY
   ================================================================ */
/* ================================================================
   FINAL UNIFIED MOBILE RESPONSIVE BLOCK (Add at Bottom)
   ================================================================ */

   @media (max-width: 768px) {
    /* 1. Reset Global Spacing & Margins */
    section {
        padding: 60px 0 !important; /* Top-bottom gap kam kiya */
    }
    .container {
        padding: 0 15px !important; /* Standard side gap - start/end match karega */
        width: 100%;
        box-sizing: border-box;
    }

    /* 2. Header & Logo Fix (Site name stays in 1 line) */
    header {
        padding: 10px 15px !important;
        height: 70px;
    }
    .main-logo {
        height: 35px !important;
    }
    .logo-text {
        font-size: 22px !important; /* Chota font taaki site name wrap na ho */
        letter-spacing: 0px !important;
        font-style: bold;
    }
    .nav-links {
        display: none; 
        position: fixed;
        top: 70px; left: 0; width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center; justify-content: center;
        gap: 25px; z-index: 999;
    }
    .nav-links.active { display: flex; }
    .menu-btn { display: block; color: var(--dark); }

    /* 3. Hero Section Fix (Image Cropping Fix) */
  /* 3. Hero Section Fix (Same Image, No Crop) */
    .hero {
        /* Height ko auto kiya taaki image ke hisab se adjust ho */
        height: auto !important; 
        min-height: 350px !important; 
        padding: 100px 20px 40px !important; 
        
        /* Background Settings */
        background-size: cover !important; /* Image ko poora fill karega */
        background-position: center center !important;
        background-attachment: scroll !important;
        
        /* Layout Fix */
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    /* Ratio maintain karne ke liye pseudo-element (16:9 ratio) */
    .hero::before {
        content: "";
        display: block;
        padding-top: 56.25%; /* Ye 16:9 ratio hai jo desktop images ka hota hai */
    }

    .hero-content {
        position: relative; /* Image ke upar text lane ke liye */
        width: 100%;
        text-align: center;
        z-index: 2;
    }

    .hero h1 {
        font-size: 1.8rem !important; /* Text thoda chota taaki image na chupe */
        line-height: 1.2 !important;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    }

    .hero h2 {
        font-size: 0.9rem !important;
        margin-top: 10px !important;
        letter-spacing: 1px !important;
    }

    .hero a {
        margin-top: 20px !important;
        padding: 10px 25px !important;
        font-size: 11px !important;
    }

    /* 4. Section Headers & Watermark (Visibility Fix) */
    .section-header {
        margin-bottom: 40px !important;
    }
    .section-header .watermark {
        display: block !important;
        font-size: 3.2rem !important; /* Screen ke andar rahega */
        opacity: 0.06 !important;
        top: 10px !important;
        letter-spacing: 4px !important;
    }
    .section-header h2 {
        font-size: 1.7rem !important;
        margin-top: 20px !important;
    }

    /* 5. Stacking Layouts (About & Contact) */
    .about-flex, .contact-container {
        flex-direction: column !important;
        gap: 30px !important;
        text-align: center;
    }
    .contact-container {
        flex-direction: column-reverse !important; /* Info upar, Map niche */
    }
    .about-flex div, .contact-map-box, .contact-info {
        width: 100% !important;
    }
    #about iframe { height: 230px !important; }

    /* 6. Grids (Services & Why Us) - 1 Column */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .s-card {
        grid-column: span 1 !important;
        padding: 10px !important;
    }
    .why-flex-container {
        flex-direction: column !important;
    }
    .why-card-custom {
        flex: 1 1 100% !important;
    }

    /* 7. Gallery & Lightbox */
    .masonry-gallery {
        column-count: 1 !important; /* Single column for small phones */
    }
    .gallery-container {
        grid-template-columns: repeat(2, 1fr) !important; /* Tablet/Small screens */
    }
    .lightbox img {
        max-width: 95% !important;
    }

    /* 8. Footer Fix */
    .footer-flex-container {
        flex-direction: column !important;
        gap: 10px;
        text-align: center;
    }
}

/* Specific Fix for Very Small Phones */
@media (max-width: 480px) {
    .hero h1 { font-size: 2rem !important; }
    .section-header .watermark { font-size: 2.5rem !important; }
}