/*
Theme Name: Codeoba Premium Portfolio
Theme URI: https://codeoba.com
Author: Mohamed Nurdin Mgaza
Author URI: mailto:codeoba@gmail.com
Description: WordPress theme ya premium kwa wataalamu wa web development, app development, server configuration, AI automation na Telegram bots. Light theme yenye muonekano wa kisasa, demo ya bot hai, na sehemu zote za portfolio.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: codeoba
Tags: portfolio, one-column, custom-colors, custom-menu, custom-logo, translation-ready
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  --paper: #f1f5f0;
  --cream: #fbfcf9;
  --ink: #0b2b2f;
  --pine: #11393e;
  --deep: #07201f;
  --teal: #0e8578;
  --mint: #bfe8dc;
  --sea: #e3efe8;
  --tang: #ff5d2e;
  --sun: #ffc24b;
  --line: #d7e2da;
  --fog: #5c7570;

  --font-display: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --shadow-hard: 6px 6px 0 0 rgba(11, 43, 47, 0.9);
  --shadow-hard-sm: 4px 4px 0 0 rgba(11, 43, 47, 0.9);
  --shadow-lift: 0 24px 48px -20px rgba(11, 43, 47, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select, textarea { font: inherit; }

::selection { background: var(--tang); color: var(--cream); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--tang); color: var(--cream); padding: 10px 18px;
  font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Noise overlay */
.noise-layer {
  position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   3. TYPOGRAPHY UTILITIES
   ========================================================================== */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--teal); font-weight: 700;
}
.section-tag::before {
  content: ""; width: 26px; height: 2px; background: var(--tang);
}
.section-title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.02; color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-top: 14px;
}
.section-title em { font-style: normal; color: var(--teal); }
.section-sub { color: var(--fog); max-width: 560px; margin-top: 16px; font-size: 17px; }

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(11, 43, 47, 0.12);
}
.text-outline-light {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(191, 232, 220, 0.15);
}

/* ==========================================================================
   4. BUTTONS & LINKS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  padding: 14px 28px; border-radius: 10px; border: 2px solid var(--ink);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
}
.btn svg { width: 20px; height: 20px; transition: transform 0.3s var(--ease); }
.btn-primary { background: var(--tang); color: var(--cream); }
.btn-primary:hover svg { transform: translateX(6px); }
.btn-ghost { background: var(--cream); color: var(--ink); }
.btn-ghost:hover svg { transform: rotate(-8deg) scale(1.1); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-sm); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 0 rgba(11,43,47,.9); }

.link-swipe { position: relative; }
.link-swipe::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 100%;
  background: var(--tang); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.link-swipe:hover::after, .link-swipe.is-active::after {
  transform: scaleX(1); transform-origin: left;
}

/* ==========================================================================
   5. REVEAL (scroll animations)
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--rd, 0ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   6. NAVIGATION
   ========================================================================== */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--tang));
  z-index: 120; transition: width 0.1s linear;
}

