/* ============================================================
   Hemant Patkar — profile theme
   Clean & minimal, with a light + dark theme driven by tokens.
   ============================================================ */

:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-2: #fafbfc;
    --text: #1f2430;
    --text-muted: #6b7280;
    --heading: #111827;
    --border: #e7e9ee;
    --accent: #3b5bdb;
    --accent-soft: rgba(59, 91, 219, 0.08);
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.06);
    --shadow-hover: 0 4px 8px rgba(16, 24, 40, 0.06), 0 12px 28px rgba(16, 24, 40, 0.10);
    --radius: 14px;
}

.dark-mode {
    --bg: #0d1117;
    --surface: #161b22;
    --surface-2: #1b212b;
    --text: #e6edf3;
    --text-muted: #9aa5b1;
    --heading: #f3f6fa;
    --border: #232a33;
    --accent: #6b86ff;
    --accent-soft: rgba(107, 134, 255, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 32px 0 56px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1140px;
}

h1, h2, h3, h4, h5, h6, b, strong {
    color: var(--heading);
    letter-spacing: -0.01em;
}

h4 {
    font-weight: 700;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--accent);
    opacity: 0.8;
}

/* Bootstrap text utilities, re-themed so they flip in dark mode */
.text-secondary {
    color: var(--text-muted) !important;
}

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

hr {
    border: 0;
    border-top: 1px solid var(--border);
    opacity: 1;
    margin: 1rem 0;
}

/* ----------------------------- Cards ----------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-soft);
}

.card-body {
    padding: 1.5rem;
}

/* Section headers (the icon + title rows) */
.card-body > .flex-column h6,
.card-body h6.d-flex,
.card-body > b,
.card-body .flex-column > b {
    color: var(--heading);
    font-weight: 700;
}

.card-body h6 i,
.card-body b i,
.card-body .fa-2x {
    color: var(--accent);
    font-size: 1.25rem !important;
}

/* ----------------------- Profile / avatar ----------------------- */
.rounded-circle {
    border: 4px solid var(--surface);
    box-shadow: 0 0 0 1px var(--border), var(--shadow);
    object-fit: cover;
}

h4 + hr,
.mt-2 h4 ~ hr {
    width: 48px;
    margin: 0.75rem auto;
    border-top: 2px solid var(--accent);
    opacity: 1;
}

/* --------------------------- Social links --------------------------- */
.social-links {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    padding: 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.social-links a:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    opacity: 1;
}

.social-links a i {
    font-size: 1.05rem;
}

/* ------------------------- Basic info list ------------------------- */
.list-unstyled li {
    padding: 0.35rem 0;
}

.list-unstyled .col-sm-1 i {
    color: var(--accent);
    font-size: 0.95rem !important;
}

ul {
    padding-left: 1.1rem;
}

ul li {
    margin-bottom: 0.35rem;
}

/* --------------------------- Skill bars --------------------------- */
.skill-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
}

.skill-label::after {
    content: attr(data-pct);
    color: var(--text-muted);
    font-weight: 500;
}

.progress {
    height: 7px !important;
    background-color: var(--accent-soft);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar {
    background: var(--accent) !important;
    border-radius: 100px;
}

/* --------------------------- Accordion --------------------------- */
.accordion-item {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px !important;
    margin-bottom: 0.6rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--surface-2);
    color: var(--heading);
    font-weight: 600;
    border-radius: 10px !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px var(--accent-soft);
    border-color: transparent;
}

.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: var(--accent) !important;
    box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    background: var(--surface);
    color: var(--text-muted);
}

/* --------------------------- Career objective --------------------------- */
.text-indent {
    text-indent: 0;
    text-align: justify;
    line-height: 1.7;
}

/* --------------------------- Night-mode switch --------------------------- */
.form-check-input {
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-check-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
}

/* --------------------------- Download link --------------------------- */
a[download] b {
    color: var(--accent);
}

/* --------------------------- Scroll reveal --------------------------- */
/* Only hide-before-reveal when JS is active, so no-JS users see everything. */
.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

.js .reveal.in-view {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --------------------------- Experience period --------------------------- */
.exp-company {
    font-weight: 600;
}

.exp-role {
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 0.4rem;
}

.exp-period {
    margin-left: auto;
    padding-left: 0.75rem;
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* The date is the only auto-margin, so it snaps to the right and lines up
   across rows. Give the chevron a fixed gap instead of its default auto. */
#experienceAccordion .accordion-button::after {
    margin-left: 0.75rem;
}

.accordion-button:not(.collapsed) .exp-role,
.accordion-button:not(.collapsed) .exp-period {
    color: rgba(255, 255, 255, 0.82);
}

/* --------------------------- GitHub projects --------------------------- */
.repo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

@media (max-width: 575px) {
    .repo-grid {
        grid-template-columns: 1fr;
    }
}

.repo-card {
    display: block;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text) !important;
    animation: repoIn 0.45s ease both;
}

