/* Jamavisa Labs - Custom Styles */

/* Root Variables */
:root {
    --primary-color: #0066CC;
    --accent-color: #00A884;
    --background-color: #F7FAFC;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Site Loader */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(0, 168, 132, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(0, 102, 204, 0.12), rgba(0, 168, 132, 0.12)),
        var(--background-color);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    width: 106px;
    height: 56px;
    display: block;
    margin: 30px auto;
    background-image:
        linear-gradient(var(--primary-color) 50px, transparent 0),
        linear-gradient(var(--primary-color) 50px, transparent 0),
        linear-gradient(var(--primary-color) 50px, transparent 0),
        linear-gradient(var(--accent-color) 50px, transparent 0),
        radial-gradient(circle 14px, var(--accent-color) 100%, transparent 0);
    background-size: 48px 15px, 15px 35px, 15px 35px, 25px 15px, 28px 28px;
    background-position: 25px 5px, 58px 20px, 25px 17px, 2px 37px, 76px 0;
    background-repeat: no-repeat;
    position: relative;
    transform: rotate(-45deg);
    box-sizing: border-box;
    filter: drop-shadow(0 12px 22px rgba(0, 102, 204, 0.25));
}

.loader::after,
.loader::before {
    content: '';
    position: absolute;
    width: 56px;
    height: 56px;
    border: 6px solid var(--primary-color);
    border-radius: 50%;
    left: -45px;
    top: -10px;
    background-color: rgba(255, 255, 255, 0.92);
    background-repeat: no-repeat;
    background-image:
        linear-gradient(var(--accent-color) 64px, transparent 0),
        linear-gradient(var(--accent-color) 66px, transparent 0),
        radial-gradient(circle 4px, var(--primary-color) 100%, transparent 0);
    background-size: 40px 1px, 1px 40px, 8px 8px;
    background-position: center center;
    box-sizing: border-box;
    animation: rotation 0.45s linear infinite;
}

