/* --- CSS VARIABLES --- */
:root { --primary-color: #25D366; --secondary-color: #2c3e50; --accent-color: #3498db; --light-bg: #f9f9f9; }

/* --- GLOBAL RESET (Fixes Horizontal Scroll) --- */
* { box-sizing: border-box; }
html, body { 
    font-family: 'Segoe UI', sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: var(--light-bg); 
    scroll-behavior: smooth; 
    overflow-x: hidden; /* Stop Left-Right Scroll */
    width: 100%;
}

/* --- 1. NAVBAR --- */
nav { background-color: var(--secondary-color); padding: 10px 20px; position: sticky; top: 0; z-index: 1000; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2); height: 60px; }
.logo { color: white; font-size: 1.4em; font-weight: bold; text-decoration: none;}
.nav-links { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; }
.nav-links li { position: relative; margin: 0 15px; }
.nav-links a { color: white; text-decoration: none; font-weight: 500; font-size: 0.95em; transition: 0.3s; }
.nav-links a:hover { color: var(--primary-color); }

/* Dropdown */
.dropdown-content { display: none; position: absolute; background-color: white; min-width: 200px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 1001; border-radius: 5px; top: 30px; left: 0; }
.dropdown-content a { color: #333 !important; padding: 12px 16px; text-decoration: none; display: block; border-bottom: 1px solid #eee; font-size: 0.9em; }
.dropdown-content a:hover { background-color: #f1f1f1; color: var(--accent-color) !important; }
.dropdown:hover .dropdown-content { display: block; } 
.menu-toggle { display: none; color: white; font-size: 1.5em; cursor: pointer; }

/* --- 2. HERO SLIDER --- */
.hero-slider { position: relative; width: 100%; height: 400px; overflow: hidden; background: #000; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out; z-index: 1; }
.slide.active { opacity: 0.6; z-index: 2; }

/* Hero Text */
.hero-text { 
    position: absolute; top: 50%; left: 50%; 
    transform: translate(-50%, -50%); 
    color: white; text-align: center; width: 80%; max-width: 700px; 
    z-index: 10; background: rgba(0, 0, 0, 0.6); padding: 30px; 
    border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); 
    backdrop-filter: blur(2px);
    animation: fadeInUp 1.2s ease-out;
}
@keyframes fadeInUp { from { opacity: 0; transform: translate(-50%, -40%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.hero-text h1 { font-size: 2.5em; margin-bottom: 10px; font-weight: 800; text-shadow: 2px 2px 4px #000; }
.hero-text p { font-size: 1.2em; margin: 0; text-shadow: 1px 1px 2px #000; }

/* --- 3. RIBBON --- */
.marquee-container { background-color: #ff9800; color: white; padding: 8px 0; overflow: hidden; white-space: nowrap; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.marquee-text { display: inline-block; font-weight: bold; font-size: 1em; animation: scroll 25s linear infinite; }
@keyframes scroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* --- CONTAINER (Global) --- */
.container { max-width: 1100px; margin: 20px auto; padding: 20px; min-height: 60vh; }

/* --- 4. FILTERS --- */
.search-box { display: flex; justify-content: center; margin-bottom: 20px; }
#searchInput { width: 100%; max-width: 400px; padding: 12px; border: 2px solid #ddd; border-radius: 25px 0 0 25px; outline: none; }
.search-btn { padding: 12px 20px; background-color: var(--secondary-color); color: white; border: 2px solid var(--secondary-color); border-radius: 0 25px 25px 0; cursor: pointer; }

.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-btn { 
    padding: 10px 20px; border: none; font-weight: 600; border-radius: 50px; 
    cursor: pointer; color: white !important; display: flex; align-items: center; gap: 6px;
    transition: transform 0.2s; font-size: 0.9em; text-decoration: none;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}
.filter-btn:hover { transform: translateY(-2px); }

/* Colors */
.btn-all { background: linear-gradient(135deg, #34495e, #2c3e50) !important; }
.btn-free { background: linear-gradient(135deg, #27ae60, #2ecc71) !important; }
.btn-premium { background: linear-gradient(135deg, #f39c12, #e67e22) !important; }
.btn-wedding { background: linear-gradient(135deg, #e91e63, #c2185b) !important; } 

/* --- BOOKS GRID --- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.book-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); text-align: center; padding-bottom: 15px; border: 1px solid #eee; transition: transform 0.2s; }
.book-card:hover { transform: translateY(-3px); }
.book-img { width: 100%; height: 200px; object-fit: cover; background-color: #eee; }
.book-info { padding: 15px; }
.book-title { font-size: 1.05em; margin: 10px 0; color: var(--secondary-color); font-weight: 600; }
.price { font-size: 1.2em; color: var(--secondary-color); font-weight: bold; margin: 10px 0; }

/* Badges (Includes the Missing Wedding Badge) */
.badge { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: bold; text-transform: uppercase; }
.badge-free { background-color: #e0f7fa; color: #006064; }
.badge-paid { background-color: #fff3e0; color: #e65100; }
.badge-wedding { background-color: #e91e63; color: white; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: bold; }

.btn { display: inline-block; padding: 10px 20px; text-decoration: none; border-radius: 25px; font-weight: bold; font-size: 0.9em; transition: 0.3s; cursor: pointer; border: none; }
.btn-download { background-color: var(--accent-color); color: white; }
.btn-whatsapp { background-color: var(--primary-color); color: white; }

/* --- PAGINATION & FOOTER --- */
.pagination { display: flex; justify-content: center; margin-top: 40px; gap: 8px; }
.page-link { padding: 8px 14px; border: 1px solid #ddd; background: white; color: var(--secondary-color); text-decoration: none; border-radius: 5px; font-weight: bold; }
.page-link.active { background-color: var(--secondary-color); color: white; }

.section-title { text-align: center; font-size: 1.8em; color: var(--secondary-color); margin: 50px 0 25px 0; border-top: 1px solid #eee; padding-top: 30px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.service-card { background: white; padding: 20px; text-align: center; border-radius: 10px; box-shadow: 0 3px 8px rgba(0,0,0,0.05); border-top: 3px solid var(--accent-color); }
.service-icon { font-size: 2em; color: var(--accent-color); margin-bottom: 10px; }


/* --- MODAL --- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); }
.modal-content { background-color: white; margin: 15% auto; padding: 25px; border-radius: 10px; width: 90%; max-width: 400px; position: relative; text-align: center; animation: slideDown 0.4s; }
@keyframes slideDown { from {top: -100px; opacity: 0;} to {top: 0; opacity: 1;} }
.close { position: absolute; right: 15px; top: 10px; font-size: 25px; cursor: pointer; color: #aaa; }
input[type=text], input[type=tel] { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ccc; border-radius: 8px; }
.btn-submit { background-color: var(--secondary-color); color: white; width: 100%; padding: 12px; border: none; border-radius: 8px; cursor: pointer; font-size: 1.1em; margin-top: 10px; font-weight: bold; }

/* =========================================
   10. PRODUCT DETAILS PAGE STYLES (FIXED)
   ========================================= */
.details-page { background-color: #f4f6f8; }

.details-container { 
    max-width: 1100px; 
    margin: 10px auto; /* TOP MARGIN REDUCED */
    padding: 25px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 30px; 
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.image-gallery { flex: 1; min-width: 300px; }
.main-img-box { width: 100%; border-radius: 10px; overflow: hidden; margin-bottom: 15px; border: 1px solid #eee; }
#mainImage { width: 100%; display: block; object-fit: contain; max-height: 500px; }
.thumbnail-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
.thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; opacity: 0.7; }
.thumb.active { border-color: var(--primary-color); opacity: 1; }

.product-info { flex: 1; min-width: 300px; }
.product-title { font-size: 1.8em; margin-bottom: 10px; color: #2c3e50; line-height: 1.3; font-weight: 700; margin-top: 0; }
.product-price { font-size: 1.6em; color: #27ae60; font-weight: bold; margin-bottom: 20px; }
.product-desc { line-height: 1.7; color: #555; margin-bottom: 25px; white-space: pre-line; font-size: 0.95em; }
.product-cat { background: #eef2f5; padding: 5px 12px; border-radius: 15px; font-size: 0.8em; font-weight: 600; color: #555; display: inline-block; margin-bottom: 10px; }

.btn-large { padding: 12px 25px; font-size: 1em; border-radius: 50px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; width: 100%; max-width: 300px; font-weight: bold; color: white; }
.btn-download-gradient { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.btn-whatsapp-gradient { background: linear-gradient(135deg, #25D366, #128C7E); }

/* --- MOBILE RESPONSIVE (Scroll Fix) --- */
@media (max-width: 768px) {
    /* Navbar */
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--secondary-color); text-align: center; padding: 20px 0; }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; width: 100%; }
    .menu-toggle { display: block; }
    
    .dropdown-content { position: relative; box-shadow: none; background-color: #34495e; top: 0; width: 100%; display: none; }
    .dropdown-content.show { display: block; } 
    .dropdown-content a { color: white !important; border-bottom: 1px solid rgba(255,255,255,0.1); }

    /* Home Grid */
    .hero-slider { height: 250px; } 
    .hero-text { width: 90%; padding: 15px; }
    .hero-text h1 { font-size: 1.4em; }
    
    .book-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .book-card { padding-bottom: 10px; }
    .book-img { height: 150px !important; } 
    .book-title { font-size: 0.9em; padding: 0 5px;}
    .price { font-size: 1em; margin: 5px 0; }
    .btn { padding: 6px 12px; font-size: 0.8em; }
    .filter-btn { padding: 8px 16px; font-size: 0.85em; }

    /* Details Page Mobile Fix */
    .details-container { margin: 0; padding: 15px; width: 100%; border-radius: 0; box-shadow: none; }
    .image-gallery, .product-info { min-width: 100%; }
    .product-title { font-size: 1.4em; }
    .btn-large { width: 100%; }
}
/* =========================================
   1. STUDENTS LOVE US (Testimonials) CSS
   (Ye code apki index.php me मौजूद classes ke liye hai)
   ========================================= */

.reviews-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    width: 350px; /* Card ki chourai */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Soft Shadow */
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* Hover effect for card */
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: #3498db;
}

/* Top decorative line */
.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #3498db, #8e44ad);
}

.stars {
    color: #f1c40f; /* Gold color */
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.review-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.review-card h4 {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #333;
    font-weight: 700;
    margin: 0;
}

/* User Icon Design */
.user-icon {
    width: 40px;
    height: 40px;
    background: #e3f2fd; /* Light Blue BG */
    color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.1rem;
}


/* =========================================
   2. PORTFOLIO SECTION CSS
   (Ye naya section hai, iska HTML niche se copy karein)
   ========================================= */

.portfolio-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #fff;
    group: hover; /* For simple hover logic */
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Image Zoom on Hover */
.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Overlay Effect */
.portfolio-overlay {
    position: absolute;
    bottom: -100%; /* Shuru me niche chupa rahega */
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.9); /* Dark overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: bottom 0.4s ease;
    color: #fff;
}

.portfolio-item:hover .portfolio-overlay {
    bottom: 0; /* Hover krne per uper aayega */
}

.portfolio-overlay h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    color: #bdc3c7;
}
/* =========================================
   PORTFOLIO PAGE STYLING (For work.html)
   ========================================= */

/* 1. Page Header Section */
.page-header {
    background: linear-gradient(135deg, #2c3e50, #4ca1af); /* Dark Blue Gradient */
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 2. Gallery Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Mobile & Desktop Friendly */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px; /* Bottom margin taaki footer se na chipke */
    padding: 0 20px;
}

/* 3. Work Card Design */
.work-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden; /* Image bahar na nikle */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-10px); /* Card uper uthega */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* 4. Image Styling with Zoom Effect */
.work-card .work-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.work-card:hover .work-img {
    transform: scale(1.1); /* Image zoom hogi */
}

/* 5. Work Info Text */
.work-info {
    padding: 25px;
    text-align: center;
    background: #fff;
    position: relative;
    z-index: 1;
}

.work-info h3 {
    margin: 0 0 10px;
    color: #2c3e50;
    font-size: 1.4rem;
}

.work-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 6. Back to Home Button */
.back-home {
    display: table; /* Center karne ke liye */
    margin: 0 auto 50px;
    padding: 12px 25px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.3s;
}

.back-home:hover {
    background-color: #e91e63; /* Pink Hover Effect */
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}
/* Mobile/Tab par Long Press band karne ke liye */
body {
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Edge/IE */
    user-select: none;         /* Standard */
    
    /* Mobile par image save menu rokne ke liye sabse jaruri line 👇 */
    -webkit-touch-callout: none; 
}

/* Images ko drag hone se rokne ke liye */
img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: auto; /* Click kaam karega (Gallery ke liye), par save menu nahi aayega */
}
/* =========================================
   11. PROFESSIONAL MODULAR FOOTER
   ========================================= */

.main-footer {
    background-color: var(--secondary-color); /* Dark Blue from your Nav */
    color: #ffffff;
    padding: 60px 20px 20px;
    margin-top: 50px;
    border-top: 4px solid var(--primary-color); /* Green line from your theme */
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3, .footer-section h4 {
    color: var(--primary-color); /* Green Color */
    margin-bottom: 20px;
    font-size: 1.4rem;
    position: relative;
}

/* Heading के नीचे छोटी लाइन */
.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-section p, .footer-links li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #bdc3c7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px); /* Hover पर हल्का खिसकेगा */
}

/* Social Icons Styling */
.footer-social {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.footer-social a {
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #95a5a6;
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
    .main-footer {
        padding: 40px 15px 20px;
        text-align: center;
    }
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-social {
        justify-content: center;
    }
}
.book-card { position: relative; overflow: hidden; }

/* 1. Main Badge Design */
.featured-badge {
    position: absolute;
    top: 15px;      
    left: -35px;    
    background: #f1c40f;
    color: #000;
    padding: 3px 0;
    transform: rotate(-45deg);
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    text-align: center;
    width: 110px;
    overflow: hidden; /* Shine को पट्टी के अंदर रखने के लिए */
}

/* 2. The Shine Logic (सफेद चमक) */
/* 1. Main Badge Design (Thoda niche aur lamba) */
.featured-badge {
    position: absolute;
    top: 22px;      /* Pehle 15px tha, ab 22px karne se ye thoda niche aayega aur lamba dikhega */
    left: -40px;    /* Patti ko balance karne ke liye thoda aur bahar kiya */
    background: #f1c40f;
    color: #000;
    padding: 3px 0;
    transform: rotate(-45deg);
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    text-align: center;
    width: 130px;   /* Width badhane se patti dono taraf se lambi dikhegi */
    overflow: hidden;
}

/* 2. Shine Effect (Wahi rahega) */
.featured-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shine-effect 3s infinite;
}

@keyframes shine-effect {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}
/* Sales Notification Box */
.sales-notification {
    position: fixed;
    bottom: 20px;
    left: -400px; /* शुरू में स्क्रीन के बाहर रहेगा */
    background: white;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    transition: all 0.5s ease;
    border-left: 5px solid #2ecc71;
    max-width: 320px;
}

.sales-notification.show {
    left: 20px; /* स्क्रीन के अंदर आ जाएगा */
}

.sales-notification img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
}

.sales-info p {
    margin: 0;
    font-size: 13px;
    color: #333;
}

.sales-info strong {
    color: #2c3e50;
    font-size: 14px;
}

.sales-time {
    font-size: 11px;
    color: #777;
    margin-top: 3px;
}

