/*
Theme Name: FlexAI
Theme URI: https://flexai.tech
Author: FlexAI
Description: A premium, AI-focused WordPress theme for FlexAI.
Version: 1.2
Text Domain: flexai
*/

:root {
    /* Colors */
    --bg-dark: #050505;
    --bg-card: #0a0a0a;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --primary: #00f0ff;
    --primary-glow: rgba(0, 240, 255, 0.5);
    --secondary: #7000ff;
    --accent: #ffffff;
    --container-width: 1200px;
    --font-main: 'Inter', sans-serif;
    --header-height: 80px;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--accent);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--primary-glow);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    transition: all 0.3s ease;
}

.site-logo a {
    color: var(--accent);
}

.site-logo a:hover {
    color: var(--accent);
}

.site-logo:hover {
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    transform: scale(1.02);
}

.site-logo span {
    color: var(--primary);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-navigation a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--accent), var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--primary);
}

/* Cards (Services/What We Do) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Services Section */
.services-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: -40px auto 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.15);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 240, 255, 0.03) 100%);
}

.service-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 240, 255, 0.05) 100%);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(112, 0, 255, 0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(112, 0, 255, 0.2));
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

.service-card h3 {
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.service-features li {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Services Hero */
.services-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(112, 0, 255, 0.2) 100%);
}

/* Services Detail Page */
.services-detailed {
    background: var(--bg-dark);
}

.service-detail-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-detail-card:hover::before {
    opacity: 1;
}

.service-detail-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.1);
    transform: translateY(-5px);
}

.service-detail-card.featured-service {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 240, 255, 0.03) 100%);
}

.featured-service-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-dark);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.4);
}

.service-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-detail-icon {
    width: 90px;
    height: 90px;
    min-width: 90px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(112, 0, 255, 0.15));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-detail-card:hover .service-detail-icon {
    transform: scale(1.05) rotate(-5deg);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(112, 0, 255, 0.25));
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

.service-detail-title h2 {
    color: var(--accent);
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.service-tagline {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.service-detail-content {
    color: var(--text-main);
}

.service-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--primary);
    border-radius: 5px;
}

.service-benefits {
    margin-bottom: 40px;
}

.service-benefits h3,
.service-use-cases h3 {
    color: var(--accent);
    font-size: 1.6rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.benefit-item h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.benefit-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.service-use-cases {
    background: rgba(0, 240, 255, 0.03);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.service-use-cases ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.service-use-cases li {
    color: var(--text-main);
    font-size: 0.95rem;
    padding: 12px 0 12px 30px;
    position: relative;
    line-height: 1.6;
}

.service-use-cases li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-section .section-title {
    margin-bottom: 20px;
}

/* Footer */
.site-footer {
    background: var(--bg-card);
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-card .entry-header {
    margin-bottom: 10px;
}

.top-meta {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.entry-title {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.entry-title a {
    color: var(--accent);
}

.entry-title a:hover {
    color: var(--primary);
}

.entry-summary {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.entry-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-tags {
    font-size: 0.85rem;
}

.categories-list a,
.tags-list a {
    color: var(--text-muted);
    margin-right: 5px;
}

.categories-list a:hover,
.tags-list a:hover {
    color: var(--primary);
}



/* Contact Form */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    margin-bottom: 20px;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {

    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form option {
    background-color: var(--bg-card);
    color: var(--text-main);
    padding: 10px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

/* reCAPTCHA Container */
.recaptcha-container {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.recaptcha-container > div {
    transform: scale(1);
    transform-origin: center;
}

/* Mobile reCAPTCHA responsiveness */
@media screen and (max-width: 480px) {
    .recaptcha-container {
        transform: scale(0.9);
        transform-origin: left center;
    }
}

/* Pagination */
.pagination {
    margin-top: 60px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

/* Logo Styles */
.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    line-height: 1;
}

.mobile-menu-toggle:hover {
    color: var(--primary);
}

@media screen and (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block !important;
    }

    .main-navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
        display: block;
    }

    .main-navigation.active {
        transform: translateY(0);
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Grid adjustments */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-card {
        padding: 30px 20px;
    }

    .service-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Card adjustments */
    .card {
        padding: 20px;
    }

    /* Blog adjustments */
    .entry-title {
        font-size: 1.3rem;
    }

    .entry-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    /* Category filters */
    .category-filters {
        gap: 10px;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 6px 15px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .card {
        padding: 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Explicit Desktop Styles */
@media screen and (min-width: 1025px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .main-navigation {
        position: static !important;
        transform: none !important;
        background: transparent !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        display: block !important;
        backdrop-filter: none !important;
        border-bottom: none !important;
        overflow-x: auto !important;
        max-width: 100%;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .main-navigation::-webkit-scrollbar {
        display: none;
    }

    .main-navigation ul {
        flex-direction: row !important;
        gap: 30px !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        width: max-content !important;
    }
}