/* ============================================================
   Furkan Yaman — style.css
   Font: Bricolage Grotesque + Plus Jakarta Sans
   Renk: #2563EB mavi
   ============================================================ */

/* ---- Variables ---- */
:root {
    --blue: #2563EB;
    --blue-light: #3B82F6;
    --blue-dark: #1D4ED8;
    --blue-accent: #60A5FA;
    --blue-bg: #EFF6FF;
    --blue-100: #DBEAFE;
    --blue-200: #BFDBFE;
    --blue-50: #F0F7FF;

    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --black: #000000;

    --green: #10B981;
    --amber: #F59E0B;

    --font-heading: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --bg: var(--white);
    --bg-alt: var(--gray-50);
    --bg-card: var(--white);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-400);
    --border: var(--gray-200);
    --border-light: var(--gray-100);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --nav-height: 72px;
    --container: 1200px;
}

[data-theme="dark"] {
    --bg: #0B0F19;
    --bg-alt: #111827;
    --bg-card: #1A2035;
    --bg-glass: rgba(26, 32, 53, 0.8);
    --text: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border: #1E293B;
    --border-light: #1E293B;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
    --blue-bg: rgba(37, 99, 235, 0.1);
    --blue-50: rgba(37, 99, 235, 0.05);
    --gray-50: #111827;
    --gray-100: #1E293B;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

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

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

::selection {
    background: rgba(37, 99, 235, 0.2);
    color: var(--blue-dark);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   Loading Screen
   ============================================================ */
#loading {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

#loading.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-inner {
    text-align: center;
}

.loading-logo {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   Navbar — Floating Glassmorphism
   ============================================================ */
.navbar {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1200px;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: all var(--transition);
    animation: navbarSlideIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes navbarSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

[data-theme="dark"] .navbar {
    background: rgba(11, 15, 25, 0.85);
    border-color: var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    top: 8px;
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(11, 15, 25, 0.95);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.navbar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    color: var(--text);
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

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

.navbar-logo img {
    height: 36px;
    width: auto;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
    transition: width var(--transition), left var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
    left: 20%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
    background: var(--blue-bg);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition), transform 0.2s ease;
}

.btn-icon:hover {
    background: var(--blue-bg);
    color: var(--blue);
    transform: scale(1.08);
}

.btn-icon:active {
    transform: scale(0.95);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
}

/* Theme toggle icon visibility */
.icon-sun,
.icon-moon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

[data-theme="light"] .icon-sun {
    display: none;
}

[data-theme="dark"] .icon-moon {
    display: none;
}

/* Alpine x-cloak — hide until Alpine initializes */
[x-cloak] {
    display: none !important;
}

/* Mobile Menu — Floating (KS pattern) */
.mobile-menu {
    position: fixed;
    top: calc(var(--nav-height) + 20px);
    left: 12px;
    right: 12px;
    max-height: calc(100vh - var(--nav-height) - 40px);
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 12px;
    z-index: 999;
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.mobile-nav .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* Search Modal */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: min(12vh, 100px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal.active .search-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.search-backdrop {
    position: absolute;
    inset: 0;
}

.search-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 620px;
    margin: 0 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    overflow: hidden;
    transform: translateY(-12px) scale(0.98);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

[data-theme="dark"] .search-box {
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
}

.search-input-wrap svg.search-icon {
    width: 20px;
    height: 20px;
    color: var(--blue);
    flex-shrink: 0;
}

.search-esc {
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    font-size: 11px;
    font-family: inherit;
    color: var(--text-muted);
    flex-shrink: 0;
    line-height: 1;
}

#searchInput {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.05rem;
    font-family: var(--font-body);
    color: var(--text);
    min-width: 0;
}

#searchInput::placeholder {
    color: var(--text-muted);
}

.search-results {
    max-height: 420px;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.search-results::-webkit-scrollbar {
    width: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.search-group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 10px 12px 6px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover,
.search-result-item.active {
    background: var(--blue-bg);
}

.search-result-item.active {
    outline: 2px solid var(--blue);
    outline-offset: -2px;
}

.search-result-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.search-result-item:hover .search-result-icon,
.search-result-item.active .search-result-icon {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.search-result-icon svg {
    width: 16px;
    height: 16px;
}

.search-result-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-result-text strong {
    font-size: 14px;
    font-weight: 600;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-text span {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 2px 8px;
    border-radius: 99px;
    flex-shrink: 0;
    line-height: 1.6;
}

.search-type-sayfa {
    background: var(--blue-bg);
    color: var(--blue);
}

.search-type-hizmet {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.search-type-proje {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.search-type-blog {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.search-empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
}

.search-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: var(--text-muted);
    opacity: 0.4;
}

.search-empty p {
    font-size: 14px;
    margin-top: 4px;
}

.search-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 18px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-muted);
}

.search-footer kbd {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    font-size: 11px;
    font-family: inherit;
    line-height: 1.5;
    margin-right: 2px;
}

.search-highlight {
    color: var(--blue);
    font-weight: 700;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 2px;
    padding: 0 1px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--blue);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.btn-primary:hover::after {
    left: 120%;
}

.btn-primary:hover {
    background: var(--blue-light);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 16px;
}

.btn-ghost:hover {
    color: var(--blue);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 17px;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
}

/* ============================================================
   Section Headers
   ============================================================ */
.section {
    padding: 100px 0;
}

.section-sm {
    padding: 64px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--blue-bg);
    color: var(--blue);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid var(--blue-100);
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-height) + 48px) 0 64px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 15% -5%, rgba(37, 99, 235, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 65% 55% at 85% 105%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
        var(--bg);
    z-index: 0;
}

[data-theme="dark"] .hero-bg {
    background:
        radial-gradient(ellipse 80% 55% at 15% -5%, rgba(37, 99, 235, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 65% 55% at 85% 105%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
        var(--bg);
}

/* Hero Blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: blobFloat 20s ease-in-out infinite alternate;
}

.hero-blob-1 {
    top: -15%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: var(--blue);
}

.hero-blob-2 {
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #6366F1;
    animation-delay: -10s;
    animation-direction: alternate-reverse;
}

.hero-blob-3 {
    top: 40%;
    left: 30%;
    width: 300px;
    height: 300px;
    background: #10B981;
    opacity: 0.08;
    animation-delay: -5s;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.95);
    }

    100% {
        transform: translate(10px, -10px) scale(1.02);
    }
}

[data-theme="dark"] .hero-blob {
    opacity: 0.08;
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--blue);
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {

    0%,
    100% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }

    50% {
        opacity: 0.3;
        transform: translateY(-30px) scale(1);
    }
}

[data-theme="dark"] .hero-particle {
    background: rgba(37, 99, 235, 0.5);
}

/* Grid Pattern */
.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
}

[data-theme="dark"] .hero-grid-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Hero Badge with Shimmer */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--blue-bg);
    color: var(--blue);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 28px;
    border: 1px solid var(--blue-100);
    position: relative;
    overflow: hidden;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: blink 1.5s ease infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

.hero-badge-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.12), transparent);
    animation: badgeShimmer 3s ease-in-out infinite;
}

@keyframes badgeShimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Hero Intro & Name */
.hero-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hero h1 {
    margin-bottom: 0;
    line-height: 1.05;
    font-size: clamp(3rem, 6vw, 5.5rem);
}

.hero-name {
    display: block;
    background: linear-gradient(135deg, var(--blue) 0%, #818CF8 50%, var(--blue) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

/* Hero Title Row (Subtitle + Rotating) */
.hero-title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px;
    margin: 14px 0 26px;
    font-size: clamp(1.15rem, 2.2vw, 1.65rem);
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1.3;
}

.hero-title-static {
    color: var(--text-secondary);
}

/* Hero Tech Tags */
.hero-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.hero-tech-tags span {
    padding: 5px 13px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-alt, var(--gray-50));
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: default;
}

.hero-tech-tags span:hover {
    background: var(--blue-bg);
    border-color: var(--blue-200);
    color: var(--blue);
    transform: translateY(-2px);
}

/* ============================================================
   Hero Visual — Orbit (new)
   ============================================================ */
.hero-visual-inner {
    position: relative;
    width: 420px;
    height: 420px;
    max-width: 100%;
}

/* Orbit Rings */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    pointer-events: none;
}

