/* Midad Printing Inks - Main Stylesheet */

/* Boston Font Family - Local */
@font-face {
    font-family: 'Boston';
    src: url('../../fonts/BostonThin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Boston';
    src: url('../../fonts/BostonThinIt.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
}
@font-face {
    font-family: 'Boston';
    src: url('../../fonts/BostonExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Boston';
    src: url('../../fonts/BostonExtraLightIt.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
}
@font-face {
    font-family: 'Boston';
    src: url('../../fonts/BostonLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Boston';
    src: url('../../fonts/BostonLightIt.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}
@font-face {
    font-family: 'Boston';
    src: url('../../fonts/BostonRegular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Boston';
    src: url('../../fonts/BostonRegularIt.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Boston';
    src: url('../../fonts/BostonSemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Boston';
    src: url('../../fonts/BostonSemiBoldIt.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
}
@font-face {
    font-family: 'Boston';
    src: url('../../fonts/BostonBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Boston';
    src: url('../../fonts/BostonBoldIt.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}
@font-face {
    font-family: 'Boston';
    src: url('../../fonts/BostonHeavy.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Boston';
    src: url('../../fonts/BostonHeavyIt.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
}
@font-face {
    font-family: 'Boston';
    src: url('../../fonts/BostonBlack.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: 'Boston';
    src: url('../../fonts/BostonBlackIt.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
}

:root {
    /* Color Scheme - Based on #1D3358 */
    --primary-color: #1D3358;
    --primary-dark: #122340;
    --primary-light: #2D4A75;
    --primary-lighter: #3D5F8F;
    --accent-color: #1D3358;
    --accent-yellow: #d4b482;
    --accent-yellow-dark: #c7a46f;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    
    /* Hero & Dark Section Colors (lighter variant) */
    --hero-dark: #1A3050;
    --hero-mid: #224066;
    --hero-light: #2D4A75;
    --hero-lighter: #3A5E8A;
    --hero-overlay-start: 0.4;
    --hero-overlay-end: 0.4;
    --footer-bg: #1D3358;
    --hero-title-gradient-end: #E4E9F2;
    
    /* Text on dark backgrounds */
    --text-on-dark: rgba(255, 255, 255, 0.95);
    --text-on-dark-muted: rgba(255, 255, 255, 0.85);
    --text-on-dark-faint: rgba(255, 255, 255, 0.6);
    
    /* Primary rgba for overlays/shadows */
    --primary-rgb: 29, 51, 88;
    --primary-light-rgb: 45, 74, 117;
    --accent-yellow-rgb: 212, 180, 130;
    
    /* Neutral Colors */
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border-color: #e5e7eb;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-primary: 'Boston', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Boston', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* 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);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header & Navigation - Modern Transparent Design */
.header-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    backdrop-filter: none;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-modern.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    border-bottom-color: rgba(var(--primary-rgb), 0.15);
}

.header-modern-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-modern {
    position: relative;
    display: inline-block;
    height: 63px;
    width: 210px;
    text-decoration: none;
}

.logo-modern-img {
    height: 63px;
    width: auto;
    max-width: 210px;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
    object-fit: contain;
}

/* White logo visible when header is transparent */
.logo-white {
    opacity: 1;
}

.logo-colored {
    opacity: 0;
}

/* Colored logo visible when header is scrolled */
.header-modern.scrolled .logo-white {
    opacity: 0;
}

.header-modern.scrolled .logo-colored {
    opacity: 1;
}


.nav-modern {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-modern-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-modern-item {
    position: relative;
}

.nav-modern-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    color: white;
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: all var(--transition-fast);
    border-radius: 8px;
}

.header-modern.scrolled .nav-modern-link {
    color: var(--text-dark);
    text-shadow: none;
}

.nav-modern-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.nav-modern-link:hover::before {
    opacity: 1;
}

.header-modern.scrolled .nav-modern-link::before {
    background: rgba(var(--primary-rgb), 0.08);
}

.nav-modern-link.active {
    color: var(--accent-yellow);
}

.header-modern.scrolled .nav-modern-link.active {
    color: var(--accent-color);
}

.nav-modern-link.active::after {
    content: '';
    position: absolute;
    bottom: 0.375rem;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--accent-yellow);
    border-radius: 2px;
}

.header-modern.scrolled .nav-modern-link.active::after {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
}


.mobile-menu-toggle-modern {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle-modern span {
    width: 26px;
    height: 3px;
    background-color: white;
    transition: all var(--transition-base);
    border-radius: 2px;
}

.header-modern.scrolled .mobile-menu-toggle-modern span {
    background-color: var(--text-dark);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all var(--transition-base);
    border-radius: 2px;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle-modern {
        display: flex;
    }
    
    .nav-modern {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }
    
    .nav-modern.active {
        transform: translateX(0);
    }
    
    .nav-modern-menu {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-modern-link {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1.125rem;
        color: var(--text-dark) !important;
        text-shadow: none !important;
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid var(--border-color);
    }
    
    .nav-modern-link.active {
        background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-light-rgb), 0.1));
        border-color: var(--primary-dark);
    }
    
    .mobile-menu-toggle-modern.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle-modern.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle-modern.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 85px;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        gap: var(--spacing-xs);
    }
    
    .nav-menu .nav-link {
        display: block;
        text-align: center;
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Main Content */
.main-content {
    margin-top: 85px;
    min-height: calc(100vh - 85px);
}

.main-content-modern {
    margin-top: 0;
    min-height: 100vh;
}

/* Hero Section - Modern Design */
.hero-modern {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hero-dark) 0%, var(--hero-mid) 50%, var(--hero-light) 100%);
    color: var(--text-on-dark);
    overflow: hidden;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero Carousel Background Images */
.hero-carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 0;
}

.hero-carousel-bg.active {
    opacity: 1;
}

.hero-modern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), var(--hero-overlay-start)) 0%, rgba(var(--primary-rgb), var(--hero-overlay-end)) 100%);
    z-index: 1;
}

.hero-modern .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-modern-content {
    max-width: 800px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(var(--accent-yellow-rgb), 0.15);
    border: 1px solid rgba(var(--accent-yellow-rgb), 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-yellow);
    margin-bottom: var(--spacing-md);
    animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(var(--accent-yellow-rgb), 0.2); }
    50% { box-shadow: 0 0 30px rgba(var(--accent-yellow-rgb), 0.4); }
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-modern-title {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--spacing-md);
}

.hero-modern-title-main {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--hero-title-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-modern-title-sub {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 300;
    color: var(--text-on-dark);
    line-height: 1.3;
}

.hero-modern-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-on-dark-muted);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


.hero-modern-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-modern::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;
}

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

.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--text-on-dark);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.4);
}

.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.6);
}

.btn-modern-gold {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-yellow-dark) 100%);
    color: var(--text-on-dark);
    box-shadow: 0 4px 12px rgba(var(--accent-yellow-rgb), 0.3);
    font-weight: 700;
}

.btn-modern-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--accent-yellow-rgb), 0.4);
}

