/*
Theme Name: Dendro Logic WP Template
Theme URI: https://dendro-logic.com
Author: Dendro Logic
Author URI: https://dendro-logic.com
Description: Custom WordPress theme for Dendro Logic using Tailwind CSS.
Version: 2.3.0
License: Proprietary
*/

/* Core Defaults */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    color: #e5e5e5;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(16, 185, 129, 0.3);
    /* Dendro Green hint */
}

/* Gradient Text Utilities */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #10b981, #2dd4bf);
}

/* ------------------------------------------------------------------------- *
 *  Animations
 * ------------------------------------------------------------------------- */
@keyframes dendro-orb-loop {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.15;
    }

    33% {
        transform: translate3d(40px, -40px, 0) scale(1.1);
        opacity: 0.35;
    }

    66% {
        transform: translate3d(-20px, 30px, 0) scale(0.95);
        opacity: 0.2;
    }
}

.animate-blob {
    animation: dendro-orb-loop 25s infinite ease-in-out;
    animation-fill-mode: both;
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

.animation-delay-2000 {
    animation-delay: 2s !important;
}

.animation-delay-4000 {
    animation-delay: 4s !important;
}

.animation-delay-6000 {
    animation-delay: 6s !important;
}

.animation-delay-8000 {
    animation-delay: 8s !important;
}

.animation-delay-12000 {
    animation-delay: 12s !important;
}

.animation-delay-15000 {
    animation-delay: 15s !important;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    }
}

.animate-glow {
    animation: glow 3s infinite;
}

/* Form Styles Override */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #e5e5e5;
    -webkit-box-shadow: 0 0 0px 1000px #0a0a0a inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Project Modal */
#project-modal {
    transition: opacity 0.3s ease-in-out;
}

#project-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

#project-modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* ------------------------------------------------------------------------- *
 *  Custom Scrollbar (Dark Theme)
 * ------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 10px;
    background-color: #0a0a0a;
}

::-webkit-scrollbar-track {
    background-color: #0a0a0a;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background-color: #262626;
    border-radius: 5px;
    border: 2px solid #0a0a0a;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #10b981;
}

/* ------------------------------------------------------------------------- *
 *  Navigation Active States (WordPress Generated Classes)
 * ------------------------------------------------------------------------- */
/* Force Override for Any Active State - Desktop & Mobile */
.current-menu-item a,
.current-menu-parent a,
.current-menu-ancestor a,
.current_page_item a,
.current_page_parent a,
.current_page_ancestor a {
    color: #10b981 !important;
    font-weight: 700 !important;
}

/* Ensure specific targeting for Mobile Menu */
#mobile-menu .current-menu-item a,
#mobile-menu .current_page_item a {
    color: #10b981 !important;
    border-left: 2px solid #10b981 !important;
    padding-left: 10px !important;
}