.orbit-ring-1 {
    width: 240px;
    height: 240px;
    margin: -120px 0 0 -120px;
    border: 1px dashed rgba(37, 99, 235, 0.22);
    animation: ringRotate 28s linear infinite;
}

.orbit-ring-2 {
    width: 370px;
    height: 370px;
    margin: -185px 0 0 -185px;
    border: 1px dashed rgba(99, 102, 241, 0.13);
    animation: ringRotate 45s linear infinite reverse;
}

[data-theme="dark"] .orbit-ring-1 {
    border-color: rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .orbit-ring-2 {
    border-color: rgba(99, 102, 241, 0.18);
}

@keyframes ringRotate {
    to {
        transform: rotate(360deg);
    }
}

/* Orbit Badges */
.orbit-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    z-index: 3;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    letter-spacing: 0.01em;
}

.orbit-badge-top {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--blue);
    border: 1px solid var(--blue-200);
    background: var(--blue-50);
    animation: floatTopBottom 4s ease-in-out infinite;
}

.orbit-badge-right {
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    color: #7C3AED;
    border: 1px solid rgba(124, 58, 237, 0.22);
    background: rgba(124, 58, 237, 0.07);
    animation: floatLeftRight 4.5s ease-in-out infinite 1s;
}

.orbit-badge-bottom {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.07);
    animation: floatTopBottom 4s ease-in-out infinite 2s;
}

