/* ====================== CSS VARIABLES ====================== */
:root {
    --background: 210 40% 98%;
    --foreground: 222 47% 11%;
    --card: 0 0% 100%;
    --primary: 221 83% 53%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96%;
    --muted-foreground: 215 16% 47%;
    --accent: 187 86% 53%;
    --border: 214 32% 91%;
    --container-width: 1280px;
    --section-padding: 6rem;
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0/0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0/0.1), 0 2px 4px -2px rgb(0 0 0/0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0/0.1), 0 4px 6px -4px rgb(0 0 0/0.1);
    --shadow-xl:
        0 20px 25px -5px rgb(0 0 0/0.1), 0 8px 10px -6px rgb(0 0 0/0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
}
.dark {
    --background: 222 47% 6%;
    --foreground: 210 40% 98%;
    --card: 222 47% 8%;
    --primary: 217 91% 60%;
    --primary-foreground: 222 47% 6%;
    --secondary: 217 33% 17%;
    --muted-foreground: 215 20% 65%;
    --accent: 187 86% 53%;
    --border: 217 33% 17%;
    --glass-bg: rgba(30, 41, 59, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* ====================== BASE ====================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    overflow-x: hidden;
    transition:
        background-color var(--transition-base),
        color var(--transition-base);
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}
strong {
    color: hsl(var(--foreground));
    font-weight: 600;
}
.icon {
    width: 1.25rem;
    height: 1.25rem;
}

.text-gradient {
    background: linear-gradient(
        135deg,
        hsl(var(--primary)),
        hsl(var(--accent))
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-accent-color {
    color: hsl(var(--accent));
}

/* ====================== BUTTONS ====================== */
.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
    text-decoration: none;
}
.btn-custom .icon {
    width: 1rem;
    height: 1rem;
}
.btn-primary-custom {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(221 83% 45%));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 4px 14px 0 hsla(var(--primary) / 0.4);
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 hsla(var(--primary) / 0.5);
    color: hsl(var(--primary-foreground));
}
.btn-outline-custom {
    background: transparent;
    border: 2px solid hsl(var(--border));
    color: hsl(var(--foreground));
}
.btn-outline-custom:hover {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
    background: hsla(var(--primary) / 0.1);
}
.btn-sm-custom {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}
.btn-lg-custom {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}
.btn-full {
    width: 100%;
}

/* ====================== NAVBAR ====================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}
#navbar.scrolled {
    box-shadow: var(--shadow-lg);
}
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.logo {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}
.logo-bracket {
    color: hsl(var(--primary));
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    transition: color var(--transition-fast);
    position: relative;
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: hsl(var(--primary));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}
.nav-link:hover,
.nav-link.active {
    color: hsl(var(--foreground));
}
.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    color: hsl(var(--foreground));
}
.theme-toggle:hover {
    background: hsl(var(--secondary));
    border-color: hsl(var(--primary));
}
.theme-toggle .moon-icon {
    display: none;
}
.dark .theme-toggle .sun-icon {
    display: none;
}
.dark .theme-toggle .moon-icon {
    display: block;
}
.mobile-menu-btn {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: hsl(var(--foreground));
}
.mobile-menu-btn .close-icon {
    display: none;
}
.mobile-menu-btn.active .menu-icon {
    display: none;
}
.mobile-menu-btn.active .close-icon {
    display: block;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.5rem;
}
.mobile-menu.active {
    display: flex;
}
.mobile-link {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    transition: all var(--transition-fast);
}
.mobile-link:hover {
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
}

/* ====================== FOOTER ====================== */
.footer {
    background: hsl(var(--card));
    border-top: 1px solid hsl(var(--border));
    padding: 3rem 0 1.5rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid hsl(var(--border));
    margin-bottom: 1.5rem;
}
.footer-tagline {
    color: hsl(var(--muted-foreground));
    margin-top: 0.5rem;
    font-size: 0.875rem;
}
.footer-links {
    display: flex;
    gap: 2rem;
}
.footer-links a {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}
.footer-links a:hover {
    color: hsl(var(--primary));
}
.footer-social {
    display: flex;
    gap: 0.75rem;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}
.heart {
    color: #ef4444;
}
.social-link {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: hsl(var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-foreground));
    transition: all var(--transition-base);
}
.social-link:hover {
    background: hsl(var(--primary));
    color: white;
    transform: translateY(-4px);
}

