/* Modern Medical Website Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* CSS Custom Properties - Modern Color Palette */
:root {
    /* Primary Colors */
    --primary-blue: #20A0D8;
    --primary-blue-dark: #1A8ABF;
    --primary-blue-light: #4ABADF;
    --secondary-gray: #676767;
    --secondary-gray-dark: #555555;
    --secondary-gray-light: #8A8A8A;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #FAFCFF;
    --light-gray: #F5F7FA;
    --medium-gray: #E4E8ED;
    --text-dark: #1A202C;
    --text-medium: #2D3748;
    --text-light: #4A5568;
    
    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    --gradient-hero: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-gray-dark) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(32, 160, 216, 0.9) 0%, rgba(103, 103, 103, 0.8) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Typography */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-family-display: 'Playfair Display', Georgia, serif;
    
    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.25s ease-out;
    --transition-slow: 0.4s ease-out;
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scroll at root level */
}

body {
    font-family: var(--font-family-primary);
    overflow-x: hidden; /* Prevent horizontal scroll on body */
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--off-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent temporary scrollbars during animations */
* {
    overflow-anchor: none; /* Prevent scroll anchoring that can cause brief scrollbars */
}

/* General Section Styling to Prevent Unwanted Scrollbars */
.section {
    overflow: visible; /* Ensure sections don't create unnecessary scrollbars */
    height: auto; /* Let sections grow with content */
    min-height: auto; /* Remove any minimum height constraints */
}

/* Specifically target product sections */
#products {
    overflow: visible;
    height: auto;
}

/* Case studies section */
#case-studies {
    overflow: visible;
    height: auto;
}

.container {
    max-width: 1600px; /* Increased from 1280px */
    margin: 0 auto;
    padding: 0 var(--space-lg); /* Reduced padding */
    overflow-x: hidden; /* Prevent horizontal scroll */
    overflow-y: visible; /* Prevent unwanted vertical scrollbars */
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md); /* Reduced mobile padding */
        overflow-x: hidden; /* Ensure no horizontal scroll on mobile */
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
}

h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xl);
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: var(--space-lg);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-medium);
    line-height: 1.7;
}

/* Modern Header */
.header {
    position: fixed;
    top: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.12),
        0 10px 20px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.navbar {
    padding: var(--space-md) 0;
    transition: padding var(--transition-base);
}

.header.scrolled .navbar {
    padding: var(--space-sm) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 var(--space-lg);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    transition: transform var(--transition-base);
}

.nav-logo:hover {
    transform: translateY(-1px);
}

.logo-img {
    height: 65px;
    width: auto;
    transition: all var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header.scrolled .logo-img {
    height: 55px;
}

.nav-logo h2 {
    font-family: 'Poppins', var(--font-family-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.nav-logo h2 .linca-text {
    color: #20A0D8;
}

.nav-logo h2 .medical-text {
    color: #676767;
}

.nav-logo:hover {
    transform: translateY(-1px);
}

.nav-logo:hover .logo-img {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
    transform: scale(1.01);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-2xl);
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    position: relative;
    transition: all var(--transition-base);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
    background-color: rgba(32, 160, 216, 0.05);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.nav-toggle:hover {
    background-color: var(--light-gray);
}

.nav-toggle .bar {
    width: 24px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 2px 0;
    transition: all var(--transition-base);
    border-radius: 2px;
}

.nav-toggle.is-active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: var(--space-xl);
        box-shadow: var(--shadow-xl);
        transform: translateY(-100vh);
        transition: transform var(--transition-slow);
        border-top: 1px solid var(--medium-gray);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: var(--space-lg);
        text-align: center;
        border-radius: var(--radius-lg);
        margin-bottom: var(--space-sm);
    }

    .nav-toggle {
        display: flex;
    }

    .header {
        top: var(--space-sm);
        left: var(--space-sm);
        right: var(--space-sm);
        border-radius: var(--radius-xl);
    }
    
    .nav-container {
        padding: 0 var(--space-md);
    }
    
    .logo-img {
        height: 55px;
    }
    
    .header.scrolled .logo-img {
        height: 50px;
    }
    
    .nav-logo h2 {
        font-size: 1.3rem;
    }
    
    .nav-logo h2 .linca-text {
        color: #20A0D8;
    }
    
    .nav-logo h2 .medical-text {
        color: #676767;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding-top: 140px;
    /* Removed perspective and 3D transforms to prevent section overflow */
}

.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" opacity="0.1"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="white" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    pointer-events: none;
    animation: backgroundFloat 12s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.3) 85%, var(--white) 100%);
    pointer-events: none;
    z-index: 1;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    /* Removed 3D transforms to prevent overflow */
    animation: heroFloat 8s ease-in-out infinite;
}

.hero-content h1 {
    color: var(--white);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    text-shadow: 0 8px 16px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateZ(50px);
}

.hero-content .lead {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-3xl);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateZ(30px);
}

