/* =========================================================
   CODEFLUX EDIT GUIDE
   CSS controls colors, typography, spacing, cards, image sizing,
   positions, hover effects, animations and responsive layout.
   See CODEFLUX-EDIT-GUIDE.md for exact editing instructions.
   ========================================================= */
/* ===== GLOBAL DESIGN TOKENS / COLORS / SIZES ===== */
:root {
  --primary: #0b7a97;
  --primary-strong: #085d73;
  --accent: #14a3c7;
  --dark: #111827;
  --text: #1f2937;
  --muted: #6b7280;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: rgba(17, 24, 39, 0.08);
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --container: min(1160px, calc(100% - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--surface-alt);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(248, 250, 252, 0.95));
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 3rem;
  text-align: center;
}

.section-heading.left-align {
  text-align: left;
}

.section-heading h2,
/* ===== HERO SECTION ===== */
.hero-copy h1,
.about-content h2,
/* ===== CONTACT SECTION ===== */
.contact-details h2,
.cta-card h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 0.8rem;
}

.section-heading p,
.hero-text,
.about-content p,
.contact-details p {
  color: var(--muted);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:focus-visible {
  outline: 3px solid rgba(11, 122, 151, 0.22);
  outline-offset: 3px;
}

.btn-primary {
  color: #fff;
  background: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-secondary {
  background: rgba(11, 122, 151, 0.08);
  color: var(--primary);
  border-color: rgba(11, 122, 151, 0.16);
}

.btn-small {
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
}

/* ===== NAVIGATION / HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.04rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--primary);
  background: rgba(11, 122, 151, 0.08);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-mark img {
  width: 30px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dark);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 0.28rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.3rem;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  padding: 4rem 0 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.04rem;
  max-width: 620px;
}

.hero-copy h1 .accent-text {
  color: var(--primary);
}

.hero-text+.hero-text {
  margin-top: 0.85rem;
}

.hero-cta-line {
  font-weight: 600;
  color: var(--primary-strong);
  margin-top: 1.1rem;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.6rem 0;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-trust i {
  color: var(--primary);
  margin-right: 0.3rem;
}

.hero-visual {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-card {
  position: relative;
  z-index: 3;
  padding: 1rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.device-card img {
  width: min(100%, 440px);
  border-radius: 24px;
}

.floating-card.device-card {
  width: min(300px, 100%);
  padding: 1.6rem 1.5rem;
  animation: float 4s ease-in-out infinite;
}

.floating-card .card-head {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}

.floating-card .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.floating-card .dot-red {
  background: #ef4444;
}

.floating-card .dot-yellow {
  background: #f59e0b;
}

.floating-card .dot-green {
  background: #10b981;
}

.floating-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  color: var(--dark);
}

/* =========================================================
   HERO — LIVE TECHNOLOGY STACK
   Two cards continuously exchange positions. Technology logos
   are loaded from Simple Icons and each skill uses a concise label.
   To change skills, edit the <li> entries in index.html.
   ========================================================= */
.stack-deck {
  position: relative;
  z-index: 3;
  width: min(360px, 100%);
  min-height: 465px;
  perspective: 1000px;
}
.stack-panel {
  position: absolute;
  inset: 0;
  padding: 1.35rem;
  border-radius: 30px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: 0 25px 70px rgba(15,23,42,.14);
  overflow: hidden;
}
.stack-panel::before {
  content:"";
  position:absolute;
  width:170px;height:170px;
  right:-75px;bottom:-75px;
  border-radius:50%;
  background:rgba(11,122,151,.08);
}
.stack-panel-a {
  animation: stackSwapA 8s ease-in-out infinite;
}
.stack-panel-b {
  animation: stackSwapB 8s ease-in-out infinite;
}
.stack-panel-head {
  display:flex;
  align-items:center;
  gap:.75rem;
  padding-bottom:1rem;
  margin-bottom:.85rem;
  border-bottom:1px solid var(--border);
}
.stack-panel-head strong {
  display:block;
  color:var(--dark);
  font-size:1.05rem;
}
.stack-panel-head small {
  display:block;
  margin-top:.15rem;
  color:var(--muted);
  font-size:.72rem;
}
.stack-index {
  width:34px;height:34px;
  display:grid;place-items:center;
  border-radius:11px;
  color:#fff;
  background:linear-gradient(135deg,var(--primary),#2563eb);
  font-size:.72rem;
  font-weight:800;
}
.stack-panel .stack-list {
  list-style:none;
  padding:0;margin:0;
  display:grid;
  gap:.45rem;
}
.stack-panel .stack-list li {
  display:flex;
  align-items:center;
  gap:.75rem;
  min-height:42px;
  padding:.5rem .55rem;
  border-radius:13px;
  transition:transform .2s ease, background .2s ease;
}
.stack-panel .stack-list li:hover {
  transform:translateX(5px);
  background:rgba(11,122,151,.06);
}
.stack-panel .stack-list img {
  width:24px;height:24px;
  object-fit:contain;
  flex:0 0 24px;
}
.stack-panel .stack-list span {
  color:var(--text);
  font-size:.88rem;
  font-weight:650;
}
.stack-swap-label {
  position:absolute;
  z-index:5;
  left:50%;
  bottom:-15px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:.45rem;
  white-space:nowrap;
  padding:.55rem .8rem;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  box-shadow:0 10px 30px rgba(15,23,42,.1);
  color:var(--muted);
  font-size:.7rem;
  font-weight:800;
}
.stack-swap-label i { color:var(--primary); }

@keyframes stackSwapA {
  0%, 40% { transform:translateX(0) scale(1); opacity:1; z-index:3; }
  50%, 90% { transform:translateX(52px) translateY(22px) scale(.92); opacity:.42; z-index:1; }
  100% { transform:translateX(0) scale(1); opacity:1; z-index:3; }
}
@keyframes stackSwapB {
  0%, 40% { transform:translateX(-52px) translateY(22px) scale(.92); opacity:.42; z-index:1; }
  50%, 90% { transform:translateX(0) scale(1); opacity:1; z-index:3; }
  100% { transform:translateX(-52px) translateY(22px) scale(.92); opacity:.42; z-index:1; }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  animation: float 6s ease-in-out infinite;
}

.orb-one {
  width: 240px;
  height: 240px;
  top: 16px;
  right: 4px;
  background: rgba(11, 122, 151, 0.12);
}

.orb-two {
  width: 180px;
  height: 180px;
  bottom: 36px;
  left: 26px;
  background: rgba(20, 163, 199, 0.16);
  animation-duration: 8s;
}

.floating-badge {
  position: absolute;
  z-index: 4;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  font-weight: 600;
  color: var(--primary);
  backdrop-filter: blur(14px);
  
}

.badge-top {
  top: 0;
  left: 0%;
}

.badge-bottom {
  bottom: 3%;
  right: 6%;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid rgba(11, 122, 151, 0.2);
  border-radius: 999px;
  display: flex;
  justify-content: center;
}

.scroll-indicator span {
  width: 5px;
  height: 8px;
  background: var(--primary);
  border-radius: 999px;
  margin-top: 0.45rem;
  animation: scroll 1.6s ease-in-out infinite;
}

/* ===== STATISTICS ===== */
.stats {
  padding-top: 0;
}

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

.stat-card,
.service-card,
.portfolio-card,
.tech-card,
.feature-card,
.contact-form,
.testimonial-card,
/* ===== FAQ ===== */
.faq-item,
.cta-card,
.about-illustration,
.about-list>div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 1.5rem;
  text-align: center;
}

.stat-card h3 {
  font-size: 2rem;
  margin: 0 0 0.4rem;
  color: var(--primary);
}

.stat-card p {
  margin: 0;
  color: var(--muted);
}

.cards-grid,
.portfolio-grid {
  display: grid;
  gap: 1.3rem;
}

.cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.feature-card {
  padding: 1.45rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.feature-card:hover,
.portfolio-card:hover,
.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 58px rgba(17, 24, 39, 0.12);
}

.service-card i,
.feature-card i,
.tech-card i {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.service-card h3,
.feature-card h3,
.portfolio-content h3,
.about-list h3,
.contact-details h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.service-card p,
.feature-card p,
.portfolio-content p,
.about-list p,
.contact-list,
/* ===== FOOTER ===== */
.site-footer p,
.site-footer li,
.site-footer a,
.testimonial-card span {
  color: var(--muted);
  font-size: 0.96rem;
}

.section-alt {
  position: relative;
}

.portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.portfolio-card:hover img {
  transform: scale(1.03);
}

.portfolio-content {
  padding: 1.2rem 1.2rem 1.35rem;
}

.portfolio-topline {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(11, 122, 151, 0.1);
  color: var(--primary);
}

.pill.muted {
  background: rgba(17, 24, 39, 0.06);
  color: var(--muted);
}

.portfolio-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.tech-card {
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  font-weight: 600;
  color: var(--dark);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(11, 122, 151, 0.2), rgba(11, 122, 151, 0.08));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  padding: 1.25rem 1.4rem;
  width: calc(50% - 1.2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) {
  margin-right: auto;
}

.timeline-item:nth-child(even) {
  margin-left: auto;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 1.4rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(11, 122, 151, 0.14);
}

.timeline-item:nth-child(odd)::before {
  right: -1.7rem;
}

.timeline-item:nth-child(even)::before {
  left: -1.7rem;
}


/* =========================================================
   ABOUT SECTION — CSS PRODUCT DEVELOPMENT ILLUSTRATION
   This replaces the old random/photo image.
   Edit this block to change the illustration's size, colors,
   phone position, badges or code-window layout.
   ========================================================= */
.about-illustration {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: linear-gradient(145deg, rgba(11,122,151,.06), rgba(37,99,235,.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.illustration-window {
  width: min(100%, 520px);
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 25px 70px rgba(15,23,42,.12);
  overflow: hidden;
}
.illustration-toolbar {
  height: 48px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 16px;
  border-bottom:1px solid var(--border);
  background:#f8fafc;
}
.illustration-toolbar span {
  width:10px;height:10px;border-radius:50%;background:#cbd5e1;
}
.illustration-toolbar span:first-child { background:#ef4444; }
.illustration-toolbar span:nth-child(2) { background:#f59e0b; }
.illustration-toolbar span:nth-child(3) { background:#10b981; }
.illustration-toolbar small {
  margin-left:auto;
  color:var(--muted);
  font-size:.75rem;
  font-weight:700;
}
.illustration-body {
  min-height:285px;
  display:grid;
  grid-template-columns:1fr .8fr;
  gap:1.2rem;
  align-items:center;
  padding:1.6rem;
}
.code-column { display:grid; gap:.8rem; }
.code-line {
  height:10px;
  border-radius:99px;
  background:#dbeafe;
}
.code-line.long { width:88%; background:#93c5fd; }
.code-line.medium { width:68%; background:#c4b5fd; }
.code-line.short { width:45%; background:#99f6e4; }
.phone-mockup {
  justify-self:center;
  width:150px;
  height:245px;
  padding:8px;
  border-radius:26px;
  background:#0f172a;
  box-shadow:0 18px 35px rgba(15,23,42,.22);
  transform:rotate(4deg);
}
.phone-notch {
  width:52px;height:6px;border-radius:99px;background:#334155;margin:2px auto 7px;
}
.phone-screen {
  height:calc(100% - 15px);
  border-radius:19px;
  background:linear-gradient(160deg,#f8fafc,#e0f2fe);
  padding:14px 11px;
}
.mini-logo {
  width:30px;height:30px;border-radius:9px;display:grid;place-items:center;
  background:var(--primary);color:#fff;margin-bottom:14px;
}
.mini-title { width:70%;height:9px;border-radius:99px;background:#334155;margin-bottom:12px; }
.mini-card { height:48px;border-radius:12px;background:#fff;border:1px solid #dbeafe;margin-bottom:9px;box-shadow:0 6px 15px rgba(15,23,42,.06); }
.mini-card.small { height:35px; }
.mini-button { width:65%;height:12px;border-radius:99px;background:var(--primary);margin-top:12px; }
.illustration-footer {
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
  padding:1rem 1.2rem;
  border-top:1px solid var(--border);
  background:#f8fafc;
}
.illustration-footer span {
  padding:.45rem .7rem;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--border);
  color:var(--muted);
  font-size:.75rem;
  font-weight:700;
}
.illustration-footer i { color:var(--primary); margin-right:.3rem; }
.illustration-badge {
  position:absolute;
  padding:.65rem .9rem;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  color:var(--dark);
  font-size:.78rem;
  font-weight:800;
  animation:float 4s ease-in-out infinite;
}
.illustration-badge i { color:var(--primary); margin-right:.35rem; }
.badge-build { left:4%; top:14%; }
.badge-ai { right:4%; bottom:14%; animation-delay:.5s; }

/* ===== ABOUT SECTION ===== */
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}


.about-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.about-list>div {
  padding: 1rem 1.2rem;
}

.testimonial-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.carousel-control {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  color: var(--primary);
}

.testimonial-track {
  position: relative;
  min-height: 230px;
}

.testimonial-card {
  display: none;
  padding: 2rem;
  text-align: center;
}

.testimonial-card.active {
  display: block;
}

.testimonial-card p {
  font-size: 1.08rem;
  margin-bottom: 1rem;
}

.testimonial-card strong {
  display: block;
  color: var(--dark);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.16);
  cursor: pointer;
}

.dot.active {
  background: var(--primary);
}

.faq-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 1.2rem;
}

.faq-item.active .faq-answer {
  max-height: 120px;
  padding-bottom: 1rem;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

/* ===== CALL TO ACTION ===== */
.cta-section {
  padding-top: 2rem;
}

.cta-card {
  padding: 3rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(11, 122, 151, 0.95), rgba(20, 163, 199, 0.9));
  color: #fff;
}

.cta-card p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.86);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.5rem;
  display: grid;
  gap: 0.7rem;
}

.contact-list i,
.map-card i {
  color: var(--primary);
  margin-right: 0.5rem;
}

.map-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--dark);
}

.contact-form {
  padding: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: var(--surface-alt);
  color: var(--dark);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(11, 122, 151, 0.18);
  border-color: rgba(11, 122, 151, 0.24);
}

.site-footer {
  padding: 3.5rem 0 0;
  background: var(--dark);
  color: #f9fafb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.site-footer .brand {
  color: #fff;
}

.footer-brand img {
  height: 58px;
  width: auto;
  display: block;
  margin-bottom: 0.9rem;
}

.site-footer h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.social-links {
  display: flex;
  gap: 0.7rem;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-to-top {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 122, 151, 0.18);
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* CodeFlux expanded portfolio */
.featured-work {
  background: #fff
}

/* ===== WORK / APP SHOWCASE ===== */
.work-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px
}

.work-category-card {
  position: relative;
  padding: 32px;
  border: 1px solid #e7edf2;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #f8fbfd);
  box-shadow: 0 12px 35px rgba(15, 23, 42, .06);
  transition: transform .28s ease, box-shadow .28s ease
}

.work-category-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .11)
}

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(11, 122, 151, .1);
  color: #0b7a97;
  font-size: 21px;
  margin-bottom: 24px
}

.work-category-card>span {
  font-size: .78rem;
  font-weight: 800;
  color: #0b7a97;
  text-transform: uppercase;
  letter-spacing: .08em
}

.work-category-card h3 {
  font-size: 1.45rem;
  margin: 10px 0
}

.work-category-card p {
  color: #667085
}

.text-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #0b7a97;
  font-weight: 800;
  text-decoration: none;
  margin-top: 10px
}

.text-link span {
  transition: transform .2s
}

.text-link:hover span {
  transform: translateX(4px)
}

.work-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 34px
}

.work-cta p {
  color: #667085;
  margin: 0
}

.project-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: -10px 0 30px
}

.filter-btn {
  border: 1px solid #dfe7ec;
  background: #fff;
  color: #475467;
  border-radius: 999px;
  padding: 10px 17px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: .2s
}

.filter-btn:hover,
.filter-btn.active {
  background: #0b7a97;
  color: #fff;
  border-color: #0b7a97
}

.rich-project-grid {
  align-items: stretch
}

.rich-project {
  display: flex;
  flex-direction: column
}

.rich-project img {
  height: 250px;
  object-fit: cover;
  width: 100%;
  display: block;
  background: #0b1220
}

.rich-project .portfolio-content {
  display: flex;
  flex-direction: column;
  flex: 1
}

.rich-project .portfolio-content>p {
  flex: 1
}

.project-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0
}

