/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d5016;
    --primary-dark: #1a3009;
    --primary-light: #4a7c2a;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --background-color: #f8f9fa;
    --white: #ffffff;
    --black: #212529;
    --gray-light: #e9ecef;
    --gray-medium: #6c757d;
    --gray-dark: #495057;
    --border-radius: 8px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Vazirmatn','farnaz' ,'B Farnaz', 'Tahoma', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--black);
    direction: rtl;
    text-align: right;
}

/* B Farnaz Font Import */
@import url('https://fonts.googleapis.com/css2?family=B+Farnaz:wght@300;400;500;600;700&display=swap');
@font-face {
  font-family: 'B Farnaz';
  src: url('fonts/BFarnaz.ttf') format('truetype');
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    font-family: 'B Farnaz','farnaz' , sans-serif;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* bigger logo in header */
.nav-logo-img {
    width: 96px; /* اندازه پیش‌فرض بزرگ‌تر */
    height: auto;
    display: block;
}

/* larger on wider screens */
@media (min-width: 768px) {
    .nav-logo-img {
        width: 120px;
    }
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: var(--transition);
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--gray-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
    position: absolute;
}

.slide:first-child {
    background-image: linear-gradient(135deg, rgba(45, 80, 22, 0.4) 0%, rgba(74, 124, 42, 0.4) 100%), 
                      url('./images/u7679245785_A_professional_image_of_a_modern_rack_and_servers_14cc16ae-5d49-4b7b-b9d3-87f2d109c4cb_2.webp');
}

.slide:nth-child(2) {
    background-image: linear-gradient(135deg, rgba(45, 80, 22, 0.4) 0%, rgba(74, 124, 42, 0.4) 100%), 
                      url('./images/u7679245785_Super_realistic_network_switches_illuminated_in_d_46ca1fa2-6fbd-4834-88ab-d4451a001c0c_1.webp');
}

.slide:nth-child(3) {
    background-image: linear-gradient(135deg, rgba(45, 80, 22, 0.4) 0%, rgba(74, 124, 42, 0.4) 100%), 
                      url('./images/u7679245785_A_sleek_virtual_network_environment_showcasing_ad_ffb5e7ad-7593-44d5-9f4d-19a35e3a13ae_1.webp');
}

.slide:nth-child(4) {
    background-image: linear-gradient(135deg, rgba(45, 80, 22, 0.4) 0%, rgba(74, 124, 42, 0.4) 100%), 
                      url('./images/u7679245785_A_security_camera_equipment_slider_image_featurin_3d6fa799-a450-41bc-a654-0b08403311e3_0.webp');
}

.slide:nth-child(5) {
    background-image: linear-gradient(135deg, rgba(45, 80, 22, 0.4) 0%, rgba(74, 124, 42, 0.4) 100%), 
                      url('./public/u7679245785_A_full_detailed_open_hard_disk_drive_submerged_in_e2d8bda5-11f2-4d0f-a8e6-3d1840353346_1.webp');
}
.slide.slide-6,
.slide:nth-child(6) {
    background-image:
        linear-gradient(135deg, rgba(45,80,22,0.4) 0%, rgba(74,124,42,0.4) 100%),
        url('./public/indus.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    width: 100%;
    padding: 0 5vw;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 2vh;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    max-width: 90%;
}

.hero-content p {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 4vh;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    padding: clamp(40px, 8vh, 80px) clamp(10px, 3vw, 20px);
    margin: clamp(1rem, 3vh, 2rem) auto;
    max-width: min(400px, 80vw);
    border-radius: var(--border-radius);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
}

.cta-btn {
    background: var(--white);
    color: var(--primary-color);
    padding: 1.5vh 4vw;
    border: none;
    border-radius: var(--border-radius);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    min-height: 50px;
    min-width: 200px;
}

.cta-btn:hover {
    background: var(--gray-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 4vw;
    transform: translateY(-50%);
    left: 0;
    pointer-events: none; /* Allow clicks to pass through container */
    z-index: 10;
}

.prev-slide, .next-slide {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: clamp(50px, 4vw, 70px);
    height: clamp(50px, 4vw, 70px);
    border-radius: 50%;
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto; /* Re-enable clicks on buttons */
    z-index: 15;
}

.prev-slide:hover, .next-slide:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 4vh;
    left: 4vw;
    z-index: 15;
}

.auto-toggle {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1vh 1.5vw;
    border-radius: 25px;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    min-width: 50px;
    min-height: 50px;
    font-family: inherit;
    backdrop-filter: blur(10px);
}

.auto-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.auto-toggle.active {
    background: rgba(45, 80, 22, 0.8);
    border-color: var(--primary-light);
    color: var(--white);
}

.auto-toggle.active:hover {
    background: rgba(45, 80, 22, 0.9);
}

.auto-icon {
    font-size: 1rem;
    transition: var(--transition);
}

.auto-toggle.active .auto-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.auto-text {
    font-size: 0.85rem;
}

/* Services Overview */
.services-overview {
    padding: 5vh 0;
    background: var(--background-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 3rem;
    font-weight: 700;
}

.services-grid {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.service-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(45, 80, 22, 0.1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    cursor: pointer;
    transform: translateY(0);
}

/* Visual polish for auto-scrolling product lists */
.auto-scroll-enabled {
    /* keep user able to scroll — JS will animate scrollLeft */
    overflow-x: auto;
    scroll-behavior: auto; /* JS handles smoothness */
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* subtle gradient edges to indicate motion (RTL-friendly: show left and right fades) */
.auto-scroll-enabled::before,
.auto-scroll-enabled::after {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: 8%;
    pointer-events: none;
    z-index: 10;
    mix-blend-mode: multiply;
}

.auto-scroll-enabled::before {
    right: 0; /* fade on right edge */
    background: linear-gradient(90deg, rgba(248,249,250,0.95), rgba(248,249,250,0));
}

.auto-scroll-enabled::after {
    left: 0; /* fade on left edge */
    background: linear-gradient(270deg, rgba(248,249,250,0.95), rgba(248,249,250,0));
}

/* when user hovers, slightly reduce motion via CSS hint (JS actually pauses) */
.auto-scroll-enabled:hover .product-card,
.auto-scroll-enabled:focus-within .product-card {
    transition-duration: 220ms;
}

/* improve perceived motion by slightly scaling active card on hover */
.auto-scroll-enabled .product-card {
    will-change: transform, opacity;
}

/* keep existing product-enter animations compatible */
.product-enter {
    opacity: 0;
    /* start shifted to the RIGHT and slide LEFT into place */
    transform: translateX(30px) translateY(8px) scale(0.995);
    transition: transform 420ms cubic-bezier(.2,.9,.2,1), opacity 420ms ease, box-shadow 420ms ease;
    will-change: transform, opacity;
}

.product-enter--in {
    opacity: 1;
    /* final position */
    transform: translateX(0) translateY(0) scale(1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Services Overview Animations */
.service-card {
    opacity: 0;
    transform: translateY(14px) scale(0.995);
    transition: transform 420ms cubic-bezier(.2,.9,.2,1), opacity 420ms ease, box-shadow 420ms ease;
    will-change: transform, opacity;
}

/* When JS adds the --in class the card animates into place */
.product-enter--in {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Subtle hover to enhance the sleek feel */
.product-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* Grid niceties (optional - keeps layout tidy) */
.manufacturer-products-grid,
.manufacturer-products-display,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 80, 22, 0.05), transparent);
    transition: left 0.6s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(45, 80, 22, 0.15);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card:active {
    transform: translateY(-4px) scale(1.01);
    transition: all 0.1s ease;
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
    display: inline-block;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary-dark);
    filter: drop-shadow(0 0 10px rgba(45, 80, 22, 0.3));
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover h3 {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.service-card p {
    color: var(--gray-dark);
    line-height: 1.8;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    opacity: 0.8;
}

.service-card:hover p {
    color: var(--black);
    opacity: 1;
    transform: translateY(-1px);
}

/* Staggered animation on page load */
.service-card:nth-child(1) {
    animation: slideInUp 0.6s ease 0.1s both;
}

.service-card:nth-child(2) {
    animation: slideInUp 0.6s ease 0.2s both;
}

.service-card:nth-child(3) {
    animation: slideInUp 0.6s ease 0.3s both;
}

.service-card:nth-child(4) {
    animation: slideInUp 0.6s ease 0.4s both;
}

.service-card:nth-child(5) {
    animation: slideInUp 0.6s ease 0.5s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for icons */
@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.service-card:hover .service-icon {
    animation: iconPulse 2s ease-in-out infinite;
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.product-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    background: var(--gray-light);
    color: var(--gray-dark);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.products-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 2rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--gray-light);
}

.products-grid::-webkit-scrollbar {
    height: 8px;
}

.products-grid::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 4px;
}

.products-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.products-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Manufacturer Sections */
.manufacturer-section {
    width: 100%;
    margin-bottom: 3rem;
}

.manufacturer-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    text-align: center;
    position: relative;
}

.manufacturer-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}

.manufacturer-products-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
}

.manufacturer-products-grid .product-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 300px;
    max-width: 380px;
}

/* When showing manufacturer sections, change grid layout */
.products-grid:has(.manufacturer-section) {
    display: block;
    overflow-x: visible;
    overflow-y: visible;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    aspect-ratio: 1;
    width: 100%;
    min-width: 380px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-placeholder {
    background: var(--gray-light);
    flex: 1;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-medium);
    font-weight: 500;
    border-bottom: 1px solid var(--gray-light);
}

.product-info {
    padding: 1.5rem;
    flex: 0 0 auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 140px;
}

.product-info h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-info p {
    color: var(--gray-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-price {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Responsive adjustments for manufacturer sections */
@media screen and (max-width: 1200px) {
    .manufacturer-products-grid .product-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 280px;
    }
}

@media screen and (max-width: 768px) {
    .manufacturer-section {
        margin-bottom: 2rem;
    }
    
    .manufacturer-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .manufacturer-products-grid {
        gap: 1rem;
        justify-content: center;
    }
    
    .manufacturer-products-grid .product-card {
        flex: 0 0 100%;
        min-width: 280px;
        max-width: 100%;
    }
}

/* Switch Categories Styles */
.switch-categories-container {
    width: 100%;
    text-align: center;
    padding: 2rem 0;
}

.switch-categories-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.switch-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.switch-category-btn {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.switch-category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 80, 22, 0.05), transparent);
    transition: left 0.6s ease;
}

.switch-category-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.switch-category-btn:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(45, 80, 22, 0.15);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.switch-category-btn:hover::before {
    left: 100%;
}

.switch-category-btn:hover::after {
    transform: scaleX(1);
}

.switch-category-btn:active {
    transform: translateY(-4px) scale(1.01);
    transition: all 0.1s ease;
}

.switch-category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.switch-category-btn:hover .switch-category-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary-dark);
    filter: drop-shadow(0 0 10px rgba(45, 80, 22, 0.3));
}

