/*
Theme Name: AI Xpertive
Theme URI: https://aixpertive.com
Author: AI Xpertive
Author URI: https://aixpertive.com
Description: A premium, standalone WordPress classic theme for AI automation agencies. Dark-mode tech aesthetic, styled with Tailwind CSS, pre-loaded with Home, Services, Portfolio and Contact pages. Glassmorphism cards, neon cyber-blue accents and conversion-focused B2B layouts.
Version: 1.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-xpertive
Tags: dark, business, agency, technology, portfolio, custom-menu, featured-images, full-width-template
*/

/* =========================================================================
   AI Xpertive – Base styles
   Tailwind (loaded via CDN in header.php) handles the bulk of layout and
   utility styling. The rules below cover global resets, custom fonts,
   smooth scrolling, scrollbars, animations and a few helper classes that
   Tailwind utilities can't express on their own.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --ax-bg: #0D0D12;
    --ax-bg-soft: #15151F;
    --ax-bg-card: #1A1A26;
    --ax-cyber-blue: #00D4FF;
    --ax-cyber-purple: #7C3AED;
    --ax-neon-cyan: #22D3EE;
    --ax-border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--ax-bg);
    color: #E5E7EB;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.font-display {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ----- Custom scrollbar ------------------------------------------------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--ax-bg);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--ax-cyber-blue), var(--ax-cyber-purple));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--ax-neon-cyan);
}

/* ----- Selection -------------------------------------------------------- */
::selection {
    background: rgba(0, 212, 255, 0.25);
    color: #ffffff;
}

/* ----- Reusable accent / effect helpers --------------------------------- */
.ax-gradient-text {
    background: linear-gradient(90deg, #00D4FF 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.ax-glass {
    background: rgba(26, 26, 38, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--ax-border);
}

.ax-glow {
    box-shadow: 0 0 40px -10px rgba(0, 212, 255, 0.45);
}

.ax-grid-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* Radial glow used behind hero / section headers */
.ax-radial-glow {
    background:
        radial-gradient(60% 60% at 50% 0%, rgba(0, 212, 255, 0.12) 0%, transparent 70%),
        radial-gradient(40% 50% at 80% 20%, rgba(124, 58, 237, 0.14) 0%, transparent 70%);
}

/* ----- Card hover lift -------------------------------------------------- */
.ax-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.ax-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 20px 50px -20px rgba(0, 212, 255, 0.45);
}

/* ----- Buttons ---------------------------------------------------------- */
.ax-btn-primary {
    background: linear-gradient(90deg, #00D4FF 0%, #4F46E5 60%, #7C3AED 100%);
    color: #06060A;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.ax-btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 14px 40px -10px rgba(0, 212, 255, 0.6);
}

.ax-btn-ghost {
    border: 1px solid rgba(0, 212, 255, 0.5);
    color: #E5E7EB;
    transition: all 0.25s ease;
}
.ax-btn-ghost:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--ax-cyber-blue);
    box-shadow: 0 0 24px -6px rgba(0, 212, 255, 0.5);
}

/* ----- Animations ------------------------------------------------------- */
@keyframes ax-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
.ax-float {
    animation: ax-float 6s ease-in-out infinite;
}

@keyframes ax-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ax-fade-up {
    animation: ax-fade-up 0.8s ease both;
}

@keyframes ax-pulse-glow {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}
.ax-pulse {
    animation: ax-pulse-glow 3s ease-in-out infinite;
}

/* ----- Sticky header scrolled state (toggled via JS in header.php) ------ */
#ax-header.ax-scrolled {
    background: rgba(13, 13, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ax-border);
}

/* ----- Mobile nav ------------------------------------------------------- */
#ax-mobile-nav {
    transition: max-height 0.4s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#ax-mobile-nav.ax-open {
    max-height: 420px;
    opacity: 1;
}

/* ----- WordPress core / editor alignment helpers ------------------------ */
.alignwide  { width: 100%; }
.alignfull  { width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 0.85rem; color: #9CA3AF; }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

/* ----- Make CF7 inherit the dark theme ---------------------------------- */
.ax-cf7-wrap .wpcf7-form input[type="text"],
.ax-cf7-wrap .wpcf7-form input[type="email"],
.ax-cf7-wrap .wpcf7-form input[type="url"],
.ax-cf7-wrap .wpcf7-form input[type="tel"],
.ax-cf7-wrap .wpcf7-form textarea,
.ax-cf7-wrap .wpcf7-form select {
    width: 100%;
    background: rgba(13, 13, 18, 0.6);
    border: 1px solid var(--ax-border);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    color: #fff;
    margin-top: 0.35rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ax-cf7-wrap .wpcf7-form input:focus,
.ax-cf7-wrap .wpcf7-form textarea:focus,
.ax-cf7-wrap .wpcf7-form select:focus {
    border-color: var(--ax-cyber-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}
.ax-cf7-wrap .wpcf7-form label {
    display: block;
    font-size: 0.9rem;
    color: #9CA3AF;
    margin-bottom: 0.75rem;
}
.ax-cf7-wrap .wpcf7-form input[type="submit"] {
    background: linear-gradient(90deg, #00D4FF 0%, #7C3AED 100%);
    color: #06060A;
    font-weight: 700;
    border: 0;
    border-radius: 0.75rem;
    padding: 0.95rem 2rem;
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
    transition: filter 0.2s ease, transform 0.2s ease;
}
.ax-cf7-wrap .wpcf7-form input[type="submit"]:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}
