/* Poly Informatics - Modern Design with Dark/Light Mode */
/* Inspired by demo.html with theme switching */

:root {
    /* Dark Mode Colors (Default) */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --accent: #fbbf24;
    --light: #1a1f3a;
    --text: #f5f7fb;
    --text-muted: #b8c5d6;
    --bg: #0a0e27;
    --bg-secondary: #151932;
    --card-bg: #1a1f3a;
    --border: #2d3748;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
    --footer-bg: #0f172a;
    --footer-text: #e5e7eb;
    --footer-text-muted: #9ca3af;
    --footer-border: rgba(148, 163, 184, 0.3);
}

[data-theme="light"] {
    /* Light Mode Colors */
    --primary: #083d77;
    --primary-dark: #052747;
    --accent: #ffb703;
    --light: #f5f7fb;
    --text: #222831;
    --text-muted: #4b5563;
    --bg: #ffffff;
    --bg-secondary: #f5f7fb;
    --card-bg: #ffffff;
    --border: #e3e6ee;
    --shadow: rgba(15, 23, 42, 0.08);
    --shadow-hover: rgba(15, 23, 42, 0.12);
    --footer-bg: #1a1f3a;
    --footer-text: #d1d5db;
    --footer-text-muted: #9ca3af;
    --footer-border: rgba(148, 163, 184, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
    font-size: 16px; /* Base font size for desktop */
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #1a1f3a; /* Fixed dark blue background - does not change with theme */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2); /* Fixed border color */
    transition: none; /* Remove transition for header background */
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo {
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3b82f6; /* Fixed primary color for header - does not change with theme */
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo span {
    color: #fbbf24; /* Fixed accent color for header - does not change with theme */
}

.logo img {
    height: 60px;
    width: auto;
    max-width: 200px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-menu li a {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
    color: #e5e7eb; /* Fixed light text color for header - does not change with theme */
}

.nav-menu li a:hover,
.nav-menu li a.active {
    border-bottom-color: #fbbf24; /* Fixed accent color */
    color: #3b82f6; /* Fixed primary color */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.3); /* Fixed border color */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e5e7eb; /* Fixed light text color for header - does not change with theme */
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1); /* Fixed hover background */
    border-color: #3b82f6; /* Fixed hover border color */
}

.btn-primary {
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow);
}

.logo-link {
    pointer-events: auto;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e5e7eb;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-left: auto;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #3b82f6;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-image {
    width: 120px;
    height: auto;
    /* No animation needed - GIF already has rotation built in */
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #1a1f3a; /* Fixed dark blue background - same as header */
    z-index: 10000;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2); /* Fixed border color */
}

.mobile-menu-logo {
    flex: 1;
}

.mobile-menu-logo img {
    height: 50px;
    width: auto;
    max-width: 150px;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #e5e7eb; /* Fixed light text color - same as header */
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.mobile-menu-close:hover {
    color: #3b82f6; /* Fixed hover color */
}

.mobile-menu-nav {
    padding: 20px 0;
}

.mobile-menu-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-nav li {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2); /* Fixed border color */
}

.mobile-menu-nav li:last-child {
    border-bottom: none;
}

.mobile-menu-nav a {
    display: block;
    padding: 16px 20px;
    color: #e5e7eb; /* Fixed light text color - same as header */
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    background: rgba(255, 255, 255, 0.1); /* Fixed hover background */
    color: #3b82f6; /* Fixed hover color */
    padding-left: 24px;
}


.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.slide-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e5e7eb;
    font-weight: 500;
}

.slide-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #d1d5db;
    line-height: 1.6;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    pointer-events: all;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background: white;
    transform: scale(1.2);
}

/* ===== HERO SECTION ===== */
.hero {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.1) 0, var(--bg) 40%, rgba(99, 102, 241, 0.05) 100%);
    padding: 60px 0 40px;
    transition: background 0.3s ease;
}

[data-theme="dark"] .hero {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.15) 0, var(--bg) 40%, rgba(99, 102, 241, 0.1) 100%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.78rem;
    background: var(--card-bg);
    backdrop-filter: blur(4px);
    margin-bottom: 12px;
    color: var(--text-muted);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-weight: 700;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 24px;
    color: var(--text-muted);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-meta strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.btn-outline {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

/* ===== SECTIONS ===== */
.section {
    padding: 50px 0;
}

.section:nth-child(even) {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== CARDS ===== */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 8px 24px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.card:hover {
    box-shadow: 0 12px 32px var(--shadow-hover);
    transform: translateY(-2px);
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--primary);
    font-weight: 600;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.card ul {
    padding-left: 18px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card ul li {
    margin-bottom: 4px;
}

/* ===== GRID LAYOUTS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* ===== WHO WE ARE ===== */
.who-we-are-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.who-we-are-main {
    color: var(--text-muted);
    line-height: 1.8;
}

.who-we-are-main .lead-text {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.who-we-are-main p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.who-we-are-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-item h4 {
    color: var(--text);
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 24px var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.service-item:hover {
    box-shadow: 0 16px 48px var(--shadow-hover);
    transform: translateY(-8px);
    border-color: var(--primary);
}

.service-item:hover::before {
    opacity: 1;
}

.service-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--card-bg) 100%);
    position: relative;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9);
}

.service-item:hover .service-image {
    transform: scale(1.1);
    filter: brightness(1);
}

.service-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0.6;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.service-item:hover .service-image-overlay {
    opacity: 0.4;
}

.service-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-icon-overlay i {
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-item:hover .service-icon-overlay {
    transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
    background: rgba(59, 130, 246, 1);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.6);
}

.service-item-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 2;
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
    padding: 30px 0 10px;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.service-item h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.service-item:hover h3 {
    color: var(--primary-dark);
}

.service-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 20px 0;
    line-height: 1.7;
    flex: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.service-link i {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.service-link:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.service-link:hover i {
    transform: translateX(4px);
}

/* ===== MISSION & VISION ===== */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.mission-vision-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.mission-vision-card:hover {
    box-shadow: 0 12px 32px var(--shadow-hover);
    transform: translateY(-2px);
}

.mission-vision-card h3 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.mission-vision-card h3 i {
    font-size: 1.5rem;
    color: var(--primary);
}

.mission-vision-content {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.9rem;
}

.mission-vision-content ul {
    list-style: none;
    padding: 0;
}

.mission-vision-content ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.mission-vision-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ===== STATS ===== */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    flex: 1 1 200px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.stat-item:hover {
    box-shadow: 0 14px 36px var(--shadow-hover);
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.stat-number {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 4px;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.stat-item.highlight-stat {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-color: var(--accent);
}

.stat-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== PRODUCTS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 24px var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 16px 48px var(--shadow-hover);
    transform: translateY(-8px);
    border-color: var(--primary);
}

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

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.product-link i {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.product-link:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.product-link:hover i {
    transform: translateX(4px);
}

.product-category-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.product-category-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 32px var(--shadow-hover);
    transform: translateY(-6px);
}

.product-category-card:hover::before {
    opacity: 1;
}

.product-category-card > * {
    position: relative;
    z-index: 1;
}

.product-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.product-category-card:hover .product-icon {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.category-link-arrow {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.product-category-card:hover .category-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

.product-category-card h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0 0 8px 0;
    font-weight: 700;
    transition: color 0.3s ease;
}

.product-category-card:hover h4 {
    color: var(--primary);
}

/* ===== BRANDS ===== */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.brand-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.brand-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px var(--shadow);
    transform: translateY(-3px);
}

.brand-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.brand-logo-wrapper {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
}

.brand-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.brand-card:hover .brand-logo-img {
    filter: brightness(1);
}

.brand-card-content h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.brand-card-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex: 1;
    line-height: 1.6;
}

.brand-item {
    flex: 0 0 120px;
    height: 60px;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: all 0.3s ease;
}

.brand-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--shadow);
    transform: translateY(-2px);
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.brand-item:hover img {
    filter: brightness(1);
}

.brand-item h4 {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0 20px;
    font-size: 0.85rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.footer h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--footer-text);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

/* Quick Links Two Column Layout */
.quick-links-column h4 {
    text-align: center;
}

.quick-links-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.quick-links-two-column li {
    margin-bottom: 8px;
}

.footer a {
    color: var(--footer-text);
    transition: color 0.3s ease;
    font-size: 0.86rem;
}

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

.footer-bottom {
    margin-top: 24px;
    border-top: 1px solid var(--footer-border);
    padding-top: 16px;
    text-align: center;
    color: var(--footer-text-muted);
    font-size: 0.78rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.footer-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ===== ALERT MESSAGES ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== RESPONSIVE ===== */

/* Tablet and below (900px) */
@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }

    .contact-btn {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .mobile-menu-overlay {
        display: block;
    }

    .mobile-menu-backdrop {
        display: block;
    }

    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .who-we-are-content,
    .mission-vision-grid,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

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

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }

    .logo {
        font-size: 1rem;
    }

    .logo img {
        max-height: 50px;
        max-width: 150px;
    }

    .hero {
        padding: 40px 0 30px;
    }

    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-meta {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

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

    .section-header h2 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .card {
        padding: 20px;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 14px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 14px;
    }

    .service-item-content,
    .product-card > div {
        padding: 16px;
    }

    .service-item-content h3,
    .product-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .service-item-content p,
    .product-card p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .product-category-card {
        padding: 16px;
    }

    .product-category-card h4 {
        font-size: 0.95rem;
    }

    .product-category-card p {
        font-size: 0.8rem;
    }

    .product-category-card {
        padding: 20px;
    }

    .product-icon {
        font-size: 2.5rem;
    }

    .service-item-content,
    .product-card > div {
        padding: 20px;
    }

    .stats-grid {
        flex-direction: column;
        gap: 24px;
    }

    .stat-item {
        text-align: center;
    }

    .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .footer {
        padding: 24px 0 12px;
        font-size: 0.8rem;
    }

    .footer h4 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .footer ul li {
        margin-bottom: 6px;
        font-size: 0.8rem;
    }

    .footer-bottom {
        margin-top: 16px;
        padding-top: 12px;
        font-size: 0.7rem;
    }

    .social-links {
        gap: 10px;
        margin-top: 10px;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .footer-login-btn {
        margin-top: 12px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .quick-links-two-column {
        grid-template-columns: 1fr 1fr;
        gap: 6px 12px;
    }
}

/* Small Mobile (600px and below) */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
        gap: 12px;
    }

    .service-item-content,
    .product-card > div {
        padding: 14px;
    }

    .service-item-content h3,
    .product-card h3 {
        font-size: 0.95rem;
    }

    .service-item-content p,
    .product-card p {
        font-size: 0.8rem;
    }

    .footer {
        padding: 20px 0 10px;
        font-size: 0.75rem;
    }

    .footer h4 {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .footer ul li {
        margin-bottom: 5px;
        font-size: 0.75rem;
    }

    .footer-bottom {
        margin-top: 12px;
        padding-top: 10px;
        font-size: 0.65rem;
    }

    .hero-slider {
        height: 350px;
    }

    .slide-content {
        padding: 20px;
    }

    .slide-content h1 {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }

    .slide-subtitle {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .slide-description {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .slider-controls {
        padding: 0 12px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .slider-indicators {
        bottom: 12px;
        gap: 8px;
    }

    .slider-indicators .indicator {
        width: 8px;
        height: 8px;
    }

    .card {
        padding: 16px;
        border-radius: 12px;
    }

    .service-item,
    .product-card {
        border-radius: 16px;
    }

    .service-image-wrapper,
    .product-card > div:first-child {
        height: 180px;
    }

    .btn-primary,
    .btn-outline {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .brand-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .brand-item {
        padding: 20px;
    }

    .footer-login-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Extra Small Mobile (480px and below) */
@media (max-width: 480px) {
    .hero {
        padding: 30px 0 20px;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .section {
        padding: 30px 0;
    }

    .section-header h2 {
        font-size: 1.15rem;
    }

    .section-subtitle {
        font-size: 0.75rem;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        gap: 10px;
    }

    .service-item-content,
    .product-card > div {
        padding: 12px;
    }

    .service-item-content h3,
    .product-card h3 {
        font-size: 0.9rem;
    }

    .service-item-content p,
    .product-card p {
        font-size: 0.75rem;
    }

    .footer {
        padding: 18px 0 8px;
        font-size: 0.7rem;
    }

    .footer h4 {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .footer ul li {
        margin-bottom: 4px;
        font-size: 0.7rem;
    }

    .footer-bottom {
        margin-top: 10px;
        padding-top: 8px;
        font-size: 0.6rem;
    }

    .card {
        padding: 14px;
    }

    .service-item-content h3,
    .product-card h3 {
        font-size: 1.1rem;
    }

    .service-item-content p,
    .product-card p {
        font-size: 0.85rem;
    }

    .hero-slider {
        height: 300px;
    }

    .slide-content h1 {
        font-size: 1.5rem;
    }

    .slide-subtitle {
        font-size: 1rem;
    }

    .slide-description {
        font-size: 0.85rem;
    }

    .btn-primary,
    .btn-outline {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .logo {
        font-size: 0.9rem;
    }

    .logo img {
        max-height: 45px;
    }

    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .mobile-menu-overlay {
        max-width: 90vw;
    }

    .footer {
        font-size: 0.8rem;
    }

    .footer h4 {
        font-size: 0.85rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn-primary,
    .btn-outline,
    .btn-login,
    .service-link,
    .product-link,
    .mobile-menu-toggle,
    .slider-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .mobile-menu-nav a {
        min-height: 48px;
        padding: 14px 20px;
    }

    /* Prevent double-tap zoom on buttons */
    button,
    a.btn-primary,
    a.btn-outline {
        touch-action: manipulation;
    }

    /* Better touch targets for cards */
    .service-item,
    .product-card,
    .product-category-card {
        cursor: pointer;
    }
}

/* Landscape mobile orientation */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
    }

    .hero-slider {
        height: 300px;
    }

    .section {
        padding: 30px 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Prevent horizontal scroll */
* {
    max-width: 100%;
}

/* Smooth scrolling for anchor links */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