.project-tech-row span {
  font-size: .74rem;
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf7fa;
  color: #12627a;
  font-weight: 700
}

.website-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px
}

.website-card {
  overflow: hidden;
  border: 1px solid #e7edf2;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, .06);
  transition: .28s
}

.website-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .11)
}

.website-preview img {
  display: block;
  width: 100%;
  height: 225px;
  object-fit: cover
}

.website-body {
  padding: 24px
}

.website-body>span {
  font-size: .75rem;
  color: #0b7a97;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em
}

.website-body h3 {
  margin: 8px 0
}

.website-body p {
  color: #667085
}

.graphics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px
}

.graphic-card {
  overflow: hidden;
  border: 1px solid #e7edf2;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, .06);
  transition: .28s
}

.graphic-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .11)
}

.graphic-preview {
  height: 225px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  position: relative;
  overflow: hidden
}

.graphic-preview:before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  top: -55px;
  right: -35px
}

.graphic-preview span,
.graphic-preview small {
  position: relative;
  z-index: 1
}

.graphic-preview span {
  font-size: 1.6rem;
  font-weight: 800
}

.graphic-preview small {
  margin-top: 4px;
  opacity: .86
}

.flyer {
  background: linear-gradient(135deg, #123c69, #0b7a97)
}

.billboard {
  background: linear-gradient(135deg, #111827, #7c3aed)
}

/* .brand {
  background: linear-gradient(135deg, #172554, #2563eb)
} */

.card-design {
  background: linear-gradient(135deg, #0f766e, #14b8a6)
}

.logo {
  background: linear-gradient(135deg, #111827, #475467)
}

.social {
  background: linear-gradient(135deg, #be185d, #7c3aed)
}

.flyers {
  background: linear-gradient(135deg, #9a3412, #ea580c)
}

.graphic-body {
  padding: 22px
}

.graphic-body h3 {
  margin: 0 0 7px
}

.graphic-body p {
  color: #667085;
  margin: 0 0 12px
}

.graphic-body a {
  color: #0b7a97;
  text-decoration: none;
  font-weight: 800
}

.behance-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 35px;
  padding: 25px;
  border: 1px solid #e7edf2;
  border-radius: 22px;
  background: #fff
}

.behance-cta span {
  font-weight: 700;
  color: #475467
}

/* ===== PROJECT DETAIL MODAL ===== */
.project-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 24px
}

.project-modal.open {
  display: flex
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 18, .72);
  backdrop-filter: blur(7px)
}

.project-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1000px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .3)
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: 0;
  background: #f1f5f9;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 27px;
  cursor: pointer;
  color: #334155
}

.modal-kicker {
  color: #0b7a97;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em
}

.project-modal-dialog h2 {
  font-size: 2.2rem;
  margin: 7px 45px 10px 0
}

.project-modal-dialog>p {
  color: #667085;
  max-width: 850px
}

.modal-columns {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  margin-top: 25px
}

.modal-columns h4 {
  margin: 0 0 10px
}

.modal-columns ul {
  padding-left: 20px;
  color: #475467
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.modal-tech span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf7fa;
  color: #12627a;
  font-size: .78rem;
  font-weight: 700
}

.modal-role {
  margin-top: 18px;
  color: #667085;
  font-size: .9rem
}

.modal-role strong {
  display: block;
  color: #1f2937;
  margin-bottom: 5px
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 25px
}

.modal-gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 16px;
  background: #eef2f6
}