/* ====================== ANIMATIONS ====================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====================== SCROLLBAR ====================== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: hsl(var(--background));
}
::-webkit-scrollbar-thumb {
    background: hsl(var(--border));
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary));
}
/* ====================== SECTIONS ====================== */
.section {
    padding: var(--section-padding) 0;
}
.section-alt {
    background: hsl(var(--secondary) / 0.3);
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-tag {
    display: inline-block;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.875rem;
    color: hsl(var(--accent));
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}
.section-description {
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ====================== HERO ====================== */
.hero {
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
    min-height: 100vh;
}
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.dark .gradient-orb {
    opacity: 0.2;
}
.orb-1 {
    width: 600px;
    height: 600px;
    background: hsl(var(--primary));
    top: -200px;
    right: -200px;
}
.orb-2 {
    width: 400px;
    height: 400px;
    background: hsl(var(--accent));
    bottom: -100px;
    left: -100px;
}
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(hsla(var(--foreground) / 0.03) 1px, transparent 1px),
        linear-gradient(
            90deg,
            hsla(var(--foreground) / 0.03) 1px,
            transparent 1px
        );
    background-size: 60px 60px;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}
.hero-greeting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}
.wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}
@keyframes wave {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(20deg);
    }
    75% {
        transform: rotate(-10deg);
    }
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.code-bracket {
    color: hsl(var(--accent));
}
.typing-text {
    color: hsl(var(--primary));
}
.hero-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    max-width: 540px;
    line-height: 1.8;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.stat {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(
        135deg,
        hsl(var(--primary)),
        hsl(var(--accent))
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: hsl(var(--border));
}

/* Code Window */
.hero-visual {
    display: flex;
    justify-content: center;
}
.code-window {
    background: hsl(var(--card));
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid hsl(var(--border));
    width: 100%;
    max-width: 480px;
}
.code-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: hsl(var(--secondary));
    border-bottom: 1px solid hsl(var(--border));
}
.code-dots {
    display: flex;
    gap: 0.5rem;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red {
    background: #ff5f56;
}
.dot.yellow {
    background: #ffbd2e;
}
.dot.green {
    background: #27c93f;
}
.code-title {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}
.code-body {
    padding: 1.5rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    overflow-x: auto;
}
.code-body pre {
    margin: 0;
}
.code-keyword {
    color: #c678dd;
}
.code-variable {
    color: #e06c75;
}
.code-property {
    color: #e5c07b;
}
.code-string {
    color: #98c379;
}
.code-function {
    color: #61afef;
}
.dark .code-keyword {
    color: #c792ea;
}
.dark .code-variable {
    color: #f07178;
}
.dark .code-property {
    color: #ffcb6b;
}
.dark .code-string {
    color: #c3e88d;
}
.dark .code-function {
    color: #82aaff;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: hsl(var(--muted-foreground));
    transition: color var(--transition-fast);
}
.scroll-indicator:hover {
    color: hsl(var(--primary));
}
.bounce {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ====================== ABOUT ====================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.about-text {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
.about-highlights {
    display: grid;
    gap: 0.75rem;
    margin-top: 2rem;
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: hsl(var(--foreground));
    font-weight: 500;
}
.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-base);
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--primary) / 0.3);
}
.info-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(
        135deg,
        hsl(var(--primary)),
        hsl(var(--accent))
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}
.info-card-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}
.info-card-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* ====================== SKILLS ====================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.skill-category {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all var(--transition-base);
}
.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.skill-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.skill-category-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.skill-category-icon.frontend {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}
.skill-category-icon.backend {
    background: linear-gradient(135deg, #10b981, #34d399);
}
.skill-category-icon.cms {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}
.skill-category-icon.database {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}
.skill-category-icon.tools {
    background: linear-gradient(135deg, #ef4444, #f87171);
}
.skill-category-icon.integrations {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
}
.skill-category-title {
    font-size: 1.125rem;
    font-weight: 600;
}
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.skill-tag {
    padding: 0.375rem 0.75rem;
    background: hsl(var(--secondary));
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    transition: all var(--transition-fast);
}
.skill-tag:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* ====================== PROJECTS ====================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.project-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    overflow: hidden;
    transition: all var(--transition-base);
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        hsl(var(--primary)),
        hsl(var(--accent))
    );
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-placeholder.purple {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}
.project-placeholder.cyan {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
}
.project-placeholder.green {
    background: linear-gradient(135deg, #10b981, #34d399);
}
.project-placeholder.orange {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}
.project-placeholder.pink {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}
.project-icon {
    width: 3rem;
    height: 3rem;
    color: white;
}
.project-overlay {
    position: absolute;
    inset: 0;
    background: hsla(var(--background) / 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}
.project-card:hover .project-overlay {
    opacity: 1;
}
.project-link {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: hsl(var(--primary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}
.project-link:hover {
    transform: scale(1.1);
}
.project-content {
    padding: 1.5rem;
}
.project-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.project-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tech-tag {
    padding: 0.25rem 0.625rem;
    background: hsl(var(--secondary));
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--primary));
}

/* ====================== EXPERIENCE ====================== */
.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
}
.timeline-item {
    display: flex;
    gap: 2rem;
    position: relative;
}
.timeline-item:not(:last-child) {
    padding-bottom: 3rem;
}
.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.timeline-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        hsl(var(--primary)),
        hsl(var(--accent))
    );
    box-shadow:
        0 0 0 4px hsl(var(--background)),
        0 0 0 6px hsl(var(--primary) / 0.3);
}
.timeline-dot.secondary {
    background: hsl(var(--muted-foreground));
    box-shadow:
        0 0 0 4px hsl(var(--background)),
        0 0 0 6px hsl(var(--muted-foreground) / 0.3);
}
.timeline-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(
        to bottom,
        hsl(var(--primary)),
        hsl(var(--border))
    );
    margin-top: 0.5rem;
}
.timeline-content {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem;
}
.timeline-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.timeline-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(
        135deg,
        hsl(var(--primary)),
        hsl(var(--accent))
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}
.timeline-icon.secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--muted-foreground));
}
.timeline-info {
    flex: 1;
}
.timeline-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.timeline-company {
    color: hsl(var(--primary));
    font-weight: 500;
}
.timeline-date {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.875rem;
    color: hsl(var(--accent));
    background: hsl(var(--accent) / 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    white-space: nowrap;
}
.timeline-list {
    list-style: none;
    margin-bottom: 1rem;
}
.timeline-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
}
.timeline-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: hsl(var(--accent));
}
.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tech-badge {
    padding: 0.25rem 0.625rem;
    background: hsl(var(--primary) / 0.1);
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--primary));
}

