/*
Theme Name: Zcontrol
Theme URI: https://www.zucontrol.com/
Author: Zoey
Description: Custom theme clone of https://www.zucontrol.com/
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: zucontrol
*/

* {
    margin-top: 0 !important;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    scroll-behavior: smooth;
    padding-top: 85px !important;
    /* Offset for fixed header */
}

/* Force nav to absolute top */
nav.fixed {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
}

/* Compensate only if admin bar is PHYSICALLY present */
#wpadminbar {
    display: none !important;
    /* Force hide if it's causing white space without content */
}

/* If the user actually wants the admin bar, they can remove the rule above,
   but this will solve the "mystery" white space immediately. */

/* Custom Header Styles */
.custom-primary-menu li a {
    color: white !important;
    font-weight: 600;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.custom-primary-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #facc15;
    /* Yellow-400 */
    transition: width 0.3s ease;
}

.custom-primary-menu li a:hover::after,
.custom-primary-menu li.current-menu-item a::after {
    width: 100%;
}

.custom-primary-menu li a:hover {
    color: #facc15 !important;
}

.custom-primary-menu li.current-menu-item a {
    color: #facc15 !important;
}

.custom-logo-img {
    transition: transform 0.3s ease;
}

.custom-logo-img:hover {
    transform: scale(1.05);
}

.hero-bg {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.gradient-text {
    background: linear-gradient(to right, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Active State */
.skill-card.active {
    border-color: #3b82f6;
    background-color: #eff6ff;
    /* blue-50 */
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15);
}

.skill-card.active .icon-box {
    background-color: #3b82f6;
    color: white;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Modal Animation */
.modal-enter {
    opacity: 0;
    transform: scale(0.95);
}

.modal-enter-active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.modal-exit {
    opacity: 1;
    transform: scale(1);
}

.modal-exit-active {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.2s ease-in, transform 0.2s ease-in;
}

/* Nav Link Active State */
.nav-link.active-link {
    color: #3b82f6;
    /* blue-600 */
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 4px;
}

.mobile-nav-link.active-mobile-link {
    background-color: #eff6ff;
    /* blue-50 */
    color: #2563eb;
    /* blue-600 */
}

/* Marquee Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    display: flex;
    animation: scroll 40s linear infinite;
    width: max-content;
    padding-left: 1.5rem;
    /* gap-6 is 1.5rem */
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Chatbox Styles - Mimicking Premium AI Interfaces */
#contactDialog.open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(100%);
}

#emojiPicker.open {
    display: grid;
    animation: fadeIn 0.2s ease-out;
}

/* Scrollbar for chat */
.dialog-content::-webkit-scrollbar {
    width: 6px;
}

.dialog-content::-webkit-scrollbar-track {
    background: transparent;
}

.dialog-content::-webkit-scrollbar-thumb {
    background-color: rgba(203, 213, 225, 0.5);
    /* slate-300 */
    border-radius: 20px;
}

/* User Message */
.chat-message.user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-message.user .message-header {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
    /* slate-400 */
    margin-bottom: 0.25rem;
}

.chat-message.user .message-bubble {
    background-color: #3b82f6;
    /* blue-600 */
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border-top-right-radius: 0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    max-width: 85%;
    font-size: 1rem;
    line-height: 1.5;
    word-break: break-word;
}

/* Support (AI) Message */
.chat-message.support {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.chat-message.support .message-header {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
    /* slate-400 */
    margin-bottom: 0.25rem;
}

.chat-message.support .message-bubble {
    background-color: white;
    border: 1px solid #e2e8f0;
    /* slate-200 */
    color: #334155;
    /* slate-700 */
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border-top-left-radius: 0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    max-width: 85%;
    font-size: 1rem;
    line-height: 1.5;
    word-break: break-word;
}

.chat-message.support .message-bubble img {
    max-width: 100%;
    border-radius: 0.5rem;
}

/* Animation */
@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(-5%);
    }

    50% {
        transform: translateY(5%);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s infinite ease-in-out;
}

/* Industrial Contact Form Styles */
.contact-form-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #cbd5e1;
    /* slate-300 */
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper input[type="url"],
.contact-form-wrapper textarea {
    width: 100%;
    background-color: #1e293b !important;
    /* slate-800 */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white !important;
    transition: all 0.3s ease;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: #facc15 !important;
    /* yellow-400 */
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
}

.contact-form-wrapper .wpcf7-submit,
.contact-form-wrapper button[type="submit"] {
    background-color: #2563eb !important;
    /* blue-600 */
    color: white !important;
    font-weight: 800;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

.contact-form-wrapper .wpcf7-submit:hover,
.contact-form-wrapper button[type="submit"]:hover {
    background-color: #1d4ed8 !important;
    /* blue-700 */
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* Contact Page Specifics */
.contact-page-wrapper {
    min-height: 100vh;
}