.repo-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
    opacity: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.repo-name {
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 0.35rem;
}

.repo-name i {
    color: var(--accent);
    margin-right: 0.4rem;
}

.repo-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0 0 0.6rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.repo-foot {
    display: flex;
    gap: 1rem;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.repo-meta i {
    margin-right: 0.3rem;
    color: var(--accent);
}

.repo-meta .fa-circle {
    font-size: 0.55em;
    vertical-align: middle;
}

/* --------------------------- Contact form --------------------------- */
.form-control {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    font-size: 0.9rem;
    padding: 0.55rem 0.8rem;
}

.form-control:focus {
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    color: var(--text);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.btn-send {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-send:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
}

.btn-send:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}

.form-status {
    margin: 0.6rem 0 0;
    font-size: 0.85rem;
    min-height: 1.1em;
}

.form-status.ok {
    color: #16a34a;
}

.form-status.err {
    color: #dc2626;
}

/* ============================================================
   Marketing site — layout, nav, hero, sections, footer
   ============================================================ */

:root {
    --header-bg: rgba(255, 255, 255, 0.85);
}

.dark-mode {
    --header-bg: rgba(13, 17, 23, 0.82);
}

body {
    padding: 0;
}

main {
    display: block;
}

/* ------------------------------ Buttons ------------------------------ */
.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: #fff;
    opacity: 1;
}

.btn-ghost {
    background: transparent;
    color: var(--heading);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    opacity: 1;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-weight: 600;
}

.link-arrow i {
    transition: transform 0.2s ease;
}

.link-arrow:hover {
    opacity: 1;
}

.link-arrow:hover i {
    transform: translateX(4px);
}

/* ------------------------------ Header / nav ------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--heading);
}

.brand:hover {
    opacity: 1;
    color: var(--heading);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.92rem;
}

.nav-link:hover {
    color: var(--heading);
    background: var(--accent-soft);
    opacity: 1;
}

.nav-link.active {
    color: var(--accent);
}

.nav-cta {
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
}

.nav-cta:hover {
    background: var(--accent);
    filter: brightness(1.08);
    color: #fff;
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 0.4rem;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.theme-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-2);
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--heading);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        padding: 0.6rem 1rem 1rem;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .nav-links.open {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }
    .nav-link, .nav-cta { width: 100%; }
    .theme-btn { width: 100%; margin: 0.3rem 0 0; }
}

/* ------------------------------ Hero ------------------------------ */
.hero {
    padding: clamp(2.5rem, 6vw, 5rem) 0 2.5rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-eyebrow {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--heading);
    margin: 0 0 1rem;
}

.hero-sub {
    font-size: 1.08rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 0 1.6rem;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
}

.hero-social {
    display: flex;
    gap: 0.6rem;
}

.hero-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.hero-social a:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    opacity: 1;
}

.hero-photo {
    justify-self: center;
}

.hero-photo img {
    width: min(280px, 70vw);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--surface);
    box-shadow: 0 0 0 1px var(--border), var(--shadow-hover);
}

@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-photo { order: -1; }
    .hero-actions, .hero-social { justify-content: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
}

/* ------------------------------ Stats ------------------------------ */
.stats { padding: 1.5rem 0; }

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 1.2rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------ Trusted by ------------------------------ */
.trusted { padding: 2rem 0 1rem; text-align: center; }

.trusted-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.trusted-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 2.5rem;
    justify-content: center;
    align-items: center;
}

.trusted-logo {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ------------------------------ Sections ------------------------------ */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

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

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--heading);
    margin: 0 0 0.5rem;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin: 0;
}

.section-foot {
    text-align: center;
    margin-top: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

@media (max-width: 860px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

/* Service cards (home) */
.svc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow);
}

.svc-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-soft);
}

.svc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.svc-card h3 { font-size: 1.15rem; color: var(--heading); margin: 0 0 0.5rem; }
.svc-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }

/* App cards */
.app-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow);
    color: var(--text) !important;
}

.app-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
    opacity: 1;
}

.app-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    color: #fff;
    font-size: 1.15rem;
}

.app-card-body h3 {
    font-size: 1.1rem;
    color: var(--heading);
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.app-card-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; margin: 0; }

.badge-status {
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
}

