/* CSS Design System for Faisal Iqbal Decoration */
:root {
    --primary: #d4af37;
    /* Metallic Gold */
    --primary-dark: #b8860b;
    --secondary: #0a0a0a;
    /* Rich Black */
    --accent: #fcfaf5;
    /* Paper White */
    --text-main: #1f1f1f;
    --text-muted: #555555;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.7;
    font-size: 1.1rem;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Cinzel', serif;
    font-weight: 500;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition);
    background: transparent;
    /* Transparent by default */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    /* Reverted to white/creamy */
    padding: 15px 0;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
    color: var(--secondary);
    /* Dark text on light navbar */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    letter-spacing: 4px;
    text-decoration: none;
    color: var(--white);
    /* White logo link color */
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.logo::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--primary);
    display: inline-block;
}

.logo span {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--primary);
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    /* White nav links color */
    font-weight: 300;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}


.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #050505;
    /* Black background behind slides */
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2.5s ease-in-out, transform 10s ease-out;
    background-repeat: no-repeat;
    transform: scale(1.15);
    /* Initial state for all slides */
    will-change: opacity, transform;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}


/* Keyframes removed to prevent rendering jitters */


.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
}



.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
}

.hero .subtitle {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 12px;
    /* Reduced from 20px */
    color: var(--primary);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.8rem);
    line-height: 1.1;
    margin-bottom: 15px;
    /* Reduced from 25px */
    font-weight: 400;
}

.hero h1 span {
    color: var(--primary);
    font-style: italic;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 0;
    /* Boxy elegant look */
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    margin-left: 20px;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary);
}

/* Removed Scroll Indicator Animation */
.scroll-indicator {
    display: none;
}

/* Sections General */
section {
    padding: 100px 0;
    /* Reduced from 120px */
}

.products {
    padding-top: 60px;
    /* Specifically tighter top gap for products to bring it closer to hero */
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    /* Reduced from 80px */
}

.tag {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.8rem;
    font-weight: 400;
    margin-bottom: 8px;
    /* Reduced from 15px */
    display: block;
}

.section-header h2 {
    font-size: 3.2rem;
    margin: 10px 0;
    /* Reduced from 15px */
    font-weight: 400;
}

.divider {
    width: 60px;
    height: 1px;
    background: var(--primary);
    margin: 20px auto;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cat-card {
    position: relative;
    height: 480px;
    /* Increased height */
    border-radius: 4px;
    /* More elegant boxy look */
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.cat-card::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    pointer-events: none;
    transition: var(--transition);
    opacity: 0;
}

.cat-card:hover::before {
    opacity: 1;
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.cat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: var(--white);
    transition: var(--transition);
}

.cat-card:hover img {
    transform: scale(1.1);
}

.cat-card:hover .cat-overlay {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
}

.cat-overlay h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    /* Reduced from 10px */
}

.cat-overlay .explore-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
    /* Reduced from 20px */
    transition: var(--transition);
}

