:root {
    /* Modern Blue Gradient Theme */
    --primary-color: #0066cc;
    --primary-dark: #004494;
    --primary-light: #3399ff;
    --secondary-color: #00a3e0;
    --accent-color: #00d4ff;
    --gradient-start: #0066cc;
    --gradient-mid: #0099e6;
    --gradient-end: #00d4ff;
    --text-dark: #1a1a2e;
    --text-light: #4a5568;
    --border-color: rgba(0, 102, 204, 0.15);
    --shadow: 0 4px 20px rgba(0, 102, 204, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 102, 204, 0.2);
    --bg-light: #ffffff;
    --bg-section: #f0f7ff;
    --footer-bg: #0a1628;
    --brown-accent: #0a1628;
    /* Glassmorphism variables */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 102, 204, 0.15);
    --glass-blur: blur(16px);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 76px;
    background: linear-gradient(135deg, #e8f4ff 0%, #f0f7ff 25%, #ffffff 50%, #f0f7ff 75%, #e8f4ff 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Global Glassmorphism Utility Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.1);
}

.glass-dark {
    background: rgba(0, 102, 204, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 102, 204, 0.2);
}

/* Custom Bootstrap overrides */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.navbar-brand {
    font-size: 2.1rem;
    color: var(--primary-color) !important;
    letter-spacing: 0.03em;
    line-height: 1;
}

.navbar-brand span {
    color: var(--primary-color) !important;
}

.navbar-brand i {
    color: var(--accent-color) !important;
}

/* ---------------------------------------- */
/* Glassy Page Header (inner pages)         */
/* ---------------------------------------- */

.page-header-glass {
    position: relative;
    margin-top: -10px;
    padding-top: 4rem;
    padding-bottom: 4rem;
    color: #ffffff;
    background:
        radial-gradient(circle at 10% 10%, rgba(0, 212, 255, 0.28), transparent 60%),
        radial-gradient(circle at 90% 90%, rgba(0, 102, 204, 0.25), transparent 60%),
        linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.page-header-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.16), transparent 60%),
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.14), transparent 60%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.page-header-glass .container {
    position: relative;
    z-index: 1;
}

.page-header-glass h1 {
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.page-header-glass .lead {
    color: rgba(240, 249, 255, 0.95);
}

/* Products page header: transparent overlay image on gradient */
.page-header-products::after {
    content: '';
    position: absolute;
    right: 4%;
    top: 55%;
    transform: translateY(-50%);
    width: clamp(220px, 30vw, 360px);
    height: clamp(220px, 30vw, 360px);
    background-image: url('../images/products/products-hero-overlay.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.18;
    pointer-events: none;
}

@media (max-width: 768px) {
    .page-header-products::after {
        display: none;
    }
}

.page-header-icon {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 32px;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 14px 40px rgba(0, 102, 204, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .page-header-glass {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 102, 204, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 8px 40px rgba(0, 102, 204, 0.15);
}

/* Hero Slider Styles */
.hero-slider {
    height: 70vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fallback background if images don't load */
    background-color: var(--primary-color);
}

/* Ensure images load properly */
.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 60, 120, 0.85), rgba(0, 102, 204, 0.6), rgba(0, 163, 224, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.slide-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}


.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: slideInUp 1s ease-out, textGlow 3s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes textGlow {
    from { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
    to { text-shadow: 0 0 30px rgba(83, 162, 190, 0.9), 0 0 40px rgba(10, 34, 57, 0.8); }
}

/* Fallback: Show first slide if Swiper fails */
.hero-swiper .swiper-slide {
    opacity: 0;
}

.hero-swiper .swiper-slide:first-child {
    opacity: 1;
}

/* When Swiper is initialized, reset opacity */
.hero-swiper.swiper-initialized .swiper-slide {
    opacity: 1;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.3s both;
}

.slide-content .btn {
    animation: slideInUp 1s ease-out 0.6s both;
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Swiper Pagination Only */
.swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color);
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

/* Power Products Section */
.power-products {
    padding: 80px 0;
    background: var(--bg-section);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Box */
.search-container {
    max-width: 600px;
    margin: 0 auto 4rem;
    position: relative;
}

.search-box {
    position: relative;
}

.search-box input {
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 15px 60px 15px 25px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-box input:focus {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 8px 40px rgba(0, 102, 204, 0.2);
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

/* Categories */
.categories-container {
    margin-bottom: 4rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 102, 204, 0.25);
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(255, 255, 255, 0.85);
}

.category-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    animation: cardGlow 2s ease-in-out infinite alternate;
}

@keyframes cardGlow {
    from { box-shadow: 0 0 20px rgba(29, 132, 181, 0.35); }
    to { box-shadow: 0 0 30px rgba(83, 162, 190, 0.7), 0 0 40px rgba(10, 34, 57, 0.6); }
}

.category-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.category-card.active .category-icon {
    color: white;
}

.category-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Products Grid */
.products-grid {
    margin-bottom: 3rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 102, 204, 0.2);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 212, 255, 0.3);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-image i {
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.4;
}

.product-info {
    padding: 1.5rem;
}

.product-info h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-actions .btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.btn-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    line-height: 1.2;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.service-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 102, 204, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(255, 255, 255, 0.85);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.4);
}

.service-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-scale {
    animation: fadeInScale 0.6s ease-out;
}

/* Loading Animation */
.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 1s ease-in-out infinite;
}

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

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--brown-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--brown-accent)); }
    50% { background: linear-gradient(135deg, var(--secondary-color), var(--primary-color), var(--brown-accent)); }
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Navbar Logo */
.navbar-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