.switch-category-icon svg {
    width: 100%;
    height: 100%;
}

.switch-category-btn h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.switch-category-btn:hover h4 {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.switch-category-btn p {
    color: var(--gray-dark);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.switch-category-btn:hover p {
    color: var(--black);
    transform: translateY(-1px);
}

.product-count {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.switch-category-btn:hover .product-count {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Manufacturer Products Display */
.manufacturer-back-btn {
    margin-bottom: 2rem;
    text-align: right;
}

.back-to-categories-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(45, 80, 22, 0.1);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(45, 80, 22, 0.2);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.back-to-categories-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-to-categories-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 80, 22, 0.3);
}

.back-to-categories-btn:hover svg {
    transform: translateX(-3px);
}

.back-to-categories-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.2);
}

.manufacturer-products-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.manufacturer-products-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.manufacturer-products-display {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--gray-light);
}

.manufacturer-products-display::-webkit-scrollbar {
    height: 8px;
}

.manufacturer-products-display::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 4px;
}

.manufacturer-products-display::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.manufacturer-products-display::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive Design for Switch Categories */
@media screen and (max-width: 768px) {
    .switch-categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .switch-category-btn {
        padding: 1.5rem 1rem;
    }
    
    .switch-categories-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .manufacturer-back-btn {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .back-to-categories-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .manufacturer-products-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .manufacturer-products-display {
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .manufacturer-products-display .product-card {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 280px;
    }
}

/* Support Section */
.support-section {
    padding: 80px 0;
}

.support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3,
.contact-form h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--gray-dark);
    margin-right: 1rem;
}