/* Hero Content Float Animation */
@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl);
    font-family: var(--font-family-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::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.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 15px 30px rgba(32, 160, 216, 0.4), 0 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all var(--transition-slow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px rgba(32, 160, 216, 0.5), 0 15px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--white);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3), 0 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all var(--transition-slow);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 25px 50px rgba(32, 160, 216, 0.4), 0 15px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Images with Simplified Effects */
.hero-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    /* Removed 3D perspective to prevent overflow */
    position: relative;
    z-index: 3;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 15px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-slow);
    width: 100%;
    aspect-ratio: 16/10;
    /* Simplified transform without 3D rotation */
    transform: translateY(0);
    animation: simpleFloat 6s ease-in-out infinite;
}

.hero-image:nth-child(2) {
    /* Offset animation for variation */
    animation: simpleFloat 6s ease-in-out infinite reverse;
    animation-delay: -3s;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(32, 160, 216, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 2;
    border-radius: var(--radius-2xl);
    transition: opacity var(--transition-base);
}

.hero-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 40px 80px rgba(32, 160, 216, 0.2), 0 30px 25px rgba(0, 0, 0, 0.15);
    animation-play-state: paused;
}

.hero-image:hover::before {
    opacity: 0.7;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
    transform: none !important;
    border-radius: var(--radius-2xl);
}

.hero-image:hover img {
    transform: scale(1.1) !important;
}

/* Simplified Floating Animation */
@keyframes simpleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero-image:nth-child(2) {
    animation-name: simpleFloat;
}

/* Modern Section Styling */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
    background: linear-gradient(to bottom, var(--white) 0%, rgba(248, 250, 252, 0.2) 70%, rgba(248, 250, 252, 0.1) 100%);
}

.section:nth-of-type(even) {
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.1) 0%, var(--white) 30%, rgba(250, 252, 255, 0.15) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
}

/* Card Styles */
.card {
    background: var(--light-gray);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--medium-gray);
}

.card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.card:hover::before {
    transform: scaleX(1);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3xl);
    margin-top: var(--space-3xl);
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible; /* Prevent unwanted vertical scrollbars */
    padding: 0;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-xl);
        padding: 0 var(--space-md);
        overflow-x: hidden;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-lg);
        padding: 0 var(--space-md);
        overflow-x: hidden;
    }
    
    /* Ensure all sections don't cause horizontal scroll */
    .section {
        overflow-x: hidden;
    }
    
    .product-category, .case-study {
        max-width: 100%;
        overflow-x: hidden;
    }
}

.product-category {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: visible; /* Changed from hidden to prevent scrollbars */
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
    position: relative;
    height: auto; /* Ensure height adjusts to content */
}

.product-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    z-index: 1;
}

.product-category:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
}

.product-category:hover::before {
    transform: scaleX(1);
}

.product-category h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    text-align: center;
    padding: var(--space-xl) var(--space-xl) 0;
}

.product-main-image {
    position: relative;
    overflow: hidden;
    height: 300px; /* Fixed height for consistent card sizes */
    max-height: 300px; /* Maximum height to control card size */
    margin-bottom: var(--space-xl);
    background: var(--white); /* Pure white background */
    padding: var(--space-lg); /* Add white padding around video */
    border-radius: var(--radius-lg);
}

.main-product-img {
    width: 100%;
    height: calc(100% - var(--space-2xl)); /* Account for padding */
    object-fit: contain; /* Keep full product in frame */
    transition: transform var(--transition-slow);
    border-radius: var(--radius-md);
}

/* Video styling for products */
.main-product-video {
    width: 100%;
    height: calc(100% - var(--space-2xl)); /* Account for padding */
    max-height: calc(300px - var(--space-2xl)); /* Control video height minus padding */
    object-fit: contain; /* Keep full product in frame without cropping */
    border-radius: var(--radius-md);
    transition: transform var(--transition-slow);
    background: var(--white); /* Pure white background */
    /* Optimize video for smooth playback */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.product-category:hover .main-product-img,
.product-category:hover .main-product-video {
    transform: scale(1.02); /* Reduced scale for subtlety */
}

/* Invisible overlay link for clickable area */
.product-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    cursor: pointer;
}

/* Responsive adjustments for product cards */
@media (max-width: 768px) {
    .product-main-image {
        height: 250px; /* Smaller height on mobile */
        max-height: 250px;
        padding: var(--space-md); /* Slightly less padding on tablet */
    }
    
    .main-product-video {
        max-height: calc(250px - var(--space-xl)); /* Account for reduced padding */
    }
}

@media (max-width: 480px) {
    .product-main-image {
        height: 200px; /* Even smaller on very small screens */
        max-height: 200px;
        padding: var(--space-sm); /* Minimal padding on small mobile */
    }
    
    .main-product-video {
        max-height: calc(200px - var(--space-md)); /* Account for minimal padding */
    }
}

/* Removed old overlay styles - replaced with clean video presentation */
/*
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-base);
}

.product-main-image:hover .image-overlay {
    opacity: 1;
}

.product-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-overlay);
    color: var(--white);
    text-decoration: none;
    opacity: 0;
    transition: all var(--transition-base);
    z-index: 2;
}

.product-main-image:hover .product-link {
    opacity: 1;
}

.learn-more-btn {
    background: var(--white);
    color: var(--primary-blue);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.learn-more-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}
*/