/* ====================== EDUCATION ====================== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.edu-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}
.edu-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        hsl(var(--primary)),
        hsl(var(--accent))
    );
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: opacity var(--transition-base);
}
.edu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: hsl(var(--primary) / 0.3);
}
.edu-card:hover::before {
    opacity: 1;
}
.edu-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(
        135deg,
        hsl(var(--primary)),
        hsl(var(--accent))
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
}
.edu-degree {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: hsl(var(--foreground));
    line-height: 1.3;
}
.edu-institution {
    color: hsl(var(--primary));
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.edu-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.edu-meta-badge {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    color: hsl(var(--accent));
    background: hsl(var(--accent) / 0.1);
    padding: 0.2rem 0.625rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.edu-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.65;
    margin-bottom: 1rem;
}
.edu-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.edu-highlights li {
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
    padding: 0.25rem 0 0.25rem 1.25rem;
    position: relative;
}
.edu-highlights li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: hsl(var(--accent));
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.cert-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    transition: all var(--transition-base);
}
.cert-card:hover {
    transform: translateX(6px);
    border-color: hsl(var(--primary) / 0.35);
    box-shadow: var(--shadow-md);
}
.cert-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(
        135deg,
        hsl(var(--primary)),
        hsl(var(--accent))
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}
.cert-icon .icon {
    width: 1rem;
    height: 1rem;
}
.cert-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    margin-bottom: 2px;
}
.cert-issuer {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}
.cert-year {
    margin-left: auto;
    flex-shrink: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    color: hsl(var(--accent));
    background: hsl(var(--accent) / 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
}

/* ====================== WHY HIRE ME ====================== */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.reason-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all var(--transition-base);
}
.reason-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.reason-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(
        135deg,
        hsl(var(--primary)),
        hsl(var(--accent))
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.25rem;
    transition: transform var(--transition-base);
}
.reason-card:hover .reason-icon {
    transform: scale(1.1);
}
.reason-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.reason-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* ====================== CONTACT ====================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    transition: all var(--transition-base);
}
.contact-card:hover {
    transform: translateX(8px);
    border-color: hsl(var(--primary) / 0.3);
}
.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}
.contact-icon.email {
    background: linear-gradient(135deg, #ef4444, #f87171);
}
.contact-icon.whatsapp {
    background: linear-gradient(135deg, #22c55e, #4ade80);
}
.contact-icon.fiverr {
    background: linear-gradient(135deg, #1dbf73, #00b22d);
}
.contact-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.contact-value {
    font-weight: 500;
    color: hsl(var(--foreground));
    transition: color var(--transition-fast);
}
.contact-value:hover {
    color: hsl(var(--primary));
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 2rem;
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    color: hsl(var(--foreground));
    transition: all var(--transition-fast);
}
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: hsl(var(--muted-foreground));
}
.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-description {
        margin: 0 auto 2rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-visual {
        order: -1;
    }
    .code-window {
        max-width: 400px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .hide-mobile {
        display: none !important;
    }
    .hero {
        padding-top: 5rem;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .code-window {
        max-width: 100%;
    }
    .code-body {
        font-size: 0.75rem;
    }
    .stat-divider {
        display: none;
    }
    .hero-stats {
        gap: 1.5rem;
    }
    .about-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .skills-grid,
    .projects-grid,
    .education-grid,
    .certs-grid,
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }
    .timeline-marker {
        flex-direction: row;
        gap: 1rem;
    }
    .timeline-line {
        width: auto;
        height: 2px;
        flex: 1;
        margin-top: 0;
        margin-left: 0.5rem;
    }
    .timeline-header {
        flex-direction: column;
    }
    .footer-content,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .btn-lg-custom {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    .about-cards {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 1.5rem;
    }
}
/* ===== PAGE HERO ===== */
.page-hero {
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
    background: hsl(var(--background));
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.page-orb-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        hsl(var(--primary)) 0%,
        transparent 70%
    );
    top: -200px;
    right: -150px;
    filter: blur(90px);
    opacity: 0.3;
    animation: orbFloat1 10s ease-in-out infinite;
}
.page-orb-2 {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, hsl(var(--accent)) 0%, transparent 70%);
    bottom: -100px;
    left: -80px;
    filter: blur(80px);
    opacity: 0.2;
    animation: orbFloat2 12s ease-in-out infinite;
}
.dark .page-orb-1 {
    opacity: 0.15;
}
.dark .page-orb-2 {
    opacity: 0.12;
}
@keyframes orbFloat1 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-30px, 25px) scale(1.05);
    }
    75% {
        transform: translate(20px, 15px) scale(0.97);
    }
}
@keyframes orbFloat2 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    40% {
        transform: translate(40px, -25px) scale(1.07);
    }
    70% {
        transform: translate(15px, -40px) scale(0.95);
    }
}
.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.page-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.875rem;
    color: hsl(var(--accent));
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}
.page-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.page-desc {
    font-size: 1.1rem;
    color: hsl(var(--muted-foreground));
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

/* ===== SEARCH & FILTER ===== */
.blog-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
    max-width: 420px;
}
.search-box .search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
    pointer-events: none;
}
.search-input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.75rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.625rem;
    font-family: inherit;
    font-size: 0.9rem;
    color: hsl(var(--foreground));
    transition: all var(--transition-fast);
}
.search-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}
.search-input::placeholder {
    color: hsl(var(--muted-foreground));
}
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid hsl(var(--border));
    background: transparent;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}
.filter-tab:hover,
.filter-tab.active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

/* ===== FEATURED POST ===== */
.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1.25rem;
    overflow: hidden;
    margin-bottom: 3rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}