.orbit-badge-left {
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    color: var(--amber);
    border: 1px solid rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.07);
    animation: floatLeftRight 4.5s ease-in-out infinite 3s;
}

@keyframes floatTopBottom {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

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

@keyframes floatLeftRight {

    0%,
    100% {
        transform: translateY(-50%);
    }

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

/* Hero Avatar */
.hero-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 128px;
    height: 128px;
    z-index: 2;
}

.avatar-inner {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue) 0%, #6366F1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-heading);
    position: relative;
    z-index: 2;
    box-shadow:
        0 0 0 5px rgba(37, 99, 235, 0.12),
        0 0 0 10px rgba(37, 99, 235, 0.06),
        0 16px 40px rgba(37, 99, 235, 0.3);
    animation: heroCardFloat 6s ease-in-out infinite;
}

.avatar-glow {
    position: absolute;
    inset: -24px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(18px);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

/* Notification / Floating Cards */
.hero-notif {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 185px;
    z-index: 4;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-notif-1 {
    top: 18%;
    right: -18px;
    animation: notifFloat 5s ease-in-out infinite;
}

.hero-notif-2 {
    bottom: 18%;
    left: -18px;
    animation: notifFloat 5s ease-in-out infinite 2.5s;
}

@keyframes notifFloat {

    0%,
    100% {
        transform: translateY(0);
    }

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

.notif-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
}

.notif-yellow {
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber);
}

.notif-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.notif-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    animation: scrollBounce 2.5s ease-in-out infinite;
    z-index: 2;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.hero-scroll-indicator:hover {
    opacity: 0.9;
}

.hero-scroll-mouse {
    width: 22px;
    height: 36px;
    border-radius: 11px;
    border: 2px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
}

.hero-scroll-wheel {
    width: 3px;
    height: 7px;
    border-radius: 2px;
    background: var(--text-muted);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {

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

    50% {
        transform: translateY(7px);
        opacity: 0.2;
    }
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

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

/* Rotating Text */
.hero-rotating-wrapper {
    display: inline-block;
    position: relative;
    vertical-align: baseline;
}

.hero-rotating {
    display: inline-block;
    position: relative;
    height: 1.15em;
    overflow: hidden;
    vertical-align: bottom;
}

.hero-rotating-item {
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    width: max-content;
    background: linear-gradient(135deg, var(--blue), #60A5FA, var(--blue));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-rotating-item.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.hero-rotating-item.exit {
    opacity: 0;
    transform: translateY(-100%);
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--blue), #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 17.5px;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.75;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Hero CTA Glow */
.hero-cta-glow {
    position: relative;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.hero-cta-glow:hover {
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.45);
    transform: translateY(-2px);
}

/* Hero Trust */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-muted);
}

.hero-trust-avatars {
    display: flex;
}

.hero-trust-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border: 2px solid var(--bg);
    margin-left: -8px;
}

.hero-trust-avatar:first-child {
    margin-left: 0;
}

/* Hero Visual (Right Side) */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 380px;
    position: relative;
    animation: heroCardFloat 6s ease-in-out infinite;
}