.modal-gallery .gallery-wide {
  grid-column: span 2
}

.modal-open {
  overflow: hidden
}

@media(max-width:900px) {

  .work-category-grid,
  .website-grid,
  .graphics-grid {
    grid-template-columns: 1fr 1fr
  }

  .modal-columns {
    grid-template-columns: 1fr
  }

  .modal-gallery {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:600px) {

  .work-category-grid,
  .website-grid,
  .graphics-grid {
    grid-template-columns: 1fr
  }

  .work-cta,
  .behance-cta {
    flex-direction: column;
    text-align: center
  }

  .rich-project img,
  .website-preview img {
    height: 210px
  }

  .project-modal {
    padding: 10px
  }

  .project-modal-dialog {
    padding: 24px 18px;
    border-radius: 20px
  }

  .modal-gallery {
    grid-template-columns: 1fr
  }

  .project-modal-dialog h2 {
    font-size: 1.7rem
  }
}

/* CodeFlux unified Work explorer */
.work-category-card {
  overflow: hidden;
  padding: 0 0 26px
}

.work-category-card>.category-icon,
.work-category-card>span,
.work-category-card>h3,
.work-category-card>p,
.work-category-card>.text-link {
  margin-left: 26px;
  margin-right: 26px
}

.category-preview {
  height: 190px;
  overflow: hidden;
  background: #edf3f6;
  margin-bottom: 22px
}

.category-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s ease
}

