/*
Theme Name: Raptor Electric Theme
Theme URI: https://raptorelectricllc.com/
Author: Equipo Sistemia
Author URI: https://sistemia.shop
Description: A premium, dark-mode, fully responsive one-page theme designed specifically for Raptor Electric LLC, featuring GSAP Parallax animations and custom UI elements.
Version: 1.1.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: raptor-electric
*/

/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    /* Colors */
    --color-bg-dark: #050505;
    --color-bg-lighter: #111111;
    --color-primary: #b6fc00; /* Neon Green */
    --color-primary-dim: rgba(182, 252, 0, 0.2);
    --color-text-main: #ffffff;
    --color-text-muted: #a0a0a0;
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Spacing & Layout */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg-dark);
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    margin: 0 0 20px 0;
    color: var(--color-text-muted);
}

a {
    text-decoration: none;
    color: var(--color-text-main);
    transition: var(--transition-fast);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.dark-section {
    background-color: var(--color-bg-lighter);
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--color-primary);
}

/* ==========================================================================
   Buttons & UI Elements
   ========================================================================== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #000;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary-dim);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    box-shadow: 0 0 30px var(--color-primary-dim);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-main);
    border: 2px solid var(--color-text-main);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.neon-border {
    border: 1px solid rgba(182, 252, 0, 0.3);
    box-shadow: 0 0 20px rgba(182, 252, 0, 0.05);
    transition: var(--transition-fast);
}

.neon-border:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(182, 252, 0, 0.2);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}
.social-icons a {
    color: var(--color-text-main);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-icons a:hover {
    color: var(--color-primary);
    transform: translateY(-3px) scale(1.1);
}

.header-social {
    display: none; /* Hide on mobile to save space */
}

@media (min-width: 768px) {
    .header-social {
        display: flex;
        margin-right: 15px;
    }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 9000;
    transition: var(--transition-fast);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    max-height: 120px;
    width: auto;
    display: block;
    transition: max-height var(--transition-fast);
}

.footer-logo {
    max-height: 180px;
    width: auto;
    display: block;
    margin-bottom: 20px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.nav-links li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 9500;
    pointer-events: auto;
    touch-action: manipulation;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--color-text-main);
    transition: var(--transition-fast);
    pointer-events: none; /* Let clicks pass through to the parent .menu-toggle */
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-webp {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1); /* To allow parallax shrinking */
}



.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,0.3) 0%, rgba(5,5,5,0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #ddd;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ==========================================================================
   General Sections & Layouts
   ========================================================================== */
.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--color-primary);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Feature List */
.feature-list li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #fff;
}

/* Placeholders for images */
.image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.placeholder-text {
    color: #444;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    /* Use 3 columns exactly when there's enough space (min 300px per card). 
       On smaller screens, it will auto-fit to 2 or 1 column natively. */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: rgba(255,255,255,0.02);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    background-color: rgba(255,255,255,0.05);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

/* ==========================================================================
   Reasons Section
   ========================================================================== */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 60px;
    align-items: start;
    text-align: left;
}

.reason-card {
    padding: 20px;
}

.reason-number {
    font-size: 5rem;
    font-weight: 900;
    color: var(--color-text-main);
    line-height: 1;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.reason-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-primary);
}

