/* Modern Sleek Styles Inspired by Havells */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Minimal Red Theme */
:root {
   --bg-white: #ffffff;
   --text-black: #000000;
   --accent-red: #ff0000;
   --shadow-red: rgba(255, 0, 0, 0.1);
   --border-light: #f0f0f0;
   --text-muted: #666666;
}

/* Global Font */
body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #1f2937; /* Darker default text color */
}

/* Minimal Typography - Small Fonts */
body {
   
   font-size: 14px;
   line-height: 1.4;
   color: var(--text-black);
   background: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
     font-family: 'Inter', sans-serif;
     font-weight: 400;
     letter-spacing: 0.01em;
     color: var(--text-black);
     margin: 0;
  }

/* Small Font Sizes Throughout */
h1 { font-size: 0.625rem; line-height: 1.3; }
h2 { font-size: 0.5rem; line-height: 1.3; }
h3 { font-size: 0.4375rem; line-height: 1.4; }
h4 { font-size: 0.375rem; line-height: 1.4; }
h5 { font-size: 0.3125rem; line-height: 1.4; }
h6 { font-size: 0.25rem; line-height: 1.4; }

/* Smaller font after headings */

h1 + p, h1 + span, h1 + div,

h2 + p, h2 + span, h2 + div,

h3 + p, h3 + span, h3 + div,

h4 + p, h4 + span, h4 + div,

h5 + p, h5 + span, h5 + div,

h6 + p, h6 + span, h6 + div {

     font-size: 14px;

}



.text-muted, .text-gray-600, .text-gray-500 {
    color: #374151 !important; /* Darker gray for better visibility */
}

/* Responsive small adjustments */
@media (min-width: 768px) {
   body { font-size: 15px; }
   h1 { font-size: 1.75rem; }
   h2 { font-size: 1.5rem; }
   h3 { font-size: 1.25rem; }
}

