/*
Theme Name: BePassive Design
Theme URI: https://example.com/bepassive-design
Author: Your Name
Author URI: https://example.com
Description: A modern, high-performance SEO agency theme with Bento grid layouts and AI-driven aesthetics.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: seo, agency, dark-mode, bento-grid
Text Domain: bepassive
*/

/* Global / Reset */
:root {
    --bg-dark: #080808;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --text-main: #ededed;
    --text-muted: #888899;
    --accent-cyan: #00f2ff;
    --accent-purple: #bd00ff;
    --accent-lime: #C4EF17;
    --accent-glow: rgba(196, 239, 23, 0.15);
    --font-heading: 'Inter', sans-serif;
    /* Keep Inter but use tighter tracking */
    --font-body: 'Inter', sans-serif;
    --container: 1240px;
    /* Wider container for modern look */
    --border-light: rgba(255, 255, 255, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Noise Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1em;
    letter-spacing: -0.03em;
    /* Tighter tracking for headings */
    color: #fff;
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

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

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

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent-lime) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    grid-auto-rows: minmax(180px, auto);
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* Grid Spans */
.span-4 {
    grid-column: span 4;
}

.span-6 {
    grid-column: span 6;
}

.span-8 {
    grid-column: span 8;
}

.span-12 {
    grid-column: span 12;
}

.row-span-2 {
    grid-row: span 2;
}

@media (max-width: 992px) {

    .span-4,
    .span-6,
    .span-8 {
        grid-column: span 12;
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.section-padding {
    padding: 120px 0;
}

/* Animations - Minimal CSS only */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    /* JS will add class to trigger */
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

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

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 5px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    }

    100% {
        box-shadow: 0 0 5px var(--accent-glow);
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.3s;
}

header.scrolled {
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.nav-links a:hover,
.nav-links ul li a:hover,
.nav-links ul li.current-menu-item a {
    color: var(--accent-cyan);
}

/* Dropdown Menu (Desktop) */
.nav-links ul li {
    position: relative;
}

.nav-links ul li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 99;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    /* Ensure it waits for opacity */
}

.nav-links ul li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links ul li .sub-menu li {
    margin-bottom: 0;
    width: 100%;
}

.nav-links ul li .sub-menu a {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links ul li .sub-menu li:last-child a {
    border-bottom: none;
}

.nav-links ul li .sub-menu a:hover {
    color: var(--accent-lime);
    padding-left: 5px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--accent-lime);
    color: #050510;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 239, 23, 0.3);
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--accent-lime);
    background: rgba(196, 239, 23, 0.05);
    color: var(--accent-lime);
}

/* Hero */
.hero {
    position: relative;
    padding: 220px 0 140px;
    overflow: hidden;
}

/* Modern Gradient Blob Background */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(196, 239, 23, 0.08) 0%, rgba(5, 5, 16, 0) 60%);
    pointer-events: none;
    z-index: -1;
    filter: blur(80px);
}

.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, rgba(5, 5, 16, 0) 60%);
    pointer-events: none;
    z-index: -1;
    filter: blur(60px);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 30px;
    text-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
}

.hero-content .subtitle {
    font-size: 1.35rem;
    max-width: 680px;
    margin: 0 auto 50px;
    color: var(--text-muted);
    font-weight: 400;
}

.trust-badges {
    margin-top: 80px;
    opacity: 0.6;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Services */
.services-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: 20px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.services-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.services-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 242, 255, 0.05), transparent 40%);
    opacity: 0;
    transition: 0.3s;
}

.services-card:hover::before {
    opacity: 1;
}

.services-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* Process */
.process-step {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid transparent;
}

.process-step:hover {
    border-color: var(--border-light);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bg-dark);
    -webkit-text-stroke: 1px var(--accent-purple);
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Why Choose Us */
.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.feature-list li span {
    color: var(--accent-cyan);
    margin-right: 15px;
}

/* Metrics */
.metric-box {
    text-align: center;
    padding: 30px;
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(0, 0, 0, 0) 100%);
    border-radius: 16px;
    border-top: 1px solid var(--border-light);
}

.metric-val {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-lime);
    margin-bottom: 10px;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    margin-top: 10px;
    display: none;
    /* Simple toggle logic not included in pure CSS demo */
    color: var(--text-muted);
}

