@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    color: #0a192f;
    background-color: #f9fafb;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .font-poppins {
    font-family: 'Poppins', sans-serif;
}

/* --- NAVIGATION --- */
.nav-link {
    position: relative;
    transition: color 0.3s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background-color: #a61c24;
    transition: width 0.3s ease-out;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: #a61c24;
    font-weight: 600;
}

/* --- CREATIVE NAVBAR STYLES --- */
.glass-red-nav {
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.85), rgba(90, 0, 0, 0.85));
    backdrop-filter: blur(12px); /* Frosted Glass Effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* --- ANIMATED SPARKLE LOGO --- */
@keyframes sparklePulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 1px white) drop-shadow(0 0 3px white); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 2px white) drop-shadow(0 0 10px #ffd700) drop-shadow(0 0 25px white); }
    100% { transform: scale(1); filter: drop-shadow(0 0 1px white) drop-shadow(0 0 3px white); }
}

.logo-glow {
    animation: sparklePulse 2s infinite ease-in-out;
    cursor: pointer;
}

.logo-glow:hover {
    animation: none;
    transform: scale(1.1);
    filter: drop-shadow(0 0 2px white) drop-shadow(0 0 15px white) drop-shadow(0 0 30px white);
    transition: all 0.3s ease;
}

/* --- ADVANCED ANIMATED HERO (Final Premium Version) --- */

/* 1. The Background with Moving Abstract Lines */
.hero-bg-animated {
    background-color: #0f172a;
    position: relative;
    overflow: hidden;
    color: white;
}

/* The Abstract Lines Animation */
.hero-bg-animated::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.03) 20px,
        rgba(255, 255, 255, 0.03) 40px
    );
    animation: moveLines 20s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes moveLines {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

/* 2. Typography */
.hero-heading {
    font-family: sans-serif;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 10;
}

/* 3. The "Stage Light" Glow behind images */
.image-glow-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    filter: blur(40px);
    border-radius: 50%;
    z-index: 1;
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* 4. Image Levitation (Floating Effect) */
@keyframes floatHero {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); } /* Floats up */
    100% { transform: translateY(0px); }
}

/* Style for Product Cutouts (Boards) */
.hero-product-img {
    position: relative;
    z-index: 5;
    height: 85%;
    width: auto;
    max-width: 95%;
    object-fit: contain;
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6)); /* Strong Shadow */
    
    /* Apply Float Animation */
    animation: floatHero 6s ease-in-out infinite;
}

/* 5. Special "Glass Frame" for Rectangular Photos (Team Photo) */
.hero-frame-container {
    position: relative;
    z-index: 5;
    padding: 15px; /* Space for border */
    animation: floatHero 6s ease-in-out infinite;
}

/* The Photo Itself */
.hero-frame-img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
}

/* The "Offset Border" Decoration */
.hero-frame-container::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.3); /* Thin Glass Border */
    border-radius: 20px;
    transform: rotate(-3deg) scale(1.05); /* Tilted border */
    z-index: 1;
    transition: transform 0.5s ease;
}

/* Hover Effect on Frame */
.hero-frame-container:hover::after {
    transform: rotate(0deg) scale(1);
    border-color: rgba(166, 28, 36, 0.8); /* Turns Red on Hover */
}


/* --- SLIDER LOGIC --- */
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    opacity: 0; visibility: hidden; z-index: 0;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.hero-slide.active {
    opacity: 1; visibility: visible; z-index: 10;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-bg-animated { height: auto; min-height: 100vh; padding-top: 80px; }
    .hero-slide { position: relative; display: none; height: auto; padding-bottom: 40px; }
    .hero-slide.active { display: flex; }
    .hero-product-img, .hero-frame-img { max-height: 300px; margin-top: 20px; }
    .hero-bg-animated::before { display: none; } /* Remove lines on mobile for performance */
}

/* --- ANIMATIONS --- */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-slide-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-slide-right { opacity: 0; transform: translateX(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.is-visible { opacity: 1; transform: translate(0) !important; }

/* --- GLASS CARDS (Product Thumbnails) --- */
.glass-card-container {
    perspective: 1500px;
    height: 280px;
    cursor: pointer;
}
.glass-card {
    position: relative;
    width: 100%; height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.glass-card-container:hover .glass-card {
    transform: rotateY(180deg);
}
.glass-card-front, .glass-card-back {
    position: absolute;
    width: 100%; height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
    overflow: hidden;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
}
.glass-card-front img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 10px;
}
.glass-card-front-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 0.75rem;
    background: rgba(10, 25, 47, 0.9);
    text-align: center;
}
.glass-card-back {
    background: linear-gradient(135deg, #a61c24, #0a192f);
    color: white;
    transform: rotateY(180deg);
    padding: 1.5rem; text-align: center;
}

/* --- GALLERY STYLES --- */
.gallery-filter-btn {
    padding: 10px 25px;
    border: 2px solid #8B0000;
    border-radius: 30px;
    color: #8B0000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}
.gallery-filter-btn:hover, .gallery-filter-btn.active {
    background: #8B0000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.4s ease;
}
.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%; height: 100%;
    object-fit: cover;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(10, 25, 47, 0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* --- MODAL STYLES --- */
#advanced-product-modal-content {
    max-height: 90vh;
    display: flex; flex-direction: column;
}
.modal-table-container { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.product-modal-table { width: 100%; font-size: 0.85rem; text-align: left; border-collapse: collapse; }
.product-modal-table th { background-color: #f1f5f9; color: #0f172a; font-weight: 700; padding: 10px; border-bottom: 2px solid #e2e8f0; }
.product-modal-table td { padding: 8px 10px; border-bottom: 1px solid #e2e8f0; color: #334155; }
.product-modal-table tr:nth-child(even) { background-color: #f8fafc; }

/* --- MARQUEE --- */
@keyframes marquee { 0% { transform: translateX(0%); } 100% { transform: translateX(-100%); } }
.marquee-wrapper { width: 100%; overflow: hidden; position: relative; }
.marquee-content { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-wrapper:hover .marquee-content { animation-play-state: paused; }

/* --- PRELOADER --- */
.animated-gradient { background-color: #a61c24; transition: background-color 0.1s linear; }
#preloader-wipe {
    position: absolute; top: 50%; left: 50%; width: 0; height: 0;
    background-color: #ffffff; z-index: 1010; transform: translate(-50%, -50%);
    transition: all 1.2s cubic-bezier(0.86, 0, 0.07, 1);
}
#preloader-wipe.wipe-active { width: 150vmax; height: 150vmax; }