.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: hsl(var(--primary) / 0.3);
}
.featured-thumb {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        hsl(var(--primary)),
        hsl(var(--accent))
    );
    display: flex;
    align-items: center;
    justify-content: center;
}
.featured-thumb-inner {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}
.featured-thumb-inner i {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}
.featured-thumb-inner span {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    opacity: 0.75;
}
.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.featured-body {
    padding: 2.5rem;
}
.post-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.post-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.03em;
}
.post-date {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.post-read-time {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.featured-title {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.875rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.featured-title a:hover {
    color: hsl(var(--primary));
}
.featured-excerpt {
    color: hsl(var(--muted-foreground));
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-size: 0.975rem;
}
.featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.author-info {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.author-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        hsl(var(--primary)),
        hsl(var(--accent))
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
}
.author-name {
    font-size: 0.875rem;
    font-weight: 600;
}
.author-role {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* ===== BLOG GRID ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 4rem;
}
.blog-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: hsl(var(--primary) / 0.3);
}
.blog-card.hidden {
    display: none;
}
.card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-thumb-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
}
.card-thumb-inner i {
    width: 2.5rem;
    height: 2.5rem;
}
.card-thumb .post-category-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: white;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
}
.thumb-laravel {
    background: linear-gradient(135deg, #ff2d20, #ff6b6b);
}
.thumb-wordpress {
    background: linear-gradient(135deg, #21759b, #3d9bc4);
}
.thumb-php {
    background: linear-gradient(135deg, #777bb4, #9a9fce);
}
.thumb-api {
    background: linear-gradient(135deg, #10b981, #34d399);
}
.thumb-js {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}
.thumb-mysql {
    background: linear-gradient(135deg, #00758f, #0099cc);
}
.thumb-devops {
    background: linear-gradient(135deg, #6366f1, #818cf8);
}
.thumb-tips {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}
.thumb-default {
    background: linear-gradient(
        135deg,
        hsl(var(--primary)),
        hsl(var(--accent))
    );
}
.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.875rem;
}
.card-category {
    font-size: 0.72rem;
    font-weight: 600;
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
    padding: 0.2rem 0.625rem;
    border-radius: 9999px;
    font-family: "JetBrains Mono", monospace;
}
.card-date {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    line-height: 1.35;
}
.card-title a:hover {
    color: hsl(var(--primary));
}
.card-excerpt {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.875rem;
    border-top: 1px solid hsl(var(--border));
}
.card-read-time {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.card-read-more {
    font-size: 0.82rem;
    font-weight: 600;
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap var(--transition-fast);
}
.card-read-more:hover {
    gap: 0.6rem;
}
.card-read-more .icon {
    width: 0.875rem;
    height: 0.875rem;
}

/* ===== SIDEBAR ===== */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}
.sidebar-widget {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.widget-title i {
    color: hsl(var(--primary));
    width: 1.1rem;
    height: 1.1rem;
}
.popular-post {
    display: flex;
    gap: 0.875rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(var(--border));
}
.popular-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.popular-num {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.4rem;
    font-weight: 800;
    color: hsl(var(--primary) / 0.3);
    line-height: 1;
    min-width: 2rem;
}
.popular-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}
.popular-title a:hover {
    color: hsl(var(--primary));
}
.popular-date {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag-chip {
    padding: 0.35rem 0.875rem;
    background: hsl(var(--secondary));
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    border: 1px solid hsl(var(--border));
    cursor: pointer;
    transition: all var(--transition-fast);
}
.tag-chip:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}
.newsletter-box {
    text-align: center;
}
.newsletter-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(
        135deg,
        hsl(var(--primary)),
        hsl(var(--accent))
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 1rem;
}
.newsletter-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.newsletter-desc {
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
    line-height: 1.6;
}
.newsletter-input {
    width: 100%;
    padding: 0.65rem 1rem;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}
.newsletter-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}
.newsletter-input::placeholder {
    color: hsl(var(--muted-foreground));
}

/* ===== PAGINATION ===== */
.pagination-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.page-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
    background: transparent;
    color: hsl(var(--foreground));
    font-family: "JetBrains Mono", monospace;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.page-btn:hover,
.page-btn.active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}
.page-btn.nav-btn {
    width: auto;
    padding: 0 0.875rem;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 500;
}

/* ===== NO RESULTS ===== */
#noResults {
    display: none;
    text-align: center;
    padding: 3rem;
    color: hsl(var(--muted-foreground));
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-post {
        grid-template-columns: 1fr;
    }
    .featured-thumb {
        min-height: 220px;
    }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .hide-mobile {
        display: none !important;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box {
        max-width: 100%;
    }
    .footer-content,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
/* ===== EXTRA VARIABLE ===== */
:root {
    --prose-code-bg: 210 40% 94%;
}
.dark {
    --prose-code-bg: 217 33% 14%;
}

/* ===== POST HERO BANNER ===== */
.post-hero {
    padding: 7rem 0 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        hsl(var(--background)) 0%,
        hsl(var(--background)) 100%
    );
}
.post-hero-orb1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        hsl(var(--primary)) 0%,
        transparent 70%
    );
    top: -250px;
    right: -200px;
    filter: blur(100px);
    opacity: 0.25;
    animation: orbF1 10s ease-in-out infinite;
    pointer-events: none;
}
.post-hero-orb2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, hsl(var(--accent)) 0%, transparent 70%);
    bottom: 0;
    left: -150px;
    filter: blur(90px);
    opacity: 0.18;
    animation: orbF2 12s ease-in-out infinite;
    pointer-events: none;
}
.dark .post-hero-orb1 {
    opacity: 0.13;
}
.dark .post-hero-orb2 {
    opacity: 0.1;
}
@keyframes orbF1 {
    0%,
    100% {
        transform: translate(0, 0);
    }
    40% {
        transform: translate(-30px, 30px);
    }
}
@keyframes orbF2 {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(40px, -25px);
    }
}
.post-hero-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Breadcrumb */
.breadcrumb-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.breadcrumb-row a {
    color: hsl(var(--muted-foreground));
    transition: color var(--transition-fast);
}
.breadcrumb-row a:hover {
    color: hsl(var(--primary));
}
.breadcrumb-sep {
    opacity: 0.4;
}

