/* =========================================================================
   Polish layer (2026-12-03) — loaded after style.css. Safe to delete this
   file + the one <link> in includes/header.php to revert completely.
   ========================================================================= */
:root {
    --ink: #0b1220;
    --shadow-lg: 0 24px 60px -24px rgba(15, 23, 42, .28);
    --ring: 0 0 0 4px rgba(36, 87, 230, .18);
}
body { font-feature-settings: 'cv11', 'ss01'; text-rendering: optimizeLegibility; }
h1, h2, h3 { letter-spacing: -.025em; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* Rhythm: consistent section spacing, alternating tints */
section { padding: 104px 0; }
@media (max-width: 768px) { section { padding: 68px 0; } }
.section-title { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.15; }
.section-sub { font-size: 1.08rem; line-height: 1.75; max-width: 680px; }
.center-head { margin-bottom: 56px; }
.center-head .eyebrow { justify-content: center; }
.eyebrow { padding: 6px 14px; border-radius: 999px; background: #eef3ff; border: 1px solid #d8e3fb; }
.eyebrow::before { width: 8px; height: 8px; border-radius: 50%; }

/* Header */
.site-header { padding: 14px 0; }
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(15, 23, 42, .35); }
.logo { font-size: 1.3rem; }
.btn { border-radius: 12px; padding: 14px 30px; letter-spacing: .005em; }
.btn-primary { background: linear-gradient(135deg, #2f6bff 0%, #2457e6 60%, #3b3fd6 100%); }
.btn-primary:hover { background: linear-gradient(135deg, #2a5fe8 0%, #1b47c4 60%, #3033b8 100%); }
.btn-outline:hover { background: #f4f7ff; }
.btn-sm { padding: 10px 20px; }

/* Hero */
.hero { padding-top: 176px; padding-bottom: 112px; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.1rem); line-height: 1.08; letter-spacing: -.035em; }
.hero-role { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--text-1); }
.portrait-ring { border-radius: 32px; box-shadow: 0 40px 80px -34px rgba(36, 87, 230, .55); }
.portrait-ring img { border-radius: 26px; }
.hero-badge { box-shadow: var(--shadow-lg); border-radius: 14px; padding: 12px 18px; }
.hero-contacts i { border-radius: 12px; }

/* About: sticky card follows the text column, no dead space */
.about-grid { align-items: start; gap: 64px; }
.about-card { position: sticky; top: 100px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 30px; }
@media (max-width: 900px) { .about-card { position: static; } }
.about-card .stat-row { margin-top: 26px; }
.stat-box { background: linear-gradient(180deg, #f8faff 0%, #eef3ff 100%); border-color: #dbe5fb; padding: 22px 10px; }
.stat-box strong { font-size: 2rem; letter-spacing: -.02em; }
.expertise-list li { background: #fff; box-shadow: var(--shadow-sm); border-radius: 12px; }
.tag-cloud span { border-radius: 999px; padding: 7px 15px; }

/* Cards: equal heights, refined hover */
.grid-3, .grid-2 { align-items: stretch; }
.grid-3 > *, .grid-2 > * { height: 100%; }
.card { border-radius: 18px; }
.feature-card { height: 100%; display: flex; flex-direction: column; padding: 32px 28px; }
.feature-card:hover { border-color: #b9ceff; box-shadow: var(--shadow-lg); }
.feature-icon { border-radius: 16px; color: var(--accent-1); }
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { line-height: 1.7; }

/* Featured projects */
.featured-item { gap: 64px; padding: 60px 0; }
.featured-media { border-radius: 24px; box-shadow: var(--shadow-lg); background: linear-gradient(135deg, #eef3ff, #f6f8fc); }
.featured-media img { object-fit: cover; }
.featured-content h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.025em; }
.featured-content p { line-height: 1.8; font-size: 1.02rem; }
.featured-tag { border-radius: 999px; padding: 6px 14px; }

/* Skills: tidy panels so the two columns read as one system */
.skills-grid > div { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 34px; box-shadow: var(--shadow-sm); }
.circle-wrap { width: 104px; height: 104px; }
.circle-pct { font-size: 1.05rem; }
.bar-track { height: 9px; background: #e8edf6; }
.bar-skill { margin-bottom: 22px; }

/* Experience */
.tl-item { padding-bottom: 36px; }
.tl-item::before { box-shadow: 0 0 0 5px #e8efff; }

/* Portfolio grid */
.filter-btn { border-radius: 999px; padding: 10px 22px; }
.portfolio-grid { gap: 26px; }
.portfolio-item { border-radius: 18px; box-shadow: var(--shadow-sm); }
.portfolio-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.portfolio-overlay { background: linear-gradient(0deg, rgba(11, 18, 32, .9) 0%, rgba(11, 18, 32, .15) 65%, rgba(11, 18, 32, 0) 100%); }

/* Pricing */
.price-card { border-radius: 22px; padding: 42px 30px; height: 100%; display: flex; flex-direction: column; }
.price-card ul { flex: 1; }
.price-card.featured { background: linear-gradient(180deg, #f8faff 0%, #fff 60%); }
.price-card .p-amount { font-size: 2.6rem; }

/* Testimonials / blog / contact */
.testimonial-card { border-radius: 20px; }
.blog-card { border-radius: 18px; }
.contact-info-card, .contact-form { border-radius: 18px; }
.contact-form { box-shadow: var(--shadow-lg); }
.form-control { border-radius: 12px; padding: 14px 16px; }

/* Footer */
.site-footer { background: var(--ink); border-top: 0; color: #9fb0c9; }
.site-footer a { color: #cbd7ea; }
.site-footer a:hover { color: #fff; }
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer .logo { color: #fff; }
.site-footer .footer-bottom { border-top-color: rgba(255, 255, 255, .12); color: #8da0bd; }
.site-footer .social-row a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #dbe5f5; }
.site-footer .social-row a:hover { background: var(--accent-1); border-color: var(--accent-1); color: #fff; }

@media (max-width: 900px) {
    .skills-grid > div { padding: 24px; }
    .featured-item { gap: 28px; padding: 40px 0; }
    .hero { padding-bottom: 80px; }
}