@keyframes heroCardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

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

.hero-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(37, 99, 235, .15), rgba(96, 165, 250, .1), transparent);
    z-index: -1;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-xl);
    background: conic-gradient(from 0deg, transparent, var(--blue), transparent, transparent);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: heroCardGlow 4s linear infinite;
}

@keyframes heroCardGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-card:hover::after {
    opacity: 0.3;
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.hc-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.hc-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.hc-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stack-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.stack-name {
    font-weight: 600;
}

.stack-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 99px;
    margin: 0 12px;
    overflow: hidden;
}

.stack-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), #60A5FA);
    transition: width 1s ease 0.5s;
}

.stack-pct {
    color: var(--text-muted);
    font-size: 0.8rem;
    min-width: 32px;
    text-align: right;
}

/* Hero Product Glow */
.hero-product-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

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

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 72px;
    position: relative;
    z-index: 1;
}

.hero-stat,
.stat-item {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-glass, rgba(255, 255, 255, 0.5));
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light, var(--border));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-stat::before,
.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), #60A5FA);
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-stat:hover,
.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hero-stat:hover::before,
.stat-item:hover::before {
    opacity: 1;
}

.hero-stat-num,
.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
}

.stat-number span {
    color: var(--blue-dark, var(--blue));
}

.hero-stat-label,
.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ============================================================
   Service Cards
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-gradient, linear-gradient(90deg, var(--blue), #60A5FA));
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--blue-border, rgba(37, 99, 235, 0.2));
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-3deg);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 600;
    margin-top: 18px;
    transition: gap var(--transition);
}

.service-link:hover {
    gap: 10px;
}

/* Service Detail (individual service page layout) */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 96px;
}

.service-detail-reverse .service-detail-visual {
    order: 2;
}

.service-detail-reverse .service-detail-content {
    order: 1;
}

.service-detail-icon-box {
    height: 320px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    border: 1px solid;
    transition: transform 0.4s ease;
}

.service-detail-icon-box:hover {
    transform: scale(1.03);
}

.service-detail-content h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.service-detail-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.service-detail-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
}

.service-detail-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================================
   Project Cards
   ============================================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--blue-border, rgba(37, 99, 235, 0.2));
}

.project-thumb {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.project-card:hover .project-thumb {
    transform: scale(1.05);
}

.project-body {
    padding: 24px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tag {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--blue-bg);
    color: var(--blue);
    border: 1px solid var(--blue-border, rgba(37, 99, 235, 0.15));
}

.tag.indigo {
    background: rgba(96, 165, 250, .08);
    color: #60A5FA;
    border-color: rgba(96, 165, 250, .18);
}

.tag.green {
    background: rgba(5, 150, 105, .08);
    color: var(--green);
    border-color: rgba(5, 150, 105, .18);
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* filter pills */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--blue-bg);
    color: var(--blue);
    border-color: var(--blue-100, rgba(37, 99, 235, 0.15));
}

/* ============================================================
   Blog — Hero, Featured, Cards, Toolbar, Pagination
   ============================================================ */

/* Blog Hero */
.blog-hero {
    padding: 140px 0 60px;
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
    opacity: 0.04;
}

.blog-hero-content {
    max-width: 700px;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--blue-bg);
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.blog-hero-badge svg {
    width: 16px;
    height: 16px;
}

.blog-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 16px;
}

.blog-hero p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
}

.blog-hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border-light);
}

.blog-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blog-hero-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--blue);
    font-family: var(--font-heading);
}

.blog-hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Blog Featured */
.blog-featured-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

.blog-featured-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.blog-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.05) 100%);
}

.blog-featured-content {
    position: relative;
    z-index: 1;
    padding: 32px;
    color: #fff;
    width: 100%;
}

.blog-featured-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.blog-tag-featured {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.blog-tag-featured svg {
    width: 14px;
    height: 14px;
}

.blog-tag-cat {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.blog-featured-content h2 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.3;
    margin-bottom: 8px;
}

.blog-featured-main .blog-featured-content h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.blog-featured-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-featured-meta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.blog-featured-meta svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 4px;
}

/* Blog Toolbar */
.blog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.blog-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.blog-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
}