.btn-modern-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-on-dark);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-modern-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}


.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-on-dark-faint);
    font-size: 0.875rem;
    z-index: 2;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.hero-scroll-indicator svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 1024px) {
    .header-modern-container {
        padding: 0.75rem 1.5rem;
    }
    
    .logo-modern {
        height: 57px;
        width: 189px;
    }
    
    .logo-modern-img {
        height: 57px;
        max-width: 189px;
    }
}

@media (max-width: 768px) {
    .hero-modern {
        background-image: url('/assets/images/hero-printing-inks-background-mobile.webp') !important;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        padding: 0;
    }
    
    .hero-modern .container {
        padding: 0 1.5rem;
    }
    
    .hero-modern-content {
        max-width: 100%;
    }
    
    .hero-modern-actions {
        flex-direction: column;
    }
    
    .btn-modern {
        width: 100%;
        justify-content: center;
    }
    
    .header-modern-container {
        height: 60px;
        padding: 0.5rem 1rem;
    }
    
    .logo-modern {
        height: 50px;
        width: 168px;
    }
    
    .logo-modern-img {
        height: 50px;
        max-width: 168px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }
    
    .hero-badge svg {
        width: 16px;
        height: 16px;
    }
    
    .hero-modern-title-main {
        font-size: 2rem;
    }
    
    .hero-modern-title-sub {
        font-size: 1.25rem;
    }
    
    .hero-modern-description {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    .hero-scroll-indicator svg {
        width: 18px;
        height: 18px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.625rem var(--spacing-lg);
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--accent-yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Product category tabs */
.product-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    padding: 0.375rem;
    background: var(--bg-light, #f4f6fa);
    border-radius: 14px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    text-decoration: none;
    background: transparent;
    border: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    cursor: pointer;
}

.category-tab:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.07);
}

.category-tab.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.3);
}

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

