/* INSPRAY SYSTEMS - Modern Website CSS */

/* CSS Variables */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --gray-50: #f7fafc;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
    --shadow-2xl: 0 25px 50px rgba(0,0,0,0.25);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --container-max: 1400px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobile touch optimization */
button, a, input, textarea {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Performance optimizations */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

/* GPU acceleration for better performance */
.hero,
.category-section,
.product-slide,
.modal-content {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduce animation complexity for better performance */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: visible;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.1rem;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown .fa-chevron-down {
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e2e8f0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

/* Style for "View All" main category links */
.dropdown-menu .dropdown-main-link {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.dropdown-menu .dropdown-main-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    padding-left: 1rem; /* Don't indent as much for main links */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 6px;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Tablet and medium screens - prevent text cutoff */
@media (max-width: 1024px) {
    .nav-links {
        gap: 0.25rem;
    }
    
    .nav-links a {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .call-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Large screens - start compacting navigation */
@media (max-width: 1400px) {
    .nav-links {
        gap: 0.1rem;
    }
    
    .nav-links a {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* Larger screens - fit all navigation items */
@media (min-width: 1201px) and (max-width: 1600px) {
    .nav-links {
        gap: 0.05rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.4rem;
    }
    
    .cta-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Medium screens - ensure About and Contact don't get cut off */
@media (max-width: 1200px) {
    .nav-links {
        gap: 0.05rem;
    }
    
    .nav-links a {
        font-size: 0.75rem;
        padding: 0.4rem 0.3rem;
    }
    
    .cta-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Small tablets - further compress before mobile */
@media (max-width: 900px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 0.1rem;
    }
    
    .nav-links a {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .call-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Hide dropdown arrows on smaller screens to save space */
    .dropdown .fa-chevron-down {
        display: none;
    }
}

/* Mobile Navigation - start earlier to prevent text cutoff */
@media (max-width: 850px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 1rem 0;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 999;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.mobile-open {
        transform: translateX(0);
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        color: var(--text-dark);
        border-radius: 0;
    }
    
    .nav-links a:hover {
        background: #f8f9fa;
    }
    
    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        background: #f8f9fa;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.mobile-dropdown-open .dropdown-menu {
        max-height: 300px;
    }
    
    .dropdown-menu a {
        padding: 0.8rem 2.5rem;
        background: #f8f9fa;
        border-bottom: 1px solid #dee2e6;
    }
    
    .dropdown-menu a:hover {
        background: #e9ecef;
        padding-left: 3rem;
    }
    
    .cta-button {
        margin: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-links a {
        padding: 1rem;
    }
}

/* Hero Section */

.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow-xl);
    border-radius: var(--border-radius);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    border: 1px solid var(--gray-200);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--primary-color);
    padding-left: 2rem;
}

.dropdown-menu a::after {
    display: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 6px;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
    background: var(--gray-50);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Hero Section */
.hero {
    padding-top: 80px;
    min-height: 60vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    pointer-events: none;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Categories Section */
.categories {
    padding: 20px 0;
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Category Tiles */
.category-tile {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

.tile-header {
    padding: 1.2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.tile-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.tile-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.tile-description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
}

/* Tile Slider */
.tile-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    transform: translateX(100%);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.slide.active .slide-content {
    transform: translateY(0);
}

.slide-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.slide-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    box-shadow: var(--shadow-md);
}

.slider-btn:hover {
    background: white;
    transform: scale(1.1);
}

.slider-btn i {
    color: var(--text-dark);
    font-size: 1rem;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Tile Footer */
.tile-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

.tile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
}

.tile-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.tile-link i {
    transition: var(--transition);
}

.tile-link:hover i {
    transform: translateX(3px);
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature p {
    color: var(--text-light);
    margin: 0;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--gray-50);
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Mobile Navigation Styles */
@media (max-width: 1024px) {
    .nav-container {
        height: 70px;
    }
    
    .nav-links {
        gap: 0.8rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.4rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed !important;
        top: 80px;
        left: 0 !important;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 1rem 0;
        gap: 0;
        margin: 0;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 999;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.mobile-open {
        transform: translateX(0) !important;
        left: 0 !important;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        color: var(--text-dark);
        border-radius: 0;
    }
    
    .nav-links a:hover {
        background: #f8f9fa;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown {
        position: relative;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        background: var(--gray-50);
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.mobile-dropdown-open .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-menu a {
        padding: 0.8rem 3rem;
        background: var(--gray-50);
        border-bottom: 1px solid var(--gray-200);
    }
    
    .dropdown-menu a:hover {
        background: var(--gray-100);
        padding-left: 3.5rem;
    }
    
    .dropdown .fa-chevron-down {
        transition: transform 0.3s ease;
    }
    
    .dropdown.mobile-dropdown-open .fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .nav-right {
        gap: 0.5rem;
    }
    
    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .category-tile {
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .tile-header {
        padding: 1.5rem;
    }
    
    .tile-footer {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        border-bottom: 1px solid var(--gray-300);
    }
    
    .nav-container {
        height: 60px;
        padding: 0 0.5rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .nav-links {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 1rem 0;
    }
    
    .nav-links a {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .nav-links a:hover {
        padding-left: 2rem;
    }
    
    .dropdown-menu a {
        padding: 0.6rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .dropdown-menu a:hover {
        padding-left: 3rem;
    }
    
    .cta-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .mobile-menu-toggle {
        padding: 0.3rem;
        font-size: 1.3rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tile-slider {
        height: 250px;
    }
    
    .slide-content {
        padding: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Touch Device Optimizations */
.touch-device * {
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.touch-device .main-slider-btn {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.touch-device .dropdown:hover .dropdown-menu {
    opacity: 0;
    visibility: hidden;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .nav-links a,
    .dropdown-menu a,
    .main-slider-btn,
    .cta-button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .dropdown-menu a {
        padding: 1rem 1.5rem;
    }
}

/* Main Sliders for Homepage */
.category-section {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.category-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.category-icon i {
    font-size: 1.5rem;
    color: white;
}

.category-info h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-dark);
}

.category-info p {
    margin: 0.5rem 0 0 0;
    color: var(--text-light);
    font-size: 1rem;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    transition: var(--transition);
}

.view-all-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.view-all-link i {
    transition: var(--transition);
}

.view-all-link:hover i {
    transform: translateX(3px);
}

/* Main Slider Styles */
.main-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1rem;
}

.product-slide {
    min-width: 280px;
    max-width: 320px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.product-slide:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-slide img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    padding: 15px;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
}

.product-info {
    padding: 1.5rem;
}

.product-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.product-info p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Main Slider Controls */
.main-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: clamp(40px, 5vw, 50px);
    height: clamp(40px, 5vw, 50px);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    box-shadow: var(--shadow-md);
    touch-action: manipulation;
}

.main-slider-btn.prev {
    left: 1rem;
}

.main-slider-btn.next {
    right: 1rem;
}

.main-slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.main-slider-btn i {
    color: var(--text-dark);
    font-size: 1.2rem;
}

/* Enhanced Responsive Design */
@media (max-width: 1600px) {
    .nav-links a {
        font-size: clamp(0.75rem, 1vw, 0.9rem);
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 1400px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: clamp(0.5rem, 1vw, 1rem);
        margin: 0 0.5rem;
    }
    
    .nav-links a {
        font-size: clamp(0.7rem, 1vw, 0.85rem);
        padding: 0.4rem 0.5rem;
    }
    
    .cta-button {
        padding: 0.5rem 1rem;
        font-size: clamp(0.8rem, 1vw, 0.9rem);
    }
    
    .logo {
        font-size: clamp(1.1rem, 2vw, 1.3rem);
    }
}

@media (max-width: 1200px) {
    .nav-links {
        gap: clamp(0.3rem, 0.8vw, 0.7rem);
    }
    
    .nav-links a {
        font-size: clamp(0.65rem, 0.9vw, 0.8rem);
        padding: 0.3rem 0.4rem;
    }
    
    .dropdown-menu {
        min-width: 200px;
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 0 0.8rem;
    }
    
    .product-slide {
        min-width: clamp(240px, 25vw, 300px);
        max-width: clamp(260px, 30vw, 320px);
    }
    
    .category-info h3 {
        font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    }
    
    .category-info p {
        font-size: clamp(0.85rem, 1.5vw, 1rem);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 1.5rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links.mobile-open {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Mobile dropdown adjustments */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        background: var(--gray-50);
        margin-top: 0.5rem;
        border-radius: 6px;
    }
    
    .dropdown-menu a {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .dropdown .fa-chevron-down {
        display: inline-block;
    }
    
    .dropdown .dropdown-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.mobile-dropdown-open .dropdown-menu {
        max-height: 300px;
    }
}
    
    .category-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .category-title-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .product-slide {
        min-width: 250px;
        max-width: 280px;
    }
    
    .main-slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .main-slider-btn.prev {
        left: 0.5rem;
    }
    
    .main-slider-btn.next {
        right: 0.5rem;
    }
    
    .main-slider-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .product-slide {
        min-width: 220px;
        max-width: 250px;
    }
    
    .product-slide img {
        height: 180px !important;
        object-fit: contain !important;
        padding: 10px !important;
        background: #f8f9fa !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
        border: 1px solid #e2e8f0 !important;
        margin: 5px !important;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-icon i {
        font-size: 1.2rem;
    }
    
    .category-info h3 {
        font-size: 1.5rem;
    }
    
    .view-all-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Extra small mobile devices (320px - 479px) */
@media (max-width: 479px) {
    .product-slide img {
        height: 160px !important;
        object-fit: contain !important;
        padding: 8px !important;
        background: #f8f9fa !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        border: 1px solid #e2e8f0 !important;
        margin: 3px !important;
        width: calc(100% - 6px) !important;
    }
    
    .product-slide {
        min-width: 200px;
        max-width: 230px;
    }
    
    .product-info {
        padding: 1rem 0.8rem;
    }
}

/* Product Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 1200px;
    max-height: 90vh;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.modal-close i {
    color: var(--text-dark);
    font-size: 1.2rem;
}

.modal-image {
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.modal-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.modal-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.modal-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-body h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.product-description p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.product-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.spec-item {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.spec-value {
    color: var(--text-light);
    font-size: 0.95rem;
}

.applications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.application-tag {
    background: var(--gray-200);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.modal-footer {
    border-top: 2px solid var(--gray-200);
    padding-top: 0.8rem;
    margin-top: 0.8rem;
    text-align: center;
    flex-shrink: 0;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: nowrap;
}

.contact-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    opacity: 0.9;
    color: white;
}

.contact-btn.call-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.contact-btn.call-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1a9a7a 100%);
}

.contact-btn.email-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.contact-btn.email-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.contact-btn i {
    font-size: 0.9rem;
    margin-right: 0.4rem;
}

/* Mobile responsive for modal buttons - keep in single line */
@media (max-width: 768px) {
    .contact-buttons {
        gap: 0.3rem;
        flex-wrap: nowrap;
    }
    
    .contact-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
        flex: 1;
        text-align: center;
    }
    
    .contact-btn i {
        font-size: 0.8rem;
        margin-right: 0.2rem;
    }
    
    .modal-footer {
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .contact-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

.quote-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.quote-btn i {
    font-size: 1.2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--primary-color);
}

/* Modal Responsive Design */
@media (max-width: 1024px) {
    .modal-content {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }
    
    .modal-image {
        height: 300px;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
    
    .modal-container {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .modal-image {
        height: 250px;
    }
    
    .modal-info {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quote-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-container {
        padding: 0.5rem;
    }
    
    .modal-content {
        border-radius: 15px;
    }
    
    .modal-image {
        height: 200px;
    }
    
    .modal-info {
        padding: 1rem;
    }
    
    .modal-header {
        margin-bottom: 1.5rem;
    }
    
    .modal-body h3 {
        font-size: 1.1rem;
    }
}

/* Performance optimizations for smooth scrolling */
.product-slide {
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-slide:hover {
    transform: translateZ(0) scale(1.02);
}

/* Optimize AOS animations */
[data-aos] {
    will-change: transform, opacity;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero {
        transform: none !important;
    }
}

/* Quote Modal Styles - Premium Design */
#quoteModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 15000 !important;
    padding: 20px;
    box-sizing: border-box;
}

.quote-modal-container {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    width: 100%;
    max-width: 650px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.2),
        0 16px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(40px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.quote-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 2rem 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.quote-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.quote-modal-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quote-modal-header .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.quote-modal-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.quote-product-info {
    background: rgba(255, 255, 255, 0.9);
    margin: 0;
    padding: 1rem 1.5rem;
    border-radius: 16px 16px 0 0;
    position: relative;
    z-index: 2;
}

.quote-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quote-product-name::before {
    content: '📦';
    font-size: 1.2rem;
}

.quote-modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.quote-product-name {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.quote-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label::before {
    content: attr(data-icon);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.25rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    position: relative;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    grid-column: 1 / -1;
}

.btn-cancel {
    padding: 1rem 2rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: var(--text-dark);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-submit {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Quote Loading & Success States */
.quote-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loading-subtext {
    color: var(--text-light);
    font-size: 0.95rem;
}

.quote-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.quote-success h3 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.quote-success p {
    margin: 0 0 2rem 0;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 400px;
}

.btn-close {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-close:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsive Design for Quote Modal */
@media (max-width: 768px) {
    #quoteModal {
        padding: 10px;
    }
    
    .quote-modal-container {
        max-width: 100%;
        border-radius: 20px;
    }
    
    .quote-modal-header {
        padding: 1.5rem;
    }
    
    .quote-modal-header h2 {
        font-size: 1.6rem;
    }
    
    .quote-modal-body {
        padding: 1.5rem;
    }
    
    .quote-form {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

.btn-cancel:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.btn-submit {
    flex: 2;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.quote-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.quote-success h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quote-loading {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-close {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: var(--secondary-color);
}

/* Quote Modal Responsive */
@media (max-width: 768px) {
    .quote-modal-container {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .quote-modal-header,
    .quote-modal-body {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
}