.faq-item:hover .faq-question {
    color: var(--accent-cyan);
}

/* Final CTA */
.cta-section {
    background: linear-gradient(90deg, #050510 0%, #150020 50%, #050510 100%);
    position: relative;
    border-top: 1px solid var(--border-light);
}

/* Mobile Toggle */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {

    .grid-2,
    .grid-4,
    .testimonial-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .desktop-btn {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Mobile Nav Drawer */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: rgba(5, 5, 16, 0.98);
        backdrop-filter: blur(15px);
        padding: 100px 40px;
        transform: translateX(100%);
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border-light);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links ul {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 15px;
        display: block;
        width: 100%;
    }

    .nav-links a:hover {
        padding-left: 10px;
        color: var(--accent-lime);
    }

    /* Mobile Dropdown */
    .nav-links ul li {
        width: 100%;
    }

    .nav-links ul li .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        padding: 10px 0 10px 20px;
        box-shadow: none;
        display: none;
    }

    .nav-links ul li:hover>.sub-menu {
        display: block;
    }

    .nav-links ul li .sub-menu a {
        font-size: 1rem;
        border-bottom: none;
        padding-bottom: 10px;
        color: var(--text-muted);
    }

    /* Hamburger Animation */
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* Footer */
.site-footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-light);
    background: #02020a;
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    font-size: 0.9rem;
    max-width: 300px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: 0.3s;
}

.social-links a:hover {
    border-color: var(--accent-lime);
    color: var(--accent-lime);
}

.footer-links-group h4,
.footer-newsletter h4 {
    margin-bottom: 25px;
    color: #fff;
    font-size: 1.1rem;
}

.footer-links-group ul li {
    margin-bottom: 12px;
}

.footer-links-group ul li a {
    color: var(--text-muted);
}

.footer-links-group ul li a:hover {
    color: var(--accent-lime);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    padding: 10px 15px;
    border-radius: 8px;
    color: #fff;
    width: 100%;
    outline: none;
    font-family: inherit;
}

.newsletter-form input:focus {
    border-color: var(--accent-lime);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a:hover {
    color: #fff;
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: 0.3s;
}

.testimonial-card:hover {
    border-color: var(--accent-lime);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #e0e0e0;
}

.testimonial-author {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h5 {
    margin-bottom: 2px;
    color: #fff;
}

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

/* Blog/Insights */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-lime);
    background: var(--bg-card-hover);
}

.blog-img {
    height: 220px;
    background-color: #1a1a2e;
    position: relative;
    overflow: hidden;
}

.blog-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(196, 239, 23, 0.05) 25%, transparent 25%, transparent 50%, rgba(196, 239, 23, 0.05) 50%, rgba(196, 239, 23, 0.05) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-tag {
    font-size: 0.75rem;
    color: var(--accent-lime);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-weight: 700;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.read-more-link {
    margin-top: auto;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more-link:hover {
    color: var(--accent-lime);
}

/* Comments Section */
.comment-list {
    list-style: none;
    margin: 0 0 60px;
    padding: 0;
}

.comment-list li.comment {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 40px;
}

.comment-list li.comment:last-child {
    border-bottom: none;
}

.comment-body {
    position: relative;
    padding-left: 80px;
}

/* Avatar */
.comment-list .avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    background: #1a1a2e;
}

/* Meta Data */
.comment-meta {
    margin-bottom: 10px;
}

.comment-author .fn {
    font-style: normal;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-right: 10px;
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: inline-block;
}

.comment-metadata a {
    color: var(--text-muted);
}

/* Content */
.comment-content p {
    font-size: 1rem;
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Reply Link */
.reply {
    margin-top: 15px;
}

.comment-reply-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    padding: 5px 15px;
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 20px;
    transition: 0.3s;
}

.comment-reply-link:hover {
    background: rgba(0, 242, 255, 0.1);
    color: #fff;
}

/* Nested Comments */
.comment-list .children {
    list-style: none;
    margin: 40px 0 0 0;
    padding-left: 40px;
    border-left: 1px solid var(--border-light);
}

/* Comment Form */
.comment-respond {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
}

.comment-notes,
.logged-in-as {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: #fff;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-lime);
    background: rgba(255, 255, 255, 0.08);
}

/* Helper for the grid layout in form */
@media (min-width: 768px) {
    .comment-form-row.grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}