.status-live { background: #dcfce7; color: #15803d; }
.status-beta { background: #fef9c3; color: #a16207; }
.status-coming-soon { background: var(--accent-soft); color: var(--accent); }

/* Testimonials */
.quote-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow);
    margin: 0;
}

.quote-card blockquote {
    font-size: 0.98rem;
    color: var(--text);
    line-height: 1.65;
    margin: 0 0 1rem;
}

.quote-card blockquote::before {
    content: "\201C";
    color: var(--accent);
    font-size: 2rem;
    font-weight: 800;
    line-height: 0;
    vertical-align: -0.35em;
    margin-right: 0.05em;
}

.quote-card figcaption strong { display: block; color: var(--heading); }
.quote-card figcaption span { font-size: 0.85rem; color: var(--text-muted); }

/* About snapshot */
.about-snap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.about-snap-text .section-title { text-align: left; }
.about-snap-text p { color: var(--text-muted); line-height: 1.7; margin: 0 0 1rem; }

.mini-skill { margin-bottom: 0.9rem; }

.mini-skill-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 0.35rem;
}

.mini-skill-pct { color: var(--text-muted); font-weight: 500; }

@media (max-width: 768px) {
    .about-snap { grid-template-columns: 1fr; }
    .about-snap-text .section-title { text-align: center; }
}

/* ------------------------------ CTA band ------------------------------ */
.cta-band {
    background: linear-gradient(135deg, var(--accent), #2f3b9e);
    color: #fff;
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    text-align: center;
}

.cta-inner h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.6rem;
}

.cta-inner p { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; margin: 0 0 1.6rem; }

.cta-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

.cta-band .btn-primary { background: #fff; color: var(--accent); border-color: #fff; }
.cta-band .btn-primary:hover { background: #fff; color: var(--accent); }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ------------------------------ Footer ------------------------------ */
.site-footer {
    background: var(--surface-2);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2.5rem 0 1.5rem;
}

.footer-tag { color: var(--text-muted); font-size: 0.9rem; margin: 0.6rem 0 1rem; max-width: 320px; }

.footer-social { display: flex; gap: 0.5rem; }

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.footer-social a:hover { color: #fff; background: var(--accent); border-color: var(--accent); opacity: 1; }

.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { color: var(--text-muted); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--accent); opacity: 1; }

.footer-bottom { border-top: 1px solid var(--border); padding: 1rem 0; }

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-muted);
}

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

/* ------------------------------ Back to top ------------------------------ */
.to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 90;
}

.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { filter: brightness(1.08); }

/* ------------------------------ Page layout ------------------------------ */
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; }

.page-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--heading);
    margin: 0;
}

.page-subtitle { color: var(--text-muted); font-size: 1.05rem; margin: 0.6rem 0 0; max-width: 680px; }

.page-body { padding-bottom: 3.5rem; }

/* ------------------------------ Services page ------------------------------ */
.services-list { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 3rem; }

.service-row {
    display: flex;
    gap: 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow);
}

.service-icon {
    flex: none;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.service-detail h3 { color: var(--heading); margin: 0 0 0.4rem; font-size: 1.2rem; }
.service-detail > p { color: var(--text-muted); margin: 0 0 0.8rem; line-height: 1.6; }

.service-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.4rem 0.9rem;
}

.service-points li { color: var(--text-muted); font-size: 0.9rem; }
.service-points i { color: var(--accent); margin-right: 0.4rem; }

@media (max-width: 560px) { .service-row { flex-direction: column; gap: 1rem; } }

.process { margin: 3rem 0; }
.process .section-title { text-align: center; margin-bottom: 2rem; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.process-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.process-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.process-step h4 { color: var(--heading); margin: 0 0 0.4rem; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; margin: 0; }

@media (max-width: 860px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }

.faq { margin: 3rem 0 1rem; }
.faq .section-title { text-align: center; margin-bottom: 1.5rem; }
.faq .accordion { max-width: 760px; margin: 0 auto; }

/* ------------------------------ Contact page ------------------------------ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-form-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow);
}

.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--heading); margin-bottom: 0.35rem; }

.contact-aside h3 { font-size: 1.05rem; color: var(--heading); margin: 0 0 1rem; }

.contact-methods { list-style: none; padding: 0; margin: 0 0 1rem; }

.contact-methods li { display: flex; align-items: center; gap: 0.7rem; padding: 0.4rem 0; color: var(--text-muted); }
.contact-methods i { color: var(--accent); width: 18px; text-align: center; }

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* ------------------------------ App landing ------------------------------ */
.app-hero { padding: clamp(1.5rem, 4vw, 3rem) 0; }

.app-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.back-link:hover { color: var(--accent); opacity: 1; }

.app-title-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.app-title-row h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: var(--heading); margin: 0; }
.app-hero .app-icon { width: 60px; height: 60px; font-size: 1.5rem; border-radius: 16px; }
.app-tagline { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 1.5rem; }
.app-links { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.app-hero-shot img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-hover); }