.reason-heading {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.reason-card p {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */
.reviews-slider {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.review-card {
    background-color: #111;
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    text-align: center;
    border: 1px solid rgba(182, 252, 0, 0.1);
}

.stars {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.review-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #fff;
    margin-bottom: 20px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background-color: #111;
    color: #fff;
    border: none;
    font-size: 1.1rem;
    font-family: var(--font-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.faq-question:hover, .faq-item.active .faq-question {
    background-color: #1a1a1a;
}

.faq-question .icon {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    background-color: #0d0d0d;
}

.faq-item.active .faq-answer {
    max-height: 800px; /* Force CSS layout expansion safely */
}

.faq-answer p {
    padding: 20px;
    margin: 0;
}

/* ==========================================================================
   Certifications Section
   ========================================================================== */
.certs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    margin-bottom: 50px;
}

.certs-header h2 {
    font-size: 2.5rem;
    color: var(--color-text-muted);
    line-height: 1.1;
    text-transform: uppercase;
}

.certs-badge {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(182,252,0,0.1) 0%, rgba(182,252,0,0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(182,252,0,0.2);
}

.certs-badge::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 50%;
    border: 2px dashed rgba(182,252,0,0.5);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.badge-content {
    background-color: var(--color-bg-dark);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.badge-content h3 {
    font-size: 3rem;
    color: #fff;
    margin: 0;
    line-height: 1;
}

.badge-content p {
    font-size: 0.8rem;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 5px;
}

.certs-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cert-btn {
    padding: 12px 25px;
    font-size: 0.9rem;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.cert-btn:hover {
    background-color: rgba(182,252,0,0.1);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
    display: grid;
    /* Force 4 columns on desktop by setting a specific min size to fit perfectly */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    height: 300px;
    background-color: #1a1a1a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox Modal Styles */
.lightbox-modal {
    display: none; 
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(182,252,0,0.3);
    border: 2px solid var(--color-primary);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0}
    to {transform: scale(1); opacity: 1}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .lightbox-content {
        width: 100%;
        max-height: 85vh;
        border: none;
        border-radius: 0;
    }
}

/* ==========================================================================
   Blog Section
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.blog-card {
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
}

.blog-img {
    height: 200px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-content {
    padding: 30px;
}

.read-more {
    color: var(--color-primary);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #020202;
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer h3 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    /* Hide nav links by default but allow flex on active */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        border-bottom: 2px solid var(--color-primary);
        z-index: 9000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 5px 0;
    }
    
    .nav-links li a {
        display: block;
        padding: 15px 20px;
        font-size: 1.2rem;
    }
    
    .nav-contact {
        display: none;
    }
    
    .menu-toggle {
        display: none !important;
    }
    
    .certs-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .brand-logo {
        max-height: 85px; /* Increased for mobile visibility */
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .brand-logo {
        max-height: 80px; /* Increased for mobile visibility */
    }

    .footer-logo {
        max-height: 60px;
    }
}

/* ==========================================================================
   Interactive AI Agent Section
   ========================================================================== */
.ai-widget-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    min-height: 480px;
    background-color: #111;
    border: 2px solid rgba(182, 252, 0, 0.4);
    border-top: 4px solid var(--color-primary);
    border-radius: 16px;
    overflow: hidden;
    /* Continuous floating motion effect */
    animation: hologramHover 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes hologramHover {
    0%, 100% { transform: translateY(0); box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(182, 252, 0, 0.1); }
    50% { transform: translateY(-15px); box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 50px rgba(182, 252, 0, 0.3); }
}

.ai-animation-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../../uploads/2026/04/ai-assistant.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Cleanest rendering inside rounded boxes */
    z-index: 1;
}

.ai-animation-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Gentle shadow overlay so widget pops out */
    z-index: 2;
}

.ai-overlay {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 480px; 
    padding: 30px;
}

@media (max-width: 768px) {
    .ai-widget-container { margin: 20px 15px 0; min-height: 350px; }
    .ai-overlay { min-height: 350px; }
    
    @keyframes hologramHover {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
    }
}

/* ==========================================================================
   Single Post Content (WordPress Core Native Formatting)
   ========================================================================== */
.post-content h2 {
    color: #fff;
    font-size: 2.2rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(182, 252, 0, 0.2);
}

.post-content h3 {
    color: #fff;
    font-size: 1.8rem;
    margin: 30px 0 15px;
}

.post-content p {
    margin-bottom: 25px;
    font-size: 1.15rem;
}

.post-content ul, .post-content ol {
    margin: 0 0 30px 20px;
    padding: 0;
}

.post-content li {
    margin-bottom: 10px;
    font-size: 1.15rem;
    color: #ccc;
    position: relative;
}

.post-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(182, 252, 0, 0.4);
    text-underline-offset: 4px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.post-content a:hover {
    color: #fff;
    text-decoration-color: var(--color-primary);
}

.post-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 5px solid var(--color-primary);
    background-color: rgba(255, 255, 255, 0.03);
    font-style: italic;
    font-size: 1.3rem;
    color: #fff;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    display: block;
}

