/*
Theme Name: Hero Web
Theme URI: https://luchohero.com/
Author: LuchoHero
Author URI: https://luchohero.com/
Description: Sleek, ultra-fast, premium glassmorphic theme for LuchoHero. Built for maximum speed with zero bloated external libraries, optimized for SEO 2026, featuring Google Analytics integration, custom 404/DB error layouts, and dynamic socials. Highly customizable.
Version: 0.1.0
Text Domain: hero-web
*/

/* ==========================================================================
   1. VARIABLES & DESIGN SYSTEM (Premium & Sleek)
   ========================================================================== */
:root {
    --primary: #1B75BC;
    --primary-hover: #155e97;
    --secondary: #DDFF00;
    --secondary-hover: #c6e600;
    --dark-bg: #0B0F19;
    --dark-card: rgba(20, 27, 45, 0.65);
    --light-bg: #F4F7FA;
    --light-card: rgba(255, 255, 255, 0.8);
    --text-dark: #F3F4F6;
    --text-muted-dark: #9CA3AF;
    --text-light: #1F2937;
    --text-muted-light: #4B5563;
    
    --border-radius: 16px;
    --glass-blur: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Defaults mapped to Dark Mode as base, adjustable dynamically */
    --bg-color: var(--dark-bg);
    --card-bg: var(--dark-card);
    --text-color: var(--text-dark);
    --text-muted: var(--text-muted-dark);
    --border-color: rgba(255, 255, 255, 0.05);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Light Mode Support */
body.light-mode {
    --bg-color: var(--light-bg);
    --card-bg: var(--light-card);
    --text-color: var(--text-light);
    --text-muted: var(--text-muted-light);
    --border-color: rgba(27, 117, 188, 0.08);
    --shadow: 0 8px 32px 0 rgba(27, 117, 188, 0.05);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
    position: relative;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

/* ==========================================================================
   3. ABSTRACT DYNAMIC BACKGROUND LAYER
   ========================================================================== */
.blob-bg-1, .blob-bg-2, .blob-bg-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.18;
    pointer-events: none;
    animation: driftBlobs 25s infinite alternate ease-in-out;
}

.blob-bg-1 {
    top: 5%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(27, 117, 188, 0) 70%);
}

.blob-bg-2 {
    top: 35%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary) 0%, rgba(221, 255, 0, 0) 70%);
    animation-duration: 32s;
    animation-delay: -5s;
}

.blob-bg-3 {
    bottom: 15%;
    left: 15%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #20e3b2 0%, rgba(32, 227, 178, 0) 70%);
    animation-duration: 28s;
    animation-delay: -2s;
}

@keyframes driftBlobs {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(60px, -40px) scale(1.12);
    }
    100% {
        transform: translate(-30px, 50px) scale(0.95);
    }
}

.grid-background {
    background-image: radial-gradient(rgba(27, 117, 188, 0.08) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
}

/* ==========================================================================
   4. LAYOUT & GRID UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid {
    display: grid;
    gap: 32px;
}

.grid-3 {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-4 {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 768px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}


.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 850;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   5. GLASSMORPHISM & DECORATIVE CONTROLS
   ========================================================================== */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    gap: 8px;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 117, 188, 0.4);
    color: #FFFFFF;
}

.btn-secondary {
    background-color: var(--secondary);
    color: #1F2937;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(221, 255, 0, 0.4);
    color: #1F2937;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Header Top Bar */
.header-top-bar {
    background: #080b11;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    padding: 6px 0;
    transition: var(--transition);
    z-index: 1001;
    position: relative;
}

body.light-mode .header-top-bar {
    background: #0d1117;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-tagline {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 450;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.01em;
}

.top-bar-right {
    display: flex;
    gap: 18px;
    align-items: center;
}

.top-bar-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 550;
    font-size: 11px;
    transition: color 0.2s ease;
}

.top-bar-link i {
    font-size: 12px;
}

.top-bar-link.whatsapp-link:hover {
    color: #25d366 !important;
}

.top-bar-link.email-link:hover {
    color: var(--primary) !important;
}

.top-bar-link.github-link:hover {
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .top-bar-tagline {
        display: none;
    }
    .top-bar-inner {
        justify-content: center;
    }
    .header-top-bar {
        padding: 5px 0;
    }
}

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

body.light-mode .site-header {
    background: rgba(244, 247, 250, 0.85);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary);
}