.blog-filter-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.blog-filter-btn.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.blog-filter-count {
    font-size: 11px;
    background: rgba(0, 0, 0, 0.1);
    padding: 1px 7px;
    border-radius: 10px;
}

.blog-filter-btn.active .blog-filter-count {
    background: rgba(255, 255, 255, 0.25);
}

.blog-search-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    min-width: 220px;
    transition: border-color var(--transition);
}

.blog-search-mini:focus-within {
    border-color: var(--blue);
}

.blog-search-mini svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.blog-search-mini input {
    border: none;
    background: none;
    outline: none;
    font-size: 13px;
    color: var(--text);
    width: 100%;
    font-family: var(--font-body);
}

.blog-search-clear {
    flex-shrink: 0;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.blog-search-clear svg {
    width: 14px;
    height: 14px;
}

/* Active Filter Info */
.blog-active-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--blue-bg);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.blog-active-filter svg {
    width: 14px;
    height: 14px;
    color: var(--blue);
}

.blog-clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    background: var(--bg-card);
    border: 1px solid var(--blue-100, rgba(37, 99, 235, 0.15));
    transition: all var(--transition);
    cursor: pointer;
}

.blog-clear-filter:hover {
    background: var(--blue);
    color: #fff;
}

.blog-clear-filter svg {
    width: 12px;
    height: 12px;
}

/* Blog Cards V2 */
.blog-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card-v2 {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.blog-card-v2-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.blog-card-v2-image {
    height: 180px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px;
    position: relative;
}

.blog-card-v2-cat {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    font-size: 11px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-v2-read {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    font-size: 11px;
    color: #fff;
}

.blog-card-v2-read svg {
    width: 12px;
    height: 12px;
}

.blog-card-v2-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-v2-body h3 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-v2-body p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

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

.blog-card-v2-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-card-v2-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue-bg);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.blog-card-v2-author-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.blog-card-v2-date {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.blog-card-v2-arrow {
    color: var(--text-muted);
    transition: all var(--transition);
}

.blog-card-v2-arrow svg {
    width: 18px;
    height: 18px;
}

.blog-card-v2:hover .blog-card-v2-arrow {
    color: var(--blue);
    transform: translateX(4px);
}

/* Blog Card Enter Transition */
.blog-card-enter {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.blog-card-enter-start {
    opacity: 0;
    transform: translateY(16px);
}

.blog-card-enter-end {
    opacity: 1;
    transform: translateY(0);
}

/* Blog Empty */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.blog-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.blog-empty h3 {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.blog-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    cursor: pointer;
    font-family: var(--font-body);
}

.blog-page-btn svg {
    width: 16px;
    height: 16px;
}

.blog-page-btn:hover:not(:disabled) {
    border-color: var(--blue);
    color: var(--blue);
}

.blog-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.blog-page-numbers {
    display: flex;
    gap: 4px;
}

.blog-page-num {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    cursor: pointer;
    font-family: var(--font-body);
}

.blog-page-num:hover:not(.active) {
    border-color: var(--blue);
    color: var(--blue);
}

.blog-page-num.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.blog-page-info {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Legacy blog-grid (keep for possible reuse) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--blue-border, rgba(37, 99, 235, 0.2));
}

.blog-thumb {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.blog-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
    align-items: center;
}

.blog-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    flex: 1;
}

.blog-read {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 600;
    transition: gap var(--transition);
}

.blog-read:hover {
    gap: 10px;
}

/* ============================================================
   About / Timeline
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.about-photo-wrap {
    position: sticky;
    top: 100px;
}

.about-photo {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--blue-bg), rgba(96, 165, 250, .06));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--blue);
    border: 1px solid var(--border);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.about-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--blue), #60A5FA, transparent);
}

.timeline-item {
    position: relative;
    padding-left: 32px;
    margin-bottom: 36px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--blue);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 3px var(--blue-100, rgba(37, 99, 235, 0.15));
}

.timeline-year {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}

.timeline-item h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.timeline-item p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
}

.skill-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
}

.skill-pct {
    color: var(--text-muted);
}

.skill-track {
    height: 7px;
    background: var(--bg-alt, var(--bg-secondary));
    border-radius: 99px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), #60A5FA);
    width: 0;
    transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 28px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ci-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--blue-bg);
    border: 1px solid var(--blue-100, rgba(37, 99, 235, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    flex-shrink: 0;
}

.ci-icon svg {
    width: 20px;
    height: 20px;
}

.ci-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
}

.ci-value {
    font-size: 15px;
    font-weight: 600;
}

/* Form */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

input,
textarea,
select {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

textarea {
    resize: vertical;
    min-height: 130px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-msg {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    display: none;
}

.form-msg.success {
    background: rgba(5, 150, 105, .1);
    color: var(--green);
    border: 1px solid rgba(5, 150, 105, .2);
    display: block;
}

.form-msg.error {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, .2);
    display: block;
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, #0F2557 0%, #1D4ED8 60%, #2563EB 100%);
    background-size: 200% 200%;
    animation: ctaGradient 8s ease infinite;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes ctaGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(255, 255, 255, .05), transparent);
    pointer-events: none;
}

.cta-badge {
    display: inline-block;
    background: rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .9);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, .75);
    font-size: 18px;
    max-width: 520px;
    margin: 0 auto 36px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--bg-alt, var(--bg-secondary));
    border-top: 1px solid var(--border);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-brand .navbar-logo {
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 280px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--blue-bg);
    border-color: var(--blue-100, rgba(37, 99, 235, 0.15));
    color: var(--blue);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text);
    margin-bottom: 16px;
}