/* Responsive navbar adjustments */
@media (max-width: 576px) {
    .navbar-logo {
        height: 44px;
    }

    .navbar-brand {
        font-size: 1.7rem;
    }
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--primary-color);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 15px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.15);
}

.scroll-top:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.3);
    border-color: transparent;
}

.scroll-top.show {
    display: flex;
}

/* Additional accent color usage */
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

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

/* Light theme enhancements */
.card-hover-effect {
    transition: all 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 1rem 2rem rgba(29, 132, 181, 0.25);
    animation: cardRipple 0.6s ease-out;
}

@keyframes cardRipple {
    0% { box-shadow: 0 1rem 2rem rgba(29, 132, 181, 0.2); }
    50% { box-shadow: 0 1.5rem 3rem rgba(29, 132, 181, 0.3), 0 0 0 10px rgba(83, 162, 190, 0.15); }
    100% { box-shadow: 0 1rem 2rem rgba(29, 132, 181, 0.2); }
}

/* Accent highlights */
.accent-border {
    border-left: 4px solid var(--accent-color);
}

.accent-text {
    color: var(--accent-color) !important;
}

.accent-bg {
    background-color: var(--accent-color) !important;
    color: var(--secondary-color) !important;
}

/* Enhanced Animations */
.animate-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.animate-card:hover {
    transform: translateY(-20px) scale(1.05) rotateY(5deg);
    box-shadow: 0 2rem 4rem rgba(29, 132, 181, 0.35);
    animation: cardMagic 1s ease-in-out;
}