/* Hero top section */
.post-hero-content {
    max-width: 820px;
    padding-bottom: 3rem;
}
.post-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
    padding: 0.3rem 0.875rem;
    border-radius: 9999px;
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
}
.post-h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    line-height: 1.18;
}
.post-lead {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 680px;
}
.post-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    margin-bottom: 0;
}
.meta-author {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.meta-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        hsl(var(--primary)),
        hsl(var(--accent))
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.meta-author-name {
    font-size: 0.9rem;
    font-weight: 600;
}
.meta-author-role {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}
.meta-divider {
    width: 1px;
    height: 2rem;
    background: hsl(var(--border));
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: hsl(var(--muted-foreground));
}
.meta-item i {
    width: 0.9rem;
    height: 0.9rem;
    color: hsl(var(--primary));
}

/* Hero thumbnail */
.post-thumbnail {
    width: 100%;
    aspect-ratio: 21/9;
    border-radius: 1.25rem 1.25rem 0 0;
    background: linear-gradient(135deg, #ff2d20 0%, #ff6b6b 50%, #ff2d20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2.5rem;
    overflow: hidden;
    position: relative;
}
.post-thumbnail-inner {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}
.post-thumbnail-inner i {
    width: 5rem;
    height: 5rem;
    display: block;
    margin: 0 auto 1rem;
    opacity: 0.85;
}
.post-thumbnail-inner p {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    opacity: 0.7;
    letter-spacing: 0.05em;
}
.thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3));
}

/* ===== ARTICLE LAYOUT ===== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
    align-items: start;
}

/* ===== PROSE (article body) ===== */
.prose {
    max-width: none;
}
.prose h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.02em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid hsl(var(--border));
}
.prose h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: hsl(var(--foreground));
}
.prose p {
    color: hsl(var(--muted-foreground));
    line-height: 1.85;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}
.prose strong {
    color: hsl(var(--foreground));
    font-weight: 600;
}
.prose a {
    color: hsl(var(--primary));
    text-decoration: underline;
    text-underline-offset: 3px;
}
.prose a:hover {
    color: hsl(var(--accent));
}
.prose ul,
.prose ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: hsl(var(--muted-foreground));
}
.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}
.prose ul li {
    list-style: none;
    padding-left: 0.75rem;
    position: relative;
}
.prose ul li::before {
    content: "▹";
    position: absolute;
    left: -1rem;
    color: hsl(var(--accent));
}

/* Code blocks */
.prose pre {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.875rem;
    padding: 0;
    margin: 1.5rem 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: hsl(var(--secondary));
    border-bottom: 1px solid hsl(var(--border));
}
.code-block-dots {
    display: flex;
    gap: 0.4rem;
}
.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.code-dot.r {
    background: #ff5f56;
}
.code-dot.y {
    background: #ffbd2e;
}
.code-dot.g {
    background: #27c93f;
}
.code-block-lang {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.copy-btn {
    font-size: 0.72rem;
    font-family: "JetBrains Mono", monospace;
    color: hsl(var(--muted-foreground));
    background: transparent;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    padding: 0.2rem 0.6rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.copy-btn:hover {
    color: hsl(var(--primary));
    border-color: hsl(var(--primary));
}
.prose pre code {
    display: block;
    padding: 1.25rem 1.5rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: hsl(var(--foreground));
    overflow-x: auto;
}
.prose code:not(pre code) {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.84em;
    background: hsl(var(--prose-code-bg));
    color: hsl(var(--primary));
    padding: 0.15em 0.45em;
    border-radius: 0.3rem;
}

/* Callout / Tip box */
.callout {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0.875rem;
    margin: 1.75rem 0;
    border-left: 4px solid;
}
.callout.tip {
    background: hsl(var(--accent) / 0.08);
    border-color: hsl(var(--accent));
}
.callout.warning {
    background: hsl(38 92% 50%/0.08);
    border-color: hsl(38 92% 50%);
}
.callout.info {
    background: hsl(var(--primary) / 0.08);
    border-color: hsl(var(--primary));
}
.callout-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1rem;
}
.callout.tip .callout-icon {
    color: hsl(var(--accent));
}
.callout.warning .callout-icon {
    color: hsl(38 92% 50%);
}
.callout.info .callout-icon {
    color: hsl(var(--primary));
}
.callout-body p {
    margin: 0;
    font-size: 0.9rem;
    color: hsl(var(--foreground));
    line-height: 1.7;
}
.callout-body strong {
    color: hsl(var(--foreground));
}

/* Section divider */
.prose hr {
    border: none;
    border-top: 1px solid hsl(var(--border));
    margin: 2.5rem 0;
}

/* Post tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.5rem 0;
}
.post-tag {
    padding: 0.35rem 0.875rem;
    background: hsl(var(--secondary));
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    border: 1px solid hsl(var(--border));
    transition: all var(--transition-fast);
}
.post-tag:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

/* Share bar */
.share-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    margin: 2rem 0;
}
.share-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.25rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
}
.share-btn.twitter {
    background: #1da1f2;
    color: white;
}
.share-btn.twitter:hover {
    background: #1a8fd1;
}
.share-btn.linkedin {
    background: #0077b5;
    color: white;
}
.share-btn.linkedin:hover {
    background: #005f91;
}
.share-btn.copy-link {
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}
.share-btn.copy-link:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}
.share-btn i {
    width: 0.9rem;
    height: 0.9rem;
}

/* Author card */
.author-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1.25rem;
    margin: 2.5rem 0;
}
.author-card-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(
        135deg,
        hsl(var(--primary)),
        hsl(var(--accent))
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
}
.author-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.author-card-role {
    font-size: 0.82rem;
    color: hsl(var(--primary));
    font-weight: 500;
    margin-bottom: 0.625rem;
}
.author-card-bio {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.65;
    margin-bottom: 1rem;
}
.author-socials {
    display: flex;
    gap: 0.5rem;
}
.author-social-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.4rem;
    background: hsl(var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-foreground));
    transition: all var(--transition-fast);
}
.author-social-btn:hover {
    background: hsl(var(--primary));
    color: white;
}
.author-social-btn i {
    width: 0.9rem;
    height: 0.9rem;
}

