/* =========================================
   ANYESS GLOBAL — Soothing Light Theme
   ========================================= */

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f7f5f2; }
::-webkit-scrollbar-thumb { background: #c9c4bc; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #3b82f6; }

/* ---- Selection ---- */
::selection { background: rgba(59,130,246,0.18); color: #2c3338; }

/* ---- Base ---- */
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #faf9f7;
    color: #3d4550;
    overflow-x: hidden;
}

/* ---- Text Gradient ---- */
.text-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 40%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================
   NAVBAR
   ============================= */
#main-nav {
    background: transparent;
}

#main-nav.scrolled {
    background: rgba(250, 249, 247, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.mobile-menu-closed {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
    opacity: 0;
}

.mobile-menu-open {
    max-height: 500px;
    opacity: 1;
}

/* Hamburger X state */
#mobile-menu-btn.is-open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#mobile-menu-btn.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#mobile-menu-btn.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 24px !important;
}

/* =============================
   HERO
   ============================= */
.hero-bg {
    background-color: #f5f3ef;
}

.hero-grid-overlay {
    background-image:
        linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero-orb {
    will-change: transform;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}
@keyframes floatOrb2 {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(20px) scale(0.95); }
}

.hero-orb-1 { animation: floatOrb1 8s ease-in-out infinite; }
.hero-orb-2 { animation: floatOrb2 10s ease-in-out infinite; }

/* Hero dots */
.hero-dot { cursor: pointer; }
.active-dot {
    width: 20px !important;
    background: rgba(59,130,246,0.7) !important;
    border-radius: 4px !important;
}

/* =============================
   ABOUT
   ============================= */
.about-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

.about-feature {
    position: relative;
    overflow: hidden;
}
.about-feature::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #3b82f6, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.about-feature:hover::before { opacity: 1; }

/* =============================
   PRODUCTS SECTION
   ============================= */
.products-grid-bg {
    background-image: radial-gradient(circle at 50% 0%, rgba(59,130,246,0.04) 0%, transparent 70%);
}

/* Category Cards */
.category-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e2dd;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    display: block;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(59,130,246,0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59,130,246,0.35);
    background: #f5f8fa;
    box-shadow: 0 16px 36px rgba(0,0,0,0.06), 0 0 0 1px rgba(59,130,246,0.12);
}

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

.category-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(59,130,246,0.07);
    border: 1px solid rgba(59,130,246,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
    color: #2563eb;
    font-size: 18px;
}

.category-card:hover .category-card-icon {
    background: rgba(59,130,246,0.12);
    border-color: rgba(59,130,246,0.3);
    transform: scale(1.1);
}

.category-card-title {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2c3338;
    margin-bottom: 6px;
}

.category-card-sub {
    font-size: 0.78rem;
    color: #7a8290;
}

/* Carousel track */
#home-category-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 16px;
}

.carousel-ctrl {
    transition: all 0.2s ease;
}

/* =============================
   PARTNERS
   ============================= */
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-track {
    animation: scrollLeft 40s linear infinite;
}
.logo-track:hover {
    animation-play-state: paused;
}

.partners-fade-left {
    background: linear-gradient(to right, #faf9f7, transparent);
}
.partners-fade-right {
    background: linear-gradient(to left, #faf9f7, transparent);
}

/* =============================
   CONTACT
   ============================= */
.contact-bg-glow {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.04) 0%, transparent 70%);
    top: 50%;
    right: -200px;
    transform: translateY(-50%);
}

/* Form inputs — soft focus ring */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(59,130,246,0.10);
}

/* Form success/error messages */
.form-success {
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.07);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-error {
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(220, 80, 80, 0.05);
    border: 1px solid rgba(220, 80, 80, 0.18);
    color: #c53030;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =============================
   SECTION DIVIDER
   ============================= */
.section-divider {
    background: radial-gradient(ellipse 100% 50% at 50% 0%, rgba(59,130,246,0.03) 0%, transparent 70%);
}

/* =============================
   AOS OVERRIDES
   ============================= */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* =============================
   UTILITY: Section Label Pill
   ============================= */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(59,130,246,0.06);
    border: 1px solid rgba(59,130,246,0.15);
    color: #2563eb;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 768px) {
    .hero-grid-overlay {
        background-size: 40px 40px;
    }
}

/* =============================
   STATS STRIP
   ============================= */
.stats-item {
    position: relative;
    padding: 16px;
}
.stats-item::after {
    content: '';
    position: absolute;
    right: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: rgba(255,255,255,0.15);
}
.stats-item:last-child::after { display: none; }

