/*
Theme Name: RiseX AI Premium
Description: Ultra-modern, high-converting theme for AI agencies.
Version: 1.0
Author: Antigravity
*/

:root {
    --bg-deep: #020617;
    --bg-dark: #0f172a;
    --primary: #a855f7;
    /* Purple */
    --accent: #ec4899;
    /* Pink */
    --accent-neon: #d8b4fe;
    /* Cyan */
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass: rgba(15, 23, 42, 0.7);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-deep);
    background-image: linear-gradient(rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.8)), url('https://risex.ai/wp-content/uploads/2026/02/background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: var(--glass);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
    z-index: 1000;
}

.nav-container {
    max-width: 100% !important;
    padding: 0 3rem !important;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 80px;
    width: auto;
    display: block;
    mix-blend-mode: screen;
    /* Helps blend black background logos into the header */
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo .logo-icon {
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(5deg);
}

.logo .risex {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo .ai {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    margin-left: 4px;
}

.custom-logo-link {
    display: block;
}

/* Use Cases */
.use-cases {
    padding: 2rem 0;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.use-case-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.use-case-card h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* Pricing */
.pricing {
    padding: 8rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--bg-dark);
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-card.highlighted {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
}

/* Final CTA */
.final-cta {
    padding: 10rem 0;
    text-align: center;
}

.final-cta h2 {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .why-flex {
        flex-direction: column;
    }

    .benefit-list {
        grid-template-columns: 1fr;
    }

    .pricing-card.highlighted {
        transform: scale(1);
    }

    .pricing {
        padding: 4rem 0;
    }

    .final-cta {
        padding: 4rem 0;
    }

    .final-cta h2 {
        font-size: 2.2rem;
    }
}

/* Mobile CTA Bar */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    z-index: 9999;
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

@media (max-width: 768px) {
    .mobile-cta-bar {
        display: block;
    }

    /* Offset body to prevent content being hidden by footer bar */
    body {
        padding-bottom: 80px;
    }
}

/* Mobile Header Adjustments */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem !important;
    }

    .logo .logo-icon {
        height: 40px !important;
        margin-right: 8px !important;
    }

    .logo .risex,
    .logo .ai {
        font-size: 1.5rem !important;
    }

    header .btn-primary {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.75rem !important;
    }

    .hero h1 {
        font-size: 2.2rem !important;
    }

    .hero p {
        font-size: 1.1rem !important;
    }
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Phone Mockup */
.phone-mockup-container {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #0f172a;
    border: 8px solid #1e293b;
    border-radius: 3rem;
    position: relative;
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    width: 60px;
    height: 6px;
    background: #1e293b;
    border-radius: 3px;
}

.ai-interface {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.ai-waves {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 60px;
}

.ai-waves span {
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
    animation: wave 1.2s infinite ease-in-out;
}

@keyframes wave {

    0%,
    100% {
        height: 10px;
        opacity: 0.5;
    }

    50% {
        height: 50px;
        opacity: 1;
    }
}

.ai-waves span:nth-child(2) {
    animation-delay: 0.1s;
}

.ai-waves span:nth-child(3) {
    animation-delay: 0.2s;
}

.ai-waves span:nth-child(4) {
    animation-delay: 0.3s;
}

.ai-waves span:nth-child(5) {
    animation-delay: 0.4s;
}

.ai-status {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Sections */
.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* What We Do */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--glass);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.feature-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.feature-icon-box svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-dim);
}

/* Why RiseX AI */
.why-risex {
    padding: 6rem 0 2rem;
    background: radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.05) 0%, transparent 40%);
}

.why-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.why-content {
    flex: 1;
}

.benefit-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dim);
}

.benefit-list li span {
    color: var(--primary);
    font-size: 1.25rem;
}

.why-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
}

.pulsing-core {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 4s infinite ease-in-out;
    opacity: 0.3;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
}

/* Utilities */
.text-gradient {
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(to right, var(--primary), var(--accent-neon));
    -webkit-text-fill-color: transparent;
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.post-card {
    background: var(--glass);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.post-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-date {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--accent-neon);
}

.post-excerpt {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    margin-top: auto;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

.read-more svg {
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--primary);
    gap: 0.75rem;
}

.read-more:hover svg {
    transform: translateX(3px);
}

.pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 4rem;
}

.pagination .page-numbers {
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Single Post Specific Styles */
.single-post-hero {
    padding-bottom: 2rem;
}

.post-title-main {
    font-size: 3.5rem !important;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--accent-neon) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-lead {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto;
}

.entry-content-wrapper {
    max-width: 900px;
    margin: -3rem auto 0;
    padding: 4rem;
    border-radius: 2rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.entry-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
    display: flow-root;
    /* Contains floats and fixes overlap */
    padding-bottom: 3rem;
}

.entry-content>*:first-child {
    margin-top: 0 !important;
}

.entry-content h2,
.entry-content-wrapper .entry-content h2,
.entry-content li h2 {
    font-size: 2.5rem !important;
    margin: 6rem 0 3rem !important;
    color: var(--accent-neon) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 1rem !important;
    font-weight: 800 !important;
    clear: both !important;
    display: block !important;
}

.entry-content h3,
.entry-content-wrapper .entry-content h3,
.entry-content li h3 {
    font-size: 2rem !important;
    margin: 5rem 0 2rem !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    clear: both !important;
    display: block !important;
}

.entry-content h4,
.entry-content-wrapper .entry-content h4,
.entry-content li h4 {
    font-size: 1.5rem !important;
    margin: 4rem 0 1.5rem !important;
    color: var(--accent) !important;
    font-weight: 700 !important;
    clear: both !important;
    display: block !important;
}

.entry-content p {
    margin-bottom: 2.25rem;
}

.entry-content ul,
.entry-content ol {
    margin: 2rem 0 2.5rem 1.5rem;
}

.entry-content li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.entry-content li::marker {
    color: var(--accent);
    font-weight: 800;
}

.entry-content strong {
    color: var(--accent-neon);
    font-weight: 700;
}

.entry-content blockquote {
    background: rgba(168, 85, 247, 0.05);
    border-left: 4px solid var(--primary);
    padding: 2.5rem;
    margin: 3.5rem 0;
    font-style: italic;
    border-radius: 0 1rem 1rem 0;
    font-size: 1.25rem;
}

.post-footer {
    margin-top: 8rem !important;
    padding-top: 4rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    clear: both !important;
    position: relative !important;
    z-index: 20 !important;
}

.share-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    padding: 3rem;
    border-radius: 1.5rem;
}

.share-cta h3 {
    margin-bottom: 1rem;
}

.share-cta p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.post-navigation {
    margin-top: 4rem;
}

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

.post-navigation a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: var(--accent-neon);
}

.back-to-blog {
    padding: 0.5rem 1rem;
    background: var(--glass);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .entry-content-wrapper {
        padding: 2rem;
        margin-top: 0;
    }

    .post-title-main {
        font-size: 2.5rem !important;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary);
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Icon / Thumbnail Styles */
.video-thumbnail-icon {
    width: 100px;
    height: 100px;
    margin: 1.5rem auto;
    border-radius: 1.25rem;
    overflow: hidden;
    cursor: pointer;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-thumbnail-icon:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(168, 85, 247, 0.3);
}

.video-thumbnail-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-thumbnail-icon:hover .icon-play-overlay {
    background: rgba(0,0,0,0.1);
}

.icon-play-overlay svg {
    width: 40px;
    height: 40px;
    fill: #fff;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}