.contact-form {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    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(45, 80, 22, 0.1);
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    width: 100%;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Company Certificate Image */
.company-certificate {
    text-align: center;
    margin-bottom: 3rem;
}

.certificate-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.certificate-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Additional Contact Button */
.additional-contact {
    text-align: center;
    margin-top: 3rem;
}

.contact-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: var(--white);
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    border: 2px solid #25D366;
}

.contact-whatsapp-btn .whatsapp-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contact-whatsapp-btn:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Cooperation Page Styles */
.main-content {
    margin-top: 80px; /* Account for fixed header */
    min-height: calc(100vh - 80px);
}

.cooperation-page-section {
    padding: 80px 0;
    background: var(--background-color);
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 700;
}

.cooperation-page-content {
    max-width: 800px;
    margin: 0 auto;
}

.cooperation-info-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(45, 80, 22, 0.1);
}

.cooperation-highlight {
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.05) 0%, rgba(74, 124, 42, 0.05) 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border-right: 4px solid var(--primary-color);
    text-align: justify;
    line-height: 1.8;
}

.cooperation-highlight p {
    color: var(--gray-dark);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.cooperation-action {
    text-align: center;
    margin-bottom: 3rem;
}

.cooperation-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-color);
    color: var(--white);
    padding: 18px 40px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.cooperation-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.cooperation-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;
}

