@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;700;900&display=swap');

input#domainInput {
    color: #fff;
}

/* Cyber-Tech Dark Theme - Leos & Bartech Inspired */
:root {
    --bg-main: #000000;
    --bg-elevated: rgba(15, 23, 42, 0.7);
    --primary-color: #8b5cf6;
    /* Neon Purple */
    --accent-cyan: #22d3ee;
    --accent-electric: #facc15;
    --text-main: #f3f4f6;
    --text-soft: #9ca3af;
    --glass-border: 1px solid rgba(139, 92, 246, 0.3);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.4);
    --radius-xl: 1.5rem;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Heebo', sans-serif;
    margin: 0;
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- Background Effects --- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L30 60 M0 30 L60 30' stroke='rgba(139, 92, 246, 0.05)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    z-index: -1;
    opacity: 0.5;
}

/* --- Side Circuit Lines --- */
.side-circuit-container {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 100;
    pointer-events: none;
    display: flex;
    justify-content: space-around;
    padding: 0 2px;
}

.side-circuit-container.right {
    right: 20px;
}

.side-circuit-container.left {
    left: 20px;
}

.circuit-line {
    width: 1px;
    height: 100%;
    background: rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.circuit-line::after {
    content: "";
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 30vh;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    animation: circuitFlow 5s linear infinite;
}

.circuit-line:nth-child(2)::after {
    animation-duration: 7s;
    animation-delay: 2s;
    background: linear-gradient(to bottom, transparent, var(--accent-cyan), transparent);
}

@keyframes circuitFlow {
    0% {
        top: -50%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.layout-grid {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.content-main {
    flex: 1;
    min-width: 0;
    /* Prevent flex blowout */
}

.sidebar-aside {
    width: 380px;
    position: sticky;
    top: 40px;
    z-index: 100;
}

@media (max-width: 1200px) {
    .layout-grid {
        flex-direction: column;
    }

    .sidebar-aside {
        width: 100%;
        position: relative;
        top: 0;
        margin-top: -2rem;
        /* Tighten gap between logo/header and content */
    }
}

.desktop-only {
    display: block;
}

@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }
}

/* --- Glass Cards --- */
.search-container,
.metric-card,
.ai-seo-results,
.keywords-section,
.contact-box {
    background: var(--bg-elevated);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    margin-bottom: 1rem;
    font-weight: 800;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin: 0 auto 1rem;
}

.intro-container {
    margin-block: 20px 40px;
}

.tagline {
    color: var(--accent-cyan);
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    display: block;
    margin-bottom: 2rem;
}

/* --- Search Box --- */
.search-section {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 5rem;
}

.search-container {
    width: 100%;
    max-width: 1000px;
    background: var(--bg-elevated);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 2rem;
    padding: 1rem 3.5rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.2);
}

/* Bottom Wide Contact Form */
.contact-section-wide {
    padding: 6rem 0;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.05), transparent);
    position: relative;
    z-index: 10;
}

.contact-box.wide {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: rgba(15, 12, 41, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 4rem;
}

.contact-section-wide h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, var(--text-soft));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-form-horizontal .form-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    align-items: flex-end;
}

.contact-form-horizontal .form-group {
    flex: 1;
    margin-bottom: 0;
}

.contact-form-horizontal .form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 1.2rem;
    font-size: 1.1rem;
}

.contact-form-horizontal .btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .contact-form-horizontal .form-row {
        flex-direction: column;
    }

    .contact-box.wide {
        padding: 2rem 1.5rem;
    }

    .contact-section-wide h2 {
        font-size: 2rem;
    }
}

.domain-form {
    width: 100%;
}

.search-box {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-top: 1.5rem;
}

input[type="text"]#domainInput {
    flex: 2;
    font-size: 1.5rem;
    padding: 1.4rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    min-width: 0;
}

.analyze-btn {
    flex: 1;
    padding: 0 2rem;
    font-size: 1.3rem;
    white-space: nowrap;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    color: #fff;
    font-family: 'Heebo', sans-serif;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}

.analyze-btn,
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-cyan));
    color: #000;
    border: none;
    padding: 0 2.5rem;
    border-radius: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
    /*display: flex;*/
    align-items: center;
    gap: 0.5rem;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34, 211, 238, 0.6);
}

/* --- Tech Table --- */
.table-responsive {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.keywords-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.3);
}

.keywords-table th {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-cyan);
    text-align: right;
    padding: 1.25rem;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
}

.keywords-table td {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    /* Ensure visibility */
    font-size: 1.1rem;
}

.keywords-table tr:hover {
    background: rgba(139, 92, 246, 0.1);
}

.keywords-table .pos-up {
    color: #10b981;
}

.keywords-table .pos-down {
    color: #ef4444;
}

/* --- AI Status --- */
.ai-status-card {
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.status-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.status-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.bot-tag {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    display: inline-block;
    margin: 3px;
}

/* --- Spinners & Loaders --- */
.spinner,
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top: 3px solid var(--primary-color);
    border-left: 3px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

.btn-loader {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

/* --- Mascot & Sidebar Elements --- */
.sidebar-mascot {
    text-align: center;
    margin-bottom: -40px;
    /* Overlap with contact box */
    position: relative;
    z-index: 201;
    margin-top: 0;
}

@media (max-width: 992px) {
    .sidebar-mascot {
        margin-bottom: -15px;
        /* Reduce gap below lion on mobile */
    }

    .search-container {
        padding: 1.5rem 1rem;
        /* Compact padding on mobile */
    }
}

.floating-lion-sidebar {
    width: 320px;
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.4));
    animation: floatLion 6s ease-in-out infinite;
}

