/* ==========================================
   EFTEKHAR'S BLOG - Elegant Sky & Green
   Split-layout hero, editorial feel
   ========================================== */

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

:root {
    color-scheme: light only;

    /* Eye-friendly off-white: slight mint-cyan tint, ~94% luminance.
       Pure #FFFFFF causes pupil constriction & eye strain over long reads.
       This subtle green-blue tint reduces glare ~20% and invites the brain
       into a calmer "biophilia" mode without looking colored. */
    --bg: #f4f8f6;
    --bg-soft: #ecf3f0;
    --surface: rgba(255, 255, 255, 0.82);
    --border: rgba(14, 165, 233, 0.14);
    --border-strong: rgba(14, 165, 233, 0.28);
    --text: #0c2340;
    --text-soft: #2d4a6b;
    --text-muted: #6b8aa8;

    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-300: #7dd3fc;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;

    --green-50: #ecfdf5;
    --green-100: #d1fae5;
    --green-200: #a7f3d0;
    --green-300: #6ee7b7;
    --green-400: #34d399;
    --green-500: #10b981;
    --green-600: #059669;
    --green-700: #047857;

    --accent: var(--sky-600);
    --accent-2: var(--green-600);
    --accent-soft: rgba(14, 165, 233, 0.08);

    --gradient: linear-gradient(135deg, var(--sky-500) 0%, var(--green-500) 100%);
    --gradient-soft: linear-gradient(135deg, var(--sky-100) 0%, var(--green-100) 100%);

    --shadow-sm: 0 2px 12px rgba(14, 165, 233, 0.08);
    --shadow-md: 0 8px 28px rgba(14, 165, 233, 0.12);
    --shadow-lg: 0 24px 60px rgba(14, 165, 233, 0.18);
    --shadow-image: 0 30px 80px -20px rgba(12, 35, 64, 0.25), 0 8px 30px -10px rgba(14, 165, 233, 0.2);

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    font-weight: 400;
}

/* Ambient backdrop */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(at 15% 10%, rgba(14, 165, 233, 0.08) 0px, transparent 50%),
        radial-gradient(at 85% 20%, rgba(16, 185, 129, 0.07) 0px, transparent 50%),
        radial-gradient(at 50% 90%, rgba(125, 211, 252, 0.06) 0px, transparent 50%);
    z-index: -2;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.22;
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--sky-400);
    top: -150px;
    left: -150px;
    animation: float1 28s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--green-400);
    top: 40%;
    right: -150px;
    animation: float2 24s ease-in-out infinite;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--sky-300);
    bottom: -100px;
    left: 35%;
    animation: float3 32s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(80px, 60px); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-100px, 40px); }
}
@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(60px, -80px); }
}

.container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 48px;
    position: relative;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: rgba(244, 248, 246, 0.82);
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1;
    transition: all 0.4s ease;
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.logo:hover {
    transform: scale(1.02);
}

.nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav a {
    color: var(--text-soft);
    text-decoration: none;
    padding: 9px 20px;
    border-radius: 100px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.2px;
}

.nav a:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.nav a.active {
    color: white;
    background: var(--gradient);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

/* ==========================================
   HOME HERO — Split layout
   ========================================== */
.hero-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 90px;
    align-items: center;
    padding: 90px 0 110px;
    min-height: calc(100vh - 90px);
}

.hero-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 140px;
    min-height: calc(100vh - 90px);
    text-align: center;
}

.hero-centered .hero-text {
    max-width: 780px;
    margin: 0 auto;
}

.hero-centered .hero-text p {
    margin-left: auto;
    margin-right: auto;
}

.hero-centered .cta-group {
    justify-content: center;
}

.hero-centered .hero-meta {
    align-items: center;
}

.hero-text {
    max-width: 620px;
}

.hero-text .tagline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--accent);
    padding: 9px 20px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-sm);
    animation: fadeUp 0.7s ease-out;
}

.hero-text .tagline::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient);
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-text h1 {
    font-family: var(--font-serif);
    font-size: clamp(3.4rem, 7vw, 6rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 30px;
    color: var(--text);
    padding: 0.1em 0 0.2em;
    animation: fadeUp 0.8s ease-out 0.1s backwards;
}

.hero-text h1 em {
    font-style: italic;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    display: inline-block;
    font-weight: 500;
    padding: 0 0.05em;
    line-height: 1.25;
}

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

.hero-text p {
    color: var(--text-soft);
    font-size: 1.35rem;
    line-height: 1.65;
    margin-bottom: 40px;
    max-width: 540px;
    animation: fadeUp 0.8s ease-out 0.2s backwards;
}

.hero-text .cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease-out 0.3s backwards;
}