.font-light {
  font-weight: 300;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-delay {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-marquee {
    animation: marquee 20s linear infinite;
    display: inline-block;
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

.animate-fade-in-delay {
    animation: fade-in-delay 1s ease-out 0.3s both;
}

/* Header Scroll Effect */
header.scrolled {
    backdrop-filter: blur(20px);
    background: rgba(220, 38, 38, 0.95); /* red-600 with 95% opacity */
    box-shadow: 0 4px 20px var(--shadow-red);
}

/* Slider Styles */
.slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Mobile Bottom Bar Spacing */
body {
    padding-bottom: 80px;
}

@media (min-width: 1024px) {
    body {
        padding-bottom: 0;
    }
}

/* Minimal Card Hover Effects */
.category-card,
.product-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.category-card:hover,
.product-card:hover {
    box-shadow: 0 4px 15px var(--shadow-red);
    border-color: var(--accent-red);
}

/* Minimal Enquiry Form Styles */
.enquiry-form {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 15px;
    padding: 1.5rem;
}

.enquiry-form input,
.enquiry-form textarea,
.enquiry-form select {
    border: 1px solid var(--border-light);
    color: var(--text-black);
}

.enquiry-form input:focus,
.enquiry-form textarea:focus,
.enquiry-form select:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px var(--shadow-red);
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gallery Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Product Gallery */
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.gallery-thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.gallery-thumbnail.active {
    border-color: var(--accent-red);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .text-5xl { font-size: 2.5rem; }
    .text-7xl { font-size: 3.5rem; }
    .text-4xl { font-size: 2rem; }
    .text-6xl { font-size: 3rem; }
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Advanced Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in-left {
    animation: slideInLeft 1s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 1s ease-out;
}

/* Hover Effects */
.product-card:hover .product-image {
    transform: scale(1.05);
}

.category-card:hover {
    transform: translateY(-5px);
}

/* Enhanced Responsiveness */
@media (max-width: 1024px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero-section h1 {
        font-size: 3rem;
    }
    .hero-section p {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .category-card, .product-card {
        margin-bottom: 1rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .enquiry-form {
        padding: 1rem;
    }
    .slider-nav {
        padding: 0.5rem;
    }
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
}

/* Marquee Text Transition */
#marquee-text {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Product Image Hover Effects */
.product-image {
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Minimal Background Patterns */
.bg-pattern {
    background-image: radial-gradient(circle, var(--shadow-red) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Minimal Social Icons */
.social-icon {
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--text-black);
}

.social-icon:hover {
    transform: scale(1.1);
    color: var(--accent-red);
}

/* Minimal Marketing Banner Cards */
.marketing-banner-card {
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 10px var(--shadow-red);
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.marketing-banner-card:hover {
    box-shadow: 0 4px 20px var(--shadow-red);
    border-color: var(--accent-red);
    transform: translateY(-1px);
}

.marketing-banner-card a {
    display: block;
    width: 100%;
    height: 100%;
}

.marketing-banner-card img {
    width: 100%;
    object-fit: cover;
    /* Ensure no cropping or stretching */
    max-width: 100%;
    /* Natural aspect ratio preservation */
    display: block;
    border-radius: inherit;
}

/* Specific height constraints for top and bottom banners */
.marketing-banner-grid-top .marketing-banner-card {
    max-height: 350px;
    min-height: 200px;
}

.marketing-banner-grid-bottom .marketing-banner-card {
    max-height: 250px;
    min-height: 150px;
}

/* Responsive banner grid with proper alignment */
.marketing-banner-grid-top {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.marketing-banner-grid-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

/* Tablet responsive */
@media (max-width: 1024px) {
    .marketing-banner-grid-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .marketing-banner-grid-top .marketing-banner-card {
        max-height: 350px;
        min-height: 180px;
    }

    .marketing-banner-grid-bottom {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .marketing-banner-grid-bottom .marketing-banner-card {
        max-height: 250px;
        min-height: 120px;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .marketing-banner-grid-top,
    .marketing-banner-grid-bottom {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .marketing-banner-card {
        border-radius: 16px;
    }

    .marketing-banner-grid-top .marketing-banner-card {
        max-height: 250px;
        min-height: 150px;
    }

    .marketing-banner-grid-bottom .marketing-banner-card {
        max-height: 200px;
        min-height: 100px;
    }

    .marketing-banner-section {
        padding: 3rem 0;
    }
}

@media (max-width: 640px) {
    .marketing-banner-card {
        border-radius: 12px;
    }

    .marketing-banner-grid-top .marketing-banner-card {
        max-height: 250px;
        min-height: 120px;
    }

    .marketing-banner-grid-bottom .marketing-banner-card {
        max-height: 180px;
        min-height: 90px;
    }

    .marketing-banner-section {
        padding: 2rem 0;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .marketing-banner-grid-top .marketing-banner-card {
        max-height: 200px;
        min-height: 100px;
    }

    .marketing-banner-grid-bottom .marketing-banner-card {
        max-height: 150px;
        min-height: 80px;
    }

    .marketing-banner-section {
        padding: 1.5rem 0;
    }
}

/* Ensure proper spacing and alignment */
.marketing-banner-section .container {
    max-width: 1200px;
    width: 100%;
}

.marketing-banner-grid-top {
    margin-bottom: 1.5rem;
}

/* Ensure cards maintain aspect ratio and proper sizing */
.marketing-banner-card {
    position: relative;
}

.marketing-banner-card img {
    transition: transform 0.3s ease;
}

.marketing-banner-card:hover img {
    transform: scale(1.02);
}

/* Ensure cards maintain proper proportions */
.marketing-banner-card {
    aspect-ratio: auto;
}

/* Fix for very small screens */
@media (max-width: 480px) {
    .marketing-banner-section {
        padding: 1.5rem 0;
    }

    .marketing-banner-card {
        border-radius: 10px;
    }
}

/* Dashboard Responsive Styles */
@media (max-width: 640px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .chart-container {
        padding: 1rem !important;
    }

    .kpi-card {
        padding: 1rem !important;
    }

    .kpi-icon {
        padding: 0.75rem !important;
    }

    .kpi-value {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .top-bar-left,
    .top-bar-right {
        display: none;
    }
    #marquee-text {
        flex: none;
        margin: 0;
    }

    .dashboard-title {
        font-size: 1.5rem !important;
    }

    .chart-title {
        font-size: 1.125rem !important;
    }
}

/* Chart.js responsive fixes */
@media (max-width: 1024px) {
    .chart-container canvas {
        max-height: 250px !important;
    }
}

@media (max-width: 768px) {
    .chart-container canvas {
        max-height: 200px !important;
    }
}

/* Ensure charts don't overflow on small screens */
.chart-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Fix for Chart.js tooltips on mobile */
@media (max-width: 768px) {
    .chartjs-tooltip {
        font-size: 12px !important;
    }
}

/* Mobile Menu Dropdown Styles */
.toggle-icon {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.category-link {
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 2px 0;
}

.category-link:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

.subcategories {
    display: none;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    margin-top: 4px;
}

.subcategories.show {
    display: block;
}

/* Mobile-friendly touch targets */
@media (max-width: 768px) {
    .category-link {
        padding: 12px 16px;
        min-height: 44px; /* iOS touch target */
        display: flex;
        align-items: center;
    }

    .subcategories a {
        padding: 10px 16px;
        min-height: 40px;
    }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .category-link {
        padding: 10px 14px;
    }

    .subcategories {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
    }
}

/* Enhanced mobile menu styling */
#mobile-menu {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#mobile-menu a {
    transition: all 0.2s ease;
    border-radius: 6px;
}

#mobile-menu a:hover {
    background-color: rgba(99, 102, 241, 0.05);
    transform: translateX(4px);
}

/* Smooth slide down animation for mobile menu */
#mobile-menu {
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

#mobile-menu.show {
    transform: translateY(0);
    opacity: 1;
}

/* Header Navigation Text Size */
header nav a {
    font-size: 12px !important;
}

/* Header Dropdown Menu Styling */
header nav .group .absolute a {
    padding: 6px 12px !important;
}

/* Responsive Header Adjustments */

/* Nav Link Underline Animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #4f46e5; /* indigo-600 */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Mobile adjustments for underline */
@media (max-width: 1023px) {
    .nav-link::after {
        bottom: -2px;
        height: 1px;
    }
}