/* Prev / Next nav */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0 3rem;
}
.post-nav-card {
    padding: 1.25rem 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    transition: all var(--transition-base);
}
.post-nav-card:hover {
    border-color: hsl(var(--primary) / 0.4);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.post-nav-card.next {
    text-align: right;
}
.post-nav-dir {
    font-size: 0.72rem;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}
.post-nav-card.next .post-nav-dir {
    justify-content: flex-end;
}
.post-nav-dir i {
    width: 0.8rem;
    height: 0.8rem;
    color: hsl(var(--primary));
}
.post-nav-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

/* ===== SIDEBAR ===== */
.toc-widget {
    position: sticky;
    top: 6rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.toc-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--foreground));
}
.toc-title i {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--primary));
}
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.toc-item {
    margin-bottom: 0.1rem;
}
.toc-link {
    display: block;
    padding: 0.4rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.82rem;
    color: hsl(var(--muted-foreground));
    transition: all var(--transition-fast);
    border-left: 2px solid transparent;
}
.toc-link:hover,
.toc-link.active {
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.07);
    border-left-color: hsl(var(--primary));
}
.toc-link.sub {
    padding-left: 1.5rem;
    font-size: 0.78rem;
}

/* Reading progress */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
}

/* Related posts (sidebar) */
.related-widget {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.widget-title i {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--primary));
}
.related-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(var(--border));
}
.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.related-thumb {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.related-thumb i {
    width: 1.1rem;
    height: 1.1rem;
}
.related-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}
.related-title a:hover {
    color: hsl(var(--primary));
}
.related-date {
    font-size: 0.72rem;
    color: hsl(var(--muted-foreground));
}

/* Newsletter (sidebar) */
.nl-widget {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}
.nl-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: linear-gradient(
        135deg,
        hsl(var(--primary)),
        hsl(var(--accent))
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 0.875rem;
}
.nl-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.nl-desc {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
    line-height: 1.6;
}
.nl-input {
    width: 100%;
    padding: 0.6rem 0.875rem;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.85rem;
    color: hsl(var(--foreground));
    margin-bottom: 0.625rem;
}
.nl-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}
.nl-input::placeholder {
    color: hsl(var(--muted-foreground));
}

/* ===== RELATED POSTS GRID (bottom) ===== */
.related-posts-section {
    background: hsl(var(--secondary) / 0.3);
    padding: 4rem 0;
}
.rp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.rp-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    overflow: hidden;
    transition: all var(--transition-base);
}
.rp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0/0.1);
    border-color: hsl(var(--primary) / 0.3);
}
.rp-thumb {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
}
.rp-thumb i {
    width: 2rem;
    height: 2rem;
}
.rp-body {
    padding: 1.25rem;
}
.rp-cat {
    font-size: 0.72rem;
    font-weight: 600;
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-family: "JetBrains Mono", monospace;
    display: inline-block;
    margin-bottom: 0.625rem;
}
.rp-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}
.rp-title a:hover {
    color: hsl(var(--primary));
}
.rp-date {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .toc-widget {
        position: static;
    }
    .rp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .hide-mobile {
        display: none !important;
    }
    .post-h1 {
        font-size: 1.75rem;
    }
    .post-nav {
        grid-template-columns: 1fr;
    }
    .author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .author-socials {
        justify-content: center;
    }
    .rp-grid {
        grid-template-columns: 1fr;
    }
    .footer-content,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .post-thumbnail {
        aspect-ratio: 16/9;
    }
    .meta-divider {
        display: none;
    }
}

/* ================================================================
   COMPREHENSIVE RESPONSIVE SYSTEM
   Breakpoints: 1920 | 1440 | 1200 | 992 | 768 | 576 | <576
   
   Layout model:
   - .hero section is full-width; .hero-content centers the inner content
   - All other sections use <section> full-width + .container centered inside
   - Background orbs/gradients always span full-width (position:absolute)
   ================================================================ */

/* ---- Base: prevent horizontal scroll everywhere ---- */
html {
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
    position: relative;
}

