/* RABBANI - FINAL PREMIUM THEME */

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: #F9F9F7; 
    margin: 0; padding: 0; 
    overflow-x: hidden; 
}

/* --- 1. WHITE NAVBAR --- */
.custom-nav {
    position: sticky; 
    top: 0; width: 100%; z-index: 1000;
    padding: 15px 50px; 
    display: flex; justify-content: space-between; align-items: center;
    background-color: #ffffff; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.logo-img { height: 50px; width: auto; object-fit: contain; } 

.nav-item-custom { color: #333; text-decoration: none; font-weight: 500; margin-left: 25px; transition: 0.3s; font-size: 0.95rem; text-transform: uppercase; }
.nav-item-custom:hover { color: #10b981; }

.cart-btn { background: #1a1a1a; color: white; padding: 10px 25px; border-radius: 50px; text-decoration: none; font-weight: 600; margin-left: 20px; transition: 0.3s; }
.cart-btn:hover { background: #10b981; color: white; }

/* --- 2. HERO SECTION (HEIGHT FIXED) --- */
.hero-wrapper { 
    position: relative; width: 100%; 
    height: 80vh; 
    display: flex; align-items: center; overflow: hidden; 
}
.video-stack, .hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-vid { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 0; }
.hero-vid.active { opacity: 1; z-index: 1; }
.hero-overlay { background: rgba(0,0,0,0.45); z-index: 2; }

/* --- MAIN TEXT (Left Aligned) --- */
.hero-content-wrapper { position: absolute; z-index: 5; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; }
.hero-inner-row { height: 100%; align-items: center; pointer-events: auto; }

.hero-title { 
    font-family: 'Instrument Serif', serif !important; 
    font-size: 5rem; line-height: 1; color: white; 
    margin-bottom: 20px; text-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    margin-left: -15px; 
}

.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.9); margin-bottom: 40px; font-weight: 300; margin-left: -15px; max-width: 600px; }

/* Green Glass Button */
.btn-green-glass { 
    background: rgba(16, 185, 129, 0.25); color: white; padding: 15px 45px; border-radius: 50px; 
    text-decoration: none; font-weight: 600; text-transform: uppercase; 
    border: 1px solid rgba(16, 185, 129, 0.6); backdrop-filter: blur(5px);
    transition: 0.3s; margin-left: -15px; display: inline-block;
}
.btn-green-glass:hover { background: #10b981; border-color: #10b981; }

/* --- 1. HERO TABS (Original Glassy Look) --- */
.hero-tabs {
    position: absolute;
    bottom: 60px !important; /* Main tabs Aligned */
    left: 50%; 
    transform: translateX(-50%);
    z-index: 10; 
    display: flex; 
    gap: 10px;
    background: rgba(0,0,0,0.2); /* Transparent Dark */
    padding: 8px; 
    border-radius: 60px; 
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    width: max-content;
}

.tab-btn { 
    background: transparent; border: none; color: rgba(255,255,255,0.7); 
    padding: 10px 25px; cursor: pointer; font-family: 'Poppins', sans-serif; 
    font-weight: 500; font-size: 0.9rem; transition: 0.4s; border-radius: 40px;
}
.tab-btn:hover { color: white; background: rgba(255,255,255,0.1); }
.tab-btn.active { background: rgba(255, 255, 255, 0.2); color: white; font-weight: 700; border: 1px solid rgba(255,255,255,0.3); }

/* --- LEVEL SECTION STYLE --- */
#level-selection-sec {
    display: none; /* Shuru ma chupa rahega */
    background: #f0fdf4; /* Halka sa Green tint background */
    border: 2px dashed #10b981; /* Dashed border attention k liye */
    border-radius: 20px;
    padding: 40px 20px;
    margin-bottom: 50px;
    animation: fadeIn 0.5s ease;
}

/* --- 3D GREEN-BLUE BUTTONS --- */
.btn-3d {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem; /* Thora bara font */
    font-weight: 700;
    color: white !important;
    text-decoration: none;
    padding: 18px 50px;
    border-radius: 15px;
    transition: all 0.1s;
    border: none;
    margin: 10px;
    min-width: 220px; /* Sab buttons barabar choray hon */
    
    /* Green to Blue Gradient */
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
    
    /* 3D Effect (Neechay ka hissa) */
    box-shadow: 0px 6px 0px 0px #059669, /* Solid Dark Green Border */
                0px 15px 25px rgba(16, 185, 129, 0.4); /* Glow Shadow */
}

/* Hover Effect */
.btn-3d:hover {
    transform: translateY(-2px); /* Thora upar uthay */
    box-shadow: 0px 8px 0px 0px #059669, 
                0px 20px 35px rgba(59, 130, 246, 0.5);
}

/* Press (Click) Effect */
.btn-3d:active {
    transform: translateY(6px); /* Button dab jaye */
    box-shadow: 0px 0px 0px 0px transparent; /* Shadow gayab */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- 3D ROTATING BOOKS (MODIFIED FOR GLASS & STRIP) --- */
.scene { width: 220px; height: 300px; perspective: 1000px; margin: 0 auto; position: relative; }
.carousel { width: 100%; height: 100%; position: absolute; transform-style: preserve-3d; animation: rotation 25s infinite linear; }

.book-card {
    position: absolute; width: 190px; height: 270px; left: 15px; top: 15px;
    
    /* 3D Glass Effect Settings */
    background: rgba(255, 255, 255, 0.1); /* Transparent Glass */
    backdrop-filter: blur(12px); /* Dhundla Effect */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3); /* Glass Border */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); /* Deep 3D Shadow */
    
    border-radius: 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    transition: transform 0.3s ease;
}

/* Ye neechay wali colors hi 'Patti' (Strip) ka kaam karengi */
.book-1 { border-bottom: 6px solid #FF6B6B; } 
.book-2 { border-bottom: 6px solid #4ECDC4; }
.book-3 { border-bottom: 6px solid #FFE66D; } 
.book-4 { border-bottom: 6px solid #1A535C; }
.book-5 { border-bottom: 6px solid #FF9F1C; } 
.book-6 { border-bottom: 6px solid #2B2D42; }

/* 3D Position Setup */
.book-card:nth-child(1) { transform: rotateY(0deg) translateZ(280px); }
.book-card:nth-child(2) { transform: rotateY(60deg) translateZ(280px); }
.book-card:nth-child(3) { transform: rotateY(120deg) translateZ(280px); }
.book-card:nth-child(4) { transform: rotateY(180deg) translateZ(280px); }
.book-card:nth-child(5) { transform: rotateY(240deg) translateZ(280px); }
.book-card:nth-child(6) { transform: rotateY(300deg) translateZ(280px); }

@keyframes rotation { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

/* --- SHOP CARD STYLE FOR HOME --- */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: 0.3s;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(25, 56, 212, 0.15);
    border-color: #0abf37;
}
.badge-type {
    position: absolute;
    top: 15px; left: 15px;
    background: rgba(25, 56, 212, 0.9); /* Blue Badge */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    z-index: 2;
}
.product-img-container {
    height: 180px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: #f4f4f4;
}
.product-body { padding: 20px; text-align: center; margin-top: auto; }
.price-tag { color: #0abf37; font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.btn-outline-custom {
    border: 1px solid #0abf37; color: #0abf37; border-radius: 50px; width: 100%; padding: 8px; font-weight: 600; transition: 0.3s; background: white;
}
.btn-outline-custom:hover { background: #0abf37; color: white; }

/* --- GLASSY MARQUEE STRIP --- */
.glass-marquee {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 45px;
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(8px); 
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 20; 
    display: flex;
    align-items: center;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: scrollText 25s linear infinite;
}

.marquee-track span {
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-right: 50px;
}

@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* --- PREMIUM 3D GREEN-BLUE FOOTER --- */
.premium-footer {
    /* Green to Blue Dark Gradient Background */
    background: linear-gradient(135deg, #064e3b 0%, #1e3a8a 100%);
    position: relative;
    padding-top: 80px;
    color: white;
    font-family: 'Poppins', sans-serif;
    /* 3D Top Border Effect */
    border-top: 8px solid #10b981; 
    box-shadow: 0 -20px 50px rgba(0,0,0,0.2); 
    overflow: hidden;
    z-index: 100;
}

/* Background Glow Effect */
.premium-footer::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.footer-logo { height: 60px; margin-bottom: 20px; filter: brightness(100); }
.footer-desc { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; }

.footer-heading {
    font-weight: 700; font-size: 1.2rem; color: #fff; margin-bottom: 25px; 
    text-transform: uppercase; letter-spacing: 1px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.95rem; 
    transition: all 0.3s ease; display: inline-block;
}
.footer-links a:hover { color: #10b981; transform: translateX(8px); text-shadow: 0 0 10px rgba(16,185,129,0.5); }

/* 3D Social Icons */
.social-3d-btn {
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.1);
    color: white;
    display: inline-flex; justify-content: center; align-items: center;
    border-radius: 12px;
    margin-right: 10px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    /* 3D Shadow Logic */
    box-shadow: 0 5px 0 rgba(0,0,0,0.3); 
    transition: 0.2s;
}
.social-3d-btn:active {
    transform: translateY(5px); /* Press Effect */
    box-shadow: none;
}
.social-3d-btn:hover { background: #10b981; border-color: #10b981; }

/* 3D Newsletter Box */
.newsletter-3d-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.glass-input {
    width: 100%; padding: 15px 20px; border-radius: 10px; border: none; 
    background: rgba(0,0,0,0.3); color: white; outline: none; margin-bottom: 15px;
}
.glass-input:focus { background: rgba(0,0,0,0.5); border: 1px solid #10b981; }

/* 3D Subscribe Button */
.btn-3d-sub {
    width: 100%;
    padding: 12px;
    background: #10b981;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 0 #047857; /* Dark Green Shadow */
    transition: 0.1s;
}
.btn-3d-sub:active { transform: translateY(5px); box-shadow: none; }

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