.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(241, 245, 240, 0.92);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s;
}
.site-nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(11, 43, 47, 0.25);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; gap: 28px;
  transition: padding 0.35s var(--ease);
}
@media (min-width: 768px) { .nav-inner { padding: 20px 32px; } }
.site-nav.scrolled .nav-inner { padding-top: 12px; padding-bottom: 12px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px; background: var(--ink);
  color: var(--mint); font-family: var(--font-mono); font-weight: 700; font-size: 15px;
  display: grid; place-items: center; border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 0 rgba(11,43,47,0.25);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.brand:hover .brand-mark { transform: rotate(-6deg); background: var(--teal); color: var(--cream); }
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand-text small {
  display: block; font-family: var(--font-mono); font-weight: 400;
  font-size: 10px; color: var(--fog); letter-spacing: 0.14em; text-transform: uppercase;
}

.nav-links { display: none; gap: 26px; margin-left: auto; }
.nav-links a {
  font-weight: 600; font-size: 14.5px; color: var(--pine); padding: 4px 0;
}
@media (min-width: 960px) { .nav-links { display: flex; } }

.nav-cta {
  margin-left: auto; display: none;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  background: var(--ink); color: var(--mint); padding: 10px 20px; border-radius: 9px;
  border: 2px solid var(--ink); transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
@media (min-width: 960px) {
  .nav-cta { display: inline-flex; margin-left: 0; }
  .nav-links { margin-left: auto; }
}
.nav-cta:hover { background: var(--teal); color: var(--cream); transform: translate(-2px,-2px); box-shadow: var(--shadow-hard-sm); }

/* Burger */
.burger {
  margin-left: auto; width: 44px; height: 44px; border-radius: 10px;
  border: 2px solid var(--ink); background: var(--cream);
  display: grid; place-items: center;
}
@media (min-width: 960px) { .burger { display: none; } }
.burger span {
  display: block; width: 20px; height: 2.5px; background: var(--ink);
  border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s;
}
.burger span + span { margin-top: 5px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 95; background: var(--paper);
  padding: 120px 28px 40px; display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-102%); transition: transform 0.5s var(--ease);
}
body.menu-open .mobile-menu { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 8vw, 3rem);
  color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 16px;
}
.mobile-menu a small { font-family: var(--font-mono); font-size: 12px; color: var(--tang); }
.mobile-menu .mm-foot {
  margin-top: auto; font-family: var(--font-mono); font-size: 13px; color: var(--fog);
}

/* ==========================================================================
   7. HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: 130px 0 70px; }
@media (min-width: 768px) { .hero { padding: 150px 0 80px; } }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px);
  animation: wash 18s ease-in-out infinite;
}
.blob-mint { top: -100px; left: -100px; width: 560px; height: 560px; background: rgba(191,232,220,0.55); }
.blob-sun { top: 160px; right: -130px; width: 480px; height: 480px; background: rgba(255,194,75,0.28); animation-delay: -6s; }
.hero .dot-grid-r {
  position: absolute; top: 0; bottom: 0; right: 0; width: 33%;
  background-image: radial-gradient(rgba(11,43,47,0.13) 1.1px, transparent 1.1px);
  background-size: 22px 22px; opacity: 0.6;
  -webkit-mask-image: linear-gradient(to left, black, transparent);
          mask-image: linear-gradient(to left, black, transparent);
}
.hero-watermark {
  position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-weight: 800; font-size: 24vw; line-height: 1;
  white-space: nowrap; user-select: none;
  color: transparent; -webkit-text-stroke: 1.5px rgba(11,43,47,0.1);
}

.hero-grid {
  position: relative; display: grid; gap: 56px; align-items: center;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: 40px; } }

.avail-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 16px 6px 8px; font-size: 13px; font-weight: 600; color: var(--pine);
}
.avail-pill .dot { position: relative; width: 10px; height: 10px; margin-left: 6px; }
.avail-pill .dot::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal);
  animation: pulse-dot 2.2s ease-out infinite;
}
.avail-pill .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal); }
.avail-pill .mono { font-family: var(--font-mono); font-size: 10px; font-weight: 400; color: var(--fog); }

.hero-kicker {
  margin-top: 26px; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal);
}
.hero h1 {
  margin-top: 16px; font-family: var(--font-display); font-weight: 800;
  letter-spacing: -0.02em; line-height: 0.95;
  font-size: clamp(2.9rem, 8.5vw, 6rem); color: var(--ink);
}
.hero h1 .uline { position: relative; display: inline-block; }
.hero h1 .uline svg { position: absolute; bottom: -8px; left: 0; width: 100%; color: var(--tang); }

.hero-lead { margin-top: 28px; font-size: 19px; color: var(--fog); max-width: 560px; line-height: 1.65; }
.hero-lead strong { color: var(--ink); }
.role-rotator { display: inline-block; color: var(--teal); font-weight: 600; }
.role-rotator span { display: inline-block; animation: msg-in 0.45s var(--ease) both; }

.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }

.hero-stats {
  margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 520px; border-top: 2px solid rgba(11,43,47,0.12);
}
.hero-stats > div { padding-top: 20px; padding-right: 16px; }
.hero-stats > div + div { border-left: 1px solid rgba(11,43,47,0.12); padding-left: 18px; }
.hero-stats .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.hero-stats .l { margin-top: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fog); font-weight: 500; }

/* Terminal */
.hero-terminal { position: relative; }
.terminal-frame {
  position: relative; z-index: 1; background: var(--ink); border-radius: 14px;
  border: 1px solid rgba(17,57,62,0.6); box-shadow: var(--shadow-lift); overflow: hidden;
  background-image:
    radial-gradient(600px 320px at 85% -10%, rgba(14,133,120,0.35), transparent 60%),
    radial-gradient(500px 300px at 0% 110%, rgba(255,93,46,0.16), transparent 60%);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid rgba(251,252,249,0.1);
}
.terminal-bar i { width: 12px; height: 12px; border-radius: 50%; }
.terminal-bar i:nth-child(1) { background: var(--tang); }
.terminal-bar i:nth-child(2) { background: var(--sun); }
.terminal-bar i:nth-child(3) { background: var(--mint); }
.terminal-bar .title {
  margin-left: 10px; font-family: var(--font-mono); font-size: 11px; color: rgba(251,252,249,0.5);
  display: flex; align-items: center; gap: 8px;
}
.terminal-bar .live {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--mint);
  border: 1px solid rgba(191,232,220,0.3); border-radius: 4px; padding: 2px 7px;
}
.terminal-body {
  padding: 20px; font-family: var(--font-mono); font-size: 13px; line-height: 1.85;
  min-height: 250px; color: var(--cream);
}
.terminal-body .cmd { color: var(--mint); }
.terminal-body .cmd::before { content: "$ "; color: var(--teal); }
.terminal-body .out { color: rgba(251,252,249,0.6); white-space: pre-wrap; word-break: break-word; }
.terminal-body .out-sun { color: var(--sun); }
.terminal-body .out-tang { color: var(--tang); }
.terminal-body .cursor { color: var(--mint); animation: blinkc 1.05s steps(1) infinite; }