.product-description {
    padding: 0 var(--space-xl) var(--space-xl);
    text-align: center;
}

.product-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: var(--space-lg);
}

.cta-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
    position: relative;
}

.cta-link::after {
    content: '→';
    margin-left: var(--space-sm);
    transition: transform var(--transition-base);
}

.cta-link:hover {
    color: var(--primary-blue-dark);
}

.cta-link:hover::after {
    transform: translateX(4px);
}

/* Product Page Styles */
.product-page {
    padding: calc(120px + var(--space-3xl)) 0 var(--space-4xl);
    background: var(--light-gray);
}

.product-details {
    padding: calc(120px + var(--space-3xl)) 0 var(--space-4xl);
    background: var(--light-gray);
}

.product-details h1 {
    margin-top: 0;
    margin-bottom: var(--space-xl);
}

.breadcrumb {
    margin-bottom: var(--space-xl);
    font-size: 0.95rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-base);
}

.breadcrumb a:hover {
    color: var(--primary-blue-dark);
}

.product-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
    padding: var(--space-3xl) 0;
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.product-header h1 {
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
}

.product-header .subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    font-weight: 500;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    margin-bottom: var(--space-4xl);
}

.product-info {
    background: var(--white);
    padding: var(--space-3xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.product-info h2 {
    color: var(--primary-blue);
    margin-bottom: var(--space-lg);
    font-size: 2rem;
}

.product-info h3 {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    margin-top: var(--space-xl);
    font-size: 1.4rem;
    position: relative;
    padding-left: 0;
    font-weight: 600;
}

.product-info h3::before {
    display: none;
}

.product-info p {
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: var(--space-lg);
    font-size: 1.05rem;
}

.product-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-xl);
}

.product-info li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

.product-info li:hover {
    color: var(--text-dark);
    transform: translateX(2px);
}

.product-info li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.product-info li:hover::before {
    background: var(--primary-blue-dark);
    transform: scale(1.3);
}

/* Gallery Styles */
.product-gallery-container {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-lg);
}

.product-gallery-container h3 {
    color: var(--primary-blue);
    margin-bottom: var(--space-xl);
    text-align: center;
    font-size: 1.75rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    background: var(--white);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Main Product Showcase */
.main-product-showcase {
    margin-bottom: var(--space-xl);
    text-align: center;
}

.showcase-image {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
    cursor: pointer;
}

.showcase-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
}

.lightbox.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    min-width: 600px;
    min-height: 400px;
    width: auto;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-close {
    top: -60px;
    right: 0;
}

.lightbox-prev {
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--white);
    transform: scale(1.1);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Lightbox Mobile Responsive */
@media (max-width: 768px) {
    .lightbox img {
        width: 90vw;
        min-height: 60vh;
        max-width: 90vw;
        max-height: 85vh;
    }
    
    .lightbox-content {
        max-width: 92vw;
        max-height: 90vh;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .lightbox img {
        width: 85vw;
        min-height: 50vh;
        max-width: 85vw;
        max-height: 80vh;
    }
}

/* Video thumbnail play button overlay */
.video-thumbnail-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 320px;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
}

.video-thumbnail-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 160, 216, 0.2);
}

.video-thumbnail-container .case-study-thumb {
    width: 100%;
    height: auto;
    display: block;
    transition: all var(--transition-base);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(32, 160, 216, 0.12);
}

.video-thumbnail-container:hover .case-study-thumb {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(32, 160, 216, 0.9);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-base);
    backdrop-filter: blur(5px);
    border: 3px solid var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-thumbnail-container:hover .video-play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-overlay::before {
    content: "▶";
    color: var(--white);
    font-size: 1.8rem;
    margin-left: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Additional video overlay for smaller screens */
@media (max-width: 768px) {
    .video-play-overlay {
        width: 60px;
        height: 60px;
        opacity: 0.8;
    }
    
    .video-play-overlay::before {
        font-size: 1.5rem;
    }
    
    .video-thumbnail-container:hover .video-play-overlay {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@media (max-width: 480px) {
    .video-play-overlay {
        width: 50px;
        height: 50px;
        opacity: 0.9;
    }
    
    .video-play-overlay::before {
        font-size: 1.2rem;
        margin-left: 2px;
    }
}

/* Product Page Styles */
.related-products {
    background: var(--light-gray);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    margin: var(--space-4xl) 0;
}

.related-products h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: var(--space-2xl);
    font-size: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.related-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.related-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.related-item:hover img {
    transform: scale(1.05);
}

.related-item h3 {
    padding: var(--space-lg);
    margin: 0;
    color: var(--text-dark);
    font-size: 1.2rem;
    text-align: center;
}

/* Contact CTA Section */
.contact-cta {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    text-align: center;
    margin: var(--space-3xl) 0;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    font-size: 1.8rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg) var(--space-2xl);
    background: var(--white);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--off-white);
}

.cta-button.primary {
    background: var(--primary-blue);
    color: var(--white);
    margin-right: var(--space-md);
}

.cta-button.primary:hover {
    background: var(--primary-blue-dark);
}

.cta-button.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-button.secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* Mobile Responsive Styles for Products */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-xl);
        margin-top: var(--space-xl);
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .product-category {
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        position: relative !important;
    }
    
    #products {
        overflow-x: hidden !important;
    }
    
    #products .container {
        padding-left: var(--space-md) !important;
        padding-right: var(--space-md) !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}