.cooperation-btn:hover::before {
    left: 100%;
}

.cooperation-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

.cooperation-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(45, 80, 22, 0.3);
}

/* Job Positions */
.cooperation-details {
    margin-bottom: 3rem;
}

.cooperation-details h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

.job-positions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.job-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-light);
    transition: var(--transition);
    text-align: center;
}

.job-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.job-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.job-card h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.job-card p {
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Contact Information */
.cooperation-contact {
    border-top: 1px solid var(--gray-light);
    padding-top: 2rem;
}

.cooperation-contact h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-light);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.contact-item p {
    color: var(--gray-dark);
    margin: 0;
    font-size: 1rem;
}

/* Active navigation link */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Design for Cooperation Page */
@media screen and (max-width: 768px) {
    .cooperation-info-card {
        padding: 2rem 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .cooperation-highlight {
        padding: 1.5rem;
        text-align: right;
    }
    
    .cooperation-highlight p {
        font-size: 1rem;
    }
    
    .cooperation-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .job-positions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-item {
        padding: 0.75rem;
    }
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-placeholder {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.whatsapp-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
}

.whatsapp-social-link:hover {
    background: #25D366;
    border-color: #25D366;
    color: var(--white);
    transform: translateY(-2px);
}

.whatsapp-social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.instagram-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
}

.instagram-social-link:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    border-color: #e6683c;
    color: var(--white);
    transform: translateY(-2px);
}

.instagram-social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.linkedin-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
}

.linkedin-social-link:hover {
    background: #0077B5;
    border-color: #0077B5;
    color: var(--white);
    transform: translateY(-2px);
}

.linkedin-social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.telegram-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
}

.telegram-social-link:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: var(--white);
    transform: translateY(-2px);
}

.telegram-social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* HP Server Modal Styles */
.product-link {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.product-link:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: none;
}

.modal-overlay.active,
.modal-overlay[style*="flex"] {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--gray-light);
    position: relative;
}

.modal-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    padding-left: 2rem;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-medium);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-light);
    color: var(--gray-dark);
}

.modal-body {
    padding: 1.5rem 2rem 2rem 2rem;
}

.generation-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.generation-option {
    background: var(--background-color);
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.generation-option::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 80, 22, 0.1), transparent);
    transition: right 0.5s ease;
}

.generation-option:hover::before {
    right: 100%;
}