/* ---- Hero: section is full-width, content wrapper is the container ---- */
.hero {
    width: 100%;
    position: relative;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* ---- Inline containers in HTML use max-width:var(--container-width).
        Ensure padding is responsive via padding on the .container ---- */
.container[style*="container-width"],
div[style*="container-width"] {
    padding-left: clamp(1rem, 4vw, 2rem) !important;
    padding-right: clamp(1rem, 4vw, 2rem) !important;
    box-sizing: border-box;
    width: 100%;
}

/* ---- Orbs: clamp size so they never cause horizontal overflow ---- */
.orb-1 { width: clamp(250px, 40vw, 600px); height: clamp(250px, 40vw, 600px); }
.orb-2 { width: clamp(150px, 25vw, 400px); height: clamp(150px, 25vw, 400px); }
.page-orb-1 { width: clamp(220px, 35vw, 500px); height: clamp(220px, 35vw, 500px); }
.page-orb-2 { width: clamp(160px, 28vw, 350px); height: clamp(160px, 28vw, 350px); }
.post-hero-orb1 { width: clamp(200px, 38vw, 600px); height: clamp(200px, 38vw, 600px); }
.post-hero-orb2 { width: clamp(150px, 28vw, 400px); height: clamp(150px, 28vw, 400px); }

/* ================================================================
   1920px+ — Ultra-wide screens
   ================================================================ */
@media (min-width: 1920px) {
    :root {
        --container-width: 1600px;
        --section-padding: 8rem;
    }
    .navbar-container {
        max-width: 1600px;
    }
    .hero-content {
        max-width: 1600px;
        gap: 6rem;
    }
    .code-window {
        max-width: 560px;
    }
    .hero-title {
        font-size: 5rem;
    }
    .featured-body {
        padding: 3rem;
    }
    .featured-thumb {
        min-height: 400px;
    }
}

/* ================================================================
   1440px–1919px — Large desktop
   ================================================================ */
@media (min-width: 1440px) and (max-width: 1919px) {
    :root {
        --container-width: 1360px;
        --section-padding: 7rem;
    }
    .navbar-container {
        max-width: 1360px;
    }
    .hero-content {
        max-width: 1360px;
        gap: 5rem;
    }
    .code-window {
        max-width: 520px;
    }
}

/* ================================================================
   1200px–1439px — Standard large desktop
   ================================================================ */
@media (min-width: 1200px) and (max-width: 1439px) {
    :root {
        --container-width: 1160px;
    }
    .navbar-container {
        max-width: 1160px;
    }
    .hero-content {
        max-width: 1160px;
        gap: 4rem;
    }
    .nav-links {
        gap: 1.5rem;
    }
}

/* ================================================================
   992px–1199px — Small desktop / large tablet landscape
   ================================================================ */
@media (min-width: 992px) and (max-width: 1199px) {
    :root {
        --container-width: 960px;
        --section-padding: 5rem;
    }
    .navbar-container {
        max-width: 960px;
        padding: 0 1.25rem;
    }
    .nav-links {
        gap: 1.1rem;
    }
    .nav-link {
        font-size: 0.8125rem;
    }

    /* Hero — still 2-col but tighter */
    .hero-content {
        max-width: 960px;
        padding: 0 1.25rem;
        gap: 2.5rem;
    }
    .hero-title {
        font-size: clamp(2.25rem, 3.5vw, 3.25rem);
    }
    .code-window {
        max-width: 400px;
    }

    /* Grids */
    .projects-grid     { grid-template-columns: repeat(2, 1fr); }
    .education-grid    { grid-template-columns: repeat(2, 1fr); }
    .certs-grid        { grid-template-columns: repeat(2, 1fr); }
    .reasons-grid      { grid-template-columns: repeat(3, 1fr); }
    .blog-grid         { grid-template-columns: repeat(2, 1fr); }
    .blog-layout       { grid-template-columns: 1fr 260px; gap: 2rem; }
    .rp-grid           { grid-template-columns: repeat(2, 1fr); }
    .article-layout    { gap: 2rem; }

    /* Featured post still 2-col */
    .featured-post { grid-template-columns: 1fr 1fr; }
    .featured-body { padding: 2rem; }

    /* Contact */
    .contact-grid { max-width: 100%; }
}

/* ================================================================
   768px–991px — Tablet portrait
   ================================================================ */
@media (min-width: 768px) and (max-width: 991px) {
    :root {
        --container-width: 100%;
        --section-padding: 4.5rem;
    }
    .navbar-container {
        max-width: 100%;
        padding: 0 1.5rem;
    }

    /* Nav: switch to mobile hamburger */
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .hide-mobile { display: none !important; }

    /* Hero — full-width section, single column content */
    .hero {
        min-height: auto;
        padding: 6.5rem 0 4rem;
    }
    .hero-content {
        grid-template-columns: 1fr;
        max-width: 640px;
        text-align: center;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }
    .hero-visual { order: -1; }
    .code-window { max-width: 480px; margin: 0 auto; }
    .hero-description { margin: 0 auto 2rem; max-width: 520px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-subtitle { justify-content: center; }
    .hero-greeting { justify-content: center; }

    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-cards { grid-template-columns: repeat(2, 1fr); }

    /* Skills */
    .skills-grid { grid-template-columns: repeat(2, 1fr); }

    /* Projects */
    .projects-grid { grid-template-columns: repeat(2, 1fr); }

    /* Education */
    .education-grid { grid-template-columns: repeat(2, 1fr); }
    .certs-grid { grid-template-columns: repeat(2, 1fr); }

    /* Reasons */
    .reasons-grid { grid-template-columns: repeat(2, 1fr); }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; max-width: 580px; margin: 0 auto; }

    /* Blog */
    .blog-layout { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-post { grid-template-columns: 1fr; }
    .featured-thumb { min-height: 240px; }
    .featured-body { padding: 2rem; }
    .blog-controls { flex-direction: column; align-items: stretch; }
    .search-box { max-width: 100%; min-width: unset; }
    .toc-widget { position: static; }

    /* Blog post */
    .article-layout { grid-template-columns: 1fr; }
    .post-nav { grid-template-columns: 1fr; }
    .post-h1 { font-size: 1.85rem; }
    .rp-grid { grid-template-columns: repeat(2, 1fr); }
    .author-card { flex-direction: column; align-items: center; text-align: center; }
    .author-socials { justify-content: center; }

    /* Footer */
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
    .footer-social { justify-content: center; }
}

/* ================================================================
   576px–767px — Mobile landscape / large phone
   ================================================================ */
@media (min-width: 576px) and (max-width: 767px) {
    :root {
        --container-width: 100%;
        --section-padding: 4rem;
    }
    .navbar-container {
        max-width: 100%;
        padding: 0 1.25rem;
    }

    /* Nav */
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .hide-mobile { display: none !important; }

    /* Hero — full-width section, single column */
    .hero {
        min-height: auto;
        padding: 5.5rem 0 3.5rem;
    }
    .hero-content {
        grid-template-columns: 1fr;
        max-width: 100%;
        text-align: center;
        gap: 2rem;
        padding: 0 1.25rem;
    }
    .hero-visual { order: -1; }
    .code-window { max-width: 100%; }
    .code-body { font-size: 0.78rem; }
    .hero-title { font-size: clamp(1.85rem, 5vw, 2.25rem); }
    .hero-subtitle { font-size: 1rem; justify-content: center; }
    .hero-greeting { justify-content: center; }
    .hero-description { font-size: 1rem; margin: 0 auto 1.75rem; }
    .hero-buttons { justify-content: center; flex-wrap: wrap; }
    .hero-stats { justify-content: center; gap: 1.25rem; }
    .stat-divider { display: none; }

    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-cards { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

    /* Skills, Projects, Education, Reasons — single column */
    .skills-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .education-grid { grid-template-columns: 1fr; }
    .certs-grid { grid-template-columns: 1fr; }
    .reasons-grid { grid-template-columns: 1fr; }

    /* Timeline */
    .timeline-item { flex-direction: column; gap: 1rem; }
    .timeline-marker { flex-direction: row; gap: 0.75rem; }
    .timeline-line { width: auto; height: 2px; flex: 1; margin-top: 0; margin-left: 0.5rem; }
    .timeline-header { flex-direction: column; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 1.5rem; }

    /* Blog */
    .blog-layout { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .featured-post { grid-template-columns: 1fr; }
    .featured-thumb { min-height: 200px; }
    .featured-body { padding: 1.5rem; }
    .featured-title { font-size: 1.35rem; }
    .blog-controls { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .search-box { max-width: 100%; min-width: unset; }
    .toc-widget { position: static; }

    /* Blog post */
    .article-layout { grid-template-columns: 1fr; }
    .post-nav { grid-template-columns: 1fr; }
    .post-h1 { font-size: 1.65rem; }
    .rp-grid { grid-template-columns: 1fr; }
    .author-card { flex-direction: column; align-items: center; text-align: center; }
    .author-socials { justify-content: center; }
    .meta-divider { display: none; }
    .post-thumbnail { aspect-ratio: 16/9; }

    /* Footer */
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
    .footer-social { justify-content: center; }
}

/* ================================================================
   <576px — Mobile portrait (small phones)
   ================================================================ */
@media (max-width: 575px) {
    :root {
        --container-width: 100%;
        --section-padding: 3.5rem;
    }
    .navbar-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    .navbar-container .logo img {
        width: 52px !important;
    }

    /* Nav */
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .hide-mobile { display: none !important; }
    .mobile-menu { padding: 0.75rem 1rem 1.25rem; }

    /* Hero — section spans full width, content is centered within */
    .hero {
        min-height: auto;
        padding: 5rem 0 3rem;
    }
    .hero-content {
        grid-template-columns: 1fr;
        max-width: 100%;
        text-align: center;
        gap: 1.75rem;
        padding: 0 1rem;
    }
    .hero-visual { order: -1; }
    .code-window { max-width: 100%; }
    .code-body { font-size: 0.72rem; padding: 1rem; line-height: 1.7; }
    .hero-title { font-size: clamp(1.65rem, 7vw, 2rem); }
    .hero-subtitle { font-size: 0.9rem; justify-content: center; flex-wrap: wrap; }
    .hero-greeting { justify-content: center; font-size: 1rem; }
    .hero-description { font-size: 0.9375rem; margin: 0 auto 1.5rem; }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .hero-buttons .btn-lg-custom {
        width: 100%;
        max-width: 280px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
    .hero-stats {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    .stat-divider { display: none; }
    .stat-number { font-size: 1.6rem; }

    /* Section header */
    .section-title { font-size: clamp(1.6rem, 7vw, 2.25rem); }
    .section-description { font-size: 0.9375rem; }
    .section-header { margin-bottom: 2.5rem; }

    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-cards { grid-template-columns: 1fr; gap: 1rem; }
    .info-card { padding: 1.25rem; }

    /* Skills */
    .skills-grid { grid-template-columns: 1fr; }
    .skill-card { padding: 1.25rem; }

    /* Projects */
    .projects-grid { grid-template-columns: 1fr; }

    /* Timeline */
    .timeline-item { flex-direction: column; gap: 0.875rem; }
    .timeline-item:not(:last-child) { padding-bottom: 2rem; }
    .timeline-marker { flex-direction: row; gap: 0.75rem; }
    .timeline-line { width: auto; height: 2px; flex: 1; margin-top: 0; margin-left: 0.5rem; }
    .timeline-header { flex-direction: column; gap: 0.75rem; }
    .timeline-content { padding: 1.25rem; }

    /* Education */
    .education-grid { grid-template-columns: 1fr; }
    .certs-grid { grid-template-columns: 1fr; }
    .edu-card { padding: 1.25rem; }

    /* Reasons */
    .reasons-grid { grid-template-columns: 1fr; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 1.25rem; }
    .contact-card { padding: 1rem; }

    /* Page hero (blog) */
    .page-hero { padding: 7rem 0 3.5rem; }
    .page-hero-content { padding: 0 1rem; }
    .page-title { font-size: clamp(1.75rem, 8vw, 2.5rem); }
    .page-desc { font-size: 0.9375rem; }

    /* Blog */
    .blog-layout { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .featured-post { grid-template-columns: 1fr; }
    .featured-thumb { min-height: 180px; }
    .featured-body { padding: 1.25rem; }
    .featured-title { font-size: 1.15rem; }
    .featured-excerpt { font-size: 0.875rem; }
    .blog-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    .search-box { max-width: 100%; min-width: unset; }
    .filter-tabs { gap: 0.375rem; }
    .filter-tab { font-size: 0.75rem; padding: 0.375rem 0.75rem; }
    .toc-widget { position: static; }

    /* Blog post */
    .post-hero { padding: 6rem 0 0; }
    .post-hero-inner { padding: 0 1rem; }
    .article-layout { grid-template-columns: 1fr; }
    .post-nav { grid-template-columns: 1fr; }
    .post-h1 { font-size: 1.45rem; }
    .rp-grid { grid-template-columns: 1fr; }
    .rp-grid { gap: 1rem; }
    .author-card { flex-direction: column; align-items: center; text-align: center; padding: 1.25rem; }
    .author-socials { justify-content: center; }
    .meta-divider { display: none; }
    .post-thumbnail { aspect-ratio: 16/9; }
    .post-meta-row { gap: 0.5rem; }

    /* Footer */
    .footer { padding: 2.5rem 0 1.25rem; }
    .footer .container { padding: 0 1rem !important; }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.625rem;
    }
    .footer-links a { font-size: 0.8125rem; }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
    .footer-social { justify-content: center; }
}

/* ================================================================
   Utility: images & embeds never overflow
   ================================================================ */
img, video, iframe, embed, object, svg {
    max-width: 100%;
}
pre, .code-body {
    overflow-x: auto;
    word-break: normal;
    white-space: pre;
}