@media (max-width: 480px) {
    .products-grid {
        gap: var(--space-lg);
        grid-template-columns: 1fr !important;
        padding: 0 !important;
        margin: var(--space-lg) 0 !important;
        width: 100% !important;
    }
    
    .product-category {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    #products .container {
        padding-left: var(--space-sm) !important;
        padding-right: var(--space-sm) !important;
    }
    
    .container {
        padding: 0 var(--space-sm);
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
}

/* Force single column on very small screens */
@media (max-width: 600px) {
    .products-grid {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: var(--space-lg) 0 !important;
    }
    
    .product-category {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 var(--space-lg) 0 !important;
        float: none !important;
        position: static !important;
    }
    
    .product-category:last-child {
        margin-bottom: 0 !important;
    }
}

/* Case Studies */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
    overflow-y: visible; /* Prevent unwanted vertical scrollbars */
}

@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-lg);
        padding: 0 var(--space-md);
    }
}

.case-study {
    text-align: center;
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    overflow: visible; /* Prevent scrollbars */
    height: auto; /* Let height adjust to content */
}

.case-study h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--text-dark);
}

.case-study p {
    color: var(--text-medium);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

/* Main content padding to avoid fixed header overlap */
main {
    padding-top: 120px;
    min-height: 100vh;
}

/* Mobile adjustments for main padding */
@media (max-width: 768px) {
    main {
        padding-top: 100px;
    }
    
    .case-studies-page {
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    main {
        padding-top: 90px;
    }
    
    .case-studies-page {
        padding-top: 90px;
    }
}

/* Case Study Page Styles */
.case-studies-page {
    padding-top: 120px;
    min-height: 100vh;
    background: var(--off-white);
}

.breadcrumb {
    margin-bottom: var(--space-xl);
    color: var(--text-medium);
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
}

.case-studies-page h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.page-intro {
    font-size: 1.2rem;
    color: var(--text-medium);
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-4xl);
    line-height: 1.6;
}

/* About Page Styles */
.about-page {
    padding-top: 140px;
    min-height: 100vh;
    background: var(--off-white);
}

.about-page h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.about-page .about-content {
    margin-bottom: var(--space-4xl);
}

.about-page .about-content .card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.about-page .about-content .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.about-page .about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    color: var(--text-medium);
}

.about-page .about-content p:last-child {
    margin-bottom: 0;
}

/* About Page Mobile Responsive */
@media (max-width: 768px) {
    .about-page {
        padding-top: 120px;
    }
    
    .about-page .about-content .card {
        padding: var(--space-xl);
    }
    
    .about-page .about-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .about-page {
        padding-top: 110px;
    }
    
    .about-page .about-content .card {
        padding: var(--space-lg);
    }
    
    .breadcrumb {
        margin-bottom: var(--space-lg);
        font-size: 0.9rem;
    }
}

/* Contact Page Styles */
.contact-page {
    padding-top: 140px;
    /* Removed min-height: 100vh to prevent forced scrollbars */
    background: var(--off-white);
}

.contact-page h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.contact-content {
    margin-bottom: var(--space-4xl);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-4xl);
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--space-xl);
    font-weight: 600;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(32, 160, 216, 0.3);
    transition: all 0.3s ease;
}

.contact-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 160, 216, 0.4);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.contact-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.contact-info p {
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

.contact-info a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-base);
}

.contact-info a:hover {
    color: var(--primary-blue-dark);
}

/* Technical Support Card */
.technical-support-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

/* Compact version for smaller card below main contact */
.technical-support-card.compact {
    padding: 20px;
    margin-top: 20px;
    border-radius: 15px;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
}

.technical-support-card::before {
    display: none;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.technical-support-card h3 {
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: left;
    position: relative;
}

.technical-support-card h4 {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: left;
    position: relative;
}

.technical-support-card h3::after {
    display: none;
}

.support-profile {
    background: transparent;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: none;
}

.support-profile.compact {
    background: transparent;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    border: none;
}

.profile-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: 50%;
    width: 60px;
    height: 60px;
    min-width: 60px;
    flex-shrink: 0;
}

.profile-icon.small {
    width: 45px;
    height: 45px;
    min-width: 45px;
}