.btn-group {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

/* Sections */
.section {
    padding: var(--spacing-2xl) var(--spacing-md);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

/* Modern Section Headers */
.section-header-modern {
    padding-top: 1rem;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-eyebrow {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-light-rgb), 0.1));
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 50px;
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
}

.section-title-modern {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.section-subtitle-modern {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Modern Features Section */
.features-modern {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 5rem var(--spacing-md);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card-modern {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.feature-card-modern:hover::before {
    transform: scaleX(1);
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.feature-icon-modern {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-light-rgb), 0.1));
    border-radius: 16px;
    margin-bottom: var(--spacing-lg);
    color: var(--accent-color);
    transition: all var(--transition-base);
}

.feature-icon-modern svg {
    width: 32px;
    height: 32px;
}

.feature-card-modern:hover .feature-icon-modern {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.feature-text-modern {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* Cards */
.card {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/*
 * Override reveal-stagger transition-delay on cards that use hover-lift
 * so hover in and hover out are both immediate (no delay when cursor enters or leaves).
 */
.card.reveal-stagger.hover-lift,
.card.product-card.reveal-stagger.hover-lift {
    transition-delay: 0s;
}
.card.product-card.reveal-stagger.hover-lift .card-img {
    transition-delay: 0s;
}

/* Product cards: own hover (don’t use generic .card:hover) */
.product-card {
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Color treatment for image cards (subtle) */
.product-card .card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card:hover .card-img::after {
    opacity: 0;
}

.product-card {
    border-top: 4px solid rgba(var(--primary-light-rgb), 0.35);
}

.card.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px -8px rgba(var(--primary-rgb), 0.25), 0 8px 16px -8px rgba(var(--primary-rgb), 0.2);
    border-top-color: rgba(var(--primary-rgb), 0.6);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.card-text {
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
}

/* Why Choose section cards - subtle left accent */
.why-choose-card {
    border-left: 4px solid var(--primary-color);
}

.why-choose-card:hover {
    border-left-color: var(--primary-dark);
}

/* Product card: content grows so CTA stays at bottom */
.product-card .card-text {
    flex: 1;
    min-height: 3.6em;
}

/* Card CTA - pinned to bottom, improved style */
.product-card .card-cta {
    margin-top: auto;
    padding-top: var(--spacing-lg);
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--primary-color);
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.625rem var(--spacing-md);
    transition: all var(--transition-base);
    text-decoration: none;
}

.product-card .card-cta:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Fixed 2-column grid (e.g. FAQ 2×2 layout) */
.grid-2-cols {
    grid-template-columns: repeat(2, 1fr);
}

/* Fixed 4-column grid for category cards */
.grid-4-cols {
    grid-template-columns: repeat(4, 1fr);
}

/* Wide container for category section */
.container-wide {
    max-width: 1500px !important;
}

/* FAQ: question grows on card hover */
.faq-grid .card h3 {
    transition: transform var(--transition-base);
    transform-origin: left center;
}
.faq-grid .card:hover h3 {
    transform: scale(1.06);
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* When grid-3 has only 1 item, limit its width */
.grid-3:has(> :only-child) {
    grid-template-columns: minmax(280px, 400px);
    justify-content: center;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.product-card .card-img {
    overflow: hidden;
    transition: transform 0.4s ease;
}

.product-card:hover .card-img {
    transform: scale(1.06);
}

/* Product card hover */
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.15), 0 2px 8px rgba(var(--primary-rgb), 0.1);
}

.product-category {
    display: inline-block;
    width: fit-content;
    align-self: flex-start;
    padding: 0.3rem 0.8rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 1.5px solid rgba(var(--primary-rgb), 0.35);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    margin-bottom: var(--spacing-sm);
    transition: all var(--transition-normal);
}

/* Category-specific colors */
.product-category[data-category="1"] {
    background-color: rgba(227, 29, 36, 0.08);
    color: #C01820;
    border-color: rgba(227, 29, 36, 0.25);
}

.product-category[data-category="2"] {
    background-color: rgba(214, 180, 109, 0.12);
    color: #A78942;
    border-color: rgba(214, 180, 109, 0.35);
}

.product-category[data-category="3"] {
    background-color: rgba(62, 170, 59, 0.08);
    color: #2D8A2B;
    border-color: rgba(62, 170, 59, 0.25);
}

.product-category[data-category="4"] {
    background-color: rgba(62, 170, 59, 0.08);
    color: #2D8A2B;
    border-color: rgba(62, 170, 59, 0.25);
}

/* Category separator for "All Products" view */
.category-separator {
    grid-column: 1 / -1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(var(--primary-rgb), 0.1) 20%, rgba(var(--primary-rgb), 0.1) 80%, transparent);
    margin: var(--spacing-2xl) 0 var(--spacing-xl) 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-separator-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(var(--primary-rgb), 0.5);
    border-radius: 20px;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
}

/* Category-specific separator colors */
.category-separator[data-category="1"] .category-separator-label {
    color: rgba(227, 29, 36, 0.6);
    border-color: rgba(227, 29, 36, 0.15);
    background: rgba(227, 29, 36, 0.02);
}

.category-separator[data-category="2"] .category-separator-label {
    color: rgba(214, 180, 109, 0.8);
    border-color: rgba(214, 180, 109, 0.2);
    background: rgba(214, 180, 109, 0.03);
}

.category-separator[data-category="3"] .category-separator-label {
    color: rgba(62, 170, 59, 0.6);
    border-color: rgba(62, 170, 59, 0.15);
    background: rgba(62, 170, 59, 0.02);
}

.category-separator[data-category="4"] .category-separator-label {
    color: rgba(62, 170, 59, 0.6);
    border-color: rgba(62, 170, 59, 0.15);
    background: rgba(62, 170, 59, 0.02);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.625rem var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: var(--bg-white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--accent-red);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    display: none;
}

.form-error.show {
    display: block;
}

.form-success {
    background-color: var(--accent-green);
    color: white;
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    display: none;
}

.form-success.show {
    display: block;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--text-on-dark);
    padding: var(--spacing-2xl) var(--spacing-md) var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--spacing-md);
    color: var(--accent-yellow);
}

.footer-section p {
    color: var(--text-on-dark-muted);
    margin-bottom: var(--spacing-md);
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-on-dark-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-yellow);
}

.footer-contact li {
    margin-bottom: var(--spacing-xs);
    color: var(--text-on-dark-muted);
}

.footer-contact a {
    color: var(--accent-yellow);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all var(--transition-fast);
    color: var(--text-on-dark-muted);
}

.social-link:hover {
    background-color: var(--accent-yellow);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.social-icon-link {
    text-decoration: none;
}

.social-icon-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-on-dark-faint);
}