.logo img {
    height: 44px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation li.current-menu-item a::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .main-navigation {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--card-bg);
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
        transition: var(--transition);
        padding: 40px;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .menu-toggle {
        display: block;
    }
}

/* ==========================================================================
   7. HERO SECTION (Premium 2-Column Grid, Badge, Stats, Glow & Particles)
   ========================================================================== */
.hero-section {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 78vh;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 60px;
    }
}

.hero-content {
    max-width: 700px;
    text-align: left;
}

/* --- Hero Badge (Animated Pill) --- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(27, 117, 188, 0.08);
    border: 1px solid rgba(27, 117, 188, 0.2);
    border-radius: 100px;
    padding: 8px 20px 8px 14px;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: badgeFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition: var(--transition);
}

.hero-badge:hover {
    background: rgba(27, 117, 188, 0.14);
    border-color: rgba(27, 117, 188, 0.35);
    transform: translateY(-1px);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #20e3b2;
    display: inline-block;
    animation: pulseDot 2s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(32, 227, 178, 0.5);
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px rgba(32, 227, 178, 0.5); }
    50% { transform: scale(1.4); opacity: 0.7; box-shadow: 0 0 16px rgba(32, 227, 178, 0.8); }
}

@keyframes badgeFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

body.light-mode .hero-badge {
    background: rgba(27, 117, 188, 0.06);
    border-color: rgba(27, 117, 188, 0.15);
}

/* --- Hero Subtitle, Title, Description (Existing — Enhanced) --- */
.hero-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 750;
    letter-spacing: 0.15em;
    font-size: 13.5px;
    margin-bottom: 16px;
    display: block;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 850;
    line-height: 1.12;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary) 0%, #20e3b2 50%, var(--secondary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerGradient 4s ease-in-out infinite;
}

@keyframes shimmerGradient {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* --- Hero Trust Stats --- */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 0 20px;
}

.hero-stat:first-child {
    padding-left: 0;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 850;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, #20e3b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* --- Hero Image & Glow --- */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-image-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 
                0 1px 3px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: var(--transition);
    animation: floatImage 5s infinite ease-in-out;
    max-width: 100%;
    position: relative;
    aspect-ratio: 500 / 410 !important;
}

.hero-image-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(27, 117, 188, 0.15);
    border-color: rgba(27, 117, 188, 0.25);
}

.hero-image img {
    border-radius: 16px;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

/* Aurora Glow behind the image */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, 
        rgba(27, 117, 188, 0.2) 0%, 
        rgba(32, 227, 178, 0.1) 35%, 
        rgba(221, 255, 0, 0.05) 60%, 
        transparent 75%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    animation: glowPulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

body.light-mode .hero-glow {
    background: radial-gradient(ellipse at center, 
        rgba(27, 117, 188, 0.12) 0%, 
        rgba(32, 227, 178, 0.06) 35%, 
        transparent 65%);
}

/* --- Levitating code icon particles --- */
.particle {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    animation: levitate 4s infinite ease-in-out;
    z-index: 10;
    transition: var(--transition);
    font-size: 20px;
}

.particle:hover {
    transform: scale(1.15) translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(27, 117, 188, 0.15);
}

.p-python {
    top: 10%;
    left: -6%;
    width: 46px;
    height: 46px;
    color: #3776AB;
    animation-delay: 0s;
}

.p-js {
    bottom: 15%;
    left: -8%;
    width: 42px;
    height: 42px;
    color: #F7DF1E;
    font-weight: 800;
    font-size: 13px;
    animation-delay: 1.5s;
}

.p-php {
    top: 20%;
    right: -6%;
    width: 44px;
    height: 44px;
    color: #777BB3;
    animation-delay: 0.7s;
}

.p-wp {
    bottom: 10%;
    right: -5%;
    width: 42px;
    height: 42px;
    color: #21759B;
    animation-delay: 2.2s;
}

@keyframes levitate {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(3deg);
    }
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Hero Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0 60px;
        min-height: auto;
    }
    .hero-title {
        font-size: 2.6rem;
    }
    .hero-description {
        font-size: 16px;
    }
    .particle {
        display: none !important;
    }
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }
    .hero-stat {
        padding: 0;
    }
    .hero-glow {
        display: none;
    }
}


/* ==========================================================================
   9. SERVICES SECTION
   ========================================================================== */