.float-chip {
  position: absolute; z-index: 2; animation: floaty 6s ease-in-out infinite;
}
.float-chip .chip {
  display: flex; align-items: center; gap: 8px; background: var(--cream);
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 13px;
  box-shadow: var(--shadow-hard-sm); font-size: 12px; font-weight: 600;
}
.float-chip svg { width: 16px; height: 16px; }
.chip-1 { top: -18px; left: -10px; --tilt: -4deg; }
.chip-2 { bottom: -18px; right: -8px; --tilt: 3deg; animation-duration: 9s; }
.chip-3 { top: 34%; right: -34px; --tilt: 5deg; }
@media (max-width: 1199px) { .chip-3 { display: none; } }
.terminal-dashed {
  position: absolute; inset: -12px; border: 2px dashed rgba(14,133,120,0.3);
  border-radius: 18px; transform: rotate(2deg); z-index: 0;
}

/* ==========================================================================
   8. TICKER
   ========================================================================== */
.ticker {
  position: relative; z-index: 5; background: var(--ink); border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink); overflow: hidden; padding: 14px 0;
}
.ticker-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: flex; align-items: center; gap: 32px; padding-right: 32px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--mint); white-space: nowrap;
}
.ticker-track svg { width: 14px; height: 14px; color: var(--tang); flex: none; }

/* ==========================================================================
   9. SERVICES
   ========================================================================== */
.services { padding: 110px 0 90px; position: relative; }
.services-grid { display: grid; gap: 56px; }
@media (min-width: 1024px) { .services-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }
.services-left { align-self: start; }
@media (min-width: 1024px) { .services-left { position: sticky; top: 120px; } }
.services-left .note-card {
  margin-top: 32px; background: var(--cream); border: 1px solid var(--line);
  border-left: 4px solid var(--tang); border-radius: 10px; padding: 20px 22px;
  font-size: 15px; color: var(--pine); box-shadow: 0 14px 30px -20px rgba(11,43,47,0.3);
}
.services-left .note-card b { color: var(--ink); }

