.codex-pro-theme {
   
    /* Typography */
    --font-family-base: 'Urbanist', sans-serif;
    --font-family-heading: 'Inter', sans-serif;
    --font-size: 16px;
    --line-height: 1.6;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.7rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.codex-pro-theme {
    scroll-behavior: smooth;
}

.codex-pro-theme {
    font-family: var(--font-family-base);
    background-color: var(--background-color) !important;
    overflow-x: hidden;
}

.codex-pro-theme a,
button {
    cursor: pointer;
}

/* Scrollbar Styles */
.codex-pro-theme ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.codex-pro-theme ::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.codex-pro-theme ::-webkit-scrollbar-track {
    background: var(--secondary-light);
    border-radius: 4px;
}

.codex-pro-theme ::selection {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* --------------------
Header Styles 
-----------------------*/
.codex-pro-theme .header-scrolled {
    background: rgba(15, 23, 43, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(1, 181, 121, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.codex-pro-theme .header-transparent {
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    box-shadow: none;
}

.codex-pro-theme .nav-link.active {
    color: var(--primary-color);
}

/* Off-Canvas Mobile Menu */
.codex-pro-theme .offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.codex-pro-theme .offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.codex-pro-theme .offcanvas-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: linear-gradient(135deg, rgba(15, 23, 43, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    overflow-y: auto;
}

.codex-pro-theme .offcanvas-menu.active {
    transform: translateX(0);
}

.codex-pro-theme .offcanvas-header {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.codex-pro-theme .offcanvas-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.offcanvas-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.offcanvas-nav {
    padding: 24px;
}

.offcanvas-nav-item {
    margin-bottom: 8px;
    position: relative;
}

.offcanvas-nav-link {
    display: flex;
    padding: 12px 16px;
    color: var(--white);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.codex-pro-theme .offcanvas-nav-link:hover,
.codex-pro-theme .offcanvas-nav-link.active {
    background: rgba(1, 181, 121, 0.1);
    color: var(--primary-color);
    padding-left: 20px;
}

/* Navigation Link Animations */
.codex-pro-theme .nav-link {
    position: relative;
    overflow: hidden;
}

.codex-pro-theme .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.codex-pro-theme .nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle Animation */
.codex-pro-theme .menu-toggle {
    position: relative;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.codex-pro-theme .menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.codex-pro-theme .menu-toggle span:nth-child(1) {
    top: 4px;
}

.codex-pro-theme .menu-toggle span:nth-child(2) {
    top: 11px;
    right: 0;
    width: 75%;
}

.codex-pro-theme .menu-toggle span:nth-child(3) {
    top: 18px;
    right: 0;
    width: 50%;
}

.codex-pro-theme .menu-toggle.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.codex-pro-theme .menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.codex-pro-theme .menu-toggle.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* Line clamp utility */
.codex-pro-theme .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*---------------------------
Hero Styles
--------------------------- */
/* Hero Animated Elements */
.codex-pro-theme .hero-glow-tertiary {
    width: 18rem;
    height: 18rem;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 50%;
    filter: blur(48px);
    top: 33.333333%;
    left: 25%;
    animation-delay: 4s;
}

.codex-pro-theme .hero-glow-accent {
    width: 16rem;
    height: 16rem;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 50%;
    filter: blur(48px);
    bottom: 25%;
    right: 33.333333%;
    animation-delay: 6s;
}

/* Hero Floating Particles */
.codex-pro-theme .hero-particle-1 {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    top: 25%;
    left: 16.666667%;
    opacity: 0.6;
    animation-delay: 1s;
}

.codex-pro-theme .hero-particle-2 {
    width: 0.25rem;
    height: 0.25rem;
    background: rgb(255, 212, 59);
    border-radius: 50%;
    top: 33.333333%;
    right: 25%;
    opacity: 0.7;
    animation-delay: 3s;
}

.codex-pro-theme .hero-particle-3 {
    width: 0.375rem;
    height: 0.375rem;
    background: rgb(196, 181, 253);
    border-radius: 50%;
    bottom: 33.333333%;
    left: 33.333333%;
    opacity: 0.5;
    animation-delay: 5s;
}

.codex-pro-theme .hero-particle-4 {
    width: 0.25rem;
    height: 0.25rem;
    background: rgb(34, 211, 238);
    border-radius: 50%;
    bottom: 25%;
    right: 16.666667%;
    opacity: 0.6;
    animation-delay: 2s;
}

.codex-pro-theme .hero-particle-5 {
    width: 0.25rem;
    height: 0.25rem;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 20%;
    opacity: 0.4;
    animation-delay: 4s;
}

.codex-pro-theme .hero-particle-6 {
    width: 0.5rem;
    height: 0.5rem;
    background: rgba(1, 181, 121, 0.6);
    border-radius: 50%;
    top: 75%;
    right: 20%;
    opacity: 0.5;
    animation-delay: 6s;
}

/* --------------------------
Utility Classes
-------------------------- */
.codex-pro-theme .text-primary {
    color: var(--primary-color) !important;
}

.codex-pro-theme .text-secondary {
    color: var(--secondary-color) !important;
}

.codex-pro-theme .text-muted {
    color: var(--text-muted) !important;
}

.codex-pro-theme .bg-primary {
    background-color: var(--primary-color) !important;
}

.codex-pro-theme .bg-secondary {
    background-color: var(--secondary-color) !important;
}

.codex-pro-theme .bg-surface {
    background-color: var(--surface-color) !important;
}

/* Begin: Button Styles */
.codex-pro-theme .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 16px;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-pill);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

@media screen and (max-width: 640px) {
    .codex-pro-theme .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 14px;
    }
}

.codex-pro-theme .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.codex-pro-theme .btn:hover::before {
    left: 100%;
}

.codex-pro-theme .btn .btn-icon {
    height: 20px;
    width: 20px;
    transform: rotate(0);
    transition: transform 0.3s ease;
}

.codex-pro-theme .btn.btn-sm {
    font-size: 14px;
    padding: var(--spacing-xs) var(--spacing-md);
}

.codex-pro-theme .icon-btn {
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.codex-pro-theme .btn:hover .btn-icon {
    transform: rotate(45deg);
}

.codex-pro-theme .btn-outline {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid var(--white);
}

.codex-pro-theme .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.codex-pro-theme .btn.btn-primary::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.478), transparent) !important;
}

.codex-pro-theme .btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: var(--primary-color);
}

/* End: Button Styles */

.codex-pro-theme .pattern-grid {
    background-image:
        linear-gradient(rgba(1, 181, 121, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(1, 181, 121, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}

.codex-pro-theme .pattern-dots {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
}

.pattern-diagonal {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.05) 35px, rgba(255, 255, 255, 0.05) 36px);
}

/* Font family utilities */
.codex-pro-theme .font-heading {
    font-family: var(--font-family-heading);
}

.codex-pro-theme .font-base {
    font-family: var(--font-family-base);
}

/* ----------------------
Animations
---------------------- */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow-pulse {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes drift {
    0% {
        transform: translateX(0px) translateY(0px);
    }

    33% {
        transform: translateX(30px) translateY(-30px);
    }

    66% {
        transform: translateX(-20px) translateY(20px);
    }

    100% {
        transform: translateX(0px) translateY(0px);
    }
}

/* Animation utility classes */
.codex-pro-theme .animate-float {
    animation: float 6s ease-in-out infinite;
}

.codex-pro-theme .animate-glow-pulse {
    animation: glow-pulse 4s ease-in-out infinite;
}

.codex-pro-theme .animate-shimmer {
    animation: shimmer 3s linear infinite;
}

.codex-pro-theme .animate-drift {
    animation: drift 8s ease-in-out infinite;
}

/* Animation delay utility classes */
.codex-pro-theme .animate-delay-1s {
    animation-delay: 1s;
}

.codex-pro-theme .animate-delay-2s {
    animation-delay: 2s;
}

.codex-pro-theme .animate-delay-3s {
    animation-delay: 3s;
}

.codex-pro-theme .animate-delay-4s {
    animation-delay: 4s;
}

.codex-pro-theme .animate-delay-5s {
    animation-delay: 5s;
}

.codex-pro-theme .animate-delay-6s {
    animation-delay: 6s;
}

/* Stats component animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.codex-pro-theme .animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

/* Animation delay utilities for staggered animations */
.codex-pro-theme .animate-delay-100ms {
    animation-delay: 100ms;
}

.codex-pro-theme .animate-delay-200ms {
    animation-delay: 200ms;
}

.codex-pro-theme .animate-delay-300ms {
    animation-delay: 300ms;
}

.codex-pro-theme .animate-delay-400ms {
    animation-delay: 400ms;
}

/* Performance Optimizations */
.codex-pro-theme .will-change-auto {
    will-change: auto;
}

.codex-pro-theme .will-change-scroll {
    will-change: scroll-position;
}

.codex-pro-theme .will-change-contents {
    will-change: contents;
}

.will-change-transform {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --text-color: #000000;
        --background-color: #ffffff;
        --border-color: #000000;
    }
}

/* Dark mode variables (if implementing dark mode) */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #0f172b;
        --surface-color: #1e293b;
        --text-color: #f1f5f9;
        --text-muted: #94a3b8;
        --border-color: #334155;
    }
}


/* Content visibility for performance */
.lazy-section {
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

/* Focus visible improvements */
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Blog Content Styling */
.codex-pro-theme .blog-content {
    font-family: var(--font-family-base);
}

.codex-pro-theme .blog-content h1,
.codex-pro-theme .blog-content h2,
.codex-pro-theme .blog-content h3,
.codex-pro-theme .blog-content h4,
.codex-pro-theme .blog-content h5,
.codex-pro-theme .blog-content h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.codex-pro-theme .blog-content h1:first-child,
.codex-pro-theme .blog-content h2:first-child,
.codex-pro-theme .blog-content h3:first-child {
    margin-top: 0;
}

.codex-pro-theme .blog-content h2 {
    font-size: 1.875rem;
    color: #1e293b;
}

.codex-pro-theme .blog-content h3 {
    font-size: 1.5rem;
    color: #334155;
}

.codex-pro-theme .blog-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #475569;
}

.codex-pro-theme .blog-content p:last-child {
    margin-bottom: 0;
}

.codex-pro-theme .blog-content ul,
.codex-pro-theme .blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.codex-pro-theme .blog-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #475569;
}

.codex-pro-theme .blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #64748b;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.codex-pro-theme .blog-content code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #e11d48;
}

.codex-pro-theme .blog-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.codex-pro-theme .blog-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.codex-pro-theme .blog-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.codex-pro-theme .blog-content a:hover {
    color: var(--primary-hover);
}

.codex-pro-theme .blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* Blog tags hover effects */
.codex-pro-theme .blog-content + .mt-12 .inline-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 181, 121, 0.15);
}

/* Hide scrollbar for category filters on mobile */
.codex-pro-theme .scrollbar-hide {
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    scrollbar-width: none;
    /* Firefox */
}

.codex-pro-theme .scrollbar-hide::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}