.service-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 36px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* Modificadores de estilos de disposición */
.service-card.style-vertical-left {
    text-align: left;
    align-items: flex-start;
}

.service-card.style-vertical-center {
    text-align: center;
    align-items: center;
}
.service-card.style-vertical-center .service-icon {
    margin-left: auto;
    margin-right: auto;
}

.service-card.style-horizontal {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 28px;
}
.service-card.style-horizontal .service-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}
.service-card.style-horizontal .service-content {
    flex: 1;
}

@media (max-width: 575px) {
    .service-card.style-horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .service-card.style-horizontal .service-icon {
        margin-bottom: 8px;
    }
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(27, 117, 188, 0.12),
                0 0 0 1px var(--primary) inset;
    border-color: var(--primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(27, 117, 188, 0.1) 0%, rgba(221, 255, 0, 0.1) 100%);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    font-size: 24px;
    transition: var(--transition);
    border: 1px solid rgba(27, 117, 188, 0.15);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #FFFFFF;
    transform: scale(1.05);
    border-color: transparent;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 750;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.service-description {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.service-description strong {
    color: var(--text-color);
    font-weight: 600;
}

/* ==========================================================================
   10. METODOLOGÍA DE TRABAJO (Connected Timeline)
   ========================================================================== */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.timeline-line {
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 31px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary) 0%, #20e3b2 50%, var(--secondary) 100%);
    z-index: 1;
    border-radius: 9999px;
    box-shadow: 0 0 10px rgba(27, 117, 188, 0.3);
}

.timeline-step {
    position: relative;
    display: flex;
    gap: 32px;
    align-items: flex-start;
    z-index: 2;
    width: 100%;
}

.timeline-dot {
    width: 64px;
    height: 64px;
    background: var(--dark-bg);
    border: 2px solid var(--primary);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 850;
    box-shadow: 0 0 16px rgba(27, 117, 188, 0.3), 0 0 0 4px rgba(27, 117, 188, 0.08);
    flex-shrink: 0;
    z-index: 10;
    transition: var(--transition);
}

body.light-mode .timeline-dot {
    background: #FFFFFF;
}

.timeline-step:hover .timeline-dot {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(221, 255, 0, 0.6), 0 0 0 4px rgba(221, 255, 0, 0.15);
    border-color: var(--secondary);
    color: var(--secondary);
}

.timeline-content {
    flex-grow: 1;
    text-align: left;
    padding: 36px;
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ==========================================================================
   11. TECHNOLOGY STACK SECTION (Branded Glows Grid)
   ========================================================================== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.tech-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 26px;
    transition: var(--transition);
}

.tech-icon svg,
.tech-icon i {
    width: 38px;
    height: 38px;
    font-size: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    object-fit: contain;
    transition: var(--transition);
}

.tech-card:hover .tech-icon i,
.tech-card:hover .tech-icon svg {
    transform: scale(1.1);
}

.tech-card span {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-5px);
}

.tech-card:hover span {
    color: var(--text-color);
}

.tech-card[data-tech="python"]:hover {
    border-color: rgba(55, 118, 171, 0.4);
    box-shadow: 0 15px 30px rgba(55, 118, 171, 0.12);
}
.tech-card[data-tech="python"]:hover .tech-icon {
    color: #3776AB;
    background: rgba(55, 118, 171, 0.08);
    border-color: #3776AB;
    box-shadow: 0 0 20px rgba(55, 118, 171, 0.25);
}

.tech-card[data-tech="node"]:hover {
    border-color: rgba(144, 197, 63, 0.4);
    box-shadow: 0 15px 30px rgba(144, 197, 63, 0.12);
}
.tech-card[data-tech="node"]:hover .tech-icon {
    color: #90C53F;
    background: rgba(144, 197, 63, 0.08);
    border-color: #90C53F;
    box-shadow: 0 0 20px rgba(144, 197, 63, 0.25);
}

.tech-card[data-tech="php"]:hover {
    border-color: rgba(119, 123, 179, 0.4);
    box-shadow: 0 15px 30px rgba(119, 123, 179, 0.12);
}
.tech-card[data-tech="php"]:hover .tech-icon {
    color: #777BB3;
    background: rgba(119, 123, 179, 0.08);
    border-color: #777BB3;
    box-shadow: 0 0 20px rgba(119, 123, 179, 0.25);
}