.support-profile .contact-info h4 {
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.support-profile .contact-info h5 {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
}

.support-profile .role {
    color: #666;
    font-style: italic;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.contact-info.compact {
    flex: 1;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-methods p {
    margin: 0;
    font-size: 13px;
}

.contact-methods a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.contact-methods a:hover {
    color: var(--primary-blue-dark);
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: var(--space-md);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-base);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(32, 160, 216, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-3xl);
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    align-self: flex-start;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 160, 216, 0.3);
}

/* Map Section */
.map-section {
    position: sticky;
    top: 160px;
    height: fit-content;
}

.map-container {
    margin-bottom: var(--space-lg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-address {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--light-gray);
}

.map-address p {
    margin: var(--space-xs) 0;
    color: var(--text-medium);
    line-height: 1.5;
}

.map-address p:first-child {
    color: var(--text-dark);
    font-weight: 500;
}

/* Contact Page Mobile Responsive */
@media (max-width: 1024px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .map-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding-top: 120px;
    }
    
    .contact-card {
        padding: var(--space-xl);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info-section {
        gap: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .contact-page {
        padding-top: 110px;
    }
    
    .contact-card {
        padding: var(--space-lg);
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .contact-icon {
        align-self: center;
    }
}

.case-study-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    margin-bottom: var(--space-3xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.case-study-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-xl);
    border-bottom: 2px solid var(--light-gray);
}

.case-study-header h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.case-study-header h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
}

.case-study-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.video-container {
    position: relative;
}

.video-placeholder {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    text-align: center;
    color: var(--white);
    transition: all var(--transition-base);
    cursor: pointer;
}

.video-placeholder:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.video-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

.video-placeholder h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
}

.video-placeholder p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
}

.play-button {
    background: var(--white);
    color: var(--primary-blue);
    border: none;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.video-frame {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-video {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.close-video:hover {
    background: rgba(0, 0, 0, 0.9);
}

.case-study-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-study-details h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: var(--space-lg);
}

.case-study-details p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.case-study-details ul {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
}

.case-study-details li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--light-gray);
    color: var(--text-medium);
}

.case-study-details li:last-child {
    border-bottom: none;
}

.case-study-details strong {
    color: var(--text-dark);
}

.case-study-outcomes {
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
}

.case-study-outcomes h5 {
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
}

.hidden {
    display: none !important;
}

/* Case Study CTA Section */
.case-study-cta {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-4xl);
    text-align: center;
    margin: var(--space-4xl) 0;
}

.case-study-cta h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: var(--space-lg);
}