/* =============================
   INDUSTRY CHIPS
   ============================= */
.industry-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 99px;
    background: #ffffff;
    border: 1px solid #e5e2dd;
    font-size: 0.8rem;
    font-weight: 500;
    color: #3d4550;
    transition: all 0.2s ease;
    cursor: default;
}
.industry-chip:hover {
    border-color: rgba(59,130,246,0.35);
    background: rgba(59,130,246,0.04);
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(59,130,246,0.08);
}

/* =============================
   SECTION DOT PATTERN (About)
   ============================= */
#about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(59,130,246,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 40%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}
#about > * { position: relative; z-index: 1; }

/* =============================
   PRODUCT PAGE (products.html support)
   ============================= */
.sidebar-nav-link {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #7a8290;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
    margin-bottom: 4px;
}
.sidebar-nav-link:hover {
    background: #f0eee9;
    color: #2c3338;
    border-color: #e5e2dd;
    transform: translateX(4px);
}
.sidebar-nav-link.active {
    background: rgba(59,130,246,0.07);
    color: #2563eb;
    border-color: rgba(59,130,246,0.18);
}

/* =============================
   PREMIUM HOVER EFFECTS
   ============================= */

/* Buttons — glow on hover */
a[href="#contact"],
a[href="index.html#contact"],
button[type="submit"],
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a[href="#contact"]:hover,
a[href="index.html#contact"]:hover,
button[type="submit"]:hover {
    box-shadow: 0 8px 30px rgba(59,130,246,0.25), 0 0 0 1px rgba(59,130,246,0.1);
}

/* Ripple shimmer on CTA buttons */
a[href="#contact"]::after,
a[href="index.html#contact"]::after,
button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}
a[href="#contact"]:hover::after,
a[href="index.html#contact"]:hover::after,
button[type="submit"]:hover::after {
    left: 120%;
}

/* About feature cards — lift + soft glow */
.about-feature {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.about-feature:hover {
    transform: translateY(-3px) translateX(2px);
    box-shadow: 0 12px 28px rgba(59,130,246,0.08);
}

/* Category cards — enhanced glow */
.category-card {
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), border-color 0.3s, background 0.3s, box-shadow 0.4s;
}
.category-card:hover {
    box-shadow: 0 20px 50px rgba(59,130,246,0.10), 0 0 0 1px rgba(59,130,246,0.15), 0 0 60px rgba(59,130,246,0.04);
}

/* Contact info items — subtle slide */
.contact-info-item {
    transition: transform 0.25s ease, background 0.25s ease;
    border-radius: 12px;
    padding: 4px;
}
.contact-info-item:hover {
    transform: translateX(6px);
}

/* Nav links — underline sweep */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #818cf8);
    border-radius: 99px;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Partner logos — smooth scale on hover */
.logo-slide {
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}
.logo-slide:hover {
    transform: scale(1.08);
}

/* Section pills — subtle pulse hover */
.section-label:hover,
[class*="rounded-full"][class*="bg-accent"]  {
    transition: all 0.3s ease;
}

/* =============================
   SCROLL TO TOP BUTTON
   ============================= */
#scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 100;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(59,130,246,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1), background 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(59,130,246,0.2);
}

#scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#scroll-to-top:hover {
    background: rgba(37,99,235,1);
    box-shadow: 0 12px 36px rgba(59,130,246,0.35);
    transform: translateY(-3px) scale(1.05);
}

#scroll-to-top:active {
    transform: translateY(0) scale(0.95);
}

/* =============================
   BACKGROUND PATTERNS
   ============================= */
.bg-pattern-dots {
    background-image: radial-gradient(rgba(59, 130, 246, 0.08) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

.bg-pattern-dots-white {
    background-image: radial-gradient(rgba(255, 255, 255, 1) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

.bg-pattern-diagonal {
    background-image: repeating-linear-gradient(45deg, rgba(59, 130, 246, 0.03) 0, rgba(59, 130, 246, 0.03) 1px, transparent 1px, transparent 10px);
}

/* Update Partner Fades to match solid white bg instead of transparent */
.partners-fade-left {
    background: linear-gradient(to right, #ffffff, transparent);
}
.partners-fade-right {
    background: linear-gradient(to left, #ffffff, transparent);
}

#mobile-menu-btn {
    position: relative;
    z-index: 9999 !important; /* Forces the button to the very front */
    cursor: pointer !important;
}

#mobile-menu {
    z-index: 9998 !important;
}