.tech-card[data-tech="n8n"]:hover {
    border-color: rgba(255, 108, 55, 0.4);
    box-shadow: 0 15px 30px rgba(255, 108, 55, 0.12);
}
.tech-card[data-tech="n8n"]:hover .tech-icon {
    color: #FF6C37;
    background: rgba(255, 108, 55, 0.08);
    border-color: #FF6C37;
    box-shadow: 0 0 20px rgba(255, 108, 55, 0.25);
}

.tech-card[data-tech="wordpress"]:hover {
    border-color: rgba(27, 117, 188, 0.4);
    box-shadow: 0 15px 30px rgba(27, 117, 188, 0.12);
}
.tech-card[data-tech="wordpress"]:hover .tech-icon {
    color: var(--primary);
    background: rgba(27, 117, 188, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(27, 117, 188, 0.25);
}

/* Carrusel interactivo horizontal para la página de inicio */
.blog-carousel-container {
    position: relative;
    width: 100%;
}

.blog-carousel {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Ocultar scrollbar en Firefox */
    -ms-overflow-style: none;  /* Ocultar scrollbar en IE/Edge */
    cursor: grab;
    user-select: none; /* Evitar selección accidental de texto al arrastrar */
}

.blog-carousel.active-drag {
    cursor: grabbing;
    scroll-snap-type: none; /* Inhabilitar snap durante el arrastre manual para fluidez */
    scroll-behavior: auto;  /* Movimiento instantáneo durante el arrastre */
}

.blog-carousel::-webkit-scrollbar {
    display: none; /* Ocultar scrollbar en Chrome/Safari */
}

.blog-carousel .post-card {
    flex: 0 0 calc(33.333% - 22px);
    scroll-snap-align: start;
    height: auto;
}

@media (max-width: 991px) {
    .blog-carousel .post-card {
        flex: 0 0 calc(50% - 16px);
    }
}

@media (max-width: 575px) {
    .blog-carousel .post-card {
        flex: 0 0 100%;
    }
}

.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(27, 117, 188, 0.2);
}

.post-thumbnail-link {
    display: block;
    width: 100%;
    aspect-ratio: 16/10 !important; /* STRICT constraint to completely eliminate CLS */
    overflow: hidden;
    position: relative;
    border-radius: 20px 20px 0 0;
    background-color: rgba(27, 117, 188, 0.05);
}

.post-thumbnail-link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    aspect-ratio: 16/10 !important;
    transition: var(--transition);
}

.post-card:hover .post-thumbnail-link img {
    transform: scale(1.04);
}

.post-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.post-date-badge {
    display: inline-flex;
    padding: 4px 12px;
    background: rgba(27, 117, 188, 0.08);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid rgba(27, 117, 188, 0.1);
}

.post-title {
    font-size: 20px;
    font-weight: 750;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.post-title a {
    color: var(--text-color);
}

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

.post-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-weight: 700;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    color: var(--primary) !important;
    gap: 8px;
    margin-top: auto;
    width: fit-content;
    padding: 8px 18px;
    background: rgba(27, 117, 188, 0.05);
    border: 1px solid rgba(27, 117, 188, 0.15);
    border-radius: 30px;
    transition: var(--transition);
    text-decoration: none !important;
}

body.light-mode .read-more {
    background: rgba(27, 117, 188, 0.05);
    border-color: rgba(27, 117, 188, 0.12);
}

.read-more i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}

.read-more:hover {
    background: var(--primary);
    color: #FFFFFF !important;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 117, 188, 0.25);
}

.read-more:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   13. CONTACT SECTION (Premium Wrapper)
   ========================================================================== */
.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 48px;
    text-align: center;
    border-radius: 28px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .contact-wrapper {
        padding: 40px 24px;
    }
}

.contact-wrapper .section-header {
    margin-bottom: 24px;
}

.contact-description {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 36px;
    font-size: 15px;
    border-radius: 9999px;
}