.case-study-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.case-study-cta .cta-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.value-item {
    text-align: center;
    padding: var(--space-xl);
    transition: all var(--transition-slow);
    transform-style: preserve-3d;
    transform: perspective(500px) rotateX(0deg) rotateY(0deg);
    position: relative;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(32, 160, 216, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: var(--radius-xl);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.value-item:hover::before {
    opacity: 1;
}

.value-item:hover {
    transform: perspective(500px) rotateX(-5deg) rotateY(5deg) translateZ(30px);
}

.value-item h5,
.value-item p {
    position: relative;
    z-index: 2;
}

.value-item h5 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin: 0;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Section */
.contact {
    background: var(--off-white); /* Changed from dark to light */
    color: var(--text-dark); /* Changed from white to dark */
    padding: var(--space-4xl) 0;
}

.contact h2 {
    color: var(--text-dark); /* Changed from white to dark */
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-3xl);
    margin-top: var(--space-2xl);
}

.contact-info h3 {
    color: var(--primary-blue);
    margin-bottom: var(--space-lg);
}

.contact-info p {
    color: var(--text-medium); /* Changed from white to dark theme */
    margin-bottom: var(--space-md);
}

.contact-info strong {
    color: var(--text-dark); /* Changed from white to dark */
}

/* Contact Form Styles */
.contact-form {
    background: var(--light-gray); /* Changed to light background */
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid var(--medium-gray); /* Changed border color */
    box-shadow: var(--shadow-sm);
}

.contact-form h3 {
    color: var(--primary-blue);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    color: var(--white);
    font-weight: 500;
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
    transition: all var(--transition-base);
    transform-origin: left top;
}

.form-group.focused label,
.form-group:has(input:not(:placeholder-shown)) label,
.form-group:has(textarea:not(:placeholder-shown)) label {
    transform: translateY(-8px) scale(0.9);
    color: var(--primary-blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: var(--font-family-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(32, 160, 216, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: var(--space-xl);
}

.form-submit .btn {
    min-width: 200px;
}

/* Submit Button Specific Styling */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl);
    font-family: var(--font-family-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    
    /* Primary button styling */
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
    
    /* Remove browser default styles */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
}

.submit-btn::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 var(--transition-slow);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-blue-dark);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.submit-btn:focus {
    outline: none;
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(32, 160, 216, 0.3);
}

/* Enhanced submit button states */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    background: var(--secondary-gray);
}

.submit-btn.loading {
    pointer-events: none;
    position: relative;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: button-loading 1s linear infinite;
    margin-left: var(--space-sm);
}

.submit-btn.success {
    background: var(--success);
    pointer-events: none;
}

.submit-btn.success::after {
    content: '✓';
    position: absolute;
    font-size: 1.2rem;
    animation: none;
    border: none;
    margin-left: var(--space-sm);
}

.submit-btn.error {
    background: var(--error);
    pointer-events: none;
}

.submit-btn.error::after {
    content: '✕';
    position: absolute;
    font-size: 1.2rem;
    animation: none;
    border: none;
    margin-left: var(--space-sm);
}

/* Enhanced button hover effects */
.submit-btn:not(:disabled):not(.loading):not(.success):not(.error):hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.submit-btn:not(:disabled):not(.loading):not(.success):not(.error):active {
    transform: translateY(-1px);
}

@keyframes button-loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Form validation styling */
.form-group.error input,
.form-group.error textarea {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.form-group.error label {
    color: var(--error);
}

.form-group.success input,
.form-group.success textarea {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Form success message */
.form-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
    text-align: center;
    color: var(--success);
    display: none;
}

.form-success.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--secondary-gray);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-blue);
    margin-bottom: var(--space-lg);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: var(--space-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-section a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--secondary-gray);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-images {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .hero-content .lead {
        font-size: 1.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    /* Product Detail Page Mobile Optimizations */
    .main-product-showcase {
        margin: 0;
        padding: 0 var(--space-md);
    }
    
    .showcase-image {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }
    
    .product-gallery-section {
        padding: 0 var(--space-md);
        margin: var(--space-xl) 0;
    }
    
    .detail-gallery h3 {
        font-size: 1.25rem;
        margin-bottom: var(--space-md);
    }
    
    /* Product Content Mobile Layout */
    .product-content {
        grid-template-columns: 1fr !important;
        gap: var(--space-xl) !important;
        margin-bottom: var(--space-xl);
    }
    
    .product-info {
        padding: var(--space-xl) var(--space-lg);
        margin: 0;
    }
    
    .product-info h2 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: var(--space-md);
    }
    
    .product-info h3 {
        font-size: 1.25rem;
        margin-top: var(--space-lg);
        margin-bottom: var(--space-sm);
    }
    
    .product-info ul {
        padding-left: var(--space-lg);
    }
    
    .product-info li {
        margin-bottom: var(--space-xs);
        line-height: 1.6;
    }
    
    /* Breadcrumb Mobile */
    .breadcrumb {
        font-size: 0.9rem;
        margin-bottom: var(--space-md);
        padding: 0 var(--space-md);
    }
    
    /* Product Details Page Header */
    .product-details h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
        text-align: center;
        padding: 0 var(--space-md);
        margin-top: 60px !important;
        margin-bottom: var(--space-lg);
    }
    
    /* Case Study Page Mobile Optimizations */
    .case-study-header {
        padding: var(--space-lg);
        text-align: center;
    }
    
    .case-study-header h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        margin-bottom: var(--space-md);
    }
    
    .download-section {
        text-align: center;
        margin: var(--space-xl) 0;
        padding: 0 var(--space-md);
    }
    
    .get-details-btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Footer Mobile Optimization */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .footer-section img {
        height: 200px !important;
        width: auto !important;
        max-width: 100%;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .product-info,
    .product-gallery-container {
        padding: var(--space-xl);
    }
    
    /* Case Study Responsive */
    .case-study-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .case-study-card {
        padding: var(--space-xl);
    }
    
    .video-placeholder {
        padding: var(--space-xl);
    }
    
    .video-frame {
        height: 250px;
    }
    
    .case-study-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Related Products Responsive */
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .related-products {
        padding: var(--space-xl);
        margin: var(--space-xl) 0;
    }
    
    .contact-cta {
        padding: var(--space-xl);
        margin: var(--space-xl) 0;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .hero-images {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        gap: var(--space-lg);
    }
    
    /* Enhanced Mobile Styles for Product & Case Study Pages */
    .showcase-image {
        max-height: 250px;
    }
    
    .gallery-item {
        margin-bottom: var(--space-md);
    }
    
    .gallery-item img {
        width: 100%;
        height: auto;
        border-radius: var(--radius-md);
    }
    
    .product-gallery-section h2,
    .detail-gallery h3 {
        font-size: 1.5rem;
        text-align: center;
        padding: 0 var(--space-sm);
    }
    
    .case-study-header {
        padding: var(--space-md);
    }
    
    .case-study-header h1 {
        font-size: clamp(1.5rem, 4vw, 2rem);
        line-height: 1.3;
    }
    
    .video-container {
        margin: 0 var(--space-sm);
        border-radius: var(--radius-lg);
    }
    
    .download-section {
        padding: 0 var(--space-sm);
    }
    
    .get-details-btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }
    
    /* Footer improvements for small screens */
    .footer-section {
        margin-bottom: var(--space-lg);
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: var(--space-sm);
    }
    
    .footer-section ul li {
        margin-bottom: var(--space-xs);
    }
    
    .footer-section img {
        height: 150px !important;
    }
}

/* Floating Contact Widget */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    /* Ensure it stays within viewport */
    max-width: calc(100vw - 60px);
    /* Prevent interference with other elements */
    pointer-events: auto;
}

