/*
Theme Name: Veloryx
Theme URI: https://veloryx.com/
Author: Veloryx Team
Author URI: https://veloryx.com/
Description: Performance-Driven Marketing Agency WordPress Theme.
Version: 1.0.0
Text Domain: veloryx
*/

:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-darker: #050505;
    --accent-primary: #28f0d4;
    --accent-dark: #1eb8a3;
    --accent-soft: rgba(40, 240, 212, 0.15);
    --accent-gradient: linear-gradient(135deg, #28f0d4, #1eb8a3);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.85);
    --text-muted-2: rgba(255, 255, 255, 0.65);

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: clamp(80px, 12vw, 140px);
}

/* Base Styles */
body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.bg-secondary-dark {
    background-color: var(--bg-secondary);
}

/* Utilities */
.text-accent {
    color: var(--accent-primary) !important;
}

.text-accent-soft {
    color: #1eb8a3;
}

.bg-accent {
    background-color: var(--accent-primary) !important;
}

.bg-accent-soft {
    background-color: var(--accent-soft) !important;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-muted-2 {
    color: var(--text-muted-2) !important;
}

.section-padding {
    padding: var(--section-padding) 0;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-accent {
    background: var(--accent-gradient);
    color: #000;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(40, 240, 212, 0.3);
    color: #000;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
}

a.hero-growth-btn:hover {

    color: #28f0d4;
    background-color: transparent;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #28f0d4;

}


.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

.btn-whatsapp {
    background-color: #25d366;
    color: #fff;
    border: none;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    color: #fff;
}

/* Navbar */
#mainNav {
    padding: 20px 50px;
    transition: all 0.4s ease;
    z-index: 1050;
}

#mainNav.scrolled {
    padding: 12px 50px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-brand .logo-glow {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-primary);
    vertical-align: middle;
}

.navbar-brand span {
    color: #ffffff !important;
    opacity: 1 !important;
}

#mainNav .navbar-nav .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    opacity: 1 !important;
    transition: color 0.3s ease;
}

#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link:focus,
#mainNav .navbar-nav .nav-link:active,
#mainNav .navbar-nav .nav-link.active {
    color: var(--accent-primary) !important;
    outline: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 25px;
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Hero Section */
.hero-section {
    padding-top: 100px;
}

.bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #1eb8a3;
    bottom: 100px;
    left: -100px;
}

.hero-left-content {
    padding-left: 50px;
}

.hero-title {
    line-height: 1.1;
    font-size: 55px;
    letter-spacing: -2px;
    max-width: 800px;
    /* Constrain width for better readability */
}

.hero-sub {
    max-width: 600px;
}