.btn-secondary.btn-large {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.btn-secondary.btn-large:hover {
    background: linear-gradient(135deg, #2ee06f 0%, #149c8c 100%);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

/* ==========================================================================
   14. SINGLE ARTICLE VIEW (Premium Immersive Header, Sharing & Layout)
   ========================================================================== */

/* Category Badges (Premium visual representation) */
.category-badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-uncategorized, .badge-blog {
    background: linear-gradient(135deg, rgba(27, 117, 188, 0.15) 0%, rgba(27, 117, 188, 0.05) 100%);
    color: #1b75bc;
    border-color: rgba(27, 117, 188, 0.25);
}

.badge-desarrolloweb, .badge-desarrollo-web {
    background: linear-gradient(135deg, rgba(53, 162, 235, 0.15) 0%, rgba(53, 162, 235, 0.05) 100%);
    color: #35a2eb;
    border-color: rgba(53, 162, 235, 0.25);
}

.badge-apps-moviles, .badge-appsmoviles {
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.15) 0%, rgba(142, 68, 173, 0.05) 100%);
    color: #9b59b6;
    border-color: rgba(142, 68, 173, 0.25);
}

.badge-criptomonedas {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.15) 0%, rgba(243, 156, 18, 0.05) 100%);
    color: #f39c12;
    border-color: rgba(243, 156, 18, 0.25);
}

.badge-marketing-online, .badge-marketingonline {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15) 0%, rgba(46, 204, 113, 0.05) 100%);
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.25);
}

.category-badge:hover {
    transform: translateY(-1px);
    filter: brightness(1.15);
    box-shadow: 0 4px 12px rgba(27, 117, 188, 0.15);
    color: #FFFFFF !important;
}

/* Clean Premium Modern Header */
.single-post-header {
    padding: 100px 0 40px;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.single-post-category-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.single-post-title {
    font-size: 3.4rem;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 30px;
    color: #FFFFFF;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body.light-mode .single-post-title {
    color: var(--text-color-dark);
    text-shadow: none;
}

@media (max-width: 768px) {
    .single-post-header {
        padding: 60px 0 30px;
    }
    .single-post-title {
        font-size: 2.3rem;
        line-height: 1.2;
    }
}

.single-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    max-width: 600px;
    margin: 0 auto;
}

.meta-separator {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.meta-item i {
    font-size: 15px;
    color: var(--primary);
}

.author-meta-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(27, 117, 188, 0.2);
    display: block;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    text-align: left;
}

.author-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.author-name {
    font-weight: 700;
    color: #FFFFFF;
}

body.light-mode .author-name {
    color: var(--text-color-dark);
}

/* Featured Image layout with glow */
.single-featured-image {
    max-width: 900px;
    margin: 0 auto 50px;
}

.featured-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.featured-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(27, 117, 188, 0.15) 0%, rgba(27, 117, 188, 0) 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

/* Single Post Body Layout */
.single-post-body-layout {
    max-width: 860px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.single-post-content-area {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Paragraphs & Typo in Single */
.entry-content {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-color);
    padding: 48px;
    border-radius: 24px;
}

@media (max-width: 768px) {
    .entry-content {
        padding: 28px 20px;
        font-size: 1.05rem;
    }
}

.entry-content p {
    margin-bottom: 28px;
}

.entry-content p:last-child {
    margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--font-family-sans);
    font-weight: 850;
    color: #FFFFFF;
    letter-spacing: -0.025em;
    margin-top: 48px;
    margin-bottom: 20px;
    line-height: 1.3;
}

body.light-mode .entry-content h2,
body.light-mode .entry-content h3,
body.light-mode .entry-content h4 {
    color: var(--text-color-dark);
}

.entry-content h2 { 
    font-size: 1.9rem; 
    border-left: 4px solid var(--primary); 
    padding-left: 16px; 
}
.entry-content h3 { font-size: 1.55rem; }
.entry-content h4 { font-size: 1.28rem; }

/* Custom Premium Blockquotes */
.entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 24px 32px;
    background: rgba(27, 117, 188, 0.04);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    margin: 40px 0;
    position: relative;
    border-top: 1px solid rgba(27, 117, 188, 0.03);
    border-right: 1px solid rgba(27, 117, 188, 0.03);
    border-bottom: 1px solid rgba(27, 117, 188, 0.03);
}

.entry-content blockquote p {
    font-size: 1.22rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
    margin-bottom: 0;
}

body.light-mode .entry-content blockquote p {
    color: var(--text-color);
}

/* Customized list bullet ticks */
.entry-content ul {
    list-style: none;
    margin-bottom: 30px;
    padding-left: 8px;
}

.entry-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.entry-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    font-weight: 900;
    font-size: 16px;
}

.entry-content ol {
    margin-bottom: 30px;
    padding-left: 20px;
}