.svc-list { display: grid; gap: 18px; }
.svc-card {
  position: relative; display: grid; grid-template-columns: auto auto 1fr; gap: 20px;
  align-items: start; background: var(--cream); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 26px 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--teal); }
.svc-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--tang); font-weight: 700;
  padding-top: 10px;
}
.svc-icon {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sea); color: var(--teal); border: 1px solid var(--line);
  transition: background 0.35s, color 0.35s, transform 0.35s var(--ease);
}
.svc-icon svg { width: 27px; height: 27px; }
.svc-card:hover .svc-icon { background: var(--teal); color: var(--cream); transform: rotate(-6deg) scale(1.05); }
.svc-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.svc-card p { margin-top: 6px; color: var(--fog); font-size: 14.5px; }
.svc-points { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-points li {
  font-family: var(--font-mono); font-size: 11px; color: var(--pine);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 11px;
}
@media (max-width: 640px) {
  .svc-card { grid-template-columns: auto 1fr; }
  .svc-num { display: none; }
}

/* ==========================================================================
   10. BOT DEMO
   ========================================================================== */
.bot-section {
  position: relative; background: var(--deep); color: var(--cream);
  padding: 110px 0; overflow: hidden;
}
.bot-section::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(251,252,249,0.09) 1.1px, transparent 1.1px);
  background-size: 24px 24px; opacity: 0.5;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, black, transparent);
          mask-image: radial-gradient(70% 70% at 50% 40%, black, transparent);
}
.bot-section .section-tag { color: var(--sun); }
.bot-section .section-title { color: var(--cream); }
.bot-section .section-title em { color: var(--sun); }
.bot-section .section-sub { color: rgba(251,252,249,0.6); }
.bot-watermark {
  position: absolute; top: -30px; right: -20px; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(6rem, 18vw, 16rem); line-height: 1; user-select: none;
  color: transparent; -webkit-text-stroke: 1.5px rgba(191,232,220,0.12);
}
.bot-grid { position: relative; display: grid; gap: 56px; margin-top: 56px; align-items: center; }
@media (min-width: 1024px) { .bot-grid { grid-template-columns: 5fr 7fr; } }

.bot-facts { display: grid; gap: 16px; }
.bot-facts li {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(251,252,249,0.04); border: 1px solid rgba(251,252,249,0.09);
  border-radius: 12px; padding: 18px 20px;
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.bot-facts li:hover { border-color: var(--sun); transform: translateX(6px); background: rgba(251,252,249,0.07); }
.bot-facts .fi {
  flex: none; width: 42px; height: 42px; border-radius: 10px; background: rgba(255,194,75,0.14);
  color: var(--sun); display: grid; place-items: center;
}
.bot-facts .fi svg { width: 21px; height: 21px; }
.bot-facts b { display: block; font-family: var(--font-display); font-size: 16px; }
.bot-facts span { font-size: 13.5px; color: rgba(251,252,249,0.6); }

.chat-window {
  background: var(--cream); color: var(--ink); border-radius: 18px; overflow: hidden;
  border: 2px solid var(--ink); box-shadow: 10px 10px 0 0 rgba(0,0,0,0.35);
}
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--ink); color: var(--cream);
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--teal);
  display: grid; place-items: center; color: var(--cream);
}
.chat-avatar svg { width: 22px; height: 22px; }
.chat-head b { font-family: var(--font-display); font-size: 15px; display: block; line-height: 1.2; }
.chat-head small { font-size: 11px; color: var(--mint); display: flex; align-items: center; gap: 6px; }
.chat-head small::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  animation: pulse-dot 2.2s ease-out infinite;
}
.chat-head .tg { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: rgba(251,252,249,0.5); }