.app-features { padding: 2.5rem 0; }
.app-features .section-title { text-align: center; margin-bottom: 2rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.feature-card h3 { color: var(--heading); font-size: 1.05rem; margin: 0 0 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; margin: 0; }

.app-body { padding: 1rem 0 2.5rem; max-width: 760px; color: var(--text-muted); line-height: 1.7; }
.app-body h2 { color: var(--heading); }

@media (max-width: 768px) {
    .app-hero-inner { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
}

/* ------------------------------ Blog ------------------------------ */
.post-list { display: flex; flex-direction: column; gap: 1.2rem; }

.post-item {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    color: var(--text) !important;
}

.post-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--accent); opacity: 1; }

.post-item-date { font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.post-item h3 { color: var(--heading); margin: 0.3rem 0 0.5rem; }
.post-item p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin: 0 0 0.6rem; }

.post { max-width: 760px; margin: 0 auto; }
.post-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; color: var(--heading); margin: 0.5rem 0; }
.post-meta { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.5rem; }
.post-tag { color: var(--accent); }
.post-content { color: var(--text); line-height: 1.8; }
.post-content h2 { color: var(--heading); margin-top: 2rem; }
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content ul, .post-content ol { color: var(--text-muted); }

/* ------------------------------ 404 ------------------------------ */
.notfound { text-align: center; padding: clamp(3rem, 10vw, 6rem) 0; }
.notfound h1 { font-size: clamp(4rem, 15vw, 8rem); font-weight: 800; color: var(--accent); margin: 0; line-height: 1; }
.notfound p { color: var(--text-muted); font-size: 1.1rem; margin: 1rem 0 2rem; }

/* ------------------------------ Download / APK ------------------------------ */
.download-grid { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2rem; }

.dl-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.dl-main { display: flex; gap: 1.1rem; align-items: flex-start; }
.dl-card .app-icon { width: 56px; height: 56px; font-size: 1.4rem; border-radius: 14px; }

.dl-info h3 { margin: 0 0 0.3rem; color: var(--heading); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.dl-version { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); padding: 0.1rem 0.45rem; border-radius: 100px; }
.dl-info p { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 0.9rem; line-height: 1.5; }
.dl-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.dl-qr { flex: none; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.dl-qr img { width: 140px; height: 140px; border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 6px; }
.dl-qr span { font-size: 0.72rem; color: var(--text-muted); }

@media (max-width: 640px) {
    .dl-card { flex-direction: column; align-items: stretch; }
    .dl-qr { align-self: center; }
}

.install-note { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.install-note h3 { color: var(--heading); font-size: 1.1rem; margin: 0 0 0.8rem; }
.install-note h3 i { color: var(--accent); margin-right: 0.4rem; }
.install-note ol { color: var(--text); padding-left: 1.2rem; margin: 0 0 0.8rem; }
.install-note li { margin-bottom: 0.4rem; }
.install-note code { background: var(--surface); border: 1px solid var(--border); padding: 0.05rem 0.35rem; border-radius: 5px; font-size: 0.85em; }

/* ------------------------------ Resume / PDF ------------------------------ */
/* Two-column template: dark sidebar + white main. Always light theme. */
.resume-page {
    --accent: #3b5bdb;
    --side: #2f3b5a;
    background: #e9edf2;
    padding: 2rem 0 3.5rem;
}

.resume-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 820px;
    margin: 0 auto 1.2rem;
}

.rd {
    display: flex;
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: 6px;
    overflow: hidden;
}

/* ---- Sidebar ---- */
.rd-side {
    width: 34%;
    flex: none;
    background: var(--side);
    color: #cdd6e6;
    padding: 26px 20px;
}

.rd-photo {
    display: block;
    width: 108px;
    height: 108px;
    margin: 0 auto 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.22);
}

