/*
Theme Name: GhostMode Agency
Theme URI: https://ghostmode.agency
Author: GhostMode
Author URI: https://ghostmode.agency
Description: A modern, AI-powered marketing agency theme with video backgrounds and stunning animations. Features cyan-to-purple gradients, responsive design, and optimized performance.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
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: ghostmode
Tags: business, portfolio, one-column, custom-colors, custom-menu, featured-images, full-width-template, theme-options, threaded-comments

GhostMode Agency Theme, Copyright 2024
GhostMode Agency Theme is distributed under the terms of the GNU GPL.
*/

:root {
    --color-primary: #0ef;
    --color-secondary: #a78bfa;
    --color-bg-dark: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 3rem;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: #b4b4c8;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-bg-dark) !important;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 239, 255, 0.4);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 3rem;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.3) 0%, rgba(10, 10, 15, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1100px;
    padding-top: 80px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.hero .gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-bg-dark);
    padding: 1.25rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(14, 239, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    padding: 1.25rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(14, 239, 255, 0.3);
    transition: all 0.2s;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(14, 239, 255, 0.1);
    border-color: rgba(14, 239, 255, 0.5);
}

/* Section Styles */
section {
    padding: 8rem 3rem;
}

.section-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-description {
    color: var(--color-text-secondary);
    font-size: 1.2rem;
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 5rem;
}

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

.service-card {
    background: var(--color-bg-secondary);
    border: 1px solid rgba(14, 239, 255, 0.1);
    border-radius: 1.25rem;
    padding: 2.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 239, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 56px;
    height: 56px;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* About Section */
#about {
    background: var(--color-bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.about-visual {
    aspect-ratio: 1;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(14, 239, 255, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
    border: 1px solid rgba(14, 239, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.about-visual svg {
    width: 100%;
    height: 100%;
    max-width: 250px;
}

.ghost-circle-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ghost-center {
    width: 60%;
    height: auto;
    z-index: 10;
    position: relative;
    animation: energyPulse 2s ease-in-out infinite;
}

.orbit-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(14, 239, 255, 0.15) 0%, rgba(167, 139, 250, 0.15) 100%);
    border: 1px solid rgba(14, 239, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-200px) rotate(calc(-1 * var(--angle)));
    transition: all 0.3s ease;
    cursor: default;
    z-index: 20;
}


@keyframes typewriter {
    from {
        max-width: 0;
    }
    to {
        max-width: 500px;
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.8;
    }
}

@keyframes energyPulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(14, 239, 255, 0.9))
                drop-shadow(0 0 40px rgba(167, 139, 250, 0.7))
                drop-shadow(0 0 60px rgba(14, 239, 255, 0.5));
        transform: scale(1.05);
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(14, 239, 255, 1))
                drop-shadow(0 0 50px rgba(167, 139, 250, 0.9))
                drop-shadow(0 0 70px rgba(14, 239, 255, 0.6));
        transform: scale(1.08);
    }
}

.orbit-icon::after {
    content: attr(data-label);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(90deg, #0ef 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 1;
    pointer-events: none;
    display: inline-block;
}

.orbit-icon:hover {
    background: linear-gradient(135deg, rgba(14, 239, 255, 0.25) 0%, rgba(167, 139, 250, 0.25) 100%);
    border-color: rgba(14, 239, 255, 0.5);
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-180px) rotate(calc(-1 * var(--angle))) scale(1.1);
}

.orbit-icon svg {
    width: 30px;
    height: 30px;
    color: var(--color-primary);
}

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

.work-card {
    background: var(--color-bg-secondary);
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(14, 239, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.work-image {
    height: 240px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.work-content {
    padding: 2rem;
}

.work-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.work-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.work-card p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
}

/* Contact Section */
#contact {
    background: var(--color-bg-secondary);
    text-align: center;
}

.contact-email {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: opacity 0.2s;
    display: block;
    margin-bottom: 1rem;
}

.contact-email:hover {
    opacity: 0.7;
}

.contact-note {
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

/* Footer */
.site-footer {
    padding: 4rem 3rem 2rem;
    background: var(--color-bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        padding: 0 2rem;
    }

    .nav {
        padding: 1.5rem 2rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .about-grid,
    .work-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    section {
        padding: 5rem 2rem;
    }

    .hero {
        padding: 0 2rem;
    }

    /* Ghost wizard section adjustments for tablet */
    .ghost-circle-container {
        max-width: 350px;
    }

    .orbit-icon {
        width: 50px;
        height: 50px;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-150px) rotate(calc(-1 * var(--angle)));
    }

    .orbit-icon svg {
        width: 20px;
        height: 20px;
    }

    .orbit-icon::after {
        font-size: 0.7rem;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        text-align: center;
    }

    /* Ghost wizard section - mobile optimization */
    .about-visual {
        padding: 2rem 1rem;
        background: transparent;
        border: none;
    }

    .ghost-circle-container {
        max-width: 320px;
    }

    .ghost-center {
        width: 50%;
        animation: energyPulseMobile 2s ease-in-out infinite;
    }

    .orbit-icon {
        width: 38px;
        height: 38px;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-130px) rotate(calc(-1 * var(--angle)));
    }

    .orbit-icon svg {
        width: 18px;
        height: 18px;
    }

    .orbit-icon::after {
        font-size: 0.6rem;
        top: calc(100% + 4px);
        opacity: 1;
        max-width: 500px;
    }

    /* Continuous pulse animation for mobile ghost */
    @keyframes energyPulseMobile {
        0%, 100% {
            filter: drop-shadow(0 0 10px rgba(14, 239, 255, 0.6))
                    drop-shadow(0 0 20px rgba(167, 139, 250, 0.4));
            transform: scale(1);
        }
        50% {
            filter: drop-shadow(0 0 15px rgba(14, 239, 255, 0.8))
                    drop-shadow(0 0 25px rgba(167, 139, 250, 0.6));
            transform: scale(1.03);
        }
    }

    /* Override hover/active states on mobile */
    .ghost-circle-container:has(.orbit-icon:hover) .ghost-center,
    .ghost-circle-container:has(.orbit-icon:active) .ghost-center {
        animation: energyPulseMobile 2s ease-in-out infinite;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* WordPress Specific */
.alignleft {
    float: left;
    margin: 0 1.5em 1.5em 0;
}

.alignright {
    float: right;
    margin: 0 0 1.5em 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    margin-top: 0.5em;
    color: var(--color-text-muted);
}

.sticky {
    /* Styles for sticky posts */
}

.bypostauthor {
    /* Styles for post author */
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