.entry-content ol li {
    margin-bottom: 12px;
    padding-left: 6px;
}

/* Anchors in Content */
.entry-content a:not(.category-badge):not(.post-tag) {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--primary);
    transition: var(--transition);
}

.entry-content a:not(.category-badge):not(.post-tag):hover {
    color: var(--primary-hover);
    border-bottom-style: solid;
    background: rgba(27, 117, 188, 0.06);
}

/* macOS terminal code blocks */
.entry-content pre {
    position: relative;
    padding: 52px 24px 22px !important;
    background: #090d16 !important;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    overflow-x: auto;
    margin: 35px 0;
}

.entry-content pre code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 14.5px;
    line-height: 1.65;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0;
    color: #e2e8f0;
    border: none;
}

/* Three macOS Window control dots */
.entry-content pre::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow: 18px 0 0 #ffbd2e, 36px 0 0 #27c93f;
}

/* terminal title bar */
.entry-content pre::after {
    content: "Terminal - LuchoHero Console";
    position: absolute;
    top: 17px;
    left: 85px;
    font-family: var(--font-family-sans);
    font-size: 10.5px;
    font-weight: 750;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* Tags Styling */
.post-tags-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
}

.tags-label {
    font-weight: 750;
    color: var(--text-color);
    font-size: 14.5px;
}

.post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tag {
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.post-tag:hover {
    background: rgba(27, 117, 188, 0.08);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Social Share Panel */
.post-share-section {
    padding: 36px;
    border-radius: 22px;
    text-align: center;
}

.share-title {
    font-size: 18px;
    font-weight: 850;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.share-facebook {
    background: rgba(24, 119, 242, 0.08);
    color: #1877f2;
    border-color: rgba(24, 119, 242, 0.15);
}
.share-facebook:hover {
    background: #1877f2;
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.25);
    transform: translateY(-2px);
}

.share-twitter {
    background: rgba(255, 255, 255, 0.03);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.1);
}
.share-twitter:hover {
    background: #FFFFFF;
    color: #0b0f19;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
body.light-mode .share-twitter {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
    border-color: rgba(0, 0, 0, 0.1);
}
body.light-mode .share-twitter:hover {
    background: #000000;
    color: #FFFFFF;
}

.share-whatsapp {
    background: rgba(37, 211, 102, 0.08);
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.15);
}
.share-whatsapp:hover {
    background: #25D366;
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
    transform: translateY(-2px);
}

.share-copy-link {
    background: rgba(27, 117, 188, 0.08);
    color: var(--primary);
    border-color: rgba(27, 117, 188, 0.15);
}
.share-copy-link:hover {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(27, 117, 188, 0.25);
    transform: translateY(-2px);
}

.share-copy-link.copied {
    background: rgba(46, 204, 113, 0.1) !important;
    color: #2ecc71 !important;
    border-color: rgba(46, 204, 113, 0.3) !important;
}

/* Post Split Navigation */
.post-navigation-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 600px) {
    .post-navigation-split {
        grid-template-columns: 1fr;
    }
}

.nav-card {
    position: relative;
    padding: 32px 40px;
    border-radius: 20px;
    text-decoration: none;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    transition: var(--transition);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.nav-card.has-bg {
    border-color: rgba(255, 255, 255, 0.08);
}

.nav-card-sub {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.nav-card:hover .nav-card-sub {
    color: #FFFFFF;
}

.nav-card-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
    color: #FFFFFF;
    letter-spacing: -0.015em;
    transition: var(--transition);
}

.nav-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.nav-card.no-bg:hover .nav-card-title {
    color: var(--primary);
}

.nav-card-empty {
    background: rgba(255, 255, 255, 0.01);
    border-style: dashed;
    opacity: 0.5;
    pointer-events: none;
}

.nav-card-empty .nav-card-sub {
    color: var(--text-muted);
    margin: 0;
}

/* Related Posts Section */
.related-posts-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.related-title {
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
    text-align: left;
}

.related-grid {
    margin-top: 20px;
}

/* ==========================================================================
   14B. BLOG GRID & NEW METADATA CARD STYLES
   ========================================================================== */

/* Featured Post Card (Editorial wide layout) */
.featured-post-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    border-radius: 28px;
    overflow: hidden;
    padding: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    margin-bottom: 60px;
    transition: var(--transition);
}

