/* ============================================
   Parsa Group Co. - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --accent-color: #ea4335;
    --text-dark: #202124;
    --text-light: #5f6368;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dadce0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    padding-top: 80px; /* Space for fixed header */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Main Header Navigation
   ============================================ */

.main-header {
    position: relative;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 20px;
    position: relative;
}

/* Logo */
.main-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
    flex-shrink: 0;
}

.main-header .logo img {
    display: block;
    height: auto;
    transition: transform 0.3s ease;
}

.main-header .logo:hover img {
    transform: scale(1.05);
}

/* Main Navigation */
.main-header .main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-header .nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-header .nav-list > li {
    position: relative;
}

.main-header .nav-list > li > a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: inline-block;
}

.main-header .nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.main-header .nav-list > li > a:hover {
    color: var(--primary-color);
}

.main-header .nav-list > li > a:hover::after,
.main-header .nav-list > li > a.active::after {
    width: 100%;
}

.main-header .nav-list > li > a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Dropdown & Mega Menu */
.main-header .dropdown {
    position: static;
}

.main-header .mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    margin-top: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    gap: 2rem;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.main-header .dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    animation: fadeInDown 0.3s ease;
}

.main-header .mega-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.main-header .mega-column {
    flex: 1;
}

.main-header .mega-column a {
    display: block;
    text-decoration: none;
    color: var(--text-light);
    padding: 0.5rem 0;
    transition: color 0.3s ease, padding-left 0.3s ease;
    font-size: 0.95rem;
}

.main-header .mega-column a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

/* Header Actions */
.main-header .header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

/* CTA Button */
.main-header .cta-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1557b0 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

.main-header .cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.main-header .cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.main-header .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
    animation: none;
}

.main-header .cta-button:active {
    transform: translateY(0);
}

/* Pulsing Glow Effect */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(26, 115, 232, 0.6);
    }
}

/* Mobile Toggle (Hamburger) */
.main-header .mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.main-header .mobile-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.main-header .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.main-header .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.main-header .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #0d3b66 0%, #1a5f8e 50%, #28a7a7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Parallax Layers */
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    pointer-events: none;
    will-change: transform;
}

.layer-1 {
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(255, 255, 255, 0.1) 50px, rgba(255, 255, 255, 0.1) 100px),
        repeating-linear-gradient(-45deg, transparent, transparent 50px, rgba(255, 255, 255, 0.1) 50px, rgba(255, 255, 255, 0.1) 100px);
    opacity: 0.1;
}

.layer-2 {
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    filter: blur(40px);
    opacity: 0.6;
}

.layer-3 {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-title .title-line {
    display: block;
    animation: fadeInUp 1s ease-out;
}

.hero-title .title-line:nth-child(2) {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta .btn-primary,
.hero-cta .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta .btn-primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    color: #0d3b66;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.hero-cta .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.hero-cta .btn-primary i,
.hero-cta .btn-secondary i {
    font-size: 1rem;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    z-index: 10;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-scroll span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    position: relative;
    animation: bounceArrow 2s infinite;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scrollPulse 3s infinite;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.float-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.1);
    animation: floatUpDown 6s ease-in-out infinite;
    will-change: transform;
}

.float-icon i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: rotateSlow 30s linear infinite;
}

.pump-icon {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.protector-icon {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.lab-icon {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-title {
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-light);
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Products Section */
.products {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    margin-bottom: 0.5rem;
}

.product-description {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Product Showcase - 3D Cards */
.product-showcase {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-showcase .section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-dark);
}

.product-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 1000px;
}

/* 3D Product Card */
.product-cards-grid .product-card {
    position: relative;
    width: 320px;
    height: 480px;
    margin: 0 auto;
    cursor: pointer;
}

.product-cards-grid .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.product-cards-grid .product-card.flipped .card-inner {
    transform: rotateY(180deg) !important;
}

.product-cards-grid .card-front,
.product-cards-grid .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-cards-grid .card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    justify-content: space-between;
}

.product-cards-grid .card-front {
    display: flex;
    flex-direction: column;
}

.product-cards-grid .card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-cards-grid .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.product-cards-grid .product-card:hover .card-image img {
    transform: scale(1.1);
}

.product-cards-grid .product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.product-cards-grid .card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-cards-grid .product-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.product-cards-grid .product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.product-cards-grid .product-specs span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.product-cards-grid .product-specs i {
    color: var(--primary-color);
}

.product-cards-grid .product-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.product-cards-grid .product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-cards-grid .product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-cards-grid .product-features i {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.product-cards-grid .card-back h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.product-cards-grid .card-back ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex: 1;
}

.product-cards-grid .card-back ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 1rem;
}

.product-cards-grid .card-back ul li:last-child {
    border-bottom: none;
}

.product-cards-grid .card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-cards-grid .btn-details,
.product-cards-grid .btn-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
}

.product-cards-grid .btn-details {
    background: var(--primary-color);
    color: white;
}

.product-cards-grid .btn-details:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.product-cards-grid .btn-quote {
    background: var(--secondary-color);
    color: white;
}

