/*
Theme Name: Xivonai
Theme URI: https://xivonai.com
Author: Antigravity
Author URI: https://xivonai.com
Description: A premium, dark-theme, futuristic SaaS WordPress theme for AI companies.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xivonai
*/

:root {
    /* Color Palette */
    --bg-primary: #0a0a0c;
    --bg-secondary: #121216;
    --bg-accent: #1a1a20;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-purple: #a855f7;
    --accent-purple-dark: #7c3aed;
    --accent-pink: #d946ef;
    --gradient-primary: linear-gradient(135deg, var(--accent-purple-dark), var(--accent-pink));
    --gradient-secondary: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-dark));
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(217, 70, 239, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    animation: bgShift 20s ease infinite alternate;
}

@keyframes bgShift {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--section-padding);
}

/* Components */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(168, 85, 247, 0.15), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.glass-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-5px);
}

.glass-card * {
    position: relative;
    z-index: 1;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

/* Sparkle/Glimmer Styles */
.sparkle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
}

@keyframes glimmer {

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

    50% {
        opacity: 0.8;
        transform: scale(1.5);
    }
}

/* Hero Line Styles */
.hero-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), transparent);
    height: 1px;
    width: 200px;
    pointer-events: none;
    z-index: 0;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 700px;
    width: 95%;
    padding: 48px;
    background: rgba(18, 18, 22, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.5), 0 0 50px rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 24px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.modal-header p {
    color: var(--text-secondary);
}

/* Form Styling */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.form-group label {
    flex: 0 0 150px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 20px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

.btn-block {
    width: 60%;
    margin: 10px auto 0;
    padding: 16px;
    font-size: 1.1rem;
    display: block;
}

.form-actions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-status {
    text-align: center;
    min-height: 24px;
    font-weight: 500;
    padding-top: 10px;
}

.form-status.success {
    color: #10b981;
}

.form-status.error {
    color: #ef4444;
}

@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .form-group label {
        flex: 0 0 auto;
        text-align: left;
    }

    .modal-content {
        padding: 32px 20px;
    }

    .btn-block {
        width: 100%;
    }
}