.loader::before {
    left: 25px;
    top: 60px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

img {
    max-width: 100%;
    height: auto;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #0052A3;
    border-color: #0052A3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transition: var(--transition);
}

.btn-accent:hover {
    background-color: #007A6F;
    border-color: #007A6F;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Page Transitions */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Top Bar */
.top-bar {
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links .social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Modern Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    transition: var(--transition);
}

.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
    padding: 0.3rem 0;
}

/* Logo and Brand */
.logo-container {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.navbar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-text {
    line-height: 1.2;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Toggler */
.modern-toggler {
    border: none;
    background: transparent;
    width: 45px;
    height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.modern-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hamburger Animation */
.modern-toggler[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.modern-toggler[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.modern-toggler[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Links */
.modern-nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color) !important;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

.modern-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    transition: var(--transition);
}

.modern-nav-link:hover::before {
    left: 100%;
}

.modern-nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(0, 102, 204, 0.05);
    transform: translateY(-1px);
}

/* Active Link */
.modern-nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(0, 102, 204, 0.1);
    font-weight: 600;
}

/* Modern Dropdown */
.modern-dropdown {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.modern-dropdown .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
    border-radius: 6px;
    margin: 0.25rem 0.5rem;
    touch-action: manipulation;
}

.modern-dropdown .dropdown-item:hover {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.modern-dropdown .dropdown-item i {
    font-size: 1.1rem;
}

/* CTA Button */
.modern-cta-btn {
    border-radius: 25px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.modern-cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
}

.modern-cta-btn:hover::before {
    width: 120px;
    height: 120px;
}

.modern-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 102, 204, 0.4);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.3s ease;
}

/* Navbar Animation on Scroll */
.navbar-custom.navbar-shrink {
    padding: 0.25rem 0;
}

.navbar-custom.navbar-shrink .brand-title {
    font-size: 1.1rem;
}

.navbar-custom.navbar-shrink .brand-subtitle {
    font-size: 0.65rem;
}

.navbar-custom.navbar-shrink .logo-container {
    width: 40px;
    height: 40px;
}

.navbar-custom.navbar-shrink .navbar-logo {
    width: 32px;
    height: 32px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/pattern-grid.jpeg') repeat;
    opacity: 0.1;
    animation: parallax 20s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes parallax {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-img-top {
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* 3D Tilt Effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: rotateX(5deg) rotateY(5deg);
}

/* Board Size Animation */
.board-preview {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: var(--transition);
}

.board-preview:hover {
    transform: scale(1.05);
}

.board-size {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.board-preview:hover .board-size {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Form */
.form-control {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-select {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    border: none;
}

/* Footer */
footer a:hover {
    color: var(--accent-color) !important;
    transition: var(--transition);
}

.footer-main .footer-col {
    display: flex;
    flex-direction: column;
}

.footer-main .footer-links a {
    display: inline-block;
    line-height: 1.35;
    position: relative;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-main .footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.footer-main .footer-links a:hover {
    transform: translateX(4px);
}

.footer-main .footer-links a:hover::after {
    transform: scaleX(1);
}

.footer-main .footer-social a {
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-main .footer-social a:hover {
    transform: translateY(-2px);
}

.footer-main .footer-credit-link {
    color: #ffffff;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-main .footer-credit-link:hover {
    color: var(--accent-color) !important;
    text-shadow: 0 0 14px rgba(0, 168, 132, 0.35);
}

.footer-main .footer-bottom-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-content .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .hero-content .badge {
        display: block;
        margin: 0.5rem 0;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .hero-content .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .navbar-brand img {
        height: 30px;
    }

    .card {
        margin-bottom: 20px;
    }

    /* Mobile Navbar */
    .top-bar {
        font-size: 0.8rem;
        text-align: center;
    }

    .top-bar .col-md-8,
    .top-bar .col-md-4 {
        flex: 0 0 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .navbar-custom {
        padding: 0.25rem 0;
    }

    .logo-container {
        width: 40px;
        height: 40px;
    }

    .navbar-logo {
        width: 32px;
        height: 32px;
    }

    .brand-title {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-subtitle {
        font-size: 0.65rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-text {
        max-width: calc(100vw - 165px);
    }

    .modern-nav-link {
        padding: 0.5rem 0.75rem;
        margin: 0.1rem;
        font-size: 0.9rem;
    }

    .navbar-cta {
        margin-top: 1rem;
        text-align: center;
    }

    .modern-cta-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .modern-dropdown .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Mobile menu animation */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 0 0 12px 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
        padding: 1rem;
    }

    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0.35rem;
        box-shadow: none;
        border: 1px solid rgba(0, 102, 204, 0.12);
    }

    .modern-nav-link,
    .modern-dropdown .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .top-bar .d-flex.align-items-center.flex-wrap {
        justify-content: center;
        gap: 0.35rem 0.8rem;
    }

    .top-bar .d-flex.align-items-center.flex-wrap > a,
    .top-bar .d-flex.align-items-center.flex-wrap > div {
        margin-right: 0 !important;
    }

    .footer-main {
        text-align: center;
    }

    .footer-main .footer-col {
        align-items: center;
    }

    .footer-main .footer-links {
        width: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Loading Spinner */
.spinner {
    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); }
}

/* Service Sections */
.service-section {
    position: relative;
    overflow: hidden;
}

.service-content {
    padding: 2rem 0;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 168, 132, 0.1));
    margin-bottom: 1rem;
}

.service-gallery {
    position: relative;
}

.service-image {
    transition: var(--transition);
    border-radius: 12px !important;
}

.service-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Service Stats */
.service-stats .stat-number {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.service-stats .stat-label {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Service Features */
.service-features .feature-item {
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

.service-features .feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Board Preview Home */
.board-preview-home {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.board-sizes {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.size-option {
    flex: 1;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.size-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.size-option:hover:not(.active) {
    background: rgba(0, 102, 204, 0.1);
    border-color: var(--primary-color);
}

.size-label {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.size-dim {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Manufacturing Highlight */
.manufacturing-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    border: none;
}

/* Responsive Service Sections */
@media (max-width: 768px) {
    .service-section {
        padding: 60px 0;
    }

    .service-content {
        padding: 1rem 0;
        text-align: center;
    }

    .service-content h2 {
        font-size: 2rem;
    }

    .service-gallery .col-6 {
        margin-bottom: 1rem;
    }

    .board-sizes {
        flex-direction: column;
        gap: 0.5rem;
    }

    .size-option {
        padding: 0.75rem;
    }

    .service-stats .stat-number {
        font-size: 2rem;
    }

    .service-features .feature-item {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .service-section .display-5 {
        font-size: 1.8rem;
    }

    .service-content .lead {
        font-size: 1rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 1.8rem;
    }
}

/* Utility Classes */
.section-padding {
    padding: 60px 0;
}

/* Responsive section padding */
@media (max-width: 768px) {
    .section-padding {
        padding: 40px 0;
    }
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-overlay {
    position: relative;
}

.bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.bg-overlay > * {
    position: relative;
    z-index: 2;
}

/* Quick Links Full Screen Section */
.quick-links-fullscreen {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(0, 168, 132, 0.05));
    padding: 4rem 2rem;
    margin: 3rem 0;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.quick-links-fullscreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/pattern-grid.jpeg') repeat;
    opacity: 0.03;
    pointer-events: none;
}

.quick-links-header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 3rem;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Quick Links Cards */
.quick-link-card {
    display: block;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 1));
    border: 2px solid rgba(0, 102, 204, 0.15);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    z-index: 1;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    transition: left 0.6s ease;
}

.quick-link-card:hover::before {
    left: 100%;
}

.quick-link-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.2);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(0, 102, 204, 0.05));
}

.quick-link-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.quick-link-card:hover .quick-link-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.quick-link-title {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.quick-link-card:hover .quick-link-title {
    color: var(--primary-color);
}

.quick-link-desc {
    color: var(--light-text);
    transition: color 0.3s ease;
}

.quick-link-card:hover .quick-link-desc {
    color: var(--text-color);
}

/* Responsive Quick Links */
@media (max-width: 768px) {
    .quick-link-card {
        padding: 1.2rem 0.8rem;
        margin-bottom: 1rem;
    }

    .quick-link-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .quick-link-title {
        font-size: 0.9rem;
    }

    .quick-link-desc {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .quick-link-card {
        padding: 1rem 0.6rem;
    }

    .quick-link-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 768px) {
    .quick-links-fullscreen {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        padding: 2.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .quick-links-fullscreen {
        padding: 2rem 0.85rem;
    }
}

/* Kids Study Section */
.kids-study-content {
    padding: 2rem 0;
}

.kids-study-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 168, 132, 0.1));
    margin-bottom: 1rem;
}

.kids-study-features .feature-item-kids {
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
    height: 100%;
}

.kids-study-features .feature-item-kids:hover {
    transform: translateY(-5px) translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.15);
    border-left-color: var(--primary-color);
}

.kids-study-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    border: none;
    position: relative;
    overflow: hidden;
}

.kids-study-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.kids-study-gallery .kids-study-image {
    transition: all 0.3s ease;
    border-radius: 12px !important;
}

.kids-study-gallery .kids-study-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.image-caption {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: inline-block;
    min-width: 80px;
}

/* Responsive Kids Study Section */
@media (max-width: 768px) {
    .kids-study-content {
        padding: 1rem 0;
        text-align: center;
    }

    .kids-study-content h2 {
        font-size: 2rem;
    }

    .kids-study-highlight {
        text-align: left;
    }

    .kids-study-highlight .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .kids-study-highlight .fa-star {
        margin-bottom: 1rem;
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .kids-study-icon {
        width: 60px;
        height: 60px;
    }

    .kids-study-icon i {
        font-size: 1.8rem;
    }

    .kids-study-content .display-5 {
        font-size: 1.8rem;
    }

    .kids-study-content .lead {
        font-size: 1rem;
    }
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.back-to-top-btn:active {
    transform: translateY(-1px) scale(1.05);
}

.back-to-top-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3), 0 4px 15px rgba(0, 102, 204, 0.3);
}

/* Responsive Back to Top Button */
@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .back-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    img[style*="max-height: 400px"] {
        max-height: 260px !important;
    }

    .card-img-top[style*="height: 200px"] {
        height: 165px !important;
    }

    .card-img-top[style*="height: 150px"] {
        height: 125px !important;
    }

    .section-padding {
        padding: 32px 0;
    }

    .display-4 {
        font-size: 1.9rem;
    }

    .display-5 {
        font-size: 1.7rem;
    }

    .lead {
        font-size: 0.98rem;
    }

    .card .card-body {
        padding: 1rem;
    }

    .form-control,
    .form-select {
        min-height: 44px;
    }

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

    .btn-lg {
        width: 100%;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .brand-text {
        max-width: calc(100vw - 150px);
    }

    .top-bar .d-flex.align-items-center.flex-wrap span {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 420px) {
    .brand-title {
        font-size: 0.98rem;
    }

    .brand-subtitle {
        font-size: 0.6rem;
    }
}

/* Disinfectants Page (Scoped) */
.disinfectants-page {
    overflow: hidden;
    z-index: 1;
}

.disinfectants-page .bubble-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.disinfectants-page .bubble {
    position: absolute;
    bottom: -120px;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.12);
    animation: disinfectantBubbleRise linear infinite;
    will-change: transform, opacity;
}

.disinfectants-page .bubble-1 {
    left: 8%;
    width: 24px;
    height: 24px;
    animation-duration: 9s;
}

.disinfectants-page .bubble-2 {
    left: 22%;
    width: 16px;
    height: 16px;
    animation-duration: 7s;
    animation-delay: 1.4s;
}

.disinfectants-page .bubble-3 {
    left: 40%;
    width: 32px;
    height: 32px;
    animation-duration: 11s;
    animation-delay: 2.2s;
}

.disinfectants-page .bubble-4 {
    left: 58%;
    width: 20px;
    height: 20px;
    animation-duration: 8s;
    animation-delay: 0.8s;
}

.disinfectants-page .bubble-5 {
    left: 75%;
    width: 28px;
    height: 28px;
    animation-duration: 10s;
    animation-delay: 1.8s;
}

.disinfectants-page .bubble-6 {
    left: 90%;
    width: 14px;
    height: 14px;
    animation-duration: 7.5s;
    animation-delay: 2.6s;
}

@keyframes disinfectantBubbleRise {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0;
    }
    15% {
        opacity: 0.45;
    }
    100% {
        transform: translate3d(-18px, -110vh, 0) scale(1.2);
        opacity: 0;
    }
}

.disinfectants-page .container {
    z-index: 1;
}

.disinfectants-page .disinfectant-product-card {
    position: relative;
    isolation: isolate;
    animation: disinfectantCardFade 0.55s ease both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.disinfectants-page .disinfectant-product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, transparent 25%, rgba(255, 255, 255, 0.35) 50%, transparent 75%);
    transform: translateX(-115%);
    transition: transform 0.6s ease;
    z-index: 0;
    pointer-events: none;
}

.disinfectants-page .disinfectant-product-card:hover {
    transform: translateY(-7px);
}

.disinfectants-page .disinfectant-product-card:hover::after {
    transform: translateX(115%);
}

.disinfectants-page .disinfectant-product-card .card-body {
    position: relative;
    z-index: 1;
}

.disinfectants-page .disinfectant-product-card i {
    animation: disinfectantIconPulse 2.8s ease-in-out infinite;
}

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

.disinfectant-pack-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.disinfectant-pack-badge:hover {
    background: rgba(0, 102, 204, 0.2);
    color: #0052a3;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Quality Check Section (Scoped) */
.quality-checks-wrap {
    background: linear-gradient(140deg, rgba(0, 102, 204, 0.06), rgba(0, 168, 132, 0.08));
    border: 1px solid rgba(0, 102, 204, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
}

.quality-intro {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.quality-check-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 102, 204, 0.14);
    border-radius: 12px;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.quality-check-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 102, 204, 0.35);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.12);
}

.quality-check-card i {
    font-size: 1.35rem;
}

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

@media (max-width: 768px) {
    .disinfectants-page .bubble {
        opacity: 0.35;
    }

    .disinfectants-page .disinfectant-product-card:hover {
        transform: translateY(-4px);
    }

    .quality-checks-wrap {
        padding: 1rem;
    }
}