@keyframes floatLion {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

@media (max-width: 1024px) {
    .floating-lion-sidebar {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .floating-lion {
        width: 150px;
        right: 20px;
        bottom: 20px;
        opacity: 0.7;
    }

    .side-circuit-container {
        display: none;
    }
}

/* --- Metrics Grid --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-cyan);
    margin: 0.5rem 0;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

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

    h1 {
        font-size: 2.5rem;
        margin-top: 1rem;
    }

    .search-section {
        margin-bottom: 2rem;
        /* Reduce bottom margin on mobile */
    }
}

/* Footer Section */
.footer {
    padding: 4rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    color: var(--text-soft);
    position: relative;
    z-index: 10;
}

.footer-note {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    margin-top: 1rem;
    font-weight: 700;
}

@media (max-width: 992px) {

    .analyze-btn,
    .btn {
        width: 100% !important;
        white-space: normal;
        height: auto;
        padding: 15px;
    }

    * {
        box-sizing: border-box;
    }


    html,
    body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
        position: relative;
    }

    img,
    video,
    canvas,
    svg {
        max-width: 100%;
        height: auto;
    }

    .container {
        width: 100% !important;
        padding: 0 15px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .main-content {
        width: 100%;
        overflow-x: hidden;
    }

    .layout-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 20px;
    }

    .content-main,
    .sidebar-aside {
        width: 100% !important;
        min-width: 0;
        display: block;
    }

    .form-group,
    .search-box {
        width: 100%;
        position: relative;
    }

    input,
    select,
    textarea,
    button {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0;
        box-sizing: border-box !important;
    }

    .search-box {
        flex-direction: column;
        gap: 15px;
    }

    .analyze-btn,
    .btn {
        width: 100% !important;
        white-space: normal;
        height: auto;
        padding: 15px;
    }

    .sidebar-aside {
        position: static !important;
        height: auto !important;
        margin-top: 20px;
        width: 100% !important;
    }

    .sidebar-sticky-content {
        position: static !important;
    }

    .keywords-section {
        padding: 20px 10px;
    }

    .metrics-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
        margin-bottom: 20px;
    }

    .side-circuit-container {
        display: none;
    }

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

    .logo {
        font-size: 1.8rem;
    }
}

/* --- Deep Scanner & PageSpeed --- */
.ps-score-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.ps-score-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.ps-label {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
}

.ps-value {
    font-size: 2.2rem;
    font-weight: 900;
    text-shadow: 0 0 15px currentColor;
}

.text-green-500 {
    color: #10b981 !important;
}

.text-yellow-500 {
    color: #f59e0b !important;
}

.text-red-500 {
    color: #ef4444 !important;
}

.missing-pixel {
    opacity: 0.7;
    filter: grayscale(0.5);
}

.audit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}

.audit-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    border-radius: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audit-label {
    font-weight: 500;
    color: var(--text-soft);
}

.status-passed {
    color: #10b981;
    font-weight: bold;
}

.status-failed {
    color: #ef4444;
    font-weight: bold;
}

@media (max-width: 992px) {
    .ps-scores-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

.main-content :has(.results-section.hidden) div#contactSection {
    display: none;
}

.main-content :has(.results-section:not(.hidden)) div#contactSection {
    display: block;
}

/* --- Promo Banners --- */
.promo-banners {
    padding: 2rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.promo-banners img {
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
}

.promo-banners img:hover {
    transform: translateY(-5px);
}

.mobile-banners {
    display: none;
}

@media (max-width: 992px) {
    .desktop-banners {
        display: none;
    }

    .mobile-banners {
        display: block;
    }
}

/* --- Testimonials Slider --- */
.testimonials-section {
    padding: 4rem 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.testimonials-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.testimonials-subtitle {
    text-align: center;
    color: var(--text-soft);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.testimonials-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    overflow: hidden;
    scroll-behavior: smooth;
    width: 100%;
}

.testimonial-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.testimonial-video:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.testimonial-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}

.slider-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-cyan));
    border: none;
    color: #000;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slider-nav:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(34, 211, 238, 0.6);
}

.slider-nav:active {
    transform: scale(0.95);
}

.slider-nav.prev {
    order: -1;
}

.slider-nav.next {
    order: 1;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(139, 92, 246, 0.6);
}

.slider-dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Mobile responsive */
@media (max-width: 992px) {
    .testimonials-slider {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .testimonial-video {
        display: block !important;
        /* Ensure all videos show on mobile list */
    }

    .testimonials-slider-wrapper {
        flex-direction: column;
    }

    .slider-nav {
        display: none !important;
    }

    .slider-dots {
        display: none !important;
    }

    .testimonials-title {
        font-size: 2rem;
    }

    .testimonials-subtitle {
        font-size: 1rem;
    }
}

/* Sticky Mobile Button */
.sticky-contact-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-cyan));
    color: #000;
    text-align: center;
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.4);
    z-index: 1000;
    cursor: pointer;
    display: none;
    /* Hidden by default, shown via JS on mobile */
}

@media (max-width: 992px) {
    .sticky-contact-btn.visible {
        display: block;
    }
}