/*
Theme Name: Harish SH
Theme URI: https://harishsh.com
Author: Harish SH
Author URI: https://harishsh.com
Description: Personal portfolio and tool site theme for harishsh.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: harishsh
Tags: dark, portfolio, personal, minimal
*/

/* === All site CSS imported from theme === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #090909;
    --s1: #111111;
    --s2: #181818;
    --border: rgba(255, 255, 255, 0.07);
    --orange: #FF8C00;
    --orange-lt: #ffaa33;
    --text: #F0F0F0;
    --muted: #666;
    --muted2: #999;
    --display: 'Space Grotesk', sans-serif;
    --body: 'Inter', sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 60px;
    background: rgba(9, 9, 9, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -.02em;
    z-index: 101;
    position: relative;
}

.sh-badge {
    background: var(--orange);
    color: #000;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: .02em;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 13px;
    color: var(--muted2);
    text-decoration: none;
    transition: color .2s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text);
}

/* "try a tool" — solid orange */
.nav-cta {
    font-family: var(--mono);
    font-size: 12px;
    color: #000;
    background: var(--orange);
    padding: 7px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background .2s;
}

.nav-cta:hover {
    background: var(--orange-lt);
}

/* "say something?" — orange outlined, catchy */
.nav-contact {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--orange);
    border: 1px solid rgba(255, 140, 0, .45);
    padding: 6px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all .2s;
    white-space: nowrap;
}

.nav-contact:hover {
    background: rgba(255, 140, 0, .09);
    border-color: var(--orange);
}

/* ── HAMBURGER ───────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
    position: relative;
    background: none;
    border: none;
    outline: none;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile fullscreen drawer */
.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 9, 9, 0.98);
    backdrop-filter: blur(24px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-family: var(--display);
    font-size: 32px;
    font-weight: 700;
    color: var(--muted2);
    text-decoration: none;
    letter-spacing: -.03em;
    padding: 14px 40px;
    transition: color .15s;
    text-align: center;
    width: 100%;
}

.mobile-menu a:hover {
    color: var(--text);
}

.mobile-divider {
    width: 48px;
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

/* Contact in mobile — full orange treatment */
.mobile-contact {
    margin-top: 4px !important;
    color: var(--orange) !important;
    font-size: 26px !important;
    border: 1px solid rgba(255, 140, 0, .35);
    border-radius: 10px;
    width: auto !important;
    padding: 12px 40px !important;
}

.mobile-contact:hover {
    background: rgba(255, 140, 0, .07) !important;
    border-color: var(--orange) !important;
}

/* ── HERO ────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 440px;
    align-items: center;
    gap: 0;
    padding: 100px 48px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 140, 0, .06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 140, 0, .14) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.hero-left {
    position: relative;
    z-index: 2;
    max-width: 580px;
}

.hero-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--orange);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--orange);
}

.hero-h1 {
    font-family: var(--display);
    font-size: clamp(46px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.0;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-h1 .accent {
    color: var(--orange);
}

.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: #000;
    font-family: var(--display);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    transition: all .2s;
    letter-spacing: -.01em;
}

.btn-primary:hover {
    background: var(--orange-lt);
    transform: translateY(-1px);
}

.hero-right {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.avatar-wrap {
    position: relative;
    width: 300px;
    height: 300px;
}

.avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    filter: drop-shadow(0 0 48px rgba(255, 140, 0, .28));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ── ABOUT ───────────────────────────────────── */
.about {
    border-bottom: 1px solid var(--border);
}

.about-left {
    padding: 72px 48px;
    max-width: 680px;
}

.section-eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--orange);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-eyebrow::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: rgba(255, 140, 0, .4);
}

.about-h2 {
    font-family: var(--display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.15;
}

.about-body {
    font-size: 15px;
    color: var(--muted2);
    line-height: 1.8;
}

.about-body p+p {
    margin-top: 14px;
}

.about-body strong {
    color: var(--text);
    font-weight: 500;
}

/* ── CTA ─────────────────────────────────────── */
.cta-section {
    padding: 80px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 140, 0, .06) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.cta-left {
    position: relative;
    z-index: 1;
}

.cta-h2 {
    font-family: var(--display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: 14px;
}

.cta-h2 em {
    color: var(--orange);
    font-style: normal;
}

.cta-sub {
    font-size: 15px;
    color: var(--muted2);
    line-height: 1.7;
    max-width: 440px;
}

.cta-right {
    position: relative;
    z-index: 1;
}

.email-form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--s1);
}

.email-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text);
    font-family: var(--body);
}

.email-input::placeholder {
    color: var(--muted);
}

.email-btn {
    background: var(--orange);
    color: #000;
    border: none;
    padding: 14px 22px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--display);
    transition: background .2s;
    white-space: nowrap;
}

.email-btn:hover {
    background: var(--orange-lt);
}

.email-note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 10px;
    font-family: var(--mono);
}