.footer-bottom a {
    color: var(--text-on-dark-muted);
}

.footer-bottom a:hover {
    color: var(--accent-yellow);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Admin Styles */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.admin-table tr:hover {
    background-color: var(--bg-gray);
}

/* Contact Info Items */
.contact-info-item {
    transition: all var(--transition-base);
}

.contact-info-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-info-item a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* Product Detail Features */
.product-feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: 8px;
    transition: background-color var(--transition-fast);
}

.product-feature-item:hover {
    background-color: var(--bg-light);
}

/* Modern Features Masonry Layout */
.features-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

@media (max-width: 768px) {
    .features-masonry {
        grid-template-columns: 1fr;
    }
}

.product-feature-item-modern {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: visible;
}

.product-feature-item-modern::before {
    display: none;
}

.product-feature-item-modern:hover {
    transform: none;
    box-shadow: none;
}

.product-feature-item-modern:hover::before {
    display: none;
}

.product-feature-item-modern .feature-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.product-feature-item-modern:hover .feature-check {
    transform: scale(1.1) rotate(10deg);
}

/* Application Tags */
.application-tag {
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    border-radius: 8px;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.application-tag:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Substrate Tags */
.substrate-tag {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: 8px;
    text-align: center;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.substrate-tag:hover {
    border-color: var(--primary-color);
    background-color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2-cols {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .features-modern {
        padding: 3rem var(--spacing-md);
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .logo-img {
        height: 55px;
    }
    
    .navbar {
        height: 75px;
    }
    
    .main-content {
        margin-top: 75px;
        min-height: calc(100vh - 75px);
    }
    
    .nav-menu {
        top: 75px;
    }
    
    .section-title-modern {
        font-size: 2rem;
    }
    
    .hero-modern-title-main {
        font-size: 2.25rem;
    }
    
    .hero-modern-title-sub {
        font-size: 1.5rem;
    }
}

/* ============================================
   Language Switcher Styles
   ============================================ */

.lang-switcher-item {
    position: relative;
}

.lang-switcher {
    position: relative;
}

.lang-switcher-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-switcher-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.header-modern.scrolled .lang-switcher-button {
    color: var(--text-dark);
    border-color: var(--border-color);
}

.header-modern.scrolled .lang-switcher-button:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.lang-current {
    font-weight: 600;
    letter-spacing: 0.05em;
}

.lang-chevron {
    transition: transform var(--transition-fast);
}

.lang-switcher-button[aria-expanded="true"] .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 160px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background-color: var(--bg-light);
}

.lang-option.active {
    background-color: rgba(var(--primary-rgb), 0.05);
    color: var(--primary-color);
    font-weight: 600;
}

.lang-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.lang-name {
    flex: 1;
    font-size: 0.9rem;
}

.lang-check {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* RTL Support */
html[dir="rtl"] body {
    direction: rtl;
}

html[dir="rtl"] .container {
    direction: rtl;
}

/* Keep header in LTR */
html[dir="rtl"] .header-modern,
html[dir="rtl"] .header-modern .header-modern-container,
html[dir="rtl"] .header-modern .nav-modern,
html[dir="rtl"] .header-modern .nav-modern-menu {
    direction: ltr;
}

html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

html[dir="rtl"] .features-grid,
html[dir="rtl"] .grid {
    direction: rtl;
}

/* Fix text centering in hero and sections */
html[dir="rtl"] .hero-modern-content {
    text-align: center;
    direction: rtl;
}

html[dir="rtl"] .hero-modern-title,
html[dir="rtl"] .hero-modern-description {
    text-align: center;
}

html[dir="rtl"] .section-header-modern {
    text-align: center;
}

html[dir="rtl"] .section-title-modern,
html[dir="rtl"] .section-subtitle-modern {
    text-align: center;
}

html[dir="rtl"] .text-center {
    text-align: center !important;
}

html[dir="rtl"] h1, 
html[dir="rtl"] h2, 
html[dir="rtl"] h3 {
    text-align: inherit;
}

/* About page specific RTL styling */
/* Our Story section - right aligned */
html[dir="rtl"] .story-title {
    text-align: right !important;
}

html[dir="rtl"] .grid.grid-2 .section-title {
    text-align: right;
}

html[dir="rtl"] .grid.grid-2 p {
    text-align: right;
}

/* For LTR (English), keep it left-aligned */
html[dir="ltr"] .story-title {
    text-align: left !important;
}

/* Mission & Values, Why Choose sections - keep centered */
html[dir="rtl"] .section > .container > .section-title.reveal {
    text-align: center;
}

html[dir="rtl"] .section > .container > .section-subtitle {
    text-align: center;
}

/* Card titles and text in grid layouts - inherit from parent */
html[dir="rtl"] .card .card-title {
    text-align: right;
}

html[dir="rtl"] .card .card-text {
    text-align: right;
}

html[dir="rtl"] .btn-group {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero-modern-actions {
    justify-content: center;
    direction: rtl;
}

html[dir="rtl"] .card-cta,
html[dir="rtl"] .btn {
    direction: rtl;
}

/* Ensure centered sections stay centered in RTL */
html[dir="rtl"] .section[style*="text-center"],
html[dir="rtl"] .container.text-center {
    text-align: center;
}

/* Contact page - NO changes to layout in RTL, keep same as English */

/* Mobile Language Switcher */
@media (max-width: 768px) {
    .lang-switcher-button {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .lang-dropdown {
        min-width: 140px;
    }
    
    .lang-option {
        padding: 0.625rem 0.875rem;
    }
    
    .lang-flag {
        font-size: 1.1rem;
    }
    
    .lang-name {
        font-size: 0.85rem;
    }
}