/* Trust line */
.hero-meta {
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: fadeUp 0.8s ease-out 0.4s backwards;
}

.hero-meta .meta-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-meta .meta-author {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text);
}

.hero-meta .meta-author em {
    font-style: italic;
    color: var(--accent);
}

.hero-meta .meta-tagline {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 2px;
}

.hero-meta .meta-tagline em {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent); /* fallback */
    font-style: italic;
    font-weight: 600;
    display: inline-block;
    line-height: 1.35;
    padding: 0.08em 0.02em;
}

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

/* ==========================================
   HERO VISUAL — Animated droplet scene
   ========================================== */
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 540px;
    justify-self: center;
    width: 100%;
    animation: visualIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes visualIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.droplet-scene {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pool / surface circle */
.droplet-pool {
    position: absolute;
    width: 78%;
    height: 78%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.7), transparent 50%),
        radial-gradient(circle at 50% 50%, #7dd3fc 0%, #38bdf8 35%, #0ea5e9 70%, #0284c7 100%);
    box-shadow:
        inset 0 -20px 50px rgba(3, 105, 161, 0.4),
        inset 0 20px 50px rgba(255, 255, 255, 0.3),
        0 30px 70px -20px rgba(14, 165, 233, 0.45),
        0 0 80px rgba(56, 189, 248, 0.25);
    animation: poolBreath 6s ease-in-out infinite;
}

@keyframes poolBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Shimmer overlay */
.droplet-pool::before {
    content: '';
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 30% 25%, rgba(255, 255, 255, 0.5) 0%, transparent 35%),
        radial-gradient(ellipse at 70% 70%, rgba(16, 185, 129, 0.2) 0%, transparent 40%);
    mix-blend-mode: screen;
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.7; transform: rotate(0deg); }
    50% { opacity: 1; transform: rotate(180deg); }
}

/* Ripples emanating outward */
.ripple {
    position: absolute;
    width: 78%;
    height: 78%;
    border-radius: 50%;
    border: 2px solid rgba(14, 165, 233, 0.5);
    pointer-events: none;
}

.ripple-1 { animation: rippleOut 4.5s ease-out infinite; }
.ripple-2 { animation: rippleOut 4.5s ease-out 1.5s infinite; }
.ripple-3 { animation: rippleOut 4.5s ease-out 3s infinite; }

@keyframes rippleOut {
    0% {
        transform: scale(0.5);
        opacity: 1;
        border-color: rgba(14, 165, 233, 0.6);
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
        border-color: rgba(16, 185, 129, 0.1);
    }
}