@keyframes cardMagic {
    0% { filter: hue-rotate(0deg); }
    25% { filter: hue-rotate(90deg); }
    50% { filter: hue-rotate(180deg); }
    75% { filter: hue-rotate(270deg); }
    100% { filter: hue-rotate(360deg); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.floating-icon {
    animation: float 3s ease-in-out infinite;
}

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

.pulse-price {
    animation: priceGlow 2s ease-in-out infinite alternate;
}

@keyframes priceGlow {
    from {
        text-shadow: 0 0 5px var(--accent-color);
    }
    to {
        text-shadow: 0 0 20px var(--accent-color), 0 0 30px var(--accent-color);
    }
}

/* Category Overlay */
.category-card {
    position: relative;
    overflow: hidden;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 34, 57, 0.9), rgba(29, 132, 181, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(100%) rotateX(90deg);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.category-card:hover .category-overlay {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    animation: overlaySlideIn 0.6s ease-out;
}

@keyframes overlaySlideIn {
    0% { transform: translateY(100%) rotateX(90deg); opacity: 0; }
    50% { transform: translateY(50%) rotateX(45deg); opacity: 0.5; }
    100% { transform: translateY(0) rotateX(0deg); opacity: 1; }
}

.view-products {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Product Overlay */
.product-image {
    position: relative;
    overflow: hidden;
}

.product-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.product-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.quick-view {
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Animate Buttons */
.animate-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

/* Stagger Animation for Grid Items */
.animate-card:nth-child(1) { animation-delay: 0.1s; }
.animate-card:nth-child(2) { animation-delay: 0.2s; }
.animate-card:nth-child(3) { animation-delay: 0.3s; }
.animate-card:nth-child(4) { animation-delay: 0.4s; }
.animate-card:nth-child(5) { animation-delay: 0.5s; }

/* Bounce Animation for Icons */
.category-icon i {
    transition: all 0.3s ease;
}

.category-card:hover .category-icon i {
    animation: bounce 0.6s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Enhanced Hover Effects */
.category-card:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: 0 2rem 4rem rgba(29, 132, 181, 0.3);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1.5rem 3rem rgba(29, 132, 181, 0.25);
}

/* Glowing Border Animation */
.glow-border {
    position: relative;
    border: 2px solid transparent;
}

.glow-border:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color), var(--accent-color));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-border:hover:before {
    opacity: 1;
}

/* Strategic Partners Section */
.strategic-partners {
    position: relative;
    overflow: hidden;
    /* Soft glassy blue background so the body gradient still shows through */
    background:
        radial-gradient(ellipse at top, rgba(0, 102, 204, 0.18), transparent 65%),
        radial-gradient(ellipse at bottom, rgba(0, 212, 255, 0.16), transparent 65%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.strategic-partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,212,255,0.16)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.45;
}

/* Stronger text contrast inside Strategic Partners section */
.strategic-partners .gradient-text {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: #003366;
    color: #003366;
}

.strategic-partners .lead {
    color: rgba(10, 34, 57, 0.95) !important;
}

.section-badge {
    position: relative;
    z-index: 2;
}

/* Sliding logo belt for partners */
.partners-logo-belt-wrapper {
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 1.5rem 0 0.5rem;
}

.partners-logo-belt {
    display: flex;
    align-items: center;
}

.partners-logo-belt-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: partnersLogoScroll 35s linear infinite;
}

.partner-logo-item {
    flex: 0 0 auto;
    min-width: 140px;
    max-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
}

.partner-logo-item img {
    max-width: 120px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.9;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo-item:hover img {
    transform: scale(1.08);
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes partnersLogoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .partners-logo-belt-inner {
        gap: 2rem;
        animation-duration: 28s;
    }

    .partner-logo-item {
        min-width: 110px;
        max-width: 140px;
        padding: 0.5rem 0.75rem;
    }

    .partner-logo-item img {
        max-width: 90px;
        max-height: 55px;
    }
}

@media (max-width: 576px) {
    .partners-logo-belt-wrapper {
        padding-top: 1rem;
    }
}

.partners-grid {
    position: relative;
    z-index: 2;
}

.partner-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.partner-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.partner-content {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.partner-logo-img {
    width: 80px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.partner-logo-img img {
    max-width: 80px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(60%);
    opacity: 0.8;
    transition: all 0.4s ease;
    border-radius: 8px;
}

.partner-card:hover .partner-logo-img img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.partner-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.4s ease;
    animation: partnerIconFloat 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.partner-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: partnerIconShine 2s ease-in-out infinite;
}

@keyframes partnerIconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-3px) rotate(120deg); }
    66% { transform: translateY(3px) rotate(240deg); }
}

@keyframes partnerIconShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.partner-icon i {
    font-size: 1.5rem;
    color: white;
    transition: all 0.4s ease;
    z-index: 2;
    position: relative;
}

.partner-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: all 0.4s ease;
}

.partner-category {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    transition: all 0.4s ease;
}