.chat-body {
  height: 340px; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px;
  background:
    linear-gradient(rgba(227,239,232,0.5), rgba(227,239,232,0.5)),
    radial-gradient(rgba(11,43,47,0.07) 1px, transparent 1px);
  background-size: auto, 18px 18px;
}
.bubble {
  max-width: 82%; padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.55;
  animation: msg-in 0.45s var(--ease) both;
}
.bubble.bot {
  align-self: flex-start; background: #ffffff; border: 1px solid var(--line);
  border-bottom-left-radius: 4px; color: var(--pine);
}
.bubble.user {
  align-self: flex-end; background: var(--teal); color: var(--cream);
  border-bottom-right-radius: 4px;
}
.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.typing i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--fog);
  animation: bob 1.3s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

.chat-quick { padding: 14px 18px 18px; border-top: 1px solid var(--line); background: var(--cream); }
.chat-quick p { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fog); margin-bottom: 10px; }
.quick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-btn {
  font-size: 13px; font-weight: 600; color: var(--pine); background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 15px;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.quick-btn:hover { background: var(--ink); color: var(--mint); transform: translate(-1px,-1px); box-shadow: 3px 3px 0 0 rgba(11,43,47,0.35); }
.quick-btn:disabled { opacity: 0.45; pointer-events: none; }

/* ==========================================================================
   11. PROJECTS
   ========================================================================== */
.projects { padding: 110px 0; position: relative; }
.project-card {
  display: grid; gap: 0; background: var(--cream); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; margin-bottom: 40px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
@media (min-width: 900px) {
  .project-card { grid-template-columns: 1.1fr 1fr; }
  .project-card.flip .proj-media { order: 2; }
}
.proj-media {
  position: relative; overflow: hidden; min-height: 280px; background: var(--sea);
}
.proj-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04); transition: transform 1.4s var(--ease);
}
.project-card:hover .proj-media img { transform: scale(1.12); }
.proj-year {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  background: var(--ink); color: var(--mint); border-radius: 6px; padding: 5px 11px;
}
.proj-cat {
  position: absolute; bottom: 16px; left: 16px; z-index: 2;
  font-size: 12px; font-weight: 700; background: var(--tang); color: var(--cream);
  border-radius: 6px; padding: 5px 12px;
}
.proj-body { padding: 34px 34px 30px; display: flex; flex-direction: column; }
.proj-body h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; }
.proj-body .desc { margin-top: 12px; color: var(--fog); font-size: 15px; }
.proj-stack { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.proj-stack li {
  font-family: var(--font-mono); font-size: 11px; color: var(--pine);
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px 12px;
}
.proj-result {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--teal); font-size: 15px;
}
.proj-result svg { width: 18px; height: 18px; color: var(--tang); }

/* ==========================================================================
   12. ABOUT
   ========================================================================== */
.about { padding: 110px 0; background: var(--sea); position: relative; overflow: hidden; }
.about-watermark {
  position: absolute; bottom: -60px; left: -30px; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(6rem, 16vw, 14rem); line-height: 1; user-select: none;
  color: transparent; -webkit-text-stroke: 1.5px rgba(11,43,47,0.08);
}
.about-grid { position: relative; display: grid; gap: 60px; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 5fr 7fr; } }

.portrait-wrap { position: relative; max-width: 440px; margin: 0 auto; }
.portrait-frame {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 2px solid var(--ink); box-shadow: var(--shadow-hard);
  transform: rotate(-2deg); transition: transform 0.5s var(--ease);
}
.portrait-frame:hover { transform: rotate(0deg) scale(1.02); }
.portrait-frame img { width: 100%; height: auto; }
.portrait-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 60%, rgba(14,133,120,0.25));
}
.spin-badge {
  position: absolute; top: -34px; right: -30px; width: 120px; height: 120px; z-index: 3;
  animation: spin-slow 22s linear infinite;
}
.spin-badge svg { width: 100%; height: 100%; }
.spin-badge .center {
  position: absolute; inset: 0; display: grid; place-items: center;
  animation: spin-slow 22s linear infinite reverse;
}
.spin-badge .center svg { width: 30px; height: 30px; color: var(--tang); }

.about-copy p { color: var(--pine); font-size: 16.5px; margin-top: 16px; }
.about-copy p b { color: var(--ink); }

