/*
Theme Name: Kaif Portfolio
Theme URI: https://kaifshaikh.in
Author: Kaif Shaikh
Description: Dark, minimal portfolio theme with pill buttons and card sections. Edit the Customizer (Appearance > Customize > Site Identity & Contact Links) for the easy stuff; edit each Page's content in the block editor for everything else.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: kaif-portfolio
*/

:root {
  --bg: #0a0a0a;
  --card: #1a1a1a;
  --card-hover: #242424;
  --border: #262626;
  --ink: #ffffff;
  --muted: #999999;
  --muted-soft: #666666;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

::selection { background: #ffffff; color: #0a0a0a; }
a { color: #ffffff; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--muted); }

.wrap { max-width: 1199px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Header */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  height: 56px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-logo { font-size: 15px; font-weight: 600; color: var(--ink); }
.main-nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; justify-self: center; }
.main-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.main-nav a { color: var(--muted); }
.main-nav .current-menu-item > a { color: var(--ink); }
.header-actions { display: flex; gap: 10px; justify-self: end; }

/* Buttons */
.btn { display: inline-flex; align-items: center; padding: 10px 15px; border-radius: 100px; font-size: 14px; font-weight: 500; border: none; cursor: pointer; }
.btn-ghost { background: var(--card); color: var(--ink); transition: background 0.15s ease; }
.btn-ghost:hover { background: var(--card-hover); color: var(--ink); }
.btn-primary { background: #ffffff; color: #0a0a0a; transition: transform 0.15s ease; }
.btn-primary:hover { transform: scale(1.05); color: #0a0a0a; }
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* Hero */
.hero { padding: 120px 32px 96px; text-align: center; }
.hero-eyebrow { font-size: 13px; font-weight: 500; letter-spacing: -0.13px; color: var(--muted); margin-bottom: 20px; }
.hero-title { font-size: 72px; font-weight: 500; letter-spacing: -3.6px; line-height: 1; margin: 0 0 24px; }
.hero-sub { font-size: 18px; color: var(--muted); line-height: 1.3; letter-spacing: -0.18px; max-width: 620px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; }

/* Sections */
.section { padding: 0 32px 96px; }
.section-label { font-size: 13px; font-weight: 500; letter-spacing: -0.13px; color: var(--muted); margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--card); border-radius: 100px; padding: 8px 16px; font-size: 14px; font-weight: 500; transition: background 0.15s ease; }
.chip:hover { background: var(--card-hover); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border-radius: 20px; padding: 24px; transition: background 0.2s ease, transform 0.2s ease; }
.card:hover { background: var(--card-hover); }
.card-title { font-size: 22px; font-weight: 500; letter-spacing: -1px; margin-bottom: 10px; }
.card-body { font-size: 15px; color: var(--muted); line-height: 1.4; }

/* Page content (block editor output) */
.entry-header { max-width: 900px; margin: 0 auto; padding: 96px 32px 48px; }
.entry-title { font-size: 56px; font-weight: 500; letter-spacing: -2.8px; line-height: 1.05; margin: 0 0 24px; }
.entry-content { max-width: 900px; margin: 0 auto; padding: 0 32px 96px; font-size: 18px; color: var(--muted); line-height: 1.6; }
.entry-content h2 { color: var(--ink); font-size: 28px; font-weight: 500; margin: 48px 0 16px; letter-spacing: -0.5px; }
.entry-content h3 { color: var(--ink); font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
.entry-content p { margin: 0 0 16px; }
.entry-content ul { padding-left: 20px; }
.entry-content a { color: #ffffff; text-decoration: underline; }
.entry-content img { max-width: 100%; border-radius: 16px; }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 80px 32px 40px; }
.footer-cta-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 28px; margin-bottom: 48px; }
.footer-cta { font-size: 36px; font-weight: 500; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 14px; }
.footer-email { font-size: 17px; color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted-soft); }
.footer-bottom a { color: var(--muted); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-social { display: flex; gap: 16px; }

/* Marquee */
.marquee-wrap { overflow: hidden; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 96px; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 24s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { font-size: 19px; font-weight: 500; color: var(--muted-soft); white-space: nowrap; }
.marquee-item.accent { color: var(--ink); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Mobile */
@media (max-width: 680px) {
  .site-header { display: flex !important; flex-wrap: wrap; gap: 12px; padding: 16px 20px !important; height: auto !important; }
  .main-nav { width: 100%; order: 3; justify-content: center; flex-wrap: wrap; gap: 14px; font-size: 12px; }
  .hero { padding: 48px 20px 40px; }
  .hero-title { font-size: 36px; letter-spacing: -1.8px; }
  .section, .entry-header, .entry-content { padding-left: 20px; padding-right: 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 14px; }
  .site-footer { padding: 48px 20px 32px; }
  .footer-cta { font-size: 26px; }
}