.work-category-card:hover .category-preview img {
  transform: scale(1.035)
}

.text-link {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding-left: 0
}

.work-cta .btn {
  border: 0;
  cursor: pointer;
  font: inherit
}

.work-explorer[hidden] {
  display: none
}

.work-explorer {
  padding-top: 48px;
  padding-bottom: 88px;
  scroll-margin-top: 70px
}

.work-explorer .explorer-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: start;
  margin-bottom: 28px
}

.explorer-head .eyebrow {
  margin-bottom: 4px
}

.explorer-head h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3.1rem)
}

.explorer-head p {
  color: #667085;
  max-width: 760px
}

.back-work {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dfe7ec;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: .2s
}

.back-work:hover {
  border-color: #0b7a97;
  color: #0b7a97;
  transform: translateX(-2px)
}

.explorer-card {
  min-width: 0
}

.explorer-image-wrap {
  position: relative;
  overflow: hidden;
  background: #eaf0f3
}

.explorer-image-wrap>img {
  height: 245px !important;
  object-fit: cover;
  transition: transform .45s ease
}

.explorer-card:hover .explorer-image-wrap>img {
  transform: scale(1.025)
}

.project-type-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .82);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  backdrop-filter: blur(8px)
}

.project-modal {
  padding: 0
}