/* ── FOOTER ──────────────────────────────────── */
footer {
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    font-family: var(--mono);
    font-size: 11px;
    color: #333;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
    nav {
        padding: 0 20px;
    }

    /* Hide desktop links, show hamburger */
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    /* Hero */
    .hero {
        grid-template-columns: 1fr;
        padding: 90px 24px 48px;
        text-align: center;
    }

    .hero::after {
        display: none;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-eyebrow {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-right {
        order: -1;
    }

    .avatar-wrap {
        width: 200px;
        height: 200px;
    }

    /* About */
    .about-left {
        padding: 48px 24px;
    }

    .about-h2 {
        font-size: 26px;
    }

    /* CTA */
    .cta-section {
        grid-template-columns: 1fr;
        padding: 48px 24px;
        gap: 32px;
    }

    .email-form {
        flex-direction: column;
        border-radius: 8px;
    }

    .email-input {
        padding: 14px 16px;
    }

    .email-btn {
        padding: 14px;
        border-radius: 0 0 7px 7px;
    }

    /* Footer */
    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 32px 24px;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-h1 {
        font-size: 42px;
    }

    .about-h2 {
        font-size: 24px;
    }
}
/* ── BLOG LIST ───────────────────────────────── */
.blog-header {
    padding: 100px 48px 40px;
    border-bottom: 1px solid var(--border);
}
.blog-header h1 {
    font-family: var(--display);
    font-size: clamp(32px,5vw,56px);
    font-weight: 700;
    letter-spacing: -.04em;
    color: var(--text);
    margin-bottom: 8px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr) !important;
    gap: 1px;
    background: var(--border);
    border-bottom: 1px solid var(--border);
}
.blog-card {
    border: 1px solid var(--border);
    background: var(--bg);
    padding: 36px;
    text-decoration: none;
    color: inherit;
    transition: background .2s;
    display: block;
}
.blog-card:hover { background: var(--s1); }
.blog-card-cat {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--orange);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.blog-card-title {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 10px;
}
.blog-card-excerpt { font-size: 13px; color: var(--muted2); line-height: 1.7; margin-bottom: 20px; }
.blog-card-meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; font-family: var(--mono); }

/* ── SINGLE POST ─────────────────────────────── */
.post-wrap { max-width: 700px; margin: 0 auto; padding: 120px 48px 80px; }
.post-cat { font-family: var(--mono); font-size: 11px; color: var(--orange); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.post-title { font-family: var(--display); font-size: clamp(28px,5vw,48px); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; color: var(--text); margin-bottom: 20px; }
.post-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; gap: 20px; margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.post-content { font-size: 16px; color: var(--muted2); line-height: 1.85; }
.post-content h2 { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--text); margin: 40px 0 16px; }
.post-content h3 { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--text); margin: 32px 0 12px; }
.post-content p { margin-bottom: 20px; }
.post-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.post-content ul, .post-content ol { padding-left: 20px; margin-bottom: 20px; }
.post-content li { margin-bottom: 8px; }
.post-content strong { color: var(--text); font-weight: 600; }
.post-content code { font-family: var(--mono); font-size: 13px; background: var(--s2); padding: 2px 7px; border-radius: 4px; color: var(--orange); }
.post-content pre { background: var(--s1); border: 1px solid var(--border); border-radius: 8px; padding: 20px; overflow-x: auto; margin-bottom: 20px; }
.post-content pre code { background: none; padding: 0; color: var(--text); }
.post-content blockquote { border-left: 3px solid var(--orange); padding-left: 20px; color: var(--muted2); font-style: italic; margin: 24px 0; }
.post-content img { border-radius: 8px; margin: 24px 0; width: 100%; }

@media (max-width: 900px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-header { padding: 90px 24px 36px; }
    .post-wrap { padding: 90px 24px 60px; }
}

/* ── WordPress override fixes ────────────────── */
/* WP injects body padding-top — reset it */
body.admin-bar { padding-top: 32px !important; }

/* Ensure nav links aren't coloured by WP defaults */
nav a, nav a:visited { text-decoration: none; }

/* sh-badge in footer matches nav */
.footer-logo .sh-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Fix: WP wraps blog in .entry-content which adds margins */
.entry-content { margin: 0; padding: 0; }

/* Fix: WP adds .has-post-thumbnail class padding */
.blog-grid a { color: var(--text); }

/* Fix: WP pagination styling */
.nav-links-pagination { display: flex; gap: 8px; justify-content: center; padding: 32px; }
.page-numbers {
    font-family: var(--mono);
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--muted2);
    text-decoration: none;
    transition: all .2s;
}
.page-numbers.current, .page-numbers:hover {
    border-color: var(--orange);
    color: var(--orange);
}

/* Fix: WP hello world post default styles */
.blog-card-title { color: var(--text) !important; }
.blog-card-title a { color: var(--text) !important; text-decoration: none; }