.generation-option:hover {
    border-color: var(--primary-color);
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.generation-option:active {
    transform: translateY(0);
}

.generation-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.generation-description {
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.generation-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Responsive Modal */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
        padding-left: 1.5rem;
    }
    
    .modal-close {
        top: 1rem;
        left: 1rem;
    }
    
    .modal-body {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
    
    .generation-option {
        padding: 1.25rem;
    }
    
    .generation-title {
        font-size: 1.2rem;
    }
}

/* Support Ticket Button */
.support-ticket {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.ticket-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 18px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.ticket-main {
    font-size: 1.1rem;
    font-weight: 600;
}

.ticket-sub {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 2px;
}

.ticket-btn .ticket-icon {
    width: 24px;
    height: 24px;
    align-self: flex-start;
    margin-top: 2px;
    color: currentColor;
    flex-shrink: 0;
}

.ticket-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

.ticket-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(45, 80, 22, 0.3);
}

/* Services List Styling */
.services-list {
    margin-top: 2rem;
}

.services-list ul {
    list-style: none;
    padding: 0;
}

.services-list li {
    background: var(--background-color);
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-right: 4px solid var(--primary-color);
    transition: var(--transition);
    line-height: 1.6;
    position: relative;
}

.services-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    right: 1rem;
    top: 1.5rem;
}

.services-list li {
    padding-right: 2.5rem;
}

.services-list li:hover {
    background: var(--white);
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-right-color: var(--primary-dark);
}

/* Responsive Design */
/* Full-screen 16:9 Aspect Ratio Optimizations */
@media screen and (aspect-ratio: 16/9) {
    .hero-section {
        height: 100vh;
        width: 100vw;
    }
    
    .hero-content h1 {
        font-size: clamp(3rem, 6vw, 5.5rem);
    }
    
    .hero-content p {
        font-size: clamp(1.3rem, 2.5vw, 2rem);
        margin-bottom: 5vh;
    }
    
    .cta-btn {
        padding: 2vh 5vw;
        font-size: clamp(1.2rem, 2vw, 1.6rem);
    }
}