.product-cards-grid .btn-quote:hover {
    background: #2d8f47;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

/* Hover Effects */
.product-cards-grid .product-card:hover {
    transform: translateY(-10px);
}

.product-cards-grid .product-card:hover .card-front {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.product-cards-grid .product-card:hover .card-back {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Gradient border on hover using box-shadow */
.product-cards-grid .product-card {
    position: relative;
}

.product-cards-grid .product-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    pointer-events: none;
}

.product-cards-grid .product-card:hover::after {
    opacity: 1;
}

/* Tilt Glare Effect */
.product-cards-grid .product-card .tilt-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.8) 45%, rgba(255, 255, 255, 0.6) 50%, transparent 54%);
    transition: opacity 0.3s ease;
    z-index: 10;
}

.product-cards-grid .product-card:hover .tilt-glare {
    opacity: 1;
}

/* Forms */
.order-form-section,
.contact-section {
    padding: 80px 0;
}

.order-form,
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Group/About Content */
.group-content {
    padding: 80px 0;
}

.group-article {
    max-width: 800px;
    margin: 0 auto;
}

.group-article h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.group-article p {
    margin-bottom: 1.5rem;
}

.values-list {
    list-style: none;
    padding-left: 0;
}

.values-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-item h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: var(--text-light);
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.newsletter-box h2 {
    margin-bottom: 1rem;
}