/* Inner ripples on pool surface */
.inner-ripple {
    position: absolute;
    width: 78%;
    height: 78%;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.inner-ripple-1 { animation: innerRipple 3.5s ease-out infinite; }
.inner-ripple-2 { animation: innerRipple 3.5s ease-out 1.2s infinite; }
.inner-ripple-3 { animation: innerRipple 3.5s ease-out 2.4s infinite; }

@keyframes innerRipple {
    0% { transform: scale(0.05); opacity: 0.9; }
    100% { transform: scale(0.95); opacity: 0; }
}

/* Falling droplet */
.droplet {
    position: absolute;
    width: 26px;
    height: 36px;
    background: linear-gradient(180deg, #bae6fd 0%, #38bdf8 50%, #0284c7 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform-origin: center top;
    box-shadow:
        inset -3px -5px 10px rgba(3, 105, 161, 0.5),
        inset 3px 3px 6px rgba(255, 255, 255, 0.5),
        0 4px 14px rgba(14, 165, 233, 0.4);
    z-index: 3;
}

.droplet::before {
    content: '';
    position: absolute;
    top: 18%;
    left: 28%;
    width: 30%;
    height: 25%;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    filter: blur(1px);
}

/* Main droplet shape — teardrop top */
.droplet-main {
    width: 50px;
    height: 70px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
    animation: dropFall 4.5s ease-in infinite;
}

@keyframes dropFall {
    0% {
        transform: translate(-50%, -120px) scale(0.7);
        opacity: 0;
    }
    18% {
        transform: translate(-50%, -120px) scale(0.7);
        opacity: 0;
    }
    35% {
        opacity: 1;
        transform: translate(-50%, -50px) scale(1);
    }
    55% {
        transform: translate(-50%, 110px) scale(0.9, 1.4);
        opacity: 1;
    }
    62% {
        transform: translate(-50%, 140px) scale(1.6, 0.4);
        opacity: 0.4;
    }
    65%, 100% {
        opacity: 0;
        transform: translate(-50%, 150px) scale(1, 0.2);
    }
}

/* Small ambient droplets floating */
.drop-float {
    position: absolute;
    width: 14px;
    height: 18px;
    background: linear-gradient(180deg, #e0f2fe 0%, #38bdf8 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.7;
    box-shadow: inset -2px -3px 6px rgba(3, 105, 161, 0.4), 0 2px 8px rgba(14, 165, 233, 0.3);
    z-index: 2;
}

.drop-float-1 {
    top: 8%;
    left: 15%;
    animation: floatDrop 5s ease-in-out infinite;
}

.drop-float-2 {
    top: 12%;
    right: 12%;
    width: 10px;
    height: 14px;
    animation: floatDrop 6.5s ease-in-out infinite reverse;
}

.drop-float-3 {
    bottom: 18%;
    left: 8%;
    width: 12px;
    height: 16px;
    animation: floatDrop 7s ease-in-out infinite;
}

.drop-float-4 {
    bottom: 12%;
    right: 18%;
    width: 16px;
    height: 20px;
    animation: floatDrop 5.5s ease-in-out infinite reverse;
}

.drop-float-5 {
    top: 50%;
    right: 4%;
    width: 8px;
    height: 11px;
    opacity: 0.5;
    animation: floatDrop 8s ease-in-out infinite;
}

@keyframes floatDrop {
    0%, 100% { transform: translate(0, 0) rotate(-5deg); }
    50% { transform: translate(8px, -12px) rotate(5deg); }
}

/* Decorative glow halos */
.hero-visual::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
    z-index: -1;
    animation: floatShape 9s ease-in-out infinite;
}

.hero-visual::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 55%;
    height: 55%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%);
    z-index: -1;
    animation: floatShape 10s ease-in-out infinite reverse;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -10px) scale(1.08); }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 28px rgba(14, 165, 233, 0.32);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(14, 165, 233, 0.42);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 1.5px solid var(--border-strong);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   SCROLL REVEAL
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ==========================================
   POSTS SECTION
   ========================================== */
.posts-section {
    padding: 80px 0 100px;
    position: relative;
}

.elegant-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 70px;
}

.elegant-divider::before,
.elegant-divider::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.elegant-divider span {
    color: var(--accent);
    font-size: 1.3rem;
}

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

.section-title .label {
    display: inline-block;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 14px;
}

.section-title h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 500;
    letter-spacing: -1px;
    margin-bottom: 14px;
    line-height: 1.3;
    padding: 0.1em 0;
}

.section-title h2 em {
    font-style: italic;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.4;
    display: inline-block;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
    font-style: italic;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
}

.post-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.post-tag {
    font-size: 0.7rem;
    padding: 5px 12px;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.tag-life,
.tag-journey {
    background: var(--sky-50);
    color: var(--sky-700);
    border: 1px solid var(--sky-100);
}

.tag-tech,
.tag-nature {
    background: var(--green-50);
    color: var(--green-700);
    border: 1px solid var(--green-100);
}

.tag-experience,
.tag-science {
    background: linear-gradient(135deg, var(--sky-50), var(--green-50));
    color: var(--sky-700);
    border: 1px solid var(--border);
}

.tag-spiritual {
    background: #faf5ff;
    color: #6b21a8;
    border: 1px solid #f3e8ff;
}

.post-card h3 {
    font-family: var(--font-serif);
    margin: 0 0 14px;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

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

.post-card:hover h3 a {
    color: var(--accent);
}

.post-card p {
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
    transition: gap 0.3s ease;
}

.post-card:hover .read-more {
    gap: 14px;
}

/* ==========================================
   PAGE HERO (Inner pages)
   ========================================== */
.page-hero {
    text-align: center;
    padding: 100px 0 70px;
    position: relative;
}

.page-hero .tagline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--accent);
    padding: 7px 20px;
    border-radius: 100px;
    font-size: 0.74rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: 1px solid var(--border-strong);
}

.page-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 500;
    letter-spacing: -1px;
    margin-bottom: 18px;
    line-height: 1.25;
    padding: 0.1em 0 0.15em;
}

.page-hero h1 em {
    font-style: italic;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    line-height: 1.4;
    display: inline-block;
    padding: 0 0.05em;
}

.page-hero p {
    color: var(--text-soft);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    font-style: italic;
}

.page-hero p em {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent); /* fallback for unsupported browsers */
    font-style: italic;
    font-weight: 600;
    display: inline-block;
    line-height: 1.35;
    padding: 0.08em 0.02em;
}

/* ==========================================
   POST PAGE
   ========================================== */
