/* =====================================================================
   Esther Kathini — Portfolio theme
   Palette: deep plum / burgundy / wine  +  rose → gold accents  +  cream
   ===================================================================== */

:root {
    --plum:      #031a33;
    --burgundy:  #0a3a6b;
    --wine:      #0369a1;
    --rose:      #0ea5e9;
    --coral:     #22d3ee;
    --gold:      #fbbf24;
    --cream:     #f0f9ff;
    --blush:     #e0f2fe;

    --grad-hero:   linear-gradient(135deg, #031a33 0%, #0a3a6b 38%, #0369a1 72%, #0ea5e9 100%);
    --grad-accent: linear-gradient(135deg, #0284c7 0%, #0ea5e9 45%, #06b6d4 100%);
    --grad-soft:   linear-gradient(135deg, rgba(14,165,233,.12), rgba(34,211,238,.10));
    --grad-btn:    linear-gradient(135deg, #0369a1 0%, #0ea5e9 60%, #22d3ee 100%);

    /* light theme tokens */
    --bg:          #f0f9ff;
    --bg-2:        #e3f4fd;
    --surface:     rgba(255, 255, 255, .72);
    --surface-2:   rgba(255, 255, 255, .9);
    --border:      rgba(3, 105, 161, .14);
    --text:        #0f2236;
    --text-soft:   #4b6478;
    --heading:     #062a4d;
    --shadow:      0 18px 45px -18px rgba(3, 52, 102, .28);
    --shadow-lg:   0 30px 70px -25px rgba(3, 52, 102, .45);
    --nav-bg:      linear-gradient(100deg, rgba(3, 105, 161, .94) 0%, rgba(14, 165, 233, .94) 55%, rgba(6, 182, 212, .94) 100%);

    --radius:      20px;
    --font-body:   'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-head:   'Playfair Display', Georgia, serif;
}

[data-theme="dark"] {
    --bg:        #020c1b;
    --bg-2:      #06182e;
    --surface:   rgba(255, 255, 255, .05);
    --surface-2: rgba(255, 255, 255, .08);
    --border:    rgba(125, 211, 252, .14);
    --text:      #e6f3fb;
    --text-soft: #9fbfd6;
    --heading:   #ffffff;
    --shadow:    0 18px 45px -18px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, .8);
    --nav-bg:    linear-gradient(100deg, rgba(10, 58, 107, .94) 0%, rgba(3, 105, 161, .94) 55%, rgba(14, 116, 144, .94) 100%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background .4s ease, color .4s ease;
}

h1, h2, h3, h4, h5, h6 { color: var(--heading); }
a { color: var(--rose); text-decoration: none; transition: color .25s; }
a:hover { color: var(--coral); }
::selection { background: var(--rose); color: #fff; }

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

.grad-text {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Floating blurred blobs behind everything */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; animation: drift 22s ease-in-out infinite alternate; }
.blob-1 { width: 480px; height: 480px; background: #38bdf8; top: -120px; right: -120px; }
.blob-2 { width: 420px; height: 420px; background: #67e8f9; bottom: -140px; left: -120px; animation-delay: -6s; }
.blob-3 { width: 360px; height: 360px; background: #0369a1; top: 45%; left: 40%; animation-delay: -12s; opacity: .18; }
[data-theme="dark"] .blob { opacity: .22; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 2000; background: var(--grad-accent); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .blob, .photo-ring, .hero-photo, .float-card, .deco-ring, .deco-core, .deco-chip { animation: none; }
}

/* ---------- Navbar ---------- */
.site-nav {
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: .85rem 0;
    transition: padding .3s, box-shadow .3s;
}
.site-nav.scrolled { padding: .5rem 0; box-shadow: 0 12px 30px -12px rgba(3, 105, 161, .65); }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--grad-accent); color: #fff;
    border: 2px solid rgba(255, 255, 255, .55);
    font-weight: 700; font-size: .95rem; letter-spacing: .5px;
    box-shadow: 0 8px 20px -6px rgba(14, 165, 233, .7);
}
.brand-text { color: #fff; font-weight: 700; letter-spacing: 2px; font-size: 1.05rem; }
.brand-dot { color: var(--gold); }

.site-nav .nav-link {
    color: rgba(255, 255, 255, .92) !important;
    font-weight: 500; font-size: .93rem;
    padding: .5rem .95rem !important; border-radius: 999px;
    position: relative; transition: all .25s;
}
.site-nav .nav-link:hover { color: #fff !important; background: rgba(3, 26, 51, .25); }
.site-nav .nav-link.active { color: #fff !important; background: #031a33; box-shadow: 0 8px 18px -8px rgba(3, 26, 51, .7); }

.nav-toggler { border: 0; color: #fff; font-size: 1.8rem; box-shadow: none !important; }

.theme-toggle {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08); color: var(--gold);
    display: grid; place-items: center; cursor: pointer; transition: transform .3s, background .3s;
}
.theme-toggle:hover { transform: rotate(20deg); background: rgba(255, 255, 255, .16); }
.theme-toggle .icon-light { display: none; }
[data-theme="dark"] .theme-toggle .icon-light { display: inline; }
[data-theme="dark"] .theme-toggle .icon-dark { display: none; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .65rem 1.4rem; transition: all .3s ease; display: inline-flex; align-items: center; gap: .45rem; }
.btn-lg { padding: .85rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }

.btn-grad { background: var(--grad-btn); background-size: 160% 160%; color: #fff; border: 0; box-shadow: 0 12px 24px -10px rgba(14, 165, 233, .75); }
.btn-grad:hover { color: #fff; background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 18px 30px -10px rgba(14, 165, 233, .9); }

.btn-gold { background: linear-gradient(135deg, #fde68a, #fbbf24 55%, #f59e0b); color: #062a4d; border: 0; box-shadow: 0 12px 24px -10px rgba(251, 191, 36, .8); }
.btn-gold:hover { color: #062a4d; transform: translateY(-2px); filter: brightness(1.05); }

.btn-ghost { background: var(--surface); border: 1.5px solid var(--border); color: var(--heading); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); transform: translateY(-2px); }

.btn-ghost-light { background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.btn-link-light { color: var(--heading); background: transparent; border: 0; }
.btn-link-light:hover { color: var(--rose); }
.btn-link-light:hover i { transform: translateX(4px); }
.btn i { transition: transform .25s; }

/* ---------- Hero (home) ---------- */
.hero { padding: 150px 0 90px; position: relative; }
.pill {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .45rem 1rem; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: .82rem; font-weight: 500; color: var(--wine);
    backdrop-filter: blur(8px);
}
[data-theme="dark"] .pill { color: var(--gold); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 0 rgba(46, 204, 113, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }

.hero-title { font-family: var(--font-head); font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; line-height: 1.08; margin: 1.2rem 0 .6rem; }
.hero-role { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 600; color: var(--wine); min-height: 2.2rem; }
[data-theme="dark"] .hero-role { color: var(--gold); }
.caret { margin-left: 2px; animation: blink 1s steps(1) infinite; color: var(--rose); }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { font-size: 1.05rem; line-height: 1.85; color: var(--text-soft); max-width: 620px; margin: 1.2rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; font-size: .9rem; color: var(--text-soft); }
.hero-meta i { color: var(--rose); margin-right: .3rem; }

.hero-photo-wrap { position: relative; max-width: 420px; margin: 0 auto; aspect-ratio: 4 / 5; }
.photo-ring {
    position: absolute; inset: -14px; border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%;
    background: var(--grad-accent); animation: morph 10s ease-in-out infinite; opacity: .9;
}
.hero-photo {
    position: absolute; inset: 0; overflow: hidden;
    border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%;
    background: var(--grad-hero); animation: morph 10s ease-in-out infinite;
    box-shadow: var(--shadow-lg); border: 6px solid var(--bg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.photo-fallback { position: absolute; inset: 0; display: none; place-items: center; font-family: var(--font-head); font-size: 6rem; color: #fff; }
.hero-photo.no-photo .photo-fallback { display: grid; }
@keyframes morph {
    0%, 100% { border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%; }
    50%      { border-radius: 55% 45% 40% 60% / 55% 60% 40% 45%; }
}
.float-card {
    position: absolute; z-index: 2;
    padding: .6rem 1rem; border-radius: 14px;
    background: var(--surface-2); border: 1px solid var(--border);
    backdrop-filter: blur(10px); box-shadow: var(--shadow);
    font-size: .82rem; font-weight: 600; color: var(--heading); white-space: nowrap;
    animation: float 5s ease-in-out infinite;
}
.float-card i { color: var(--rose); margin-right: .35rem; }
.fc-1 { top: 8%; left: -12%; }
.fc-2 { top: 48%; right: -14%; animation-delay: -1.5s; }
.fc-3 { bottom: 6%; left: -6%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- Stats band ---------- */
.stats-band { padding: 0 0 30px; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--grad-hero); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
}
.stat { padding: 2rem 1.2rem; text-align: center; color: #fff; position: relative; }
.stat:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 25%; height: 50%; width: 1px; background: rgba(255, 255, 255, .18); }
.stat-value { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; background: linear-gradient(135deg, #fff, #7dd3fc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: .85rem; color: rgba(255, 255, 255, .78); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; position: relative; }
.section-tint { background: var(--grad-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head.text-start { max-width: none; }
.eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--rose); margin-bottom: .7rem; position: relative; padding-left: 34px;
}
.eyebrow::before { content: ''; position: absolute; left: 0; top: 50%; width: 24px; height: 2px; background: var(--grad-accent); }
.eyebrow.light { color: var(--gold); }
.section-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.section-sub { color: var(--text-soft); font-size: 1.02rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    padding: 140px 0 70px; position: relative; overflow: hidden;
    background:
        radial-gradient(900px 420px at 85% 10%, rgba(56, 189, 248, .28), transparent 60%),
        radial-gradient(700px 380px at 5% 90%, rgba(34, 211, 238, .20), transparent 60%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}
/* faint blueprint grid that fades out */
.page-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(14, 165, 233, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, .09) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 75% 70% at 60% 40%, #000 30%, transparent 75%);
}
/* glowing gradient line along the bottom edge */
.page-hero::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
    background: linear-gradient(90deg, transparent, #0ea5e9 25%, #22d3ee 50%, #fbbf24 75%, transparent);
    opacity: .85;
}
.page-hero .container { position: relative; z-index: 1; }
.page-title { font-family: var(--font-head); color: var(--heading); font-weight: 800; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.1; margin: .4rem 0 1rem; }
.page-lead { color: var(--text-soft); font-size: 1.08rem; max-width: 640px; line-height: 1.85; margin-bottom: 0; }

/* Breadcrumb pill */
.crumbs {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: .45rem;
    padding: .45rem 1rem; border-radius: 999px; margin-bottom: 1.4rem;
    background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(8px);
    font-size: .82rem; font-weight: 500; box-shadow: var(--shadow);
}
.crumbs a { color: var(--text-soft); }
.crumbs a:hover { color: var(--rose); }
.crumbs a i { color: var(--rose); }
.crumbs .sep { font-size: .65rem; color: var(--text-soft); opacity: .6; }
.crumbs span { color: var(--heading); font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-hero .eyebrow { display: block; width: max-content; }

/* Project detail hero bits */
.hero-tag {
    display: inline-flex; gap: .35rem; align-items: center; padding: .38rem .9rem; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); color: var(--heading);
    font-size: .8rem; font-weight: 500; backdrop-filter: blur(8px);
}
.hero-tag i { color: var(--rose); }
.hero-role-sm { color: var(--wine); font-weight: 600; margin: 1rem 0 0; }
[data-theme="dark"] .hero-role-sm { color: #7dd3fc; }
.page-hero .btn-ghost-light { background: var(--surface); border: 1.5px solid var(--border); color: var(--heading); }
.page-hero .btn-ghost-light:hover { border-color: var(--rose); color: var(--rose); }

/* Orbit decoration on the right */
.hero-deco { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1; margin-left: auto; }
.deco-ring { position: absolute; border-radius: 50%; inset: 0; margin: auto; }
.ring-1 { width: 100%; height: 100%; border: 2px dashed rgba(14, 165, 233, .35); animation: spin 40s linear infinite; }
.ring-2 { width: 72%; height: 72%; border: 1.5px solid rgba(34, 211, 238, .35); background: radial-gradient(circle, rgba(56, 189, 248, .14), transparent 70%); }
.ring-3 { width: 46%; height: 46%; border: 2px dashed rgba(251, 191, 36, .45); animation: spin 26s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.deco-core {
    position: absolute; inset: 0; margin: auto; width: 118px; height: 118px; border-radius: 32px;
    display: grid; place-items: center; font-size: 3rem; color: #fff;
    background: var(--grad-btn); transform: rotate(-8deg);
    box-shadow: 0 25px 50px -15px rgba(14, 165, 233, .75), inset 0 0 0 1px rgba(255, 255, 255, .25);
    animation: core-float 6s ease-in-out infinite;
}
.deco-core i { transform: rotate(8deg); }
@keyframes core-float { 50% { transform: rotate(-8deg) translateY(-10px); } }
.deco-dot { position: absolute; border-radius: 50%; }
.dot-1 { width: 16px; height: 16px; background: #fbbf24; top: 6%; left: 48%; box-shadow: 0 0 18px #fbbf24; }
.dot-2 { width: 12px; height: 12px; background: #22d3ee; bottom: 14%; right: 8%; box-shadow: 0 0 16px #22d3ee; }
.dot-3 { width: 10px; height: 10px; background: #0ea5e9; top: 40%; left: 2%; box-shadow: 0 0 14px #0ea5e9; }
.deco-chip {
    position: absolute; z-index: 2; white-space: nowrap;
    padding: .55rem 1rem; border-radius: 14px; font-size: .82rem; font-weight: 600; color: var(--heading);
    background: var(--surface-2); border: 1px solid var(--border); backdrop-filter: blur(10px); box-shadow: var(--shadow);
    animation: float 5s ease-in-out infinite;
}
.deco-chip i { color: var(--rose); margin-right: .3rem; }
.chip-pos-1 { top: 12%; left: 0; }
.chip-pos-2 { top: 26%; right: -4%; animation-delay: -1.2s; }
.chip-pos-3 { bottom: 16%; left: 4%; animation-delay: -2.4s; }
.chip-pos-4 { bottom: 4%; right: 14%; animation-delay: -3.6s; }

/* ---------- Glass cards ---------- */
.glass-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.8rem; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow); transition: opacity .8s ease, transform .35s ease, box-shadow .35s ease, border-color .35s;
    position: relative; overflow: hidden;
}
.glass-card h3 { font-size: 1.12rem; font-weight: 600; }
.glass-card p { color: var(--text-soft); line-height: 1.75; font-size: .95rem; }

.service-card:hover, .approach-card:hover, .skill-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(14, 165, 233, .4); }
.service-card::after, .approach-card::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--grad-accent); transition: width .45s ease;
}
.service-card:hover::after, .approach-card:hover::after { width: 100%; }

.icon-badge {
    width: 56px; height: 56px; border-radius: 16px; margin-bottom: 1.1rem;
    display: grid; place-items: center; flex-shrink: 0;
    background: var(--grad-accent); color: #fff; font-size: 1.45rem;
    box-shadow: 0 12px 24px -10px rgba(14, 165, 233, .8);
}

.gradient-card { background: var(--grad-hero); color: #fff; border: 0; }
.gradient-card h2, .gradient-card h3, .gradient-card .card-heading { color: #fff; }
.gradient-card p, .gradient-card li { color: rgba(255, 255, 255, .85); }
.gradient-card .check-list li::before { background: linear-gradient(135deg, #fbbf24, #22d3ee); }

.card-heading { font-size: 1.15rem; font-weight: 600; margin-bottom: 1.2rem; display: flex; gap: .55rem; align-items: center; }
.card-heading i { color: var(--rose); }
.gradient-card .card-heading i { color: var(--gold); }
.small-link { font-size: .88rem; font-weight: 600; }

/* ---------- Project cards ---------- */
.project-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
    backdrop-filter: blur(14px); box-shadow: var(--shadow); transition: opacity .8s ease, transform .35s, box-shadow .35s;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grad-hero); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.project-card:hover .project-cover img { transform: scale(1.07); }
.cover-fullstack  { background: linear-gradient(135deg, #031a33, #0369a1 60%, #0ea5e9); }
.cover-frontend   { background: linear-gradient(135deg, #0a3a6b, #0ea5e9 55%, #22d3ee); }
.cover-mobile     { background: linear-gradient(135deg, #1e1b4b, #4f46e5 50%, #38bdf8); }
.cover-automation { background: linear-gradient(135deg, #064e3b, #0d9488 55%, #5eead4); }
.cover-placeholder {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; gap: .3rem;
}
.cover-placeholder::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
}
.cover-placeholder i { font-size: 3rem; position: relative; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25)); }
.cover-placeholder span { font-family: var(--font-head); font-size: 1.4rem; letter-spacing: 4px; opacity: .85; position: relative; }
.cover-placeholder.large i { font-size: 5rem; }
.cover-placeholder.large span { font-size: 2.2rem; }
.cover-badge {
    position: absolute; top: 14px; left: 14px; padding: .3rem .8rem; border-radius: 999px;
    background: rgba(255, 255, 255, .92); color: var(--burgundy); font-size: .72rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.project-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.project-title { font-size: 1.15rem; font-weight: 600; margin: .3rem 0 .4rem; }
.project-title a { color: var(--heading); }
.project-title a:hover { color: var(--rose); }
.project-summary { color: var(--text-soft); font-size: .92rem; margin-bottom: 1rem; }
.project-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: 1rem; }
.status-dot { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; }
.status-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; }
.status-dot.is-ongoing::before { background: var(--gold); }

.tech-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
    padding: .3rem .75rem; border-radius: 999px; font-size: .76rem; font-weight: 500;
    background: var(--grad-soft); border: 1px solid var(--border); color: var(--wine);
}
[data-theme="dark"] .chip { color: #bae6fd; }
.chip-more { background: var(--grad-accent); color: #fff; border: 0; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.2rem; }
.filter-btn {
    display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border-radius: 999px;
    background: var(--surface); border: 1.5px solid var(--border); color: var(--heading);
    font-weight: 500; font-size: .88rem; cursor: pointer; transition: all .25s; backdrop-filter: blur(8px);
}
.filter-btn span { background: var(--grad-soft); padding: .05rem .5rem; border-radius: 999px; font-size: .75rem; }
.filter-btn:hover { border-color: var(--rose); color: var(--rose); }
.filter-btn.active { background: var(--grad-btn); color: #fff; border-color: transparent; box-shadow: 0 10px 20px -10px rgba(14, 165, 233, .8); }
.filter-btn.active span { background: rgba(255, 255, 255, .22); }

/* ---------- Skills ---------- */
.skill-card h3 { font-size: 1.05rem; }
.skill-row { margin-bottom: .85rem; font-size: .9rem; }
.skill-bar { height: 7px; border-radius: 999px; background: var(--grad-soft); margin-top: .35rem; overflow: hidden; }
.skill-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-accent); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.skill-col.hidden { display: none; }

/* ---------- About ---------- */
.about-photo { position: relative; border-radius: 30px; overflow: hidden; background: var(--grad-hero); aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); max-width: 420px; margin: 0 auto; }
.about-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 26, 51, .55), transparent 45%); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-badge {
    position: absolute; z-index: 1; bottom: 18px; left: 18px; right: 18px;
    display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; border-radius: 16px;
    background: rgba(255, 255, 255, .92); color: var(--burgundy);
}
.about-badge i { font-size: 1.6rem; color: var(--rose); }
.about-badge small { display: block; color: #4b6478; }
.bio p { color: var(--text-soft); line-height: 1.9; }

.strength-cloud { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; max-width: 900px; margin: 0 auto; }
.strength {
    padding: .65rem 1.3rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
    font-weight: 500; font-size: .92rem; box-shadow: var(--shadow); transition: all .3s;
}
.strength:hover { background: var(--grad-btn); color: #fff; transform: translateY(-4px) rotate(-1deg); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0 0 0 32px; margin: 1.5rem 0 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--grad-accent); }
.timeline-item { position: relative; padding: 0 0 2rem 1rem; }
.timeline-dot { position: absolute; left: -31px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 4px solid var(--rose); box-shadow: 0 0 0 5px rgba(14, 165, 233, .15); }
.timeline-period { display: inline-block; padding: .2rem .75rem; border-radius: 999px; background: var(--grad-btn); color: #fff; font-size: .75rem; font-weight: 600; margin-bottom: .5rem; }
.timeline-item h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .25rem; }
.timeline-company { color: var(--rose); font-weight: 500; margin-bottom: .4rem; }
.timeline-item p { color: var(--text-soft); }

.edu-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.edu-list li { padding: .8rem 0 .8rem 1.1rem; border-bottom: 1px dashed var(--border); position: relative; }
.edu-list li:last-child { border-bottom: 0; }
.edu-list li::before { content: ''; position: absolute; left: 0; top: 1.15rem; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-accent); }
.edu-list strong { display: block; color: var(--heading); font-weight: 600; font-size: .95rem; }
.edu-list span { color: var(--text-soft); font-size: .84rem; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .75rem; line-height: 1.7; color: var(--text-soft); }
.check-list li::before { content: ''; position: absolute; left: 0; top: .3rem; width: 18px; height: 18px; border-radius: 50%; background: var(--grad-accent); }
.check-list li::after { content: ''; position: absolute; left: 6px; top: calc(.3rem + 4px); width: 6px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check-list.compact li { margin-bottom: .45rem; font-size: .92rem; }

.mini-project-list { list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--text-soft); }
.mini-project-list li { padding: .45rem 0; border-bottom: 1px dashed var(--border); }
.mini-project-list li:last-child { border: 0; }
.mini-project-list a strong { color: var(--heading); }
.mini-project-list a:hover strong { color: var(--rose); }

/* ---------- Project detail ---------- */
.project-showcase { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow-lg); margin-bottom: 2.5rem; }
.project-showcase img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.detail-block { margin-bottom: 2.5rem; }
.detail-block h2 { font-size: 1.35rem; font-weight: 600; margin-bottom: 1rem; display: flex; gap: .6rem; align-items: center; }
.detail-block h2 i { color: var(--rose); }
.detail-block > p { color: var(--text-soft); line-height: 1.85; font-size: 1.02rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.feature-item { padding: .85rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: .92rem; display: flex; gap: .55rem; align-items: flex-start; }
.feature-item i { color: var(--rose); margin-top: 2px; }
.outcome-card { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.6rem; border-radius: var(--radius); background: var(--grad-hero); color: #fff; box-shadow: var(--shadow-lg); }
.outcome-card i { font-size: 2.2rem; color: var(--gold); }
.outcome-card h3 { color: #fff; font-size: 1.15rem; }
.outcome-card p { color: rgba(255, 255, 255, .85); }
.info-list { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 0; font-size: .9rem; }
.info-list dt { color: var(--text-soft); font-weight: 500; }
.info-list dd { margin: 0; color: var(--heading); font-weight: 500; }
.pager-row { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.pager-link { display: flex; flex-direction: column; padding: 1rem 1.3rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); max-width: 48%; transition: all .3s; }
.pager-link small { color: var(--text-soft); }
.pager-link strong { color: var(--heading); }
.pager-link:hover { border-color: var(--rose); transform: translateY(-3px); }

/* ---------- CTA panel ---------- */
.cta-panel {
    padding: 3rem; border-radius: 28px; background: var(--grad-hero); color: #fff;
    position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-panel::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: #0ea5e9; filter: blur(70px); opacity: .5; top: -120px; right: -60px; }
.cta-panel > * { position: relative; }
.cta-panel h2 { color: #fff; font-family: var(--font-head); font-weight: 700; }
.cta-panel p { color: rgba(255, 255, 255, .82); }

/* ---------- Contact ---------- */
.form-label { font-weight: 500; font-size: .9rem; color: var(--heading); }
.req { color: var(--rose); }
.fancy-input {
    background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 14px;
    padding: .8rem 1rem; color: var(--text); transition: all .25s;
}
.fancy-input::placeholder { color: var(--text-soft); opacity: .7; }
.fancy-input:focus { background: var(--surface-2); color: var(--text); border-color: var(--rose); box-shadow: 0 0 0 4px rgba(14, 165, 233, .15); }
.alert-grad { padding: 1rem 1.2rem; border-radius: 14px; font-weight: 500; display: flex; gap: .6rem; align-items: center; }
.alert-grad.success { background: linear-gradient(135deg, rgba(46, 204, 113, .16), rgba(251, 191, 36, .16)); border: 1px solid rgba(46, 204, 113, .35); color: #1e8c5a; }
.alert-grad.danger  { background: linear-gradient(135deg, rgba(239, 68, 68, .14), rgba(251, 146, 60, .14)); border: 1px solid rgba(239, 68, 68, .35); color: #b91c1c; }
[data-theme="dark"] .alert-grad.success { color: #7fe0aa; }
[data-theme="dark"] .alert-grad.danger { color: #fca5a5; }

.contact-tile {
    display: flex; gap: 1rem; align-items: center; padding: .9rem 1rem; border-radius: 16px; margin-bottom: .75rem;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; transition: all .3s;
}
.contact-tile:hover { background: rgba(255, 255, 255, .16); color: #fff; transform: translateX(6px); }
.contact-tile small { display: block; color: rgba(255, 255, 255, .65); font-size: .75rem; }
.contact-tile > span:last-child { word-break: break-all; }
.tile-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: var(--grad-accent); font-size: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(160deg, #020f20, #031a33 50%, #0a3a6b); color: rgba(255, 255, 255, .78); padding: 0 0 1.5rem; margin-top: 90px; }
.footer-cta {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem;
    padding: 2.2rem 2.5rem; border-radius: 24px; background: var(--grad-accent); color: #062a4d;
    transform: translateY(-50%); box-shadow: var(--shadow-lg);
}
.footer-cta h3 { color: #031a33; font-family: var(--font-head); font-weight: 700; margin-bottom: .2rem; }
.footer-cta .btn-gold { background: #031a33; color: #fff; }
.footer-cta p { color: #04264a; font-weight: 500; }
.footer-grid { margin-top: .5rem; }
.footer-muted { color: rgba(255, 255, 255, .6); max-width: 360px; }
.footer-title { color: var(--gold); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: .8rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; font-size: .92rem; }
.footer-links i { color: var(--rose); margin-right: .4rem; }
.footer-links a { color: rgba(255, 255, 255, .78); }
.footer-links a:hover { color: var(--gold); }
.social-row { display: flex; gap: .6rem; }
.social-row a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: all .3s; }
.social-row a:hover { background: var(--grad-accent); transform: translateY(-4px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; color: rgba(255, 255, 255, .55); }

/* ---------- Floating buttons ---------- */
.back-to-top, .whatsapp-float {
    position: fixed; right: 22px; z-index: 1000; width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; font-size: 1.3rem; box-shadow: var(--shadow-lg); transition: all .3s;
}
.whatsapp-float { bottom: 22px; background: linear-gradient(135deg, #25d366, #128c7e); }
.whatsapp-float:hover { color: #fff; transform: scale(1.1); }
.back-to-top { bottom: 84px; background: var(--grad-btn); opacity: 0; visibility: hidden; transform: translateY(15px); }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { background: var(--nav-bg); border-radius: 18px; padding: 1rem; margin-top: .8rem; }
    .hero { padding: 120px 0 60px; text-align: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-meta { justify-content: center; }
    .hero-photo-wrap { max-width: 260px; }
    .fc-1 { left: -6%; } .fc-2 { right: -8%; } .fc-3 { left: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2)::after { display: none; }
    .page-hero { padding: 120px 0 50px; }
    .footer-cta { transform: translateY(-40%); padding: 1.8rem; }
}
@media (max-width: 575.98px) {
    .section { padding: 64px 0; }
    .float-card { font-size: .72rem; padding: .45rem .7rem; }
    .stat-value { font-size: 2rem; }
    .cta-panel { padding: 2rem 1.5rem; }
    .pager-link { max-width: 100%; }
    .pager-row { flex-direction: column; }
}

/* ---------- Print (resume page) ---------- */
@media print {
    .site-nav, .site-footer, .back-to-top, .whatsapp-float, .bg-blobs, .btn { display: none !important; }
    .page-hero { padding: 20px 0; }
    .hero-deco, .crumbs { display: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    body { background: #fff; }
}

/* Navbar on sky gradient: navy brand tile */
.site-nav .brand-mark { background: #031a33; border-color: rgba(125, 211, 252, .6); box-shadow: 0 8px 20px -6px rgba(3, 26, 51, .6); }
.site-nav .theme-toggle { background: rgba(3, 26, 51, .25); border-color: rgba(255, 255, 255, .35); }

/* Admin preview banner for hidden projects */
.draft-banner {
    position: fixed; z-index: 1050; left: 50%; bottom: 20px; transform: translateX(-50%);
    padding: .7rem 1.2rem; border-radius: 999px; font-size: .88rem; font-weight: 500;
    background: #031a33; color: #fff; box-shadow: 0 14px 30px -10px rgba(3, 26, 51, .6);
}
.draft-banner i { color: #fbbf24; margin-right: .3rem; }
.draft-banner a { color: #7dd3fc; margin-left: .4rem; font-weight: 600; }

/* Service price / availability (managed from the dashboard) */
.service-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.service-price { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--grad-soft); color: var(--wine); border: 1px solid var(--border); }
[data-theme="dark"] .service-price { color: #7dd3fc; }
.service-avail { padding: .3rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.avail-limited { background: rgba(251, 191, 36, .16); color: #b45309; }
.avail-unavailable { background: rgba(100, 116, 139, .16); color: #475569; }
[data-theme="dark"] .avail-limited { color: #fcd34d; }
[data-theme="dark"] .avail-unavailable { color: #cbd5e1; }
.pulse.pulse-busy { background: #f59e0b; box-shadow: 0 0 0 0 rgba(245, 158, 11, .6); }
.pulse.pulse-unavailable { background: #94a3b8; animation: none; }

/* ---------- Testimonials (public) ---------- */
.testimonial-card { margin: 0; display: flex; flex-direction: column; }
.testimonial-card.featured { border-color: rgba(251, 191, 36, .6); }
.quote-mark { position: absolute; top: .4rem; right: 1rem; font-size: 3.6rem; line-height: 1; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: .35; }
.testimonial-card blockquote { color: var(--text); font-size: .98rem; line-height: 1.8; flex: 1; margin-bottom: 1.2rem; }
.testimonial-card figcaption { display: flex; align-items: center; gap: .8rem; }
.testimonial-card figcaption strong { display: block; color: var(--heading); }
.testimonial-card figcaption small { color: var(--text-soft); }
.t-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--grad-btn); color: #fff; font-weight: 700; flex-shrink: 0; }
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }
.stars { color: #f59e0b; letter-spacing: 2px; font-size: .9rem; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: .25rem; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label { font-size: 1.8rem; color: #cbd5e1; cursor: pointer; transition: color .15s, transform .15s; }
.rating-input label:hover { transform: scale(1.12); }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { color: #f59e0b; }
.form-select.fancy-input { padding-right: 2.2rem; }

/* ---------- Newsletter (footer) ---------- */
.newsletter-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding: 1.4rem 1.6rem; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.newsletter-form { display: flex; gap: .5rem; flex: 1; max-width: 460px; min-width: 260px; }
.newsletter-form .form-control { border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; padding: .65rem 1.1rem; }
.newsletter-form .form-control::placeholder { color: rgba(255, 255, 255, .55); }
.newsletter-form .form-control:focus { background: rgba(255, 255, 255, .15); color: #fff; border-color: #7dd3fc; box-shadow: none; }
.newsletter-form .btn { white-space: nowrap; }
.newsletter-ok { width: 100%; color: #6ee7b7; font-size: .88rem; }
.newsletter-err { width: 100%; color: #fca5a5; font-size: .88rem; }

/* ---------- Blog ---------- */
.blog-search { position: relative; min-width: 240px; }
.blog-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-soft); }
.blog-search input { padding-left: 2.6rem; border-radius: 999px; }
.post-card .cover-placeholder i { font-size: 3rem; }
.author-line { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.author-line img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--rose); }
.author-line strong { display: block; color: var(--heading); }
.author-line small { color: var(--text-soft); }
.article-cover { width: 100%; border-radius: 22px; box-shadow: var(--shadow-lg); margin-bottom: 2.5rem; }
.article-body { font-size: 1.06rem; line-height: 1.95; color: var(--text); }
.article-body h1, .article-body h2, .article-body h3 { font-family: var(--font-head); color: var(--heading); margin: 2rem 0 .8rem; }
.article-body h2 { font-size: 1.7rem; } .article-body h3 { font-size: 1.35rem; }
.article-body p { margin-bottom: 1.2rem; }
.article-body a { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.article-body li { margin-bottom: .4rem; }
.article-body blockquote { border-left: 4px solid var(--rose); background: var(--grad-soft); padding: 1rem 1.3rem; border-radius: 0 14px 14px 0; font-style: italic; }
.article-body code { background: var(--grad-soft); color: var(--wine); padding: .1rem .4rem; border-radius: 6px; font-size: .9em; }
[data-theme="dark"] .article-body code { color: #7dd3fc; }
.article-body pre { background: #031a33; color: #e0f2fe; padding: 1.1rem 1.3rem; border-radius: 14px; overflow-x: auto; }
.article-body pre code { background: none; color: inherit; padding: 0; }
.article-body img { max-width: 100%; border-radius: 14px; }
.share-row { display: flex; align-items: center; gap: .6rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--text-soft); font-weight: 500; }
.share-row a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--heading); }
.share-row a:hover { background: var(--grad-btn); color: #fff; border-color: transparent; }
.related-post h3 { font-size: 1rem; font-weight: 600; margin: .3rem 0 0; color: var(--heading); }
.related-post:hover h3 { color: var(--rose); }
.public-pagination .pagination { justify-content: center; gap: .3rem; }
.public-pagination .page-link { border-radius: 10px !important; border: 1px solid var(--border); background: var(--surface); color: var(--heading); }
.public-pagination .page-item.active .page-link { background: var(--grad-btn); border-color: transparent; color: #fff; }

/* ---------- Ratings & testimonials (v4.1) ---------- */
.testi-section { position: relative; }
.rating-summary {
    display: flex; align-items: center; gap: 1.2rem; width: fit-content; margin: 0 auto 2rem; padding: 1rem 1.6rem;
    border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.rs-score { display: flex; align-items: baseline; gap: .25rem; padding-right: 1.2rem; border-right: 1px solid var(--border); }
.rs-score strong { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rs-score span { color: var(--text-soft); font-weight: 600; }
.rating-summary .stars { font-size: 1.05rem; }
.rs-title { font-weight: 700; color: var(--heading); font-size: .95rem; }
.rating-summary small { color: var(--text-soft); }

.testi-carousel { max-width: 820px; margin: 0 auto; outline: none; }
.tc-viewport { overflow: hidden; border-radius: var(--radius, 22px); }
.tc-track { display: flex; transition: transform .6s cubic-bezier(.22, .8, .25, 1); }
.tc-slide { flex: 0 0 100%; min-width: 100%; padding: 2.4rem 2.4rem 2rem !important; position: relative; }
.tc-slide blockquote { font-size: 1.12rem; line-height: 1.85; color: var(--heading); font-style: italic; }
.tc-slide .quote-mark { font-size: 5rem; right: 1.6rem; }
.tc-slide .stars { font-size: 1.15rem; }
.t-who { display: flex; flex-direction: column; }
.t-who small { display: block; }
.t-context { color: var(--rose) !important; font-weight: 600; font-size: .82rem; }
.t-in { color: #0a66c2; margin-left: .35rem; font-size: .95rem; }
.t-in:hover { color: var(--rose); }
.verified-badge {
    display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start; margin-top: 1rem;
    padding: .32rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
    background: rgba(14, 165, 233, .12); color: var(--wine); border: 1px solid rgba(14, 165, 233, .3);
}
[data-theme="dark"] .verified-badge { color: #7dd3fc; }
.tc-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.4rem; }
.tc-btn {
    width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface);
    color: var(--heading); display: grid; place-items: center; font-size: 1.1rem; transition: all .2s; box-shadow: var(--shadow);
}
.tc-btn:hover { background: var(--grad-btn); color: #fff; border-color: transparent; transform: translateY(-2px); }
.tc-count { font-weight: 600; color: var(--text-soft); min-width: 58px; text-align: center; font-variant-numeric: tabular-nums; }
.tc-count b { color: var(--heading); font-size: 1.1rem; }
.testi-cta {
    max-width: 820px; margin: 2rem auto 0; padding: 1.4rem 1.6rem; border-radius: 20px; background: var(--grad-soft);
    border: 1px dashed rgba(14, 165, 233, .45); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.testi-cta p { margin: 0; color: var(--text); flex: 1 1 320px; }
.testi-cta strong { color: var(--heading); }

/* Rate & review form */
.rate-block { padding: 1.2rem 1.4rem; border-radius: 18px; background: var(--grad-soft); border: 1px solid var(--border); }
.rate-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.rating-input.big label { font-size: 2.3rem; }
.rate-label { font-weight: 600; color: var(--text-soft); }
.rate-label.on { color: var(--wine); }
[data-theme="dark"] .rate-label.on { color: #7dd3fc; }
.consent-check { padding: .9rem 1rem .9rem 2.6rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.consent-check.is-invalid { border-color: #dc3545; }

@media (max-width: 575.98px) {
    .tc-slide { padding: 1.8rem 1.3rem 1.5rem !important; }
    .tc-slide blockquote { font-size: 1rem; }
    .rating-summary { padding: .9rem 1.1rem; gap: .9rem; }
    .rs-score strong { font-size: 2.1rem; }
    .testi-cta { text-align: center; justify-content: center; }
}
.form-card .input-icon { position: relative; }
.form-card .input-icon > i { position: absolute; left: 1rem; top: 1.45rem; transform: translateY(-50%); color: #0a66c2; z-index: 2; }
.form-card .input-icon input { padding-left: 2.7rem; }

/* Testimonials page + home link */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; align-items: stretch; }
.testi-grid .testimonial-card blockquote { font-style: italic; color: var(--heading); }
.link-arrow { font-weight: 600; color: var(--rose); text-decoration: none; }
.link-arrow i { transition: transform .2s; display: inline-block; }
.link-arrow:hover { color: var(--wine); }
.link-arrow:hover i { transform: translateX(4px); }
[data-theme="dark"] .link-arrow:hover { color: #7dd3fc; }