.project-modal-dialog {
  width: min(1400px, 96vw);
  height: min(900px, 92vh);
  max-height: 92vh;
  padding: 0;
  border-radius: 28px;
  overflow: hidden
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  height: 100%;
  min-height: 0
}

.modal-gallery-column {
  background: #eef2f5;
  padding: 30px;
  overflow: auto
}

.modal-info-column {
  background: #f8fafc;
  padding: 52px 46px 42px;
  overflow: auto
}

.modal-info-column h2 {
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.08;
  margin: 8px 45px 18px 0
}

.modal-info-column>p {
  font-size: 1.02rem;
  color: #667085;
  line-height: 1.8
}

.modal-columns {
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 28px
}

.modal-columns ul {
  font-size: 1rem;
  line-height: 1.85;
  margin: 0
}

.modal-tech span {
  font-size: .78rem
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 12px;
  margin: 0
}

.gallery-main {
  grid-column: 1/-1;
  background: #fff;
  border-radius: 20px;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08)
}

.gallery-main img {
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: contain;
  display: block
}

.gallery-image {
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 0;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  min-height: 100px;
  transition: .2s
}

.gallery-image img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover
}

.gallery-image:hover,
.gallery-image.selected {
  border-color: #0b7a97
}

.modal-close {
  z-index: 10;
  right: 18px;
  top: 18px;
  width: 58px;
  height: 58px;
  font-size: 34px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08)
}

