/*
Theme Name: Automify
Theme URI: https://example.com/automify
Author: Automify Team
Author URI: https://example.com/
Description: A premium AI automation solutions WordPress Block Theme.
Requires at least: 6.2
Tested up to: 6.3
Requires PHP: 7.0
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: automify
Tags: block-theme, full-site-editing, custom-colors, custom-typography
*/

/* ----- CSS Variables and Reset ----- */
:root {
    /* Colors inspired by request: Dark theme + #3498DB primary */
    --bg-base: #09090b;
    /* Very dark gray, almost black */
    --bg-surface: #18181b;
    /* Slightly lighter for cards */
    --bg-border: rgba(255, 255, 255, 0.08);

    --primary: #3498DB;
    /* Requested Blue */
    --primary-glow: rgba(52, 152, 219, 0.4);
    --secondary: #2980b9;
    /* Darker blue for hover states */

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f1c40f;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-max: 1200px;
    --section-pad: 6rem;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Typography Utility */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

.text-center {
    text-align: center;
}

/* Gradients & Highlights */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- Layout & Container ----- */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-padding {
    padding: var(--section-pad) 0;
}

/* Background Glow Blurs */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -100px;
    left: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.2) 0%, transparent 70%);
    top: 40%;
    right: -200px;
}

/* ----- Navigation ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 0;
    z-index: 1000;
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bg-border);
    transition: padding var(--transition-normal);
}

.navbar.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:not(.btn):hover {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--bg-border);
}

.btn-outline:hover {
    background: var(--bg-surface);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-nav {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    background: var(--text-main);
    color: var(--bg-base);
}

.btn-nav:hover {
    background: var(--primary);
    color: white;
}

/* ----- Hero Section ----- */
.hero {
    padding: 12rem 0 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.hero-title {
    font-size: 4rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* Mockup Terminal */
.hero-visual {
    max-width: 800px;
    margin: 0 auto;
    perspective: 1000px;
}

.mockup-window {
    background: var(--bg-surface);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: left;
    transform: rotateX(5deg) scale(0.95);
    transition: transform 0.5s ease;
}

.mockup-window:hover {
    transform: rotateX(0deg) scale(1);
    border-color: var(--primary-glow);
}

.mockup-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--bg-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.mockup-body {
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.code-line {
    margin-bottom: 0.5rem;
}

.code-line span {
    color: var(--primary);
}

.code-line .success {
    color: var(--success);
}

/* ----- Sections Components ----- */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ----- Services Section ----- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(24, 24, 27, 0.9);
    box-shadow: 0 10px 30px -10px var(--primary-glow);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    background: rgba(52, 152, 219, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ----- Process Section ----- */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-steps::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bg-border);
    z-index: 0;
}

.step {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: var(--bg-surface);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.step-content {
    background: var(--bg-surface);
    border: 1px solid var(--bg-border);
    padding: 2rem;
    border-radius: var(--radius-md);
    flex-grow: 1;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ----- Testimonials Section ----- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ----- CTA Section ----- */
.cta-box {
    background: linear-gradient(to right, rgba(24, 24, 27, 0.9), rgba(52, 152, 219, 0.1));
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-lg);
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.cta-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-form {
    display: flex;
    gap: 1rem;
}

.input-field {
    flex-grow: 1;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--bg-border);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.abstract-shape {
    position: absolute;
    right: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
    filter: blur(50px);
}

/* ----- Footer ----- */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--bg-border);
    padding-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-col a,
.link-col .footer-contact {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.link-col a i,
.link-col .footer-contact i {
    width: 20px;
    color: var(--primary);
    margin-right: 0.3rem;
}

.link-col a:hover {
    color: var(--primary);
}

.footer-socials {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.footer-socials a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--bg-border);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ----- Animations & Reveal ----- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Ensure reveal blocks are visible in the WordPress Site Editor */
.editor-styles-wrapper .reveal,
.wp-admin .reveal,
body.block-editor-page .reveal,
body.is-dark-theme .reveal {
    opacity: 1 !important;
    transform: none !important;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* ----- Responsive Design ----- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-base);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .cta-box {
        flex-direction: column;
        padding: 2rem;
    }

    .cta-form {
        flex-direction: column;
    }

    .process-steps::before {
        left: 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}