/* ==========================================================================
   1. बुनियादी सेटिंग्स और हेडर एरिया
   ========================================================================== */
@import url('https://googleapis.com');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #111111; 
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    padding-bottom: 80px;
}

.portfolio-header {
    height: 180px;
    position: relative;
    width: 100%;
}

.portfolio-logo-container {
    position: absolute;
    top: 7px;
    left: 50px;
    z-index: 10;
}

.portfolio-site-logo {
    max-width: 160px; 
    height: auto;
    object-fit: contain;
}

.back-home-btn {
    position: absolute;
    top: 150px; 
    left: 47px;
    color: #f39c12;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid #f39c12;
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 10;
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    background-color: #f39c12;
    color: #111;
}

/* ==========================================================================
   2. मुख्य गैलरी कंटेनर और हेडिंग
   ========================================================================== */
.gallery-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column; 
    align-items: center;    
}

.inner-portfolio-heading {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.inner-portfolio-heading h1 {
    font-family: 'Playfair Display', serif;
    font-size: 46px;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: #ffffff;
}

.inner-portfolio-heading h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #f39c12;
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.inner-portfolio-heading p {
    font-size: 16px;
    color: #aaaaaa;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 🔘 कैटेगरी फ़िल्टर बटन्स */
.filter-buttons {
    margin-bottom: 45px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 30px; 
    color: #fff;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #f39c12;
    border-color: #f39c12;
    color: #111;
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
}

/* ==========================================================================
   3. प्रोजेक्ट्स इमेजेस ग्रिड सेटिंग्स
   ========================================================================== */
.projects-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    width: 100%; 
}

.gallery-item {
    position: relative;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    
    /* 👈 शुरुआती स्थिति: तस्वीरें डिफ़ॉल्ट रूप से स्क्रीन पर रहेंगी पर अदृश्य और छोटी होंगी */
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none; /* अदृश्य होने पर इस पर क्लिक नहीं किया जा सकेगा */
    
    /* ओपेसिटी और ज़ूम बदलने की स्मूथ टाइमिंग */
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);

}

/* 🔓 जब जावास्क्रिप्ट इस पर 'show-animate' क्लास जोड़ेगा, तब यह ज़ूम होकर उभरेगी */
.gallery-item.show-animate {
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important; /* वापस क्लिक करने योग्य बन जाएगी */
}

/* 🎥 फेड और ज़ूम का प्रीमियम सिनेमाई एनिमेशन */
@keyframes keertimukhaReveal {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}



/* 💡 सबसे ज़रूरी नियम: अंदरूनी एक्स्ट्रा इमेजेस को ग्रिड से पूरी तरह छुपाना */
.gallery-item.is-hidden {
    display: none !important;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 25px;
    text-align: center;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay span { 
    color: #f39c12; 
    font-size: 32px; 
    border: 2px solid #f39c12; 
    width: 50px; 
    height: 50px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border-radius: 50%; 
    margin-bottom: 15px;
}

.gallery-overlay h3 { 
    font-family: 'Playfair Display', serif;
    font-size: 22px; 
    color: #fff; 
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.gallery-overlay p {
    font-size: 13px;
    color: #cccccc;
    font-style: italic;
    line-height: 1.4;
}

/* ==========================================================================
   4. 🖼️ आधुनिक मॉडल बॉक्स विंडो स्टाइल्स
   ========================================================================== */
.modal-lightbox { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(10, 10, 10, 0.96); 
    z-index: 2000; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.4s ease, visibility 0.4s ease; 
}

.modal-lightbox.active { opacity: 1; visibility: visible; }

.modal-content { 
    position: relative; 
    max-width: 80%; 
    max-height: 75vh; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content img { 
    max-width: 100%; 
    max-height: 70vh; 
    object-fit: contain; 
    border-radius: 6px; 
    box-shadow: 0 25px 60px rgba(0,0,0,0.8); 
    border: 1px solid rgba(255,255,255,0.1); 
}

.lightbox-caption {
    margin-top: 15px;
    color: #ffffff;
    text-align: center;
    font-size: 16px;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 25px;
    border-radius: 4px;
    border-bottom: 2px solid #f39c12;
    width: 100%;
}

.close-modal { position: absolute; top: -50px; right: 0; color: #fff; font-size: 42px; cursor: pointer; transition: color 0.3s; }
.close-modal:hover { color: #f39c12; }

.modal-arrow { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 46px; cursor: pointer; user-select: none; padding: 20px; z-index: 2100; transition: color 0.3s; }
.modal-arrow:hover { color: #f39c12; }
.arrow-left { left: 30px; }
.arrow-right { right: 30px; }


/* ==========================================================================
   5. डार्क थीम फूटर सेटिंग्स
   ========================================================================== */
.site-footer {
    background-color: #1a1a1a; 
    color: #b0b0b0;
    padding: 60px 0 20px 0;
    font-size: 14px;
    position: relative;
    z-index: 5;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    gap: 40px;
}

.footer-column { flex: 1; }
.footer-column h3 { color: #fff; font-size: 22px; letter-spacing: 2px; margin-bottom: 15px; }
.footer-column h4 { color: #f39c12; font-size: 16px; letter-spacing: 1px; margin-bottom: 20px; font-weight: 600; }
.footer-column p { line-height: 1.6; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li a { color: #b0b0b0; text-decoration: none; transition: 0.3s; }
.footer-column ul li a:hover { color: #fff; padding-left: 5px; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #2d2d2d; font-size: 12px; }



/* 📱 मोबाइल रिस्पॉन्सिव */
@media (max-width: 768px) {
    .portfolio-header { height: auto; padding: 30px 20px 10px 20px; }
    .portfolio-logo-container { position: static; display: flex; justify-content: center; margin-bottom: 15px; }
    .portfolio-site-logo { max-width: 120px; }
    .back-home-btn { position: static; display: inline-block; margin-bottom: 20px; }
    
    .inner-portfolio-heading h1 { font-size: 32px; }
    .filter-btn { padding: 10px 18px; font-size: 13px; flex: 1 1 auto; }
    .projects-grid-wrapper { grid-template-columns: 1fr; gap: 20px; }
    .gallery-item { height: 280px; }
    .modal-content { max-width: 95%; }
    .modal-arrow { font-size: 30px; padding: 10px; }
    .arrow-left { left: 10px; }
    .arrow-right { right: 10px; }
}