.newsletter-box p {
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

/* Footer */
.main-footer {
    background-color: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    color: white;
    margin-bottom: 1rem;
}

.footer-heading {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Technical Text */
.technical-text {
    font-family: 'Roboto Mono', monospace;
}

/* ============================================
   Multi-Step Order Form
   ============================================ */

.multi-step-form {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Progress Bar */
.form-progress {
    margin-bottom: 3rem;
}

.progress-bar {
    height: 4px;
    background-color: var(--bg-light);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 20%;
    transition: width 0.4s ease;
    border-radius: 2px;
}

/* Step Indicators */
.step-indicators {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    width: 80%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 0;
}

.step.active:not(:last-child)::after,
.step.completed:not(:last-child)::after {
    background-color: var(--primary-color);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.step.active .step-number {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.step.completed .step-number::after {
    content: '✓';
    font-size: 1.2rem;
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-size: 1.75rem;
}

/* Product Options */
.product-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.option-card {
    position: relative;
    cursor: pointer;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.option-card:hover .option-content {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.option-card input[type="radio"]:checked + .option-content {
    border-color: var(--primary-color);
    background-color: rgba(26, 115, 232, 0.05);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.option-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.option-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.option-content p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* Dynamic Specifications */
.spec-dynamic {
    margin-bottom: 2rem;
}

.spec-group {
    margin-bottom: 2rem;
}

.spec-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.spec-group .form-control,
.spec-group input[type="text"],
.spec-group input[type="number"],
.spec-group select,
.spec-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.spec-group .form-control:focus,
.spec-group input:focus,
.spec-group select:focus,
.spec-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.spec-group input[type="range"] {
    width: 100%;
    margin: 1rem 0;
}

.range-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.range-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.select-group,
.checkbox-group,
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: var(--bg-light);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-item:hover,
.radio-item:hover {
    background-color: rgba(26, 115, 232, 0.05);
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* File Upload */
.file-upload {
    margin-top: 1rem;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background-color: rgba(26, 115, 232, 0.05);
}

.file-upload-label i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.file-upload-label span {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.file-upload-label small {
    color: var(--text-light);
    font-size: 0.875rem;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.file-item-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.file-item-name i {
    color: var(--primary-color);
}

.file-item-remove {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 1.2rem;
}

/* Order Summary */
.order-summary {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.summary-details {
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-label {
    font-weight: 500;
    color: var(--text-light);
}

.summary-item-value {
    font-weight: 600;
    color: var(--text-dark);
}

.price-breakdown {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.total-price {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--border-color);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.total-price span:last-child {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.form-navigation button {
    min-width: 150px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-navigation .btn-prev {
    margin-right: auto;
}

.form-navigation .btn-next,
.form-navigation .btn-submit {
    margin-left: auto;
}

/* Step Message */
.step-message {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

/* Field Error */
.field-error {
    color: var(--accent-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.field-error::before {
    content: '⚠';
    font-size: 1rem;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--accent-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .multi-step-form {
        padding: 1.5rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }

    .product-options {
        grid-template-columns: 1fr;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .form-navigation button {
        width: 100%;
        margin: 0;
    }
}

/* ============================================
   Product Gallery Styles
   ============================================ */

.product-gallery {
    padding: 4rem 0;
    min-height: 60vh;
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.sort-controls {
    position: relative;
}

.sort-controls select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235f6368' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    transition: var(--transition);
}

.sort-controls select:hover,
.sort-controls select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Masonry Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.grid-sizer,
.gutter-sizer {
    display: none;
}

/* Product Item */
.product-item {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInDown 0.5s ease forwards;
    display: flex;
    flex-direction: column;
}

.product-item.filtered-out {
    display: none;
}

.product-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.item-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-image:hover img {
    transform: scale(1.1);
}

/* Lazy Loading Placeholder */
.item-image img.lazy {
    filter: blur(10px);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}

.item-image img.lazy.loaded {
    filter: blur(0);
    opacity: 1;
}

/* Skeleton Loader */
.item-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: skeleton-loading 1.5s infinite;
    z-index: 1;
}

@keyframes skeleton-loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.item-image img.loaded ~ .item-image::before {
    display: none;
}

.quick-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(26, 115, 232, 0.95);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.item-image:hover .quick-view {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.quick-view:hover {
    background: rgba(26, 115, 232, 1);
    transform: translate(-50%, -50%) scale(1.05);
}

.item-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.item-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.item-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.item-specs span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.item-specs i {
    color: var(--primary-color);
}

.item-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

.item-actions button,
.item-actions a {
    padding: 0.5rem;
    border: none;
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
}

.item-actions button:hover,
.item-actions a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-quote {
    padding: 0.5rem 1rem !important;
    width: auto !important;
    font-size: 0.875rem;
    gap: 0.5rem;
}

.btn-pdf {
    padding: 0.5rem 1rem !important;
    width: auto !important;
    font-size: 0.875rem;
    gap: 0.5rem;
}

/* Load More Button */
.load-more {
    text-align: center;
    margin-top: 3rem;
}

.btn-load {
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.btn-load:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-load:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-load.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Filter Animations */
@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.product-item.fade-out {
    animation: fadeOutUp 0.3s ease forwards;
}

.product-item.fade-in {
    animation: fadeInDown 0.5s ease forwards;
}

/* Loading Spinner */
.gallery-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.gallery-loader.active {
    opacity: 1;
    visibility: visible;
}

.gallery-loader .spinner {
    width: 60px;
    height: 60px;
}

.gallery-loader .spinner svg {
    width: 100%;
    height: 100%;
    color: var(--primary-color);
}

/* Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.quick-view-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    margin: 5vh auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.quick-view-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-dark);
}

.modal-close:hover {
    background: var(--accent-color);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 4rem);
}

.modal-image-gallery {
    position: relative;
}

.product-swiper {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.product-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
}

.modal-product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-product-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.modal-product-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.modal-product-specs span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.modal-product-specs i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.modal-product-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.modal-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.modal-actions button,
.modal-actions a {
    padding: 0.75rem 1.5rem;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    text-decoration: none;
}

.modal-actions button:hover,
.modal-actions a:hover {
    background: #1557b0;
    transform: translateY(-2px);
}

.modal-actions .btn-compare {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-actions .btn-compare:hover {
    background: var(--text-dark);
    color: white;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-buttons {
        justify-content: center;
    }

    .filter-btn {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .product-swiper {
        height: 300px;
    }

    .modal-product-title {
        font-size: 1.5rem;
    }

    .modal-product-specs {
        grid-template-columns: 1fr;
    }

    .modal-product-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-price {
        font-size: 1.75rem;
        text-align: center;
    }

    .modal-actions {
        justify-content: center;
    }

    .item-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Newsletter Subscription Styles
   ======================================== */

.newsletter-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 80px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter-content h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #fff;
}

.newsletter-content > p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.newsletter-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.input-group input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input[type="email"]:focus {
    outline: none;
    border-color: #4CAF50;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.input-group input[type="email"].invalid {
    border-color: #f44336;
    background: #ffebee;
}

.btn-subscribe {
    padding: 15px 30px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-subscribe:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-subscribe:active:not(:disabled) {
    transform: translateY(0);
}

.btn-subscribe:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-subscribe.loading {
    background: #66bb6a;
}

.form-agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

.form-agreement input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4CAF50;
    flex-shrink: 0;
}

.form-agreement label {
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.95);
}

.form-agreement label a {
    color: #81C784;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.form-agreement label a:hover {
    color: #A5D6A7;
}

.subscriber-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.subscriber-count i {
    font-size: 1.3rem;
    color: #81C784;
}

.subscriber-count #count {
    font-weight: 700;
    font-size: 1.3rem;
    color: #A5D6A7;
    transition: transform 0.3s ease;
}

/* Form Messages */
.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-message i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.success i {
    color: #28a745;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.error i {
    color: #dc3545;
}

.form-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.form-message.info i {
    color: #17a2b8;
}

.form-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.form-message.warning i {
    color: #ffc107;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Newsletter Styles */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 60px 0;
    }

    .newsletter-content h3 {
        font-size: 2rem;
    }

    .newsletter-content > p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .newsletter-form {
        padding: 20px;
    }

    .input-group {
        flex-direction: column;
    }

    .btn-subscribe {
        width: 100%;
        justify-content: center;
    }

    .subscriber-count {
        flex-direction: column;
        gap: 5px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .newsletter-content h3 {
        font-size: 1.75rem;
    }

    .newsletter-form {
        padding: 15px;
    }

    .input-group input[type="email"] {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .btn-subscribe {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