.modal-kicker {
  font-size: .78rem
}

.modal-role {
  font-size: .92rem;
  line-height: 1.65
}

.modal-info-column h4 {
  font-size: 1rem;
  color: #0f172a
}

@media(max-width:950px) {
  .modal-layout {
    grid-template-columns: 1fr
  }

  .modal-gallery-column {
    max-height: 48vh
  }

  .gallery-main {
    min-height: 300px
  }

  .modal-info-column {
    padding: 30px
  }

  .project-modal-dialog {
    height: 94vh
  }

  .work-explorer .explorer-head {
    grid-template-columns: 1fr
  }

  .back-work {
    justify-self: start
  }
}

@media(max-width:600px) {
  .category-preview {
    height: 160px
  }

  .explorer-image-wrap>img {
    height: 210px !important
  }

  .modal-gallery-column {
    padding: 16px
  }

  .modal-info-column {
    padding: 28px 20px
  }

  .gallery-main {
    min-height: 240px
  }

  .modal-gallery {
    grid-template-columns: repeat(2, 1fr)
  }

  .gallery-image img {
    height: 100px
  }

  .modal-close {
    width: 48px;
    height: 48px;
    font-size: 28px;
    right: 12px;
    top: 12px
  }
}

.brand-mark {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0
}

.brand-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain
}