.floating-contact-btn {
    width: 180px;
    height: 60px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    box-shadow: 
        0 12px 30px rgba(32, 160, 216, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: perspective(1000px) translateZ(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatBounce 2s ease-in-out infinite, pulseGlow 3s ease-in-out infinite;
    font-family: var(--font-family-primary);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    /* Mobile touch support */
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    /* Additional iOS Safari support */
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    /* Ensure clickable area */
    pointer-events: auto;
}

.floating-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.floating-contact-btn:hover::before {
    left: 100%;
}

.floating-contact-btn:hover {
    transform: perspective(1000px) translateZ(15px) scale(1.05);
    box-shadow: 
        0 20px 50px rgba(32, 160, 216, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--primary-blue) 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

.floating-contact-btn svg {
    transition: transform 0.3s ease;
}

.floating-contact-btn:hover svg {
    transform: scale(1.2) rotate(10deg);
}

/* Mobile touch feedback */
.floating-contact-btn:active {
    transform: perspective(1000px) translateZ(10px) scale(0.95);
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
}

@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .floating-contact-btn:hover {
        transform: perspective(1000px) translateZ(0);
        box-shadow: 
            0 12px 30px rgba(32, 160, 216, 0.4),
            0 6px 20px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .floating-contact-btn:active {
        transform: perspective(1000px) translateZ(5px) scale(0.95);
        background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
        box-shadow: 
            0 8px 20px rgba(32, 160, 216, 0.5),
            0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

.floating-contact-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: perspective(1000px) translateZ(0) rotateX(10deg) scale(0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    will-change: transform, opacity;
    -webkit-transform: perspective(1000px) translateZ(0) rotateX(10deg) scale(0.8);
    -webkit-transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-contact-panel.active {
    transform: perspective(1000px) translateZ(30px) rotateX(0deg) scale(1);
    -webkit-transform: perspective(1000px) translateZ(30px) rotateX(0deg) scale(1);
    opacity: 1;
    visibility: visible;
}

.floating-contact-header {
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    border-radius: 24px 24px 0 0;
    position: relative;
}

.floating-contact-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.floating-contact-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-contact-content {
    padding: 28px;
}

.contact-info-quick {
    margin-bottom: 20px;
}

.contact-item-quick {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(66, 153, 225, 0.1);
    border-radius: 12px;
    border-left: 4px solid #4299e1;
    transition: all 0.3s ease;
}

.contact-item-quick:hover {
    background: rgba(66, 153, 225, 0.15);
    transform: translateX(5px);
}

.contact-item-quick .contact-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    box-shadow: 0 2px 8px rgba(32, 160, 216, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-item-quick:hover .contact-icon {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 160, 216, 0.4);
}

.contact-item-quick .contact-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.contact-item-quick .label {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.contact-item-quick .value {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.quick-contact-form {
    margin-top: 0;
}

.form-row-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.form-group-quick {
    margin-bottom: 16px;
}

.form-group-quick input,
.form-group-quick textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(32, 160, 216, 0.15);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
    font-family: var(--font-family-primary);
    letter-spacing: 0.25px;
}

.form-group-quick input::placeholder,
.form-group-quick textarea::placeholder {
    color: #8A8A8A;
    font-weight: 500;
}

.form-group-quick input:focus,
.form-group-quick textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 
        0 0 0 4px rgba(32, 160, 216, 0.08),
        0 4px 12px rgba(32, 160, 216, 0.15);
    transform: perspective(1000px) translateZ(2px);
}

.form-group-quick textarea {
    resize: vertical;
    min-height: 80px;
}

.quick-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-family-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: perspective(1000px) translateZ(0);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.quick-submit-btn::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 ease;
}

.quick-submit-btn:hover {
    transform: perspective(1000px) translateZ(4px) translateY(-2px);
    box-shadow: 
        0 12px 30px rgba(32, 160, 216, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, #155a8a 100%);
}

.quick-submit-btn:hover::before {
    left: 100%;
}

.quick-submit-btn:active {
    transform: perspective(1000px) translateZ(1px) translateY(1px);
}

@keyframes floatBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: perspective(1000px) translateZ(0) translateY(0);
    }
    40% {
        transform: perspective(1000px) translateZ(5px) translateY(-8px);
    }
    60% {
        transform: perspective(1000px) translateZ(5px) translateY(-4px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 
            0 12px 30px rgba(32, 160, 216, 0.4),
            0 6px 20px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 12px 30px rgba(32, 160, 216, 0.6),
            0 6px 20px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 0 8px rgba(32, 160, 216, 0.1),
            0 0 0 16px rgba(32, 160, 216, 0.05);
    }
}

/* Mobile Responsive for Floating Widget */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        right: 20px;
        z-index: 1001;
    }
    
    .floating-contact-btn {
        width: 140px;
        height: 50px;
        font-size: 0.9rem;
        border-radius: 25px;
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .floating-contact-panel {
        width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
        bottom: 70px;
        max-width: none;
        position: fixed !important;
        z-index: 1002;
        border-radius: 20px;
    }
    
    .floating-contact-content {
        padding: 20px;
    }
    
    .form-row-quick {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-group-quick input,
    .form-group-quick textarea {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .quick-submit-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .floating-contact {
        bottom: 15px;
        right: 15px;
        z-index: 1001;
    }
    
    .floating-contact-btn {
        width: 120px;
        height: 45px;
        font-size: 0.85rem;
        border-radius: 22px;
        /* Ensure accessibility compliance */
        min-width: 44px;
        min-height: 44px;
        /* Enhanced touch support */
        touch-action: manipulation;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .floating-contact-panel {
        width: calc(100vw - 30px);
        right: calc(-100vw + 60px);
        bottom: 60px;
        max-height: 70vh;
        overflow-y: auto;
        position: fixed !important;
        left: 15px;
        right: 15px;
        width: calc(100vw - 30px);
        z-index: 1002;
    }
    
    .floating-contact-content {
        padding: 15px;
    }
    
    .floating-contact-header {
        padding: 15px 20px 10px;
    }
    
    .floating-contact-header h3 {
        font-size: 16px;
    }
}

/* Extra small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .floating-contact-panel {
        width: calc(100vw - 20px);
        left: 10px;
        right: 10px;
        bottom: 55px;
        position: fixed !important;
    }
    
    .floating-contact-content {
        padding: 12px;
    }
}

/* Video Section Styles */
.video-section {
    margin: 3rem 0;
    text-align: center;
}

.video-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Download Section Styles */
.download-section {
    margin: 3rem 0;
    text-align: center;
}

.get-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
    position: relative;
    overflow: hidden;
}

.get-details-btn::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;
}

.get-details-btn:hover::before {
    left: 100%;
}

.get-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 115, 232, 0.4);
}

.get-details-btn svg {
    transition: transform 0.3s ease;
}

.get-details-btn:hover svg {
    transform: translateY(2px);
}

/* Responsive Video Styles */
@media (max-width: 768px) {
    .video-section {
        margin: 2rem 0;
        padding: 0 var(--space-md);
    }
    
    .video-container {
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .video-container video {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }
    
    .get-details-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 250px;
        margin: var(--space-lg) auto 0;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .video-section {
        margin: 1.5rem 0;
        padding: 0 var(--space-sm);
    }
    
    .video-container {
        border-radius: var(--radius-md);
    }
    
    .video-container video {
        max-height: 220px;
    }
    
    .get-details-btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
        max-width: 200px;
    }
}

/* Safari/iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific styles */
    .header {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    .video-container video {
        -webkit-playsinline: true;
    }
}

/* Safari Desktop/Mobile Compatibility */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .products-grid {
        display: -webkit-grid;
        display: grid;
        -webkit-grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .case-studies-grid {
        display: -webkit-grid;
        display: grid;
        -webkit-grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Safari Mobile specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 768px) {
    .products-grid {
        -webkit-grid-template-columns: 1fr !important;
        grid-template-columns: 1fr !important;
    }
    
    .case-studies-grid {
        -webkit-grid-template-columns: 1fr !important;
        grid-template-columns: 1fr !important;
    }
}

/* Additional Mobile Safari fixes */
@media (max-width: 768px) {
    /* Prevent zoom on input focus in iOS */
    input, textarea, select {
        font-size: 16px !important;
    }
    
    /* Fix for iOS viewport units */
    .hero {
        min-height: -webkit-fill-available;
        min-height: fill-available;
    }
    
    /* Improve scrolling performance on iOS */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* MacOS Safari specific fixes */
@media (min-width: 768px) {
    /* Ensure proper grid behavior on Safari desktop */
    .products-grid {
        display: -webkit-grid;
        display: grid;
    }
    
    .case-studies-grid {
        display: -webkit-grid;
        display: grid;
    }
}

/* Case Study Detail Page Mobile Optimizations */
@media (max-width: 768px) {
    .case-study-content {
        grid-template-columns: 1fr !important;
        gap: var(--space-xl) !important;
        padding: 0 var(--space-md);
    }
    
    .case-study-details {
        order: 1;
        text-align: center;
    }
    
    .case-study-details h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
        margin-bottom: var(--space-lg);
    }
    
    .case-study-details h3 {
        font-size: 1.25rem;
        margin-top: var(--space-lg);
        margin-bottom: var(--space-md);
        text-align: left;
    }
    
    .case-study-details p {
        text-align: left;
        line-height: 1.6;
        margin-bottom: var(--space-md);
    }
    
    .case-study-details ul {
        text-align: left;
        padding-left: var(--space-lg);
    }
    
    .case-study-details li {
        margin-bottom: var(--space-xs);
        line-height: 1.6;
    }
    
    /* Universal Mobile Typography for Details Pages */
    .main-content {
        padding: 0;
        margin: 0;
    }
    
    .main-content p {
        padding: 0 var(--space-md);
        line-height: 1.6;
        font-size: 1rem;
    }
    
    .main-content h2,
    .main-content h3 {
        padding: 0 var(--space-md);
    }
    
    /* Mobile-specific section spacing */
    .main-content section {
        margin-bottom: var(--space-xl);
    }
}