.footer-col a,
.footer-col span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-secondary);
    padding: 5px 0;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--blue);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-item svg {
    color: var(--blue);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.footer-bottom a {
    color: var(--blue);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ============================================================
   Float Buttons
   ============================================================ */
.float-buttons {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-whatsapp,
.float-btn.whatsapp {
    background: #25D366;
}

.float-btn.phone {
    background: var(--blue);
}

.float-btn svg {
    width: 24px;
    height: 24px;
}

/* Scroll to Top */
.scroll-top,
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.scroll-top.visible,
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover,
.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.scroll-top svg,
.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ============================================================
   Toast System
   ============================================================ */
.toast-container {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease-out;
    min-width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
}

.toast svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast.success {
    border-left: 4px solid #10B981;
}

.toast.success svg {
    color: #10B981;
}

.toast.error {
    border-left: 4px solid #EF4444;
}

.toast.error svg {
    color: #EF4444;
}

.toast.warning {
    border-left: 4px solid #F59E0B;
}

.toast.warning svg {
    color: #F59E0B;
}

@keyframes toastIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

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

/* ============================================================
   Blog Detail — Hero, Content Layout, Prose, Share, Progress
   ============================================================ */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--blue);
    z-index: 10000;
    transition: width 0.1s linear;
}

/* Blog Detail Hero */
.blog-detail-hero {
    padding: 140px 0 48px;
    background: var(--bg-alt);
    position: relative;
}

.blog-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
    opacity: 0.03;
}

.blog-detail-header {
    max-width: 760px;
}

.blog-detail-cat {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    background: var(--blue-bg);
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.blog-detail-header h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 16px;
}

.blog-detail-excerpt {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.blog-detail-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.blog-detail-author-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-detail-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    font-family: var(--font-heading);
}

.blog-detail-author-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.blog-detail-author-role {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.blog-detail-dots {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.blog-detail-dots svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 4px;
}

/* Blog Content Layout */
.blog-detail-content {
    padding: 48px 0 60px;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.blog-article {
    min-width: 0;
}

/* Prose */
.prose {
    line-height: 1.9;
    color: var(--text-secondary);
    font-size: 16px;
}

.prose h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin: 48px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
    font-family: var(--font-heading);
}

.prose h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin: 36px 0 12px;
    font-family: var(--font-heading);
}

.prose p {
    margin-bottom: 20px;
}

.prose ul,
.prose ol {
    margin: 0 0 20px 24px;
}

.prose li {
    margin-bottom: 8px;
}

.prose strong {
    color: var(--text);
}

.prose a {
    color: var(--blue);
    text-decoration: underline;
}

/* Blog Share */
.blog-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.blog-share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.blog-share-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    transition: all var(--transition);
    cursor: pointer;
}

.blog-share-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-bg);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-card h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.sidebar-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.sidebar-author-name {
    font-weight: 700;
    font-size: 14px;
}

.sidebar-author-role {
    font-size: .8rem;
    color: var(--text-muted);
}