.apps-showcase-card {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, #f4fbfd 100%);
  border: 1px solid #dfecef;
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 24px 70px rgba(8, 93, 115, .10);
  overflow: hidden
}

.apps-showcase-collage {
  min-height: 430px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center
}

.showcase-shot {
  position: absolute;
  background: #fff;
  border-radius: 26px;
  padding: 8px;

  box-shadow: 0 22px 55px rgba(15, 23, 42, .18);
  border: 1px solid rgba(15, 23, 42, .08);
  overflow: hidden
}

.showcase-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px
}

.shot-one {
  width: 190px;
  height: 385px;
  left: 4%;
  top: 26px;
  transform: rotate(-7deg);
  z-index: 1
}

.shot-two {
  width: 190px;
  height: 385px;
  left: 34%;
  top: 0;
  z-index: 3
}

.shot-three {
  width: 190px;
  height: 385px;
  right: 4%;
  top: 38px;
  transform: rotate(7deg);
  z-index: 2
}

.apps-showcase-copy .category-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #e7f6fa;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px
}

.apps-showcase-copy>span {
  color: var(--primary);
  font-weight: 700;
  font-size: .92rem
}

.apps-showcase-copy h3 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.12;
  margin: .7rem 0 1rem
}

.apps-showcase-copy p {
  color: var(--muted);
  font-size: 1.02rem
}

.showcase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px
}

.showcase-pills span {
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dce8ec;
  font-size: .82rem;
  font-weight: 700;
  color: #475467
}

.explorer-image-wrap {
  background: #f3f7f9;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px
}

.explorer-image-wrap img {
  max-width: 100%;
  max-height: 430px;
  width: auto;
  height: 250px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12)
}

.modal-gallery .gallery-main {
  background: #f3f7f9;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px
}

.modal-gallery .gallery-main img {
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .15)
}

.modal-gallery .gallery-image {
  background: #f7fafb;
  border: 1px solid #e2e8ec;
  border-radius: 14px;
  padding: 6px;
  cursor: pointer;
  transition: .2s;
  max-height: 120px
}

.modal-gallery .gallery-image img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  border-radius: 9px
}

.modal-gallery .gallery-image.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(11, 122, 151, .12)
}

@media(max-width:900px) {
  .apps-showcase-card {
    grid-template-columns: 1fr;
    padding: 24px
  }

  .apps-showcase-collage {
    min-height: 350px
  }

  .shot-one,
  .shot-two,
  .shot-three {
    width: 150px;
    height: 305px
  }
}

@media(max-width:600px) {
  .apps-showcase-collage {
    min-height: 300px
  }

  .shot-one,
  .shot-two,
  .shot-three {
    width: 112px;
    height: 230px
  }

  .shot-one {
    left: 2%
  }

  .shot-three {
    right: 2%
  }
}
/* =========================================================
   ABOUT — PRODUCT ARCHITECTURE VISUAL
   Extra nodes make the illustration feel like a real software
   architecture/product dashboard rather than a plain mockup.
   ========================================================= */
.architecture-node {
  position:absolute;
  z-index:6;
  display:flex;
  align-items:center;
  gap:.4rem;
  padding:.55rem .7rem;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.92);
  box-shadow:0 12px 28px rgba(15,23,42,.1);
  color:var(--dark);
  font-size:.7rem;
  font-weight:800;
  animation: nodeFloat 4s ease-in-out infinite;
}
.architecture-node i { color:var(--primary); }
.node-api { left:2%; top:29%; animation-delay:.1s; }
.node-cloud { right:1%; top:24%; animation-delay:.7s; }
.node-db { left:6%; bottom:22%; animation-delay:1.2s; }
.node-mobile { right:2%; bottom:26%; animation-delay:1.7s; }

.illustration-metric {
  position:absolute;
  z-index:6;
  display:flex;
  align-items:center;
  gap:.45rem;
  padding:.5rem .7rem;
  border-radius:12px;
  background:#0f172a;
  color:#fff;
  box-shadow:0 12px 28px rgba(15,23,42,.16);
}
.illustration-metric strong { font-size:.8rem; }
.illustration-metric span { font-size:.62rem; opacity:.72; }
.metric-top { right:7%; top:7%; }
.metric-bottom { left:7%; bottom:7%; }

@keyframes nodeFloat {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(-6px); }
}