.post-header {
    text-align: center;
    padding: 80px 0 50px;
    max-width: 800px;
    margin: 0 auto;
}

.post-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 500;
    line-height: 1.25;
    margin: 18px 0;
    letter-spacing: -0.8px;
    padding: 0.1em 0;
}

.post-header h1 em {
    font-style: italic;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    line-height: 1.4;
    display: inline-block;
    padding: 0 0.05em;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    transition: gap 0.3s ease;
}

.back-link:hover {
    gap: 12px;
}

.post-content {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 100px;
    font-size: 1.1rem;
}

.post-content h2 {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    margin: 50px 0 20px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--text);
}

.post-content h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin: 34px 0 14px;
    font-weight: 600;
    color: var(--text);
}

.post-content p {
    margin-bottom: 24px;
    color: var(--text-soft);
    line-height: 1.9;
}

.post-content ul,
.post-content ol {
    margin: 0 0 26px 28px;
    color: var(--text-soft);
}

.post-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.post-content blockquote {
    position: relative;
    padding: 28px 32px;
    margin: 36px 0;
    background: var(--gradient-soft);
    border-radius: 16px;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.6;
    font-weight: 400;
    border-left: 4px solid var(--accent);
}

.post-content blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.2;
    font-family: var(--font-serif);
    line-height: 1;
}

.post-content code {
    background: var(--sky-50);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.92em;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    color: var(--accent);
    font-weight: 500;
    border: 1px solid var(--sky-100);
}

.post-content pre {
    background: linear-gradient(135deg, #0c2340, #1e3a5f);
    color: #e0f2fe;
    padding: 26px;
    border-radius: 14px;
    overflow-x: auto;
    margin: 26px 0;
    font-size: 0.94rem;
    box-shadow: var(--shadow-md);
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
}

.post-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--sky-200);
    transition: border-color 0.3s ease;
}

.post-content a:hover {
    border-bottom-color: var(--accent);
}

.post-content strong {
    color: var(--text);
    font-weight: 600;
}

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-content {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 100px;
    font-size: 1.08rem;
}

.about-content p {
    margin-bottom: 24px;
    line-height: 1.9;
    color: var(--text-soft);
}

.about-content h2 {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    margin: 44px 0 20px;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.about-content ul {
    margin: 0 0 26px 28px;
    color: var(--text-soft);
}

.about-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.about-content strong {
    color: var(--text);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 50px 0;
}

.about-stat {
    padding: 36px 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.about-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.about-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.about-stat:hover::before {
    transform: scaleX(1);
}

.about-stat .number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
}

.about-stat .label {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--sky-200);
    transition: border-color 0.3s ease;
}

.about-content a:hover {
    border-bottom-color: var(--accent);
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 36px;
    padding-bottom: 100px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    padding: 44px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: white;
    color: var(--text);
    font-size: 0.98rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a8c4dd;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.contact-form button {
    width: 100%;
    padding: 17px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
    letter-spacing: 0.3px;
    font-family: inherit;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(14, 165, 233, 0.4);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.contact-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.contact-card:hover::before {
    transform: scaleY(1);
}

.contact-card .icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--gradient-soft);
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    border: 1px solid var(--border-strong);
}

.contact-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.contact-card p {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.6;
}

.contact-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1.5px solid var(--sky-200);
    transition: border-color 0.3s ease;
}

.contact-card a:hover {
    border-bottom-color: var(--accent);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
    text-align: center;
    margin-top: 50px;
}

.footer .footer-logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 22px;
    display: inline-block;
}

.footer .footer-logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.footer .footer-divider {
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 200px;
}

.footer .footer-divider::before,
.footer .footer-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.footer .footer-divider span {
    color: var(--accent);
    font-size: 0.9rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 60px 0 70px;
        min-height: auto;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text .cta-group {
        justify-content: center;
    }

    .hero-meta {
        align-items: center;
    }

    .hero-visual {
        max-width: 360px;
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 700px) {
    .container {
        padding: 0 20px;
    }

    .header {
        padding: 18px 0;
    }

    .header .container {
        flex-direction: column;
        gap: 14px;
    }

    .nav {
        gap: 2px;
    }

    .nav a {
        padding: 7px 15px;
        font-size: 0.88rem;
    }

    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px;
    }

    .orb {
        opacity: 0.16;
    }

    .post-card {
        padding: 28px;
    }

    .post-card h3 {
        font-size: 1.4rem;
    }

    .image-badge {
        padding: 14px 16px;
        bottom: 16px;
        left: 16px;
        right: 16px;
    }

    .image-badge .badge-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