@media (max-width: 992px) {
    .featured-post-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.featured-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(27, 117, 188, 0.25);
}

.featured-post-image {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.featured-post-thumbnail-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.featured-post-category-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 5;
}

.featured-post-content {
    padding: 40px 48px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 992px) {
    .featured-post-content {
        padding: 32px;
    }
}

.featured-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.featured-post-meta .author-meta-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-post-meta .author-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
}

.featured-post-meta .author-name {
    color: var(--text-color);
    font-weight: 700;
}

.meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--border-color);
}

.featured-post-title {
    font-size: 2.3rem;
    font-weight: 850;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.025em;
}

.featured-post-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: var(--transition);
}

body.light-mode .featured-post-title a {
    color: var(--text-color-dark);
}

.featured-post-title a:hover {
    color: var(--primary);
}

.featured-post-excerpt {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 30px;
}

.featured-read-more {
    width: fit-content;
    padding: 13px 28px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 750;
}

/* General Blog Card Enhancements */
.post-card-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.post-card-category-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 4;
}

.post-reading-badge {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.post-reading-badge i {
    color: var(--primary);
    font-size: 13px;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.post-card-footer .author-meta-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-card-footer .author-avatar img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
}

.post-card-footer .author-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.post-card:hover .post-card-footer .author-name {
    color: var(--text-color);
}

/* Premium Pagination */
.pagination-container .navigation.pagination {
    display: inline-block;
}

.pagination-container .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination-container .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 750;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
}

.pagination-container .page-numbers.current {
    background: #333333;
    color: #FFFFFF;
    border-color: #333333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.light-mode .pagination-container .page-numbers.current {
    background: #222222;
    color: #FFFFFF;
    border-color: #222222;
}