.rd-s { margin-bottom: 16px; }
.rd-s h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin: 0 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.rd-contact { list-style: none; padding: 0; margin: 0; }
.rd-contact li { display: flex; gap: 8px; align-items: flex-start; font-size: 10.5px; line-height: 1.4; margin-bottom: 6px; color: #cdd6e6; word-break: break-word; }
.rd-contact i { color: #8aa0c8; width: 12px; flex: none; margin-top: 2px; }

.rd-social { display: flex; gap: 10px; margin-top: 10px; }
.rd-social a { color: #cdd6e6; font-size: 14px; }
.rd-social a:hover { color: #fff; opacity: 1; }

.rd-list { list-style: none; padding: 0; margin: 0; }
.rd-list li { position: relative; font-size: 10.8px; line-height: 1.35; color: #cdd6e6; margin-bottom: 5px; padding-left: 12px; }
.rd-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: #8aa0c8; }

.rd-edu { margin-bottom: 8px; }
.rd-edu-deg { font-size: 10.8px; line-height: 1.35; font-weight: 600; color: #e6ebf3; }
.rd-edu-meta { font-size: 10px; color: #9fb0cd; margin-top: 1px; }

/* ---- Main ---- */
.rd-main { width: 66%; padding: 26px 28px; color: #333; }

.rd-head { margin-bottom: 15px; }
.rd-head h1 { font-size: 30px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #1f2430; margin: 0; line-height: 1.05; }
.rd-role { font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; color: #6b7280; margin: 5px 0 0; }

.rd-m { margin-bottom: 14px; }
.rd-m h2 {
    position: relative;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1f2430;
    margin: 0 0 9px;
    padding-bottom: 4px;
    border-bottom: 1.5px solid #e3e7ee;
}
.rd-m h2::after { content: ""; position: absolute; left: 0; bottom: -1.5px; width: 40px; height: 1.5px; background: var(--accent); }
.rd-m > p { font-size: 11.5px; line-height: 1.55; color: #444; margin: 0; text-align: justify; }

.rd-job { margin-bottom: 10px; }
.rd-job-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rd-job-title { font-size: 12px; font-weight: 700; color: #1f2430; }
.rd-job-date { font-size: 10px; color: #888; white-space: nowrap; flex: none; }
.rd-job-co { font-size: 11px; font-weight: 600; color: var(--accent); margin: 1px 0 3px; }
.rd-job ul, .rd-m > ul { margin: 2px 0 0; padding-left: 14px; }
.rd-job li, .rd-m > ul li { font-size: 11px; line-height: 1.42; color: #444; margin-bottom: 2px; }

@media (max-width: 640px) {
    .rd { flex-direction: column; }
    .rd-side, .rd-main { width: 100%; }
}

/* ---- Print: full-bleed A4, colours preserved ---- */
@page { size: A4; margin: 0; }

@media print {
    .site-header, .site-footer, .to-top, .resume-toolbar, .cta-band, .no-print { display: none !important; }
    html, body { padding: 0; margin: 0; background: #fff; }
    .resume-page { padding: 0; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .container { max-width: none; padding: 0; margin: 0; }
    .rd {
        max-width: none;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
    .rd-job { break-inside: avoid; }
}

/* ------------------------------ Templates ------------------------------ */
.tpl-grid { align-items: start; }

.tpl-domain-badge {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    margin-bottom: 0.5rem;
}

.tpl-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    color: var(--text) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tpl-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
    opacity: 1;
}

.tpl-thumb { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.tpl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tpl-card-body { padding: 1rem 1.1rem; }
.tpl-card-body h3 { font-size: 1.05rem; color: var(--heading); margin: 0 0 0.3rem; }
.tpl-card-body p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 0.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tpl-card-foot { display: flex; justify-content: space-between; align-items: center; }
.tpl-price-sm { font-weight: 700; color: var(--accent); font-size: 0.9rem; }

/* Template detail */
.tpl-hero { padding: clamp(1.5rem, 4vw, 3rem) 0; }
.tpl-hero-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
.tpl-domain {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    margin-bottom: 0.8rem;
}
.tpl-hero-text h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: var(--heading); margin: 0.2rem 0 0.6rem; }
.tpl-tagline { font-size: 1.05rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 0.8rem; }
.tpl-price { font-size: 1.4rem; font-weight: 800; color: var(--heading); margin: 0 0 1.1rem; }
.tpl-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.tpl-hero-shot img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-hover); }
.tpl-features { padding: 2.5rem 0; }
.tpl-features .section-title { text-align: center; margin-bottom: 2rem; }

@media (max-width: 768px) {
    .tpl-hero-inner { grid-template-columns: 1fr; }
}

/* App landing page — Android download block */
.app-download { padding: 1rem 0 2.5rem; }
.app-dl-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow);
}
.app-dl-text .section-title { text-align: left; margin-bottom: 0.4rem; }
.app-dl-text p { color: var(--text-muted); margin: 0 0 1.1rem; }

@media (max-width: 640px) {
    .app-dl-inner { flex-direction: column; text-align: center; }
    .app-dl-text .section-title { text-align: center; }
}