/* 1080p Specific Optimizations (1920x1080) */
@media screen and (width: 1920px) and (height: 1080px) {
    .hero-content h1 {
        font-size: 5rem;
        margin-bottom: 2rem;
    }
    
    .hero-content p {
        font-size: 1.8rem;
        margin-bottom: 3rem;
        max-width: 900px;
    }
    
    .cta-btn {
        padding: 20px 60px;
        font-size: 1.4rem;
    }
    
    .prev-slide, .next-slide {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

/* Ultra-wide 16:9 displays (2560x1440, 3840x2160) */
@media screen and (min-width: 2560px) and (aspect-ratio: 16/9) {
    .hero-content {
        max-width: 1400px;
    }
    
    .hero-content h1 {
        font-size: 6rem;
    }
    
    .hero-content p {
        font-size: 2.2rem;
        max-width: 1000px;
    }
    
    .cta-btn {
        padding: 25px 80px;
        font-size: 1.6rem;
    }
}

/* Ultra-wide screens (1440px and above) */
@media screen and (min-width: 1440px) {
    .hero-content {
        max-width: 1400px;
    }
}

/* Desktop (1024px - 1439px) */
@media screen and (min-width: 1024px) and (max-width: 1439px) {
    .hero-content h1 {
        font-size: clamp(3rem, 5vw, 4rem);
    }
    
    .hero-content p {
        font-size: clamp(1.3rem, 2vw, 1.6rem);
    }
}

/* Tablet (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .hero-content {
        padding: 0 40px;
    }
    
    .hero-content h1 {
        font-size: clamp(2.2rem, 4vw, 3rem);
    }
    
    .hero-content p {
        font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    }
    
    .cta-btn {
        padding: 1.2vh 3vw;
        font-size: clamp(1rem, 2vw, 1.2rem);
    }
}

/* Mobile (320px - 767px) */
@media screen and (max-width: 767px) {
    .hero-section {
        height: 100vh;
        width: 100vw;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.3;
        margin-bottom: 2vh;
    }

    .hero-content p {
        font-size: clamp(1rem, 4vw, 1.3rem);
        line-height: 1.6;
        margin-bottom: 3vh;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .cta-btn {
        padding: 1.5vh 6vw;
        font-size: clamp(1rem, 3vw, 1.2rem);
        min-height: 50px;
        min-width: 160px;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .service-card {
        max-width: 100%;
        min-width: 280px;
    }

    .product-categories {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .products-grid {
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .product-card {
        min-width: 220px;
        max-width: 220px;
    }

    .products-grid {
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .product-card {
        min-width: 320px;
        max-width: 320px;
    }

    .support-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }


    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .slider-nav {
        display: none;
    }

    /* Responsive adjustments for ticket button */
    .support-ticket {
        bottom: 15px;
        right: 15px;
    }
    
    .ticket-btn {
        padding: 12px 20px;
        min-height: 44px; /* Touch-friendly */
    }
    
    .ticket-main {
        font-size: 1rem;
    }
    
    .ticket-sub {
        font-size: 0.75rem;
    }
    
    .ticket-btn .ticket-icon {
        font-size: 1.1rem;
    }
    
    /* Responsive adjustments for WhatsApp button */
    .whatsapp-contact {
        bottom: 15px;
        left: 15px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-btn .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

/* Small mobile devices (320px - 480px) */
@media screen and (max-width: 480px) {
    .hero-content {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.2;
        margin-bottom: 1.5vh;
    }
    
    .hero-content p {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
        line-height: 1.5;
        margin-bottom: 2.5vh;
    }

    .cta-btn {
        padding: 1.2vh 5vw;
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        min-width: 140px;
    }

    .container {
        padding: 0 15px;
    }

    .services-overview,
    .products-section,
    .support-section {
        padding: 4vh 0;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

    .support-ticket {
        bottom: 15px;
        right: 15px;
    }
    
    .ticket-btn {
        padding: 12px 20px;
        min-height: 44px;
    }
    
    .ticket-main {
        font-size: 0.95rem;
    }
    
    .ticket-sub {
        font-size: 0.7rem;
    }
    
    .ticket-btn .ticket-icon {
        font-size: 1rem;
    }
}

/* WhatsApp Contact Button */
.whatsapp-contact {
    position: fixed;
    bottom: 20px;
    left: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    font-family: inherit;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    border: 2px solid #25D366;
    cursor: pointer;
}

.whatsapp-btn .whatsapp-icon {
    width: 32px;
    height: 32px;
    color: currentColor;
    flex-shrink: 0;
}

.whatsapp-btn:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

/* Landscape orientation optimizations */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        width: 100vw;
    }
    
    .hero-content h1 {
        font-size: clamp(1.8rem, 5vw, 3rem);
        margin-bottom: 1vh;
    }
    
    .hero-content p {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
        margin-bottom: 2vh;
    }
    
    .cta-btn {
        padding: 1vh 3vw;
        min-height: 40px;
    }
}

/* High DPI / Retina display optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 2), 
       screen and (min-resolution: 192dpi) {
    .slide:first-child,
    .slide:nth-child(2),
    .slide:nth-child(3) {
        background-size: cover;
        background-attachment: scroll; /* Better performance on mobile */
    }
}

/* Accessibility: Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .slide {
        transition: opacity 0.3s ease-in-out;
    }
    
    .prev-slide:hover, 
    .next-slide:hover {
        transform: none;
    }
    
    .cta-btn:hover {
        transform: none;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced smooth scrolling for contact section */
#support {
    scroll-margin-top: 80px; /* Account for fixed header */
}

/* Ensure images scale properly within slides */
.slide img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Container query support for modern browsers */
@supports (container-type: inline-size) {
    .hero-slider {
        container-type: inline-size;
    }
    
    @container (min-width: 800px) {
        .hero-content h1 {
            font-size: 3rem;
        }
    }
    
    @container (max-width: 400px) {
        .hero-content h1 {
            font-size: 1.5rem;
        }
    }
}

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* automated right-to-left "hover" wave for product cards */
@keyframes productWaveRTL {
    0% {
        transform: translateX(0) translateY(0) scale(1);
        box-shadow: 0 5px 18px rgba(0,0,0,0.08);
    }
    50% {
        transform: translateX(-10px) translateY(-8px) scale(1.02);
        box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    }
    100% {
        transform: translateX(0) translateY(0) scale(1);
        box-shadow: 0 5px 18px rgba(0,0,0,0.08);
    }
}

/* attach the animation; will be staggered by JS using animation-delay */
.product-card.auto-hover {
    animation-name: productWaveRTL;
    animation-duration: 3.4s;
    animation-timing-function: cubic-bezier(.2,.9,.2,1);
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-fill-mode: both;
    will-change: transform, box-shadow;
}

/* when user interacts with a container we pause the automated hover */
.auto-hover-paused .product-card.auto-hover {
    animation-play-state: paused !important;
}

/* keep existing hover style intact but make it compatible with automated animation */
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: transform 180ms ease, box-shadow 180ms ease;
}