.pagination-container .page-numbers:not(.current):hover {
    background: rgba(27, 117, 188, 0.08);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.pagination-container .page-numbers.prev,
.pagination-container .page-numbers.next {
    font-weight: 800;
    border-color: rgba(27, 117, 188, 0.15);
    color: var(--primary);
}

.pagination-container .page-numbers.prev:hover,
.pagination-container .page-numbers.next:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

/* ==========================================================================
   15. FOOTER (Sleek and Dynamic)
   ========================================================================== */
.site-footer {
    background-color: rgba(11, 15, 25, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted-dark);
    padding: 80px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-widget h3 {
    color: #FFFFFF;
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-widget p {
    font-size: 14.5px;
    line-height: 1.7;
}

.footer-widget ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-widget a {
    color: var(--text-muted-dark);
    font-size: 14.5px;
}

.footer-widget a:hover {
    color: #FFFFFF;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
}

.footer-bottom a {
    color: var(--text-muted-dark);
}

.footer-bottom a:hover {
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Helper rule for icons inside buttons */
.btn i {
    margin-right: 8px;
    font-size: 1.1em;
    vertical-align: middle;
    line-height: 1;
}

/* ==========================================================================
   16. THEME TOGGLE FLOATING (Premium Widget)
   ========================================================================== */
.theme-toggle-floating {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.theme-toggle-floating i {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.theme-toggle-floating:hover {
    transform: scale(1.1) rotate(15deg);
    background: rgba(15, 23, 42, 0.85);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(27, 117, 188, 0.35);
}

body.light-mode .theme-toggle-floating {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(27, 117, 188, 0.15);
    color: var(--text-color);
    box-shadow: 0 10px 30px rgba(27, 117, 188, 0.08);
}

body.light-mode .theme-toggle-floating:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 15px 35px rgba(27, 117, 188, 0.2);
}

/* Show/hide the SVG icons conditionally based on light/dark mode */
body:not(.light-mode) .sun-icon {
    display: block !important;
}
body:not(.light-mode) .moon-icon {
    display: none !important;
}

body.light-mode .sun-icon {
    display: none !important;
}
body.light-mode .moon-icon {
    display: block !important;
}

/* ==========================================================================
   17. PREMIUM TECHNOLOGY CARDS (Original Logos & Glow)
   ========================================================================== */
.tech-card .original-logo {
    transition: var(--transition);
    filter: grayscale(15%) brightness(95%);
}

.tech-card:hover .original-logo {
    filter: grayscale(0%) brightness(105%);
    transform: scale(1.08);
}

/* Specific glows based on tech brand colors */
.tech-card[data-tech="python"]:hover {
    border-color: rgba(55, 118, 171, 0.45) !important;
    box-shadow: 0 15px 35px rgba(55, 118, 171, 0.15), 0 0 20px rgba(55, 118, 171, 0.05) !important;
    background: rgba(55, 118, 171, 0.03) !important;
}

.tech-card[data-tech="node"]:hover {
    border-color: rgba(144, 197, 63, 0.45) !important;
    box-shadow: 0 15px 35px rgba(144, 197, 63, 0.15), 0 0 20px rgba(144, 197, 63, 0.05) !important;
    background: rgba(144, 197, 63, 0.03) !important;
}

.tech-card[data-tech="php"]:hover {
    border-color: rgba(119, 123, 179, 0.45) !important;
    box-shadow: 0 15px 35px rgba(119, 123, 179, 0.15), 0 0 20px rgba(119, 123, 179, 0.05) !important;
    background: rgba(119, 123, 179, 0.03) !important;
}

.tech-card[data-tech="n8n"]:hover {
    border-color: rgba(255, 108, 55, 0.45) !important;
    box-shadow: 0 15px 35px rgba(255, 108, 55, 0.15), 0 0 20px rgba(255, 108, 55, 0.05) !important;
    background: rgba(255, 108, 55, 0.03) !important;
}

.tech-card[data-tech="wordpress"]:hover {
    border-color: rgba(33, 117, 155, 0.45) !important;
    box-shadow: 0 15px 35px rgba(33, 117, 155, 0.15), 0 0 20px rgba(33, 117, 155, 0.05) !important;
    background: rgba(33, 117, 155, 0.03) !important;
}

/* ==========================================================================
   18. CLOUD SHOWCASE & DEPLOYMENT PANEL
   ========================================================================== */
.cloud-showcase {
    margin-top: 50px;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cloud-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 992px) {
    .cloud-header {
        grid-template-columns: 1fr 1.2fr;
        align-items: center;
        gap: 40px;
    }
}

.cloud-badge {
    background: rgba(27, 117, 188, 0.08);
    border: 1px solid rgba(27, 117, 188, 0.15);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 12px;
}

.cloud-title-group h3 {
    font-size: 24px;
    font-weight: 850;
    margin-bottom: 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.cloud-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.cloud-logos-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

@media (min-width: 768px) {
    .cloud-logos-row {
        gap: 32px;
    }
}

.cloud-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 1 1 130px;
    max-width: 160px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.cloud-logo-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: var(--transition);
}

.cloud-logo-wrapper svg,
.cloud-logo-wrapper i {
    width: 36px;
    height: 36px;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    object-fit: contain;
    transition: var(--transition);
}

.cloud-logo-item:hover .cloud-logo-wrapper i,
.cloud-logo-item:hover .cloud-logo-wrapper svg {
    transform: scale(1.1);
}

body.light-mode .cloud-logo-wrapper {
    background: rgba(27, 117, 188, 0.02);
}

.cloud-logo-item span {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.cloud-logo-item:hover span {
    color: var(--text-color);
}

/* Hover glowing effects for cloud items */
.cloud-logo-item[data-cloud="aws"]:hover .cloud-logo-wrapper {
    border-color: #FF9900;
    background: rgba(255, 153, 0, 0.05);
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.2);
    transform: translateY(-4px);
}

.cloud-logo-item[data-cloud="cloudflare"]:hover .cloud-logo-wrapper {
    border-color: #F38020;
    background: rgba(243, 128, 32, 0.05);
    box-shadow: 0 0 15px rgba(243, 128, 32, 0.2);
    transform: translateY(-4px);
}

.cloud-logo-item[data-cloud="azure"]:hover .cloud-logo-wrapper {
    border-color: #0089D6;
    background: rgba(0, 137, 214, 0.05);
    box-shadow: 0 0 15px rgba(0, 137, 214, 0.2);
    transform: translateY(-4px);
}

.cloud-logo-item[data-cloud="digitalocean"]:hover .cloud-logo-wrapper {
    border-color: #0080FF;
    background: rgba(0, 128, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 128, 255, 0.2);
    transform: translateY(-4px);
}

.cloud-logo-item[data-cloud="ovh"]:hover .cloud-logo-wrapper {
    border-color: #0053B3;
    background: rgba(0, 83, 179, 0.05);
    box-shadow: 0 0 15px rgba(0, 83, 179, 0.2);
    transform: translateY(-4px);
}