.sidebar-cta {
    width: 100%;
    justify-content: center;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-item {
    font-size: 14px;
    padding: 6px 10px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.toc-item:hover {
    background: var(--blue-bg);
    color: var(--blue);
}

/* Blog Bottom Nav */
.blog-bottom-nav {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* ============================================================
   GSAP Animation States
   ============================================================ */
.anim-fade,
.anim-fade-left,
.anim-fade-right,
.anim-scale {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim-fade {
    transform: translateY(24px);
}

.anim-fade-left {
    transform: translateX(-30px);
}

.anim-fade-right {
    transform: translateX(30px);
}

.anim-scale {
    transform: scale(0.95);
}

.anim-fade.visible,
.anim-fade-left.visible,
.anim-fade-right.visible,
.anim-scale.visible {
    opacity: 1;
    transform: none;
    will-change: auto;
}

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {

    .anim-fade,
    .anim-fade-left,
    .anim-fade-right,
    .anim-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.anim-delay-1 {
    transition-delay: .1s;
}

.anim-delay-2 {
    transition-delay: .2s;
}

.anim-delay-3 {
    transition-delay: .3s;
}

.anim-delay-4 {
    transition-delay: .4s;
}

.anim-delay-5 {
    transition-delay: .5s;
}

/* ============================================================
   Custom Context Menu
   ============================================================ */
.ctx-menu {
    position: fixed;
    z-index: 9999;
    min-width: 220px;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.92) translateY(-6px);
    transform-origin: top left;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
}

[data-theme="dark"] .ctx-menu {
    background: rgba(26, 32, 53, 0.95);
    border-color: var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ctx-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.ctx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.ctx-item:hover {
    background: var(--blue-bg);
    color: var(--blue);
}

.ctx-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

.ctx-item:hover svg {
    opacity: 1;
}

.ctx-item span {
    flex: 1;
}

.ctx-item kbd {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    line-height: 1.6;
}

.ctx-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 8px;
}

/* ============================================================
   404
   ============================================================ */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--nav-height) 0 0;
}

.page-404-number {
    font-size: clamp(6rem, 20vw, 12rem);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1;
    color: var(--blue);
    -webkit-text-fill-color: var(--blue);
}

.page-404 h2 {
    font-size: 1.75rem;
    margin: 16px 0;
}

.page-404 p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ============================================================
   Utilities
   ============================================================ */
.text-blue {
    color: var(--blue);
}

.text-indigo {
    color: var(--blue-accent);
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.mt-8 {
    margin-top: 32px;
}

.mt-12 {
    margin-top: 48px;
}

.mb-8 {
    margin-bottom: 32px;
}

.bg-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        display: none;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-photo-wrap {
        position: static;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-featured-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-detail-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 56px;
    }

    .navbar {
        width: calc(100% - 24px);
        top: 8px;
    }

    .navbar-inner {
        padding: 0 14px;
    }

    .navbar-logo {
        font-size: 17px;
        gap: 8px;
    }

    .navbar-logo img {
        height: 28px;
    }

    .navbar-nav {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .navbar-actions>.btn-icon:not(.mobile-toggle) {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 64px;
    }

    .service-detail-reverse .service-detail-visual,
    .service-detail-reverse .service-detail-content {
        order: unset;
    }

    .service-detail-icon-box {
        height: 200px;
        font-size: 4rem;
    }

    .search-box {
        margin: 0 12px;
    }

    .search-footer {
        display: none;
    }

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

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .contact-form-card {
        padding: 24px;
    }

    .float-buttons {
        left: 16px;
    }

    .scroll-top,
    .back-to-top {
        right: 16px;
    }

    .blog-hero {
        padding: 110px 0 40px;
    }

    .blog-hero-stats {
        gap: 20px;
    }

    .blog-featured-grid {
        gap: 12px;
    }

    .blog-featured-card {
        min-height: 240px;
    }

    .blog-grid-v2 {
        grid-template-columns: 1fr;
    }

    .blog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-search-mini {
        min-width: 100%;
    }

    .blog-detail-hero {
        padding: 100px 0 32px;
    }

    .blog-detail-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.6rem;
    }

    .hero-title-row {
        font-size: 1.1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .hero-tech-tags {
        display: none;
    }
}