/*
Theme Name: NeoAI Editor
Theme URI: https://example.com
Author: Mohamed
Author URI: https://Dhilaalo.com
Description: Futuristic AI Image Editing WordPress Theme
Version: 2.0
Text Domain: neoai-editor
*/

/* =========================
   ROOT VARIABLES
   ========================= */
:root {
    --bg-color: #070B14;
    --secondary-bg: #0F172A;
    --card-bg: rgba(255, 255, 255, 0.05);
    
    --primary-color: #7C3AED;
    --secondary-color: #00D4FF;
    
    --text-color: #FFFFFF;
    --text-muted: #94A3B8;
    
    --border-color: rgba(255, 255, 255, 0.08);
    
    --gradient-primary: linear-gradient(135deg, #7C3AED, #00D4FF);
    --gradient-accent: linear-gradient(135deg, #00D4FF, #7C3AED);
    
    --shadow-primary: 0 10px 40px rgba(124, 58, 237, 0.35);
    --shadow-secondary: 0 20px 60px rgba(0, 212, 255, 0.2);
    
    --blur-effect: blur(20px);
    
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================
   RESET
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: var(--text-color);
}

/* =========================
   GLOBAL
   ========================= */
img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: min(1200px, 90%);
    margin: auto;
}

.site-main {
    position: relative;
    z-index: 2;
}

section {
    position: relative;
    padding: 100px 0;
}

/* =========================
   BACKGROUND EFFECTS
   ========================= */
.bg-blur {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.blur-1 {
    top: -100px;
    left: -100px;
    background: var(--primary-color);
}

.blur-2 {
    bottom: -150px;
    right: -150px;
    background: var(--secondary-color);
}

.grid-overlay {
    position: fixed;
    inset: 0;
    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: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

/* =========================
   HEADER - FIXED NO SPACING
   ========================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(7, 11, 20, 0.85);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85px;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-primary);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu li a {
    color: var(--text-muted);
    transition: var(--transition);
    font-weight: 500;
}

.nav-menu li a:hover {
    color: var(--text-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon-btn {
    width: 44px;
    height: 44px;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-color);
    backdrop-filter: var(--blur-effect);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-icon-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
}

/* Buttons */
.header-btn,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 16px;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.header-btn:hover,
.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-secondary);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

/* =========================
   HEADER SPACING FIX - CRITICAL
   ========================= */
.site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-section {
    margin-top: 0 !important;
    padding-top: 85px !important;
}

/* Admin bar adjustment */
.admin-bar .hero-section {
    padding-top: calc(85px + 32px) !important;
}

@media (max-width: 782px) {
    .admin-bar .hero-section {
        padding-top: calc(85px + 46px) !important;
    }
}

/* Remove any margin from body first child */
body > *:first-child {
    margin-top: 0 !important;
}

/* =========================
   HERO SECTION
   ========================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-box {
    padding: 20px;
    min-width: 140px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--blur-effect);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.5);
}

.stat-box h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-box span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================
   EDITOR PREVIEW WINDOW
   ========================= */
.editor-window {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    overflow: hidden;
    backdrop-filter: blur(25px);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.editor-window:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 100px rgba(124, 58, 237, 0.2);
}

.editor-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 25px;
    border-bottom: 1px solid var(--border-color);
}

.editor-topbar span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.editor-topbar span:nth-child(1) { background: #ff5f57; }
.editor-topbar span:nth-child(2) { background: #ffbd2f; }
.editor-topbar span:nth-child(3) { background: #28ca42; }

.editor-workspace {
    display: grid;
    grid-template-columns: 80px 1fr 220px;
    min-height: 500px;
}

.editor-sidebar {
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tool {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.tool i {
    font-size: 18px;
    color: var(--text-muted);
}

.tool.active,
.tool:hover {
    background: var(--gradient-primary);
}

.tool.active i,
.tool:hover i {
    color: white;
}

.editor-canvas {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.canvas-image {
    width: 100%;
    min-height: 380px;
    border-radius: 25px;
    background: linear-gradient(135deg, #1E293B, #0F172A);
    position: relative;
    overflow: hidden;
}

.canvas-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.2), transparent);
}

.floating-card {
    position: absolute;
    padding: 12px 18px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-card i {
    font-size: 14px;
}

.floating-1 {
    top: 40px;
    left: 40px;
}

.floating-2 {
    bottom: 40px;
    right: 40px;
}

.editor-panel {
    border-left: 1px solid var(--border-color);
    padding: 25px;
}

.panel-line {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
}

.panel-line.large {
    width: 80%;
}

/* =========================
   TRUST BAR
   ========================= */
.trust-bar {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.trust-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-item i {
    font-size: 20px;
    color: var(--secondary-color);
}

/* =========================
   SECTION HEADER
   ========================= */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header span {
    color: var(--secondary-color);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 3rem;
    margin-top: 15px;
    line-height: 1.2;
}

/* =========================
   FEATURES SECTION
   ========================= */
.features-section {
    background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.1), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 35px;
    border-radius: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: var(--shadow-primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-icon i {
    font-size: 28px;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================
   SHOWCASE SECTION
   ========================= */
.showcase-section {
    padding: 100px 0;
}

.showcase-wrapper {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.showcase-sidebar {
    width: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.showcase-sidebar span {
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.showcase-main {
    flex: 1;
    position: relative;
}

.showcase-image {
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, #1E293B, #0F172A);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.showcase-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent);
    transform: translate(-50%, -50%);
    animation: pulse 4s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.showcase-rightbar {
    width: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.showcase-rightbar div {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* =========================
   AI TOOLS SECTION
   ========================= */
.ai-tools-section {
    padding: 100px 0;
    background: radial-gradient(circle at 50% 100%, rgba(0, 212, 255, 0.05), transparent);
}

.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.ai-tool-card {
    padding: 32px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
}

.ai-tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.ai-tool-card i {
    font-size: 42px;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.ai-tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* =========================
   CTA SECTION
   ========================= */
.cta-section {
    padding: 100px 0 120px;
}

.cta-box {
    position: relative;
    text-align: center;
    padding: 80px 60px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(0, 212, 255, 0.08));
    border: 1px solid var(--border-color);
    border-radius: 48px;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

.cta-box p {
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 30px;
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    padding: 80px 0;
}

.footer-description {
    margin-top: 25px;
    color: var(--text-muted);
    max-width: 450px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.footer-socials a:hover {
    transform: translateY(-4px);
    background: var(--gradient-primary);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-links h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--text-color);
    transform: translateX(5px);
    display: inline-block;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1200px) {
    .hero-grid {
        gap: 50px;
    }
    .hero-content h1 {
        font-size: 3.8rem;
    }
}

@media (max-width: 992px) {
    section {
        padding: 80px 0;
    }
    .hero-grid,
    .footer-top {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }
    .editor-workspace {
        grid-template-columns: 60px 1fr;
    }
    .editor-panel {
        display: none;
    }
    .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .hero-section {
        padding-top: 100px !important;
    }
    .nav-menu {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-buttons,
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .stat-box {
        min-width: 120px;
        padding: 15px;
    }
    .stat-box h3 {
        font-size: 1.4rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .showcase-wrapper {
        flex-direction: column;
    }
    .showcase-sidebar,
    .showcase-rightbar {
        display: none;
    }
    .ai-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .editor-workspace {
        grid-template-columns: 1fr;
    }
    .editor-sidebar {
        display: flex;
        flex-direction: row;
        justify-content: center;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .floating-card {
        display: none;
    }
    .ai-tools-grid {
        grid-template-columns: 1fr;
    }
    .cta-box {
        padding: 50px 30px;
    }
    .cta-box h2 {
        font-size: 1.8rem;
    }
}

/* =========================
   UTILITY CLASSES
   ========================= */
.text-center { text-align: center; }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   PRINT STYLES
   ========================= */
@media print {
    .bg-blur,
    .grid-overlay,
    .floating-card,
    .cta-glow,
    .hero-buttons {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
    .hero-section {
        padding: 20px !important;
    }
}