/* PC View: Show button only on hover */
@media (min-width: 769px) {
    .cat-overlay .explore-btn {
        transform: translateY(20px);
        opacity: 0;
    }

    .cat-card:hover .explore-btn {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile View: Always show button */
@media (max-width: 768px) {
    .cat-overlay .explore-btn {
        transform: none;
        opacity: 1;
        margin-top: 10px;
    }
}

/* Subcategory & Items View */
.page-header {
    margin-top: 80px;
    padding: 120px 0;
    background: var(--accent);
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.page-header.has-bg {
    color: var(--white);
}

.page-header.has-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 4rem;
    margin-top: 20px;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Cinzel', serif;
}

.page-header .back-btn {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    transition: var(--transition);
}

.page-header.has-bg .back-btn {
    color: var(--white);
}

.page-header.has-bg .back-btn:hover {
    color: var(--primary);
}

.hidden {
    display: none !important;
}

.back-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.back-btn:hover {
    transform: translateX(-5px);
}

.subcategory-view h3,
.items-view h3 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.subcategory-grid,
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.sub-card,
.item-card {
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: auto;
}

.sub-card.cat-card {
    height: 400px;
    /* Default height for sub-cards in category page */
}

.sub-card.cat-card img {
    height: 100%;
}

.sub-card:hover,
.item-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.sub-card img,
.item-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.sub-info,
.item-info {
    padding: 20px;
    text-align: center;
}

.sub-info h4,
.item-info h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* About Section */
.about {
    background: var(--accent);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border: 10px solid var(--white);
    /* Polaroid/Frame effect */
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
    z-index: 1;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary);
    color: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content .tag {
    margin-bottom: 20px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.features {
    margin-top: 40px;
    display: grid;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 50px;
    height: 50px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Increased form width, decreased cards width */
    gap: 50px;
}

.info-card,
.map-card {
    background: var(--accent);
    padding: 30px 20px;
    /* Reduced side padding for narrower column */
    border-radius: 4px;
    /* Matching the new boxy theme */
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.map-card {
    padding: 10px;
    /* Less padding for map to maximize view */
}

.info-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--secondary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 30px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid #eee;
    border-radius: 0;
    background: #fcfcfc;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.05);
}

.contact-form .btn {
    width: 100%;
    padding: 20px;
    font-size: 1rem;
}

/* Footer Modern Redesign */
footer {
    padding: 100px 0 50px;
    background: #050505;
    color: rgba(255, 255, 255, 0.6);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
    text-align: left;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.6rem;
}

.footer-brand p {
    line-height: 1.8;
}

.footer-links h4,
.footer-social h4 {
    color: var(--white);
    font-family: 'Cinzel', serif;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-social .social-links {
    justify-content: flex-start;
    margin-top: 0;
}

.footer-social .social-links a {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom i {
    color: var(--primary);
    margin: 0 5px;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }

    .container {
        padding: 0 20px;
    }

    .navbar.scrolled {
        padding: 30px 0 !important;
        /* Matches the non-scrolled state to prevent upward jump */
    }

    .menu-btn {
        display: flex;
        /* Changed from block to flex */
        align-items: center;
        justify-content: center;
        color: var(--white);
        z-index: 1001;
    }

    .navbar.scrolled .menu-btn {
        color: var(--secondary) !important;
    }

    /* Fix: Ensure cross icon is always white against the dark mobile menu */
    .menu-btn i.fa-times {
        color: var(--white) !important;
    }


    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
        gap: 30px;
        z-index: 1000;
        box-shadow: none;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.4rem;
        color: var(--white) !important;
    }

    .logo {
        font-size: 1rem;
        letter-spacing: 2px;
        gap: 8px;
        white-space: normal;
        /* Allow logo to wrap on extremely small screens */
        text-align: center;
    }

    .logo::after {
        display: none;
        /* Hide line on mobile to avoid overflow */
    }

    .logo span {
        font-size: 0.8rem;
    }

    .hero {
        height: 100vh;
        padding-top: 140px;
        /* Increased from 120px */
        align-items: center;
        display: flex;
    }

    .hero .subtitle {
        margin-top: 20px;
        margin-bottom: 25px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .cat-card {
        height: 350px;
        /* Decreased from 480px for mobile */
    }

    .cat-overlay {
        padding: 20px;
        /* Reduced from 40px */
    }

    .cat-overlay h3 {
        font-size: 1.5rem;
        /* Reduced from 2rem to prevent overflow */
        overflow-wrap: break-word;
        /* Ensure long titles wrap */
    }

    .page-header {
        padding: 70px 0;
        margin-top: 70px;
    }

    .page-header h1 {
        font-size: 2.2rem !important;
        letter-spacing: 1px;
    }

    .sub-card.cat-card {
        height: 280px !important;
        /* Decreased height for subcategories in phone view */
    }

    .subcategory-grid,
    .items-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    section {
        padding: 50px 0;
        /* Reduced from 100px for mobile */
    }

    .products {
        padding-top: 30px;
        /* Even tighter for products on mobile */
    }

    .section-header {
        margin-bottom: 40px;
    }
}

/* Extra small devices fix (Down to 320px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        margin-left: 0 !important;
        text-align: center;
        padding: 12px 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .item-card img,
    .sub-card img {
        height: 200px;
    }
}

/* Global Overflow Fix */
/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #20ba5a;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-social .social-links {
        justify-content: center;
    }

    /* Fix about badge overflow on mobile */
    .experience-badge {
        right: 0;
        bottom: -20px;
        padding: 20px;
    }

    .about-image::before {
        left: 0;
        top: -10px;
    }

    .contact-form {
        padding: 15px;
        /* Tighter padding for mobile screens */
    }
}


/* Item Detail Page */
.item-detail-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-top: 40px;
    align-items: start;
}

@media (max-width: 992px) {
    .item-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Category & Subcategory Specific Styles */
.category-page .navbar .logo,
.subcategory-page .navbar .logo,
.item-page .navbar .logo {
    color: #2d2d2d !important;
    /* Visible on light header */
}

/* Fix mobile menu links color override for category pages */
@media (max-width: 768px) {

    .category-page .navbar .nav-links a,
    .subcategory-page .navbar .nav-links a,
    .item-page .navbar .nav-links a {
        color: var(--white) !important;
    }
}

.category-page .navbar .logo span,
.subcategory-page .navbar .logo span,
.item-page .navbar .logo span {
    color: var(--primary) !important;
}

.category-page .navbar,
.subcategory-page .navbar,
.item-page .navbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}