.counters {
  margin-top: 34px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (min-width: 640px) { .counters { grid-template-columns: repeat(4, 1fr); } }
.counter-box {
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 16px; text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.counter-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-hard-sm); }
.counter-box .num { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--teal); }
.counter-box .lbl { margin-top: 2px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fog); font-weight: 600; }

.stack-tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tags li {
  font-family: var(--font-mono); font-size: 12px; color: var(--pine);
  background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 6px 13px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.stack-tags li:hover { background: var(--ink); color: var(--mint); border-color: var(--ink); transform: translateY(-2px); }

/* ==========================================================================
   13. PROCESS
   ========================================================================== */
.process { padding: 110px 0 100px; }
.process-grid {
  margin-top: 60px; display: grid; gap: 22px; position: relative;
}
@media (min-width: 900px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-line { display: none; }
@media (min-width: 900px) {
  .process-line {
    display: block; position: absolute; top: 44px; left: 6%; right: 6%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  }
}
.step-card {
  position: relative; background: var(--cream); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 24px 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.step-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); border-color: var(--tang); }
.step-num {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: var(--mint); font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  position: relative; z-index: 1; transition: background 0.3s, transform 0.3s var(--ease);
}
.step-card:hover .step-num { background: var(--tang); color: var(--cream); transform: rotate(-8deg); }
.step-card h3 { margin-top: 18px; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.step-card p { margin-top: 8px; font-size: 14px; color: var(--fog); }
.step-time {
  margin-top: 16px; display: inline-block; font-family: var(--font-mono); font-size: 11px;
  color: var(--teal); background: var(--sea); border-radius: 999px; padding: 4px 12px; font-weight: 700;
}

/* ==========================================================================
   14. TESTIMONIALS
   ========================================================================== */
.testimonials { padding: 40px 0 120px; }
.tst-grid { margin-top: 60px; display: grid; gap: 26px; }
@media (min-width: 900px) { .tst-grid { grid-template-columns: repeat(3, 1fr); } }
.tst-card {
  position: relative; background: var(--cream); border: 1px solid var(--line);
  border-radius: 6px; padding: 34px 28px 26px;
  box-shadow: 0 18px 36px -22px rgba(11,43,47,0.35);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.tst-card:nth-child(1) { transform: rotate(-2.2deg); }
.tst-card:nth-child(2) { transform: rotate(1.4deg) translateY(14px); }
.tst-card:nth-child(3) { transform: rotate(-1.2deg); }
.tst-card:hover { transform: rotate(0) translateY(-8px); box-shadow: var(--shadow-lift); z-index: 2; }
.tst-tape {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 96px; height: 26px; background: rgba(255,194,75,0.55);
  border-left: 1px dashed rgba(11,43,47,0.2); border-right: 1px dashed rgba(11,43,47,0.2);
}
.tst-card:nth-child(2) .tst-tape { background: rgba(191,232,220,0.8); transform: translateX(-50%) rotate(2deg); }
.tst-stars { display: flex; gap: 3px; color: var(--sun); }
.tst-stars svg { width: 16px; height: 16px; }
.tst-quote { margin-top: 16px; font-size: 15.5px; color: var(--pine); line-height: 1.7; font-style: italic; }
.tst-who { margin-top: 20px; display: flex; align-items: center; gap: 13px; border-top: 1px dashed var(--line); padding-top: 16px; }
.tst-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: var(--cream);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 15px;
}
.tst-who b { display: block; font-size: 14.5px; }
.tst-who span { font-size: 12px; color: var(--fog); }

/* ==========================================================================
   15. CONTACT
   ========================================================================== */
.contact {
  position: relative; background: var(--pine); color: var(--cream);
  padding: 110px 0; overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(251,252,249,0.08) 1.1px, transparent 1.1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(80% 80% at 30% 20%, black, transparent);
          mask-image: radial-gradient(80% 80% at 30% 20%, black, transparent);
}
.contact .section-tag { color: var(--sun); }
.contact .section-title { color: var(--cream); }
.contact .section-title em { color: var(--tang); }
.contact .section-sub { color: rgba(251,252,249,0.65); }
.contact-watermark {
  position: absolute; bottom: -50px; right: -20px; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(5rem, 15vw, 13rem); line-height: 1; user-select: none;
  color: transparent; -webkit-text-stroke: 1.5px rgba(191,232,249,0.09);
}
.contact-grid { position: relative; display: grid; gap: 56px; margin-top: 56px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; } }

.info-cards { display: grid; gap: 14px; }
.info-card {
  display: flex; align-items: center; gap: 16px;
  background: rgba(251,252,249,0.05); border: 1px solid rgba(251,252,249,0.12);
  border-radius: 12px; padding: 17px 20px;
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
a.info-card:hover { border-color: var(--sun); transform: translateX(6px); background: rgba(251,252,249,0.08); }
.info-card .ic {
  flex: none; width: 44px; height: 44px; border-radius: 10px; background: rgba(255,93,46,0.16);
  color: var(--tang); display: grid; place-items: center;
}
.info-card .ic svg { width: 21px; height: 21px; }
.info-card small { display: block; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(251,252,249,0.5); }
.info-card b { font-size: 15.5px; color: var(--cream); }
.avail-note {
  margin-top: 20px; font-size: 14px; color: rgba(251,252,249,0.7);
  border-left: 3px solid var(--sun); padding-left: 16px;
}
.avail-note b { color: var(--sun); }

.contact-form {
  background: var(--cream); color: var(--ink); border-radius: 16px;
  border: 2px solid var(--ink); box-shadow: 10px 10px 0 0 rgba(0,0,0,0.35);
  padding: 32px 30px;
}
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--pine); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 15px; font-size: 15px; color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 4px rgba(14,133,120,0.15);
}
.form-success {
  display: none; margin-bottom: 18px; background: var(--sea); border: 1.5px solid var(--teal);
  color: var(--pine); border-radius: 10px; padding: 14px 18px; font-size: 14.5px; font-weight: 600;
}
.form-success.show { display: block; animation: msg-in 0.45s var(--ease) both; }
.contact-form .btn { width: 100%; justify-content: center; }

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.site-footer { background: var(--deep); color: var(--cream); padding: 70px 0 0; }
.footer-grid { display: grid; gap: 44px; padding-bottom: 50px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .brand-mark { background: var(--teal); color: var(--cream); border-color: var(--teal); box-shadow: none; }
.footer-brand p { margin-top: 16px; color: rgba(251,252,249,0.6); font-size: 14.5px; max-width: 340px; }
.site-footer h4 {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--sun); margin-bottom: 18px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(251,252,249,0.7); font-size: 14.5px; transition: color 0.2s, padding-left 0.25s var(--ease); }
.footer-links a:hover { color: var(--mint); padding-left: 6px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; color: rgba(251,252,249,0.7); font-size: 14px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--tang); flex: none; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(251,252,249,0.1); padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 13px; color: rgba(251,252,249,0.5); }
.footer-clock {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--mint);
  border: 1px solid rgba(191,232,220,0.25); border-radius: 999px; padding: 7px 16px;
}
.footer-clock .cdot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: pulse-dot 2.2s ease-out infinite; }

/* ==========================================================================
   17. KEYFRAMES
   ========================================================================== */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--tilt, 0deg)); }
}
@keyframes blinkc { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pulse-dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.9); opacity: 0.25; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 0.35; } 50% { transform: translateY(-5px); opacity: 1; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes wash {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4%, -3%, 0) scale(1.08); }
}

/* ==========================================================================
   18. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track, .float-chip, .spin-badge, .spin-badge .center, .blob,
  .avail-pill .dot::before, .chat-head small::before, .typing i,
  .terminal-body .cursor, .footer-clock .cdot,
  .bubble, .role-rotator span, .form-success.show { animation: none !important; }
  .project-card:hover .proj-media img { transform: scale(1.04); }
  .svc-card, .step-card, .tst-card, .counter-box, .project-card, .btn, .quick-btn { transition: none; }
}