.orb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle at 30% 30%, var(--accent-primary), transparent 70%),
        radial-gradient(circle at 70% 70%, #1eb8a3, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.4;
    animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.orb-content {
    position: relative;
    z-index: 2;
    width: 260px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Ticker */
.services-ticker {
    background: rgba(40, 240, 212, 0.05);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    animation: ticker 30s linear infinite;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pill Cards */
.pill-card {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.pill-card i {
    color: var(--accent-primary);
}

/* Service Cards */
.accent-line {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.service-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.service-list li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Process Section */
.process-step {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.process-line {
    position: absolute;
    top: 30px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.process-item {
    position: relative;
    z-index: 1;
}

.bg-dark-2 {
    background: rgba(0, 0, 0, 0.3);
}

/* Work Grid */
.work-card {
    height: 380px;
}

.work-image-placeholder {
    height: 200px;
    background: rgba(40, 240, 212, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.work-image-placeholder i {
    filter: drop-shadow(0 0 15px rgba(40, 240, 212, 0.4));
    transition: transform 0.3s ease;
}

.work-card:hover .work-image-placeholder i {
    transform: scale(1.1);
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.9));
    z-index: 1;
}

.work-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}



/* Contact Form */
.form-control,
.form-select {
    border-radius: 12px;
    padding: 12px;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
    /* soft white */
    opacity: 1;
    /* required for Firefox */
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 0.25rem rgba(40, 240, 212, 0.40);
}

/* Footer */
.footer-brand .logo-glow {
    width: 10px;
    height: 10px;
}

.footer-links a:hover {
    color: var(--accent-primary) !important;
    /* ensured contrast */
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .services-ticker {
        display: none;
    }

    .navbar-collapse {
        background: var(--bg-primary);
        margin: 0 -1rem;
        padding: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .process-line {
        display: none;
    }

    .navbar-toggler {
        padding: 8px;
        margin-right: -8px;
    }

    .navbar-brand {
        padding-left: 0;
    }

    /* Better alignment for sections in mobile */
    .text-center.text-lg-start {
        text-align: center !important;
    }

    .hero-section {
        margin-left: 0;
        margin-right: 0;
        min-height: auto;
        padding: 120px 0 60px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-sub {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .pill-card {
        padding: 12px;
        font-size: 0.85rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .display-5 {
        font-size: 2rem;
    }
}

/* Fix for container spacing and gaps */
.section-padding .container {
    padding-left: 20px;
    padding-right: 20px;
}

.row.g-4,
.row.g-5 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

@media (min-width: 1200px) {
    .row.g-4 {
        --bs-gutter-x: 2rem;
        --bs-gutter-y: 2rem;
    }
}

/* --- SEO Page Specific Styles --- */

.capability-pill {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    white-space: nowrap;
    opacity: 1 !important;
}

.capability-pill:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: var(--accent-soft);
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--accent-soft);
}

.why-choose-card i {
    font-size: 2.5rem !important;
    color: var(--accent-primary);
}

.why-choose-card p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin-top: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.why-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(40, 240, 212, 0.1);
}

.grayscale-hover .tool-card {
    opacity: 0.6;
    transition: all 0.4s ease;
    filter: grayscale(100%);
}

.grayscale-hover .tool-card:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05) translateY(-5px);
    border-color: var(--accent-primary);
}

.process-num {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-primary);
    border-radius: 24px;
}

.process-step-item {
    transition: all 0.3s ease;
}

.process-step-item:hover .process-num {
    background: var(--accent-gradient);
    color: #000;
}

.dot-live {
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    animation: flash 2s infinite;
}

@keyframes flash {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.cta-banner-wrapper {
    background: var(--accent-gradient);
    color: #000;
}

.cta-banner-wrapper .display-4,
.cta-banner-wrapper .lead {
    color: #000 !important;
}

.cta-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
}

.maxWidth-800 {
    max-width: 800px;
}

.accordion-button::after {
    filter: invert(1);
}

/* Animation state defaults (visible by default as safety) */
.animate-hero-card,
.why-card-wrapper,
.tool-card,
.process-step-item,
.reporting-ui,
.capability-pill {
    opacity: 1 !important;
}

.accordion-button:not(.collapsed) {
    color: var(--accent-primary) !important;
    background: var(--accent-soft);
}

.accordion-button {
    color: #ffffff !important;
}

/* Fallback visibility for hero card */
.animate-hero-card {
    opacity: 1 !important;
    transform: none;
}

.seo-stat-card {
    max-width: 320px;
    margin: 0 auto;
    border: 2px solid var(--accent-primary);
    background: rgba(10, 10, 10, 0.8);
}

.glow-point {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--accent-primary);
    filter: blur(60px);
    opacity: 0.3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.tool-card {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    transition: all 0.3s ease;
    min-width: 120px;
}

.tool-card i,
.tool-card .text-accent {
    font-size: 2.5rem !important;
    margin-bottom: 15px !important;
}

.tool-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.hero-visual-wrapper {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.seo-stat-card {
    max-width: 320px;
    margin: 0 auto;
    border-width: 2px;
}

@media (max-width: 991px) {
    .hero-visual-wrapper {
        min-height: 300px;
        margin-top: 40px;
    }
}