.partner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.partner-card:hover .partner-overlay {
    opacity: 1;
    transform: scale(1);
    animation: partnerOverlayReveal 0.6s ease-out;
}

@keyframes partnerOverlayReveal {
    0% { 
        opacity: 0;
        transform: scale(0.8);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

.partner-card:hover .partner-content {
    opacity: 0;
    transform: translateY(-10px);
}

.overlay-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 3;
}

.overlay-content h6 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
    text-shadow: 0 0 10px rgba(83, 162, 190, 0.8);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 10px rgba(83, 162, 190, 0.8); }
    to { text-shadow: 0 0 20px rgba(83, 162, 190, 1), 0 0 30px rgba(10, 34, 57, 0.8); }
}

.overlay-content p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.partner-country {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(83, 162, 190, 0.08);
    border-radius: 15px;
    border: 1px solid rgba(83, 162, 190, 0.3);
}

.country-flag {
    font-size: 1.2rem;
}

.country-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
}

.partnership-stats {
    position: relative;
    z-index: 2;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--brown-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: statNumberPulse 2s ease-in-out infinite, statGradientShift 4s ease-in-out infinite;
}

@keyframes statNumberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes statGradientShift {
    0%, 100% { background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--brown-accent)); }
    33% { background: linear-gradient(45deg, var(--secondary-color), var(--brown-accent), var(--primary-color)); }
    66% { background: linear-gradient(45deg, var(--brown-accent), var(--primary-color), var(--secondary-color)); }
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .partner-card {
        height: 180px;
        padding: 1.5rem 1rem;
    }
    
    .partner-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }
    
    .partner-icon i {
        font-size: 1.25rem;
    }
    
    .partner-name {
        font-size: 1.1rem;
    }
    
    .partner-category {
        font-size: 0.8rem;
    }
    
    .overlay-content p {
        font-size: 0.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .strategic-partners {
        padding: 3rem 0 !important;
    }
    
    .partner-card {
        height: 160px;
        padding: 1rem;
    }
    
    .partner-icon {
        width: 45px;
        height: 45px;
    }
    
    .partner-name {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}

/* Animation for cards appearing */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modern Loading Animations */
.modern-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(29, 132, 181, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: modernSpin 1s ease-in-out infinite;
}

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

/* Particle Effect Animation */
.particle-bg {
    position: relative;
    overflow: hidden;
}

.particle-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(29, 132, 181, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(83, 162, 190, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(10, 34, 57, 0.12) 0%, transparent 50%);
    animation: particleFloat 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes particleFloat {
    0%, 100% { transform: translateX(0) translateY(0); }
    33% { transform: translateX(10px) translateY(-10px); }
    66% { transform: translateX(-10px) translateY(10px); }
}

/* Morphing Button Animation */
.morph-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.morph-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.morph-btn:hover::before {
    width: 300%;
    height: 300%;
}

/* Glitch Effect */
.glitch-text {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: var(--primary-color);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: var(--secondary-color);
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(-2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(-2px, -2px); }
}

/* Memberships Section */
.memberships-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(83, 162, 190, 0.05));
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(83, 162, 190, 0.1);
    backdrop-filter: blur(10px);
}

.memberships-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.membership-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(83, 162, 190, 0.2);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.membership-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(83, 162, 190, 0.15);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.95);
}

.membership-logo {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    position: relative;
}

.membership-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 0.5rem;
}

.membership-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    display: none;
    animation: membershipIconPulse 2s ease-in-out infinite;
}

@keyframes membershipIconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(29, 132, 181, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(29, 132, 181, 0); }
}

.membership-info h6 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.membership-item:hover .membership-info h6 {
    color: var(--accent-color);
}

/* Responsive Design for Memberships */
@media (max-width: 768px) {
    .membership-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .membership-logo {
        width: 60px;
        height: 60px;
    }

    .memberships-section {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .memberships-section {
        padding: 1rem;
    }

    .membership-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0.75rem;
        gap: 0.5rem;
    }

    .membership-logo {
        width: 50px;
        height: 50px;
    }

    .membership-info h6 {
        font-size: